diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java index c1a109d75a..6d406063ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class AbstractOpenApiSchemaFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class AbstractOpenApiSchemaFluent> extends BaseFluent{ private Boolean isNullable; private String schemaType; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - AbstractOpenApiSchemaFluent that = (AbstractOpenApiSchemaFluent) o; + AbstractOpenApiSchemaFluent that = (AbstractOpenApiSchemaFluent) o; if (!(Objects.equals(isNullable, that.isNullable))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java index 33aafc1fd4..fd772c70ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class AdmissionregistrationV1ServiceReferenceBuilder extends AdmissionregistrationV1ServiceReferenceFluent implements VisitableBuilder{ AdmissionregistrationV1ServiceReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java index de6b616572..26e6281880 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class AdmissionregistrationV1ServiceReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class AdmissionregistrationV1ServiceReferenceFluent> extends BaseFluent{ private String name; private String namespace; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - AdmissionregistrationV1ServiceReferenceFluent that = (AdmissionregistrationV1ServiceReferenceFluent) o; + AdmissionregistrationV1ServiceReferenceFluent that = (AdmissionregistrationV1ServiceReferenceFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java index a1b151f9d2..5840393ced 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class AdmissionregistrationV1WebhookClientConfigBuilder extends AdmissionregistrationV1WebhookClientConfigFluent implements VisitableBuilder{ AdmissionregistrationV1WebhookClientConfigFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java index 2ec9d8fe8a..d9ff8d26ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java @@ -24,12 +24,14 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class AdmissionregistrationV1WebhookClientConfigFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class AdmissionregistrationV1WebhookClientConfigFluent> extends BaseFluent{ private List caBundle; private AdmissionregistrationV1ServiceReferenceBuilder service; @@ -105,7 +107,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - AdmissionregistrationV1WebhookClientConfigFluent that = (AdmissionregistrationV1WebhookClientConfigFluent) o; + AdmissionregistrationV1WebhookClientConfigFluent that = (AdmissionregistrationV1WebhookClientConfigFluent) o; if (!(Objects.equals(caBundle, that.caBundle))) { return false; } @@ -214,11 +216,11 @@ public A withCaBundle(byte... caBundle) { } public ServiceNested withNewService() { - return new ServiceNested(null); + return new ServiceNested<>(null); } public ServiceNested withNewServiceLike(AdmissionregistrationV1ServiceReference item) { - return new ServiceNested(item); + return new ServiceNested<>(item); } public A withService(AdmissionregistrationV1ServiceReference service) { @@ -227,8 +229,8 @@ public A withService(AdmissionregistrationV1ServiceReference service) { this.service = new AdmissionregistrationV1ServiceReferenceBuilder(service); this._visitables.get("service").add(this.service); } else { - this.service = null; this._visitables.get("service").remove(this.service); + this.service = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java index 7461caff53..7210df9c97 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class ApiextensionsV1ServiceReferenceBuilder extends ApiextensionsV1ServiceReferenceFluent implements VisitableBuilder{ ApiextensionsV1ServiceReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java index ea553738a9..5c34563326 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class ApiextensionsV1ServiceReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class ApiextensionsV1ServiceReferenceFluent> extends BaseFluent{ private String name; private String namespace; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - ApiextensionsV1ServiceReferenceFluent that = (ApiextensionsV1ServiceReferenceFluent) o; + ApiextensionsV1ServiceReferenceFluent that = (ApiextensionsV1ServiceReferenceFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java index 9b2a4f8aa4..1b09f97fe8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class ApiextensionsV1WebhookClientConfigBuilder extends ApiextensionsV1WebhookClientConfigFluent implements VisitableBuilder{ ApiextensionsV1WebhookClientConfigFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java index b4c4df6ee9..afad54d6fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java @@ -24,12 +24,14 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class ApiextensionsV1WebhookClientConfigFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class ApiextensionsV1WebhookClientConfigFluent> extends BaseFluent{ private List caBundle; private ApiextensionsV1ServiceReferenceBuilder service; @@ -105,7 +107,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - ApiextensionsV1WebhookClientConfigFluent that = (ApiextensionsV1WebhookClientConfigFluent) o; + ApiextensionsV1WebhookClientConfigFluent that = (ApiextensionsV1WebhookClientConfigFluent) o; if (!(Objects.equals(caBundle, that.caBundle))) { return false; } @@ -214,11 +216,11 @@ public A withCaBundle(byte... caBundle) { } public ServiceNested withNewService() { - return new ServiceNested(null); + return new ServiceNested<>(null); } public ServiceNested withNewServiceLike(ApiextensionsV1ServiceReference item) { - return new ServiceNested(item); + return new ServiceNested<>(item); } public A withService(ApiextensionsV1ServiceReference service) { @@ -227,8 +229,8 @@ public A withService(ApiextensionsV1ServiceReference service) { this.service = new ApiextensionsV1ServiceReferenceBuilder(service); this._visitables.get("service").add(this.service); } else { - this.service = null; this._visitables.get("service").remove(this.service); + this.service = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java index c6e7a1ee0d..21862fb9ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class ApiregistrationV1ServiceReferenceBuilder extends ApiregistrationV1ServiceReferenceFluent implements VisitableBuilder{ ApiregistrationV1ServiceReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java index ecff923d1b..2eff9796f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class ApiregistrationV1ServiceReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class ApiregistrationV1ServiceReferenceFluent> extends BaseFluent{ private String name; private String namespace; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - ApiregistrationV1ServiceReferenceFluent that = (ApiregistrationV1ServiceReferenceFluent) o; + ApiregistrationV1ServiceReferenceFluent that = (ApiregistrationV1ServiceReferenceFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java index a790d7b4e2..0a6a33c82d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class AuthenticationV1TokenRequestBuilder extends AuthenticationV1TokenRequestFluent implements VisitableBuilder{ AuthenticationV1TokenRequestFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java index 7a33138410..a0318681cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class AuthenticationV1TokenRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class AuthenticationV1TokenRequestFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - AuthenticationV1TokenRequestFluent that = (AuthenticationV1TokenRequestFluent) o; + AuthenticationV1TokenRequestFluent that = (AuthenticationV1TokenRequestFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1TokenRequestSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1TokenRequestStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1TokenRequestSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1TokenRequestSpec spec) { this.spec = new V1TokenRequestSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1TokenRequestStatus status) { this.status = new V1TokenRequestStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java index 56cb88550b..21acf1a41a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class CoreV1EndpointPortBuilder extends CoreV1EndpointPortFluent implements VisitableBuilder{ CoreV1EndpointPortFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java index 0c2c5d16a4..a8cd98dc70 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class CoreV1EndpointPortFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class CoreV1EndpointPortFluent> extends BaseFluent{ private String appProtocol; private String name; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - CoreV1EndpointPortFluent that = (CoreV1EndpointPortFluent) o; + CoreV1EndpointPortFluent that = (CoreV1EndpointPortFluent) o; if (!(Objects.equals(appProtocol, that.appProtocol))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java index e1a571f88e..5ba713e251 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class CoreV1EventBuilder extends CoreV1EventFluent implements VisitableBuilder{ CoreV1EventFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java index d458cab186..7dd3347c44 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java @@ -22,12 +22,14 @@ import java.time.OffsetDateTime; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class CoreV1EventFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class CoreV1EventFluent> extends BaseFluent{ private String action; private String apiVersion; @@ -167,7 +169,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - CoreV1EventFluent that = (CoreV1EventFluent) o; + CoreV1EventFluent that = (CoreV1EventFluent) o; if (!(Objects.equals(action, that.action))) { return false; } @@ -464,8 +466,8 @@ public A withInvolvedObject(V1ObjectReference involvedObject) { this.involvedObject = new V1ObjectReferenceBuilder(involvedObject); this._visitables.get("involvedObject").add(this.involvedObject); } else { - this.involvedObject = null; this._visitables.get("involvedObject").remove(this.involvedObject); + this.involvedObject = null; } return (A) this; } @@ -491,50 +493,50 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public InvolvedObjectNested withNewInvolvedObject() { - return new InvolvedObjectNested(null); + return new InvolvedObjectNested<>(null); } public InvolvedObjectNested withNewInvolvedObjectLike(V1ObjectReference item) { - return new InvolvedObjectNested(item); + return new InvolvedObjectNested<>(item); } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public RelatedNested withNewRelated() { - return new RelatedNested(null); + return new RelatedNested<>(null); } public RelatedNested withNewRelatedLike(V1ObjectReference item) { - return new RelatedNested(item); + return new RelatedNested<>(item); } public SeriesNested withNewSeries() { - return new SeriesNested(null); + return new SeriesNested<>(null); } public SeriesNested withNewSeriesLike(CoreV1EventSeries item) { - return new SeriesNested(item); + return new SeriesNested<>(item); } public SourceNested withNewSource() { - return new SourceNested(null); + return new SourceNested<>(null); } public SourceNested withNewSourceLike(V1EventSource item) { - return new SourceNested(item); + return new SourceNested<>(item); } public A withReason(String reason) { @@ -548,8 +550,8 @@ public A withRelated(V1ObjectReference related) { this.related = new V1ObjectReferenceBuilder(related); this._visitables.get("related").add(this.related); } else { - this.related = null; this._visitables.get("related").remove(this.related); + this.related = null; } return (A) this; } @@ -570,8 +572,8 @@ public A withSeries(CoreV1EventSeries series) { this.series = new CoreV1EventSeriesBuilder(series); this._visitables.get("series").add(this.series); } else { - this.series = null; this._visitables.get("series").remove(this.series); + this.series = null; } return (A) this; } @@ -582,8 +584,8 @@ public A withSource(V1EventSource source) { this.source = new V1EventSourceBuilder(source); this._visitables.get("source").add(this.source); } else { - this.source = null; this._visitables.get("source").remove(this.source); + this.source = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java index de5db7240b..443c896e1f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class CoreV1EventListBuilder extends CoreV1EventListFluent implements VisitableBuilder{ CoreV1EventListFluent fluent; 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 e297376328..69032da875 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class CoreV1EventListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class CoreV1EventListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public CoreV1EventListFluent(CoreV1EventList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (CoreV1Event item : items) { CoreV1EventBuilder builder = new CoreV1EventBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(CoreV1Event item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(CoreV1Event... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (CoreV1Event item : items) { CoreV1EventBuilder builder = new CoreV1EventBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(CoreV1Event... items) { public A addToItems(int index,CoreV1Event item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } CoreV1EventBuilder builder = new CoreV1EventBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - CoreV1EventListFluent that = (CoreV1EventListFluent) o; + CoreV1EventListFluent that = (CoreV1EventListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { CoreV1EventBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,CoreV1Event item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,CoreV1Event item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } CoreV1EventBuilder builder = new CoreV1EventBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (CoreV1Event item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends CoreV1EventFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java index c0423bfe4e..84c8c6d91c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class CoreV1EventSeriesBuilder extends CoreV1EventSeriesFluent implements VisitableBuilder{ CoreV1EventSeriesFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java index d92743bde4..d7676b8506 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class CoreV1EventSeriesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class CoreV1EventSeriesFluent> extends BaseFluent{ private Integer count; private OffsetDateTime lastObservedTime; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - CoreV1EventSeriesFluent that = (CoreV1EventSeriesFluent) o; + CoreV1EventSeriesFluent that = (CoreV1EventSeriesFluent) o; if (!(Objects.equals(count, that.count))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java index ff53f63bd2..addaf86e44 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class CoreV1ResourceClaimBuilder extends CoreV1ResourceClaimFluent implements VisitableBuilder{ CoreV1ResourceClaimFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java index 9399233c2f..ef18187cdb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class CoreV1ResourceClaimFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class CoreV1ResourceClaimFluent> extends BaseFluent{ private String name; private String request; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - CoreV1ResourceClaimFluent that = (CoreV1ResourceClaimFluent) o; + CoreV1ResourceClaimFluent that = (CoreV1ResourceClaimFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java index c5d113491c..8662c0ebfc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class DiscoveryV1EndpointPortBuilder extends DiscoveryV1EndpointPortFluent implements VisitableBuilder{ DiscoveryV1EndpointPortFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java index ecddd9f212..b4798d003c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class DiscoveryV1EndpointPortFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class DiscoveryV1EndpointPortFluent> extends BaseFluent{ private String appProtocol; private String name; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - DiscoveryV1EndpointPortFluent that = (DiscoveryV1EndpointPortFluent) o; + DiscoveryV1EndpointPortFluent that = (DiscoveryV1EndpointPortFluent) o; if (!(Objects.equals(appProtocol, that.appProtocol))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java index d4d41d55b8..05ad861db5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class EventsV1EventBuilder extends EventsV1EventFluent implements VisitableBuilder{ EventsV1EventFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java index 3db966e22c..950a05f7b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java @@ -22,12 +22,14 @@ import java.time.OffsetDateTime; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class EventsV1EventFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class EventsV1EventFluent> extends BaseFluent{ private String action; private String apiVersion; @@ -167,7 +169,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - EventsV1EventFluent that = (EventsV1EventFluent) o; + EventsV1EventFluent that = (EventsV1EventFluent) o; if (!(Objects.equals(action, that.action))) { return false; } @@ -464,8 +466,8 @@ public A withDeprecatedSource(V1EventSource deprecatedSource) { this.deprecatedSource = new V1EventSourceBuilder(deprecatedSource); this._visitables.get("deprecatedSource").add(this.deprecatedSource); } else { - this.deprecatedSource = null; this._visitables.get("deprecatedSource").remove(this.deprecatedSource); + this.deprecatedSource = null; } return (A) this; } @@ -486,50 +488,50 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public DeprecatedSourceNested withNewDeprecatedSource() { - return new DeprecatedSourceNested(null); + return new DeprecatedSourceNested<>(null); } public DeprecatedSourceNested withNewDeprecatedSourceLike(V1EventSource item) { - return new DeprecatedSourceNested(item); + return new DeprecatedSourceNested<>(item); } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public RegardingNested withNewRegarding() { - return new RegardingNested(null); + return new RegardingNested<>(null); } public RegardingNested withNewRegardingLike(V1ObjectReference item) { - return new RegardingNested(item); + return new RegardingNested<>(item); } public RelatedNested withNewRelated() { - return new RelatedNested(null); + return new RelatedNested<>(null); } public RelatedNested withNewRelatedLike(V1ObjectReference item) { - return new RelatedNested(item); + return new RelatedNested<>(item); } public SeriesNested withNewSeries() { - return new SeriesNested(null); + return new SeriesNested<>(null); } public SeriesNested withNewSeriesLike(EventsV1EventSeries item) { - return new SeriesNested(item); + return new SeriesNested<>(item); } public A withNote(String note) { @@ -548,8 +550,8 @@ public A withRegarding(V1ObjectReference regarding) { this.regarding = new V1ObjectReferenceBuilder(regarding); this._visitables.get("regarding").add(this.regarding); } else { - this.regarding = null; this._visitables.get("regarding").remove(this.regarding); + this.regarding = null; } return (A) this; } @@ -560,8 +562,8 @@ public A withRelated(V1ObjectReference related) { this.related = new V1ObjectReferenceBuilder(related); this._visitables.get("related").add(this.related); } else { - this.related = null; this._visitables.get("related").remove(this.related); + this.related = null; } return (A) this; } @@ -582,8 +584,8 @@ public A withSeries(EventsV1EventSeries series) { this.series = new EventsV1EventSeriesBuilder(series); this._visitables.get("series").add(this.series); } else { - this.series = null; this._visitables.get("series").remove(this.series); + this.series = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java index 50969d2eee..234c366e8e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class EventsV1EventListBuilder extends EventsV1EventListFluent implements VisitableBuilder{ EventsV1EventListFluent fluent; 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 016451644a..98c1f2d134 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class EventsV1EventListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class EventsV1EventListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public EventsV1EventListFluent(EventsV1EventList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (EventsV1Event item : items) { EventsV1EventBuilder builder = new EventsV1EventBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(EventsV1Event item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(EventsV1Event... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (EventsV1Event item : items) { EventsV1EventBuilder builder = new EventsV1EventBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(EventsV1Event... items) { public A addToItems(int index,EventsV1Event item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } EventsV1EventBuilder builder = new EventsV1EventBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - EventsV1EventListFluent that = (EventsV1EventListFluent) o; + EventsV1EventListFluent that = (EventsV1EventListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { EventsV1EventBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,EventsV1Event item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,EventsV1Event item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } EventsV1EventBuilder builder = new EventsV1EventBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (EventsV1Event item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends EventsV1EventFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java index e87bd48808..c04f8c3d33 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class EventsV1EventSeriesBuilder extends EventsV1EventSeriesFluent implements VisitableBuilder{ EventsV1EventSeriesFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java index 3074305f25..4e8efff662 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class EventsV1EventSeriesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class EventsV1EventSeriesFluent> extends BaseFluent{ private Integer count; private OffsetDateTime lastObservedTime; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - EventsV1EventSeriesFluent that = (EventsV1EventSeriesFluent) o; + EventsV1EventSeriesFluent that = (EventsV1EventSeriesFluent) o; if (!(Objects.equals(count, that.count))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java index 4c734a838c..9ce37b7023 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class FlowcontrolV1SubjectBuilder extends FlowcontrolV1SubjectFluent implements VisitableBuilder{ FlowcontrolV1SubjectFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java index 62f0e75f76..c74df6a359 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class FlowcontrolV1SubjectFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class FlowcontrolV1SubjectFluent> extends BaseFluent{ private V1GroupSubjectBuilder group; private String kind; @@ -107,7 +109,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - FlowcontrolV1SubjectFluent that = (FlowcontrolV1SubjectFluent) o; + FlowcontrolV1SubjectFluent that = (FlowcontrolV1SubjectFluent) o; if (!(Objects.equals(group, that.group))) { return false; } @@ -179,8 +181,8 @@ public A withGroup(V1GroupSubject group) { this.group = new V1GroupSubjectBuilder(group); this._visitables.get("group").add(this.group); } else { - this.group = null; this._visitables.get("group").remove(this.group); + this.group = null; } return (A) this; } @@ -191,27 +193,27 @@ public A withKind(String kind) { } public GroupNested withNewGroup() { - return new GroupNested(null); + return new GroupNested<>(null); } public GroupNested withNewGroupLike(V1GroupSubject item) { - return new GroupNested(item); + return new GroupNested<>(item); } public ServiceAccountNested withNewServiceAccount() { - return new ServiceAccountNested(null); + return new ServiceAccountNested<>(null); } public ServiceAccountNested withNewServiceAccountLike(V1ServiceAccountSubject item) { - return new ServiceAccountNested(item); + return new ServiceAccountNested<>(item); } public UserNested withNewUser() { - return new UserNested(null); + return new UserNested<>(null); } public UserNested withNewUserLike(V1UserSubject item) { - return new UserNested(item); + return new UserNested<>(item); } public A withServiceAccount(V1ServiceAccountSubject serviceAccount) { @@ -220,8 +222,8 @@ public A withServiceAccount(V1ServiceAccountSubject serviceAccount) { this.serviceAccount = new V1ServiceAccountSubjectBuilder(serviceAccount); this._visitables.get("serviceAccount").add(this.serviceAccount); } else { - this.serviceAccount = null; this._visitables.get("serviceAccount").remove(this.serviceAccount); + this.serviceAccount = null; } return (A) this; } @@ -232,8 +234,8 @@ public A withUser(V1UserSubject user) { this.user = new V1UserSubjectBuilder(user); this._visitables.get("user").add(this.user); } else { - this.user = null; this._visitables.get("user").remove(this.user); + this.user = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java index b5951ec64f..22114ac841 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class RbacV1SubjectBuilder extends RbacV1SubjectFluent implements VisitableBuilder{ RbacV1SubjectFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java index b6b2ee2298..df4246d406 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class RbacV1SubjectFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class RbacV1SubjectFluent> extends BaseFluent{ private String apiGroup; private String kind; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - RbacV1SubjectFluent that = (RbacV1SubjectFluent) o; + RbacV1SubjectFluent that = (RbacV1SubjectFluent) o; if (!(Objects.equals(apiGroup, that.apiGroup))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java index 39309b638c..8a74210b28 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class ResourceV1ResourceClaimBuilder extends ResourceV1ResourceClaimFluent implements VisitableBuilder{ ResourceV1ResourceClaimFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java index d61fb6e3db..940e002e32 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class ResourceV1ResourceClaimFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class ResourceV1ResourceClaimFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - ResourceV1ResourceClaimFluent that = (ResourceV1ResourceClaimFluent) o; + ResourceV1ResourceClaimFluent that = (ResourceV1ResourceClaimFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1ResourceClaimSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1ResourceClaimStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1ResourceClaimSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1ResourceClaimSpec spec) { this.spec = new V1ResourceClaimSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1ResourceClaimStatus status) { this.status = new V1ResourceClaimStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java index e9347a7ab9..7477a1369f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class StorageV1TokenRequestBuilder extends StorageV1TokenRequestFluent implements VisitableBuilder{ StorageV1TokenRequestFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java index 82cbd09170..73d66c1ab2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class StorageV1TokenRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class StorageV1TokenRequestFluent> extends BaseFluent{ private String audience; private Long expirationSeconds; @@ -54,7 +56,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - StorageV1TokenRequestFluent that = (StorageV1TokenRequestFluent) o; + StorageV1TokenRequestFluent that = (StorageV1TokenRequestFluent) o; if (!(Objects.equals(audience, that.audience))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java index a04f770c11..d1bf616ac7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1APIGroupBuilder extends V1APIGroupFluent implements VisitableBuilder{ V1APIGroupFluent fluent; 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 7a1cc59760..95dbe8b93f 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1APIGroupFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1APIGroupFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -49,7 +51,7 @@ public V1APIGroupFluent(V1APIGroup instance) { public A addAllToServerAddressByClientCIDRs(Collection items) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); + this.serverAddressByClientCIDRs = new ArrayList<>(); } for (V1ServerAddressByClientCIDR item : items) { V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); @@ -61,7 +63,7 @@ public A addAllToServerAddressByClientCIDRs(Collection items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (V1GroupVersionForDiscovery item : items) { V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); @@ -72,24 +74,24 @@ public A addAllToVersions(Collection items) { } public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { - return new ServerAddressByClientCIDRsNested(-1, null); + return new ServerAddressByClientCIDRsNested<>(-1, null); } public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { - return new ServerAddressByClientCIDRsNested(-1, item); + return new ServerAddressByClientCIDRsNested<>(-1, item); } public VersionsNested addNewVersion() { - return new VersionsNested(-1, null); + return new VersionsNested<>(-1, null); } public VersionsNested addNewVersionLike(V1GroupVersionForDiscovery item) { - return new VersionsNested(-1, item); + return new VersionsNested<>(-1, item); } public A addToServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); + this.serverAddressByClientCIDRs = new ArrayList<>(); } for (V1ServerAddressByClientCIDR item : items) { V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); @@ -101,7 +103,7 @@ public A addToServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); + this.serverAddressByClientCIDRs = new ArrayList<>(); } V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); if (index < 0 || index >= this.serverAddressByClientCIDRs.size()) { @@ -116,7 +118,7 @@ public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR i public A addToVersions(V1GroupVersionForDiscovery... items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (V1GroupVersionForDiscovery item : items) { V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); @@ -128,7 +130,7 @@ public A addToVersions(V1GroupVersionForDiscovery... items) { public A addToVersions(int index,V1GroupVersionForDiscovery item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); if (index < 0 || index >= this.versions.size()) { @@ -301,7 +303,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1APIGroupFluent that = (V1APIGroupFluent) o; + V1APIGroupFluent that = (V1APIGroupFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -434,6 +436,7 @@ public A removeMatchingFromServerAddressByClientCIDRs(Predicate each = serverAddressByClientCIDRs.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("serverAddressByClientCIDRs"); while (each.hasNext()) { V1ServerAddressByClientCIDRBuilder builder = each.next(); @@ -450,6 +453,7 @@ public A removeMatchingFromVersions(Predicate return (A) this; } Iterator each = versions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("versions"); while (each.hasNext()) { V1GroupVersionForDiscoveryBuilder builder = each.next(); @@ -462,16 +466,16 @@ public A removeMatchingFromVersions(Predicate } public ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(int index,V1ServerAddressByClientCIDR item) { - return new ServerAddressByClientCIDRsNested(index, item); + return new ServerAddressByClientCIDRsNested<>(index, item); } public VersionsNested setNewVersionLike(int index,V1GroupVersionForDiscovery item) { - return new VersionsNested(index, item); + return new VersionsNested<>(index, item); } public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); + this.serverAddressByClientCIDRs = new ArrayList<>(); } V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); if (index < 0 || index >= this.serverAddressByClientCIDRs.size()) { @@ -486,7 +490,7 @@ public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR i public A setToVersions(int index,V1GroupVersionForDiscovery item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); if (index < 0 || index >= this.versions.size()) { @@ -551,11 +555,11 @@ public A withName(String name) { } public PreferredVersionNested withNewPreferredVersion() { - return new PreferredVersionNested(null); + return new PreferredVersionNested<>(null); } public PreferredVersionNested withNewPreferredVersionLike(V1GroupVersionForDiscovery item) { - return new PreferredVersionNested(item); + return new PreferredVersionNested<>(item); } public A withPreferredVersion(V1GroupVersionForDiscovery preferredVersion) { @@ -564,8 +568,8 @@ public A withPreferredVersion(V1GroupVersionForDiscovery preferredVersion) { this.preferredVersion = new V1GroupVersionForDiscoveryBuilder(preferredVersion); this._visitables.get("preferredVersion").add(this.preferredVersion); } else { - this.preferredVersion = null; this._visitables.get("preferredVersion").remove(this.preferredVersion); + this.preferredVersion = null; } return (A) this; } @@ -575,7 +579,7 @@ public A withServerAddressByClientCIDRs(List server this._visitables.get("serverAddressByClientCIDRs").clear(); } if (serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs = new ArrayList(); + this.serverAddressByClientCIDRs = new ArrayList<>(); for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { this.addToServerAddressByClientCIDRs(item); } @@ -603,7 +607,7 @@ public A withVersions(List versions) { this._visitables.get("versions").clear(); } if (versions != null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); for (V1GroupVersionForDiscovery item : versions) { this.addToVersions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java index 3ba286108b..443239d3ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1APIGroupListBuilder extends V1APIGroupListFluent implements VisitableBuilder{ V1APIGroupListFluent fluent; 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 abffabc87c..ce6d2f6445 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1APIGroupListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1APIGroupListFluent> extends BaseFluent{ private String apiVersion; private ArrayList groups; @@ -45,7 +47,7 @@ public V1APIGroupListFluent(V1APIGroupList instance) { public A addAllToGroups(Collection items) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } for (V1APIGroup item : items) { V1APIGroupBuilder builder = new V1APIGroupBuilder(item); @@ -56,16 +58,16 @@ public A addAllToGroups(Collection items) { } public GroupsNested addNewGroup() { - return new GroupsNested(-1, null); + return new GroupsNested<>(-1, null); } public GroupsNested addNewGroupLike(V1APIGroup item) { - return new GroupsNested(-1, item); + return new GroupsNested<>(-1, item); } public A addToGroups(V1APIGroup... items) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } for (V1APIGroup item : items) { V1APIGroupBuilder builder = new V1APIGroupBuilder(item); @@ -77,7 +79,7 @@ public A addToGroups(V1APIGroup... items) { public A addToGroups(int index,V1APIGroup item) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } V1APIGroupBuilder builder = new V1APIGroupBuilder(item); if (index < 0 || index >= this.groups.size()) { @@ -170,7 +172,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1APIGroupListFluent that = (V1APIGroupListFluent) o; + V1APIGroupListFluent that = (V1APIGroupListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -245,6 +247,7 @@ public A removeMatchingFromGroups(Predicate predicate) { return (A) this; } Iterator each = groups.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("groups"); while (each.hasNext()) { V1APIGroupBuilder builder = each.next(); @@ -257,12 +260,12 @@ public A removeMatchingFromGroups(Predicate predicate) { } public GroupsNested setNewGroupLike(int index,V1APIGroup item) { - return new GroupsNested(index, item); + return new GroupsNested<>(index, item); } public A setToGroups(int index,V1APIGroup item) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } V1APIGroupBuilder builder = new V1APIGroupBuilder(item); if (index < 0 || index >= this.groups.size()) { @@ -306,7 +309,7 @@ public A withGroups(List groups) { this._visitables.get("groups").clear(); } if (groups != null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); for (V1APIGroup item : groups) { this.addToGroups(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java index ea4741e3a1..40caefde42 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1APIResourceBuilder extends V1APIResourceFluent implements VisitableBuilder{ V1APIResourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java index b0b74f74a8..381489cfbe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java @@ -23,12 +23,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1APIResourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1APIResourceFluent> extends BaseFluent{ private List categories; private String group; @@ -50,7 +52,7 @@ public V1APIResourceFluent(V1APIResource instance) { public A addAllToCategories(Collection items) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } for (String item : items) { this.categories.add(item); @@ -60,7 +62,7 @@ public A addAllToCategories(Collection items) { public A addAllToShortNames(Collection items) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } for (String item : items) { this.shortNames.add(item); @@ -70,7 +72,7 @@ public A addAllToShortNames(Collection items) { public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -80,7 +82,7 @@ public A addAllToVerbs(Collection items) { public A addToCategories(String... items) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } for (String item : items) { this.categories.add(item); @@ -90,7 +92,7 @@ public A addToCategories(String... items) { public A addToCategories(int index,String item) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } this.categories.add(index, item); return (A) this; @@ -98,7 +100,7 @@ public A addToCategories(int index,String item) { public A addToShortNames(String... items) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } for (String item : items) { this.shortNames.add(item); @@ -108,7 +110,7 @@ public A addToShortNames(String... items) { public A addToShortNames(int index,String item) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } this.shortNames.add(index, item); return (A) this; @@ -116,7 +118,7 @@ public A addToShortNames(int index,String item) { public A addToVerbs(String... items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -126,7 +128,7 @@ public A addToVerbs(String... items) { public A addToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.add(index, item); return (A) this; @@ -158,7 +160,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1APIResourceFluent that = (V1APIResourceFluent) o; + V1APIResourceFluent that = (V1APIResourceFluent) o; if (!(Objects.equals(categories, that.categories))) { return false; } @@ -428,7 +430,7 @@ public A removeFromVerbs(String... items) { public A setToCategories(int index,String item) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } this.categories.set(index, item); return (A) this; @@ -436,7 +438,7 @@ public A setToCategories(int index,String item) { public A setToShortNames(int index,String item) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } this.shortNames.set(index, item); return (A) this; @@ -444,7 +446,7 @@ public A setToShortNames(int index,String item) { public A setToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.set(index, item); return (A) this; @@ -508,7 +510,7 @@ public String toString() { public A withCategories(List categories) { if (categories != null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); for (String item : categories) { this.addToCategories(item); } @@ -557,7 +559,7 @@ public A withNamespaced(Boolean namespaced) { public A withShortNames(List shortNames) { if (shortNames != null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); for (String item : shortNames) { this.addToShortNames(item); } @@ -592,7 +594,7 @@ public A withStorageVersionHash(String storageVersionHash) { public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); for (String item : verbs) { this.addToVerbs(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java index 2ebefd5207..b86ff2fc03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1APIResourceListBuilder extends V1APIResourceListFluent implements VisitableBuilder{ V1APIResourceListFluent fluent; 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 7535753b92..76e1dc2646 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1APIResourceListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1APIResourceListFluent> extends BaseFluent{ private String apiVersion; private String groupVersion; @@ -46,7 +48,7 @@ public V1APIResourceListFluent(V1APIResourceList instance) { public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (V1APIResource item : items) { V1APIResourceBuilder builder = new V1APIResourceBuilder(item); @@ -57,16 +59,16 @@ public A addAllToResources(Collection items) { } public ResourcesNested addNewResource() { - return new ResourcesNested(-1, null); + return new ResourcesNested<>(-1, null); } public ResourcesNested addNewResourceLike(V1APIResource item) { - return new ResourcesNested(-1, item); + return new ResourcesNested<>(-1, item); } public A addToResources(V1APIResource... items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (V1APIResource item : items) { V1APIResourceBuilder builder = new V1APIResourceBuilder(item); @@ -78,7 +80,7 @@ public A addToResources(V1APIResource... items) { public A addToResources(int index,V1APIResource item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } V1APIResourceBuilder builder = new V1APIResourceBuilder(item); if (index < 0 || index >= this.resources.size()) { @@ -172,7 +174,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1APIResourceListFluent that = (V1APIResourceListFluent) o; + V1APIResourceListFluent that = (V1APIResourceListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -258,6 +260,7 @@ public A removeMatchingFromResources(Predicate predicate) return (A) this; } Iterator each = resources.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resources"); while (each.hasNext()) { V1APIResourceBuilder builder = each.next(); @@ -270,12 +273,12 @@ public A removeMatchingFromResources(Predicate predicate) } public ResourcesNested setNewResourceLike(int index,V1APIResource item) { - return new ResourcesNested(index, item); + return new ResourcesNested<>(index, item); } public A setToResources(int index,V1APIResource item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } V1APIResourceBuilder builder = new V1APIResourceBuilder(item); if (index < 0 || index >= this.resources.size()) { @@ -334,7 +337,7 @@ public A withResources(List resources) { this._visitables.get("resources").clear(); } if (resources != null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); for (V1APIResource item : resources) { this.addToResources(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java index d2ab1eee4d..3bb254d817 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1APIServiceBuilder extends V1APIServiceFluent implements VisitableBuilder{ V1APIServiceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java index 56745507df..2085db29c9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1APIServiceConditionBuilder extends V1APIServiceConditionFluent implements VisitableBuilder{ V1APIServiceConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java index 8f32d6fd64..140582d393 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1APIServiceConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1APIServiceConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private String message; @@ -60,7 +62,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1APIServiceConditionFluent that = (V1APIServiceConditionFluent) o; + V1APIServiceConditionFluent that = (V1APIServiceConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java index 12383796a3..a95f300b90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1APIServiceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1APIServiceFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1APIServiceFluent that = (V1APIServiceFluent) o; + V1APIServiceFluent that = (V1APIServiceFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1APIServiceSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1APIServiceStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1APIServiceSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1APIServiceSpec spec) { this.spec = new V1APIServiceSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1APIServiceStatus status) { this.status = new V1APIServiceStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java index cc97405bd3..b2f4d02e2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1APIServiceListBuilder extends V1APIServiceListFluent implements VisitableBuilder{ V1APIServiceListFluent fluent; 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 eb9304c739..d661685d5c 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1APIServiceListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1APIServiceListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1APIServiceListFluent(V1APIServiceList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1APIService item : items) { V1APIServiceBuilder builder = new V1APIServiceBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1APIService item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1APIService... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1APIService item : items) { V1APIServiceBuilder builder = new V1APIServiceBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1APIService... items) { public A addToItems(int index,V1APIService item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1APIServiceBuilder builder = new V1APIServiceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1APIServiceListFluent that = (V1APIServiceListFluent) o; + V1APIServiceListFluent that = (V1APIServiceListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1APIServiceBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1APIService item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1APIService item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1APIServiceBuilder builder = new V1APIServiceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1APIService item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1APIServiceFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java index 67a8131363..d55f70c7f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1APIServiceSpecBuilder extends V1APIServiceSpecFluent implements VisitableBuilder{ V1APIServiceSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java index 816938bdcc..a6788ac489 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java @@ -26,12 +26,14 @@ import java.util.List; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1APIServiceSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1APIServiceSpecFluent> extends BaseFluent{ private List caBundle; private String group; @@ -115,7 +117,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1APIServiceSpecFluent that = (V1APIServiceSpecFluent) o; + V1APIServiceSpecFluent that = (V1APIServiceSpecFluent) o; if (!(Objects.equals(caBundle, that.caBundle))) { return false; } @@ -307,11 +309,11 @@ public A withInsecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { } public ServiceNested withNewService() { - return new ServiceNested(null); + return new ServiceNested<>(null); } public ServiceNested withNewServiceLike(ApiregistrationV1ServiceReference item) { - return new ServiceNested(item); + return new ServiceNested<>(item); } public A withService(ApiregistrationV1ServiceReference service) { @@ -320,8 +322,8 @@ public A withService(ApiregistrationV1ServiceReference service) { this.service = new ApiregistrationV1ServiceReferenceBuilder(service); this._visitables.get("service").add(this.service); } else { - this.service = null; this._visitables.get("service").remove(this.service); + this.service = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java index 171e032446..a3f2df5302 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1APIServiceStatusBuilder extends V1APIServiceStatusFluent implements VisitableBuilder{ V1APIServiceStatusFluent fluent; 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 6cd1ccead5..884c1a73e3 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1APIServiceStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1APIServiceStatusFluent> extends BaseFluent{ private ArrayList conditions; @@ -43,7 +45,7 @@ public V1APIServiceStatusFluent(V1APIServiceStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1APIServiceCondition item : items) { V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); @@ -54,16 +56,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1APIServiceCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1APIServiceCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1APIServiceCondition item : items) { V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); @@ -75,7 +77,7 @@ public A addToConditions(V1APIServiceCondition... items) { public A addToConditions(int index,V1APIServiceCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1APIServiceStatusFluent that = (V1APIServiceStatusFluent) o; + V1APIServiceStatusFluent that = (V1APIServiceStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromConditions(Predicate pr return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1APIServiceConditionBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromConditions(Predicate pr } public ConditionsNested setNewConditionLike(int index,V1APIServiceCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1APIServiceCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -265,7 +268,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1APIServiceCondition item : conditions) { this.addToConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java index ac6d0fab52..ee3071243a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1APIVersionsBuilder extends V1APIVersionsFluent implements VisitableBuilder{ V1APIVersionsFluent fluent; 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 b641907a95..800708cc50 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1APIVersionsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1APIVersionsFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -46,7 +48,7 @@ public V1APIVersionsFluent(V1APIVersions instance) { public A addAllToServerAddressByClientCIDRs(Collection items) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); + this.serverAddressByClientCIDRs = new ArrayList<>(); } for (V1ServerAddressByClientCIDR item : items) { V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); @@ -58,7 +60,7 @@ public A addAllToServerAddressByClientCIDRs(Collection items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (String item : items) { this.versions.add(item); @@ -67,16 +69,16 @@ public A addAllToVersions(Collection items) { } public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { - return new ServerAddressByClientCIDRsNested(-1, null); + return new ServerAddressByClientCIDRsNested<>(-1, null); } public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { - return new ServerAddressByClientCIDRsNested(-1, item); + return new ServerAddressByClientCIDRsNested<>(-1, item); } public A addToServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); + this.serverAddressByClientCIDRs = new ArrayList<>(); } for (V1ServerAddressByClientCIDR item : items) { V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); @@ -88,7 +90,7 @@ public A addToServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); + this.serverAddressByClientCIDRs = new ArrayList<>(); } V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); if (index < 0 || index >= this.serverAddressByClientCIDRs.size()) { @@ -103,7 +105,7 @@ public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR i public A addToVersions(String... items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (String item : items) { this.versions.add(item); @@ -113,7 +115,7 @@ public A addToVersions(String... items) { public A addToVersions(int index,String item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } this.versions.add(index, item); return (A) this; @@ -200,7 +202,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1APIVersionsFluent that = (V1APIVersionsFluent) o; + V1APIVersionsFluent that = (V1APIVersionsFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -336,6 +338,7 @@ public A removeMatchingFromServerAddressByClientCIDRs(Predicate each = serverAddressByClientCIDRs.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("serverAddressByClientCIDRs"); while (each.hasNext()) { V1ServerAddressByClientCIDRBuilder builder = each.next(); @@ -348,12 +351,12 @@ public A removeMatchingFromServerAddressByClientCIDRs(Predicate setNewServerAddressByClientCIDRLike(int index,V1ServerAddressByClientCIDR item) { - return new ServerAddressByClientCIDRsNested(index, item); + return new ServerAddressByClientCIDRsNested<>(index, item); } public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); + this.serverAddressByClientCIDRs = new ArrayList<>(); } V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); if (index < 0 || index >= this.serverAddressByClientCIDRs.size()) { @@ -368,7 +371,7 @@ public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR i public A setToVersions(int index,String item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } this.versions.set(index, item); return (A) this; @@ -415,7 +418,7 @@ public A withServerAddressByClientCIDRs(List server this._visitables.get("serverAddressByClientCIDRs").clear(); } if (serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs = new ArrayList(); + this.serverAddressByClientCIDRs = new ArrayList<>(); for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { this.addToServerAddressByClientCIDRs(item); } @@ -440,7 +443,7 @@ public A withServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... serverAdd public A withVersions(List versions) { if (versions != null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); for (String item : versions) { this.addToVersions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java index 4acc741400..eb369aabd5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1AWSElasticBlockStoreVolumeSourceBuilder extends V1AWSElasticBlockStoreVolumeSourceFluent implements VisitableBuilder{ V1AWSElasticBlockStoreVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java index 90790a3fc0..ace4482f10 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java @@ -20,12 +20,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1AWSElasticBlockStoreVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1AWSElasticBlockStoreVolumeSourceFluent> extends BaseFluent{ private String fsType; private Integer partition; @@ -59,7 +61,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1AWSElasticBlockStoreVolumeSourceFluent that = (V1AWSElasticBlockStoreVolumeSourceFluent) o; + V1AWSElasticBlockStoreVolumeSourceFluent that = (V1AWSElasticBlockStoreVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java index 0e16c407bd..0df29ab01a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1AffinityBuilder extends V1AffinityFluent implements VisitableBuilder{ V1AffinityFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java index 8e7ea51dab..cff877f87d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1AffinityFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1AffinityFluent> extends BaseFluent{ private V1NodeAffinityBuilder nodeAffinity; private V1PodAffinityBuilder podAffinity; @@ -105,7 +107,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1AffinityFluent that = (V1AffinityFluent) o; + V1AffinityFluent that = (V1AffinityFluent) o; if (!(Objects.equals(nodeAffinity, that.nodeAffinity))) { return false; } @@ -156,27 +158,27 @@ public String toString() { } public NodeAffinityNested withNewNodeAffinity() { - return new NodeAffinityNested(null); + return new NodeAffinityNested<>(null); } public NodeAffinityNested withNewNodeAffinityLike(V1NodeAffinity item) { - return new NodeAffinityNested(item); + return new NodeAffinityNested<>(item); } public PodAffinityNested withNewPodAffinity() { - return new PodAffinityNested(null); + return new PodAffinityNested<>(null); } public PodAffinityNested withNewPodAffinityLike(V1PodAffinity item) { - return new PodAffinityNested(item); + return new PodAffinityNested<>(item); } public PodAntiAffinityNested withNewPodAntiAffinity() { - return new PodAntiAffinityNested(null); + return new PodAntiAffinityNested<>(null); } public PodAntiAffinityNested withNewPodAntiAffinityLike(V1PodAntiAffinity item) { - return new PodAntiAffinityNested(item); + return new PodAntiAffinityNested<>(item); } public A withNodeAffinity(V1NodeAffinity nodeAffinity) { @@ -185,8 +187,8 @@ public A withNodeAffinity(V1NodeAffinity nodeAffinity) { this.nodeAffinity = new V1NodeAffinityBuilder(nodeAffinity); this._visitables.get("nodeAffinity").add(this.nodeAffinity); } else { - this.nodeAffinity = null; this._visitables.get("nodeAffinity").remove(this.nodeAffinity); + this.nodeAffinity = null; } return (A) this; } @@ -197,8 +199,8 @@ public A withPodAffinity(V1PodAffinity podAffinity) { this.podAffinity = new V1PodAffinityBuilder(podAffinity); this._visitables.get("podAffinity").add(this.podAffinity); } else { - this.podAffinity = null; this._visitables.get("podAffinity").remove(this.podAffinity); + this.podAffinity = null; } return (A) this; } @@ -209,8 +211,8 @@ public A withPodAntiAffinity(V1PodAntiAffinity podAntiAffinity) { this.podAntiAffinity = new V1PodAntiAffinityBuilder(podAntiAffinity); this._visitables.get("podAntiAffinity").add(this.podAntiAffinity); } else { - this.podAntiAffinity = null; this._visitables.get("podAntiAffinity").remove(this.podAntiAffinity); + this.podAntiAffinity = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java index b75db57cfa..a756282137 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1AggregationRuleBuilder extends V1AggregationRuleFluent implements VisitableBuilder{ V1AggregationRuleFluent fluent; 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 6c20b50bd6..e8e34d5893 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1AggregationRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1AggregationRuleFluent> extends BaseFluent{ private ArrayList clusterRoleSelectors; @@ -43,7 +45,7 @@ public V1AggregationRuleFluent(V1AggregationRule instance) { public A addAllToClusterRoleSelectors(Collection items) { if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = new ArrayList(); + this.clusterRoleSelectors = new ArrayList<>(); } for (V1LabelSelector item : items) { V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); @@ -54,16 +56,16 @@ public A addAllToClusterRoleSelectors(Collection items) { } public ClusterRoleSelectorsNested addNewClusterRoleSelector() { - return new ClusterRoleSelectorsNested(-1, null); + return new ClusterRoleSelectorsNested<>(-1, null); } public ClusterRoleSelectorsNested addNewClusterRoleSelectorLike(V1LabelSelector item) { - return new ClusterRoleSelectorsNested(-1, item); + return new ClusterRoleSelectorsNested<>(-1, item); } public A addToClusterRoleSelectors(V1LabelSelector... items) { if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = new ArrayList(); + this.clusterRoleSelectors = new ArrayList<>(); } for (V1LabelSelector item : items) { V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); @@ -75,7 +77,7 @@ public A addToClusterRoleSelectors(V1LabelSelector... items) { public A addToClusterRoleSelectors(int index,V1LabelSelector item) { if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = new ArrayList(); + this.clusterRoleSelectors = new ArrayList<>(); } V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); if (index < 0 || index >= this.clusterRoleSelectors.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1AggregationRuleFluent that = (V1AggregationRuleFluent) o; + V1AggregationRuleFluent that = (V1AggregationRuleFluent) o; if (!(Objects.equals(clusterRoleSelectors, that.clusterRoleSelectors))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromClusterRoleSelectors(Predicate each = clusterRoleSelectors.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("clusterRoleSelectors"); while (each.hasNext()) { V1LabelSelectorBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromClusterRoleSelectors(Predicate setNewClusterRoleSelectorLike(int index,V1LabelSelector item) { - return new ClusterRoleSelectorsNested(index, item); + return new ClusterRoleSelectorsNested<>(index, item); } public A setToClusterRoleSelectors(int index,V1LabelSelector item) { if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = new ArrayList(); + this.clusterRoleSelectors = new ArrayList<>(); } V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); if (index < 0 || index >= this.clusterRoleSelectors.size()) { @@ -265,7 +268,7 @@ public A withClusterRoleSelectors(List clusterRoleSelectors) { this._visitables.get("clusterRoleSelectors").clear(); } if (clusterRoleSelectors != null) { - this.clusterRoleSelectors = new ArrayList(); + this.clusterRoleSelectors = new ArrayList<>(); for (V1LabelSelector item : clusterRoleSelectors) { this.addToClusterRoleSelectors(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java index b54bec923b..149601cc9c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1AllocatedDeviceStatusBuilder extends V1AllocatedDeviceStatusFluent implements VisitableBuilder{ V1AllocatedDeviceStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java index 4dbe6b2554..acb266de93 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1AllocatedDeviceStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1AllocatedDeviceStatusFluent> extends BaseFluent{ private ArrayList conditions; private Object data; @@ -50,7 +52,7 @@ public V1AllocatedDeviceStatusFluent(V1AllocatedDeviceStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -61,16 +63,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -82,7 +84,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -195,7 +197,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1AllocatedDeviceStatusFluent that = (V1AllocatedDeviceStatusFluent) o; + V1AllocatedDeviceStatusFluent that = (V1AllocatedDeviceStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -310,6 +312,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -322,12 +325,12 @@ public A removeMatchingFromConditions(Predicate predicate) { } public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -386,7 +389,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } @@ -430,18 +433,18 @@ public A withNetworkData(V1NetworkDeviceData networkData) { this.networkData = new V1NetworkDeviceDataBuilder(networkData); this._visitables.get("networkData").add(this.networkData); } else { - this.networkData = null; this._visitables.get("networkData").remove(this.networkData); + this.networkData = null; } return (A) this; } public NetworkDataNested withNewNetworkData() { - return new NetworkDataNested(null); + return new NetworkDataNested<>(null); } public NetworkDataNested withNewNetworkDataLike(V1NetworkDeviceData item) { - return new NetworkDataNested(item); + return new NetworkDataNested<>(item); } public A withPool(String pool) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java index c27281a70e..a12a1e4d40 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1AllocationResultBuilder extends V1AllocationResultFluent implements VisitableBuilder{ V1AllocationResultFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java index 8a50161dde..885a1476b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java @@ -21,12 +21,14 @@ import java.time.OffsetDateTime; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1AllocationResultFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1AllocationResultFluent> extends BaseFluent{ private OffsetDateTime allocationTimestamp; private V1DeviceAllocationResultBuilder devices; @@ -90,7 +92,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1AllocationResultFluent that = (V1AllocationResultFluent) o; + V1AllocationResultFluent that = (V1AllocationResultFluent) o; if (!(Objects.equals(allocationTimestamp, that.allocationTimestamp))) { return false; } @@ -155,26 +157,26 @@ public A withDevices(V1DeviceAllocationResult devices) { this.devices = new V1DeviceAllocationResultBuilder(devices); this._visitables.get("devices").add(this.devices); } else { - this.devices = null; this._visitables.get("devices").remove(this.devices); + this.devices = null; } return (A) this; } public DevicesNested withNewDevices() { - return new DevicesNested(null); + return new DevicesNested<>(null); } public DevicesNested withNewDevicesLike(V1DeviceAllocationResult item) { - return new DevicesNested(item); + return new DevicesNested<>(item); } public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + return new NodeSelectorNested<>(null); } public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + return new NodeSelectorNested<>(item); } public A withNodeSelector(V1NodeSelector nodeSelector) { @@ -183,8 +185,8 @@ public A withNodeSelector(V1NodeSelector nodeSelector) { this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); this._visitables.get("nodeSelector").add(this.nodeSelector); } else { - this.nodeSelector = null; this._visitables.get("nodeSelector").remove(this.nodeSelector); + this.nodeSelector = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java index 9a238812d9..305bda033b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1AppArmorProfileBuilder extends V1AppArmorProfileFluent implements VisitableBuilder{ V1AppArmorProfileFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java index 96f7506f5a..8b68d27148 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1AppArmorProfileFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1AppArmorProfileFluent> extends BaseFluent{ private String localhostProfile; private String type; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1AppArmorProfileFluent that = (V1AppArmorProfileFluent) o; + V1AppArmorProfileFluent that = (V1AppArmorProfileFluent) o; if (!(Objects.equals(localhostProfile, that.localhostProfile))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationBuilder.java index 90de4ce439..abf7055c64 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ApplyConfigurationBuilder extends V1ApplyConfigurationFluent implements VisitableBuilder{ V1ApplyConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationFluent.java index 2e21ffb5a5..1b8133506d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ApplyConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ApplyConfigurationFluent> extends BaseFluent{ private String expression; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ApplyConfigurationFluent that = (V1ApplyConfigurationFluent) o; + V1ApplyConfigurationFluent that = (V1ApplyConfigurationFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java index a022c841c6..a08d2ed2ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1AttachedVolumeBuilder extends V1AttachedVolumeFluent implements VisitableBuilder{ V1AttachedVolumeFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java index 08a6b9d75a..bce8712f9c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1AttachedVolumeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1AttachedVolumeFluent> extends BaseFluent{ private String devicePath; private String name; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1AttachedVolumeFluent that = (V1AttachedVolumeFluent) o; + V1AttachedVolumeFluent that = (V1AttachedVolumeFluent) o; if (!(Objects.equals(devicePath, that.devicePath))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java index e336bfae11..3e08be0057 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1AuditAnnotationBuilder extends V1AuditAnnotationFluent implements VisitableBuilder{ V1AuditAnnotationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java index 721654daef..e0d9fdb57b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1AuditAnnotationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1AuditAnnotationFluent> extends BaseFluent{ private String key; private String valueExpression; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1AuditAnnotationFluent that = (V1AuditAnnotationFluent) o; + V1AuditAnnotationFluent that = (V1AuditAnnotationFluent) o; if (!(Objects.equals(key, that.key))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java index 72d48a652a..de3ed970f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1AzureDiskVolumeSourceBuilder extends V1AzureDiskVolumeSourceFluent implements VisitableBuilder{ V1AzureDiskVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java index abd64ac55e..beaf30175f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1AzureDiskVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1AzureDiskVolumeSourceFluent> extends BaseFluent{ private String cachingMode; private String diskName; @@ -62,7 +64,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1AzureDiskVolumeSourceFluent that = (V1AzureDiskVolumeSourceFluent) o; + V1AzureDiskVolumeSourceFluent that = (V1AzureDiskVolumeSourceFluent) o; if (!(Objects.equals(cachingMode, that.cachingMode))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java index 15f085ac1c..04e4f295e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1AzureFilePersistentVolumeSourceBuilder extends V1AzureFilePersistentVolumeSourceFluent implements VisitableBuilder{ V1AzureFilePersistentVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java index 70b2a65d24..15426d9d85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1AzureFilePersistentVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1AzureFilePersistentVolumeSourceFluent> extends BaseFluent{ private Boolean readOnly; private String secretName; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1AzureFilePersistentVolumeSourceFluent that = (V1AzureFilePersistentVolumeSourceFluent) o; + V1AzureFilePersistentVolumeSourceFluent that = (V1AzureFilePersistentVolumeSourceFluent) o; if (!(Objects.equals(readOnly, that.readOnly))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java index c2f537708a..c5394f5ddb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1AzureFileVolumeSourceBuilder extends V1AzureFileVolumeSourceFluent implements VisitableBuilder{ V1AzureFileVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java index 2dd62b7c68..e99667e7e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1AzureFileVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1AzureFileVolumeSourceFluent> extends BaseFluent{ private Boolean readOnly; private String secretName; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1AzureFileVolumeSourceFluent that = (V1AzureFileVolumeSourceFluent) o; + V1AzureFileVolumeSourceFluent that = (V1AzureFileVolumeSourceFluent) o; if (!(Objects.equals(readOnly, that.readOnly))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java index 4498d3f390..aac9deec76 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1BindingBuilder extends V1BindingFluent implements VisitableBuilder{ V1BindingFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java index fd02a0929b..77fe84ff4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1BindingFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1BindingFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1BindingFluent that = (V1BindingFluent) o; + V1BindingFluent that = (V1BindingFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public TargetNested withNewTarget() { - return new TargetNested(null); + return new TargetNested<>(null); } public TargetNested withNewTargetLike(V1ObjectReference item) { - return new TargetNested(item); + return new TargetNested<>(item); } public A withTarget(V1ObjectReference target) { @@ -205,8 +207,8 @@ public A withTarget(V1ObjectReference target) { this.target = new V1ObjectReferenceBuilder(target); this._visitables.get("target").add(this.target); } else { - this.target = null; this._visitables.get("target").remove(this.target); + this.target = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java index f1aaab201b..5eaa7269f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1BoundObjectReferenceBuilder extends V1BoundObjectReferenceFluent implements VisitableBuilder{ V1BoundObjectReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java index 433b1dc8cf..2ced835001 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1BoundObjectReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1BoundObjectReferenceFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1BoundObjectReferenceFluent that = (V1BoundObjectReferenceFluent) o; + V1BoundObjectReferenceFluent that = (V1BoundObjectReferenceFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java index 2a52ec67ee..d3b475e237 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CELDeviceSelectorBuilder extends V1CELDeviceSelectorFluent implements VisitableBuilder{ V1CELDeviceSelectorFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java index 7ec032f182..9b4d6a0c69 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CELDeviceSelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CELDeviceSelectorFluent> extends BaseFluent{ private String expression; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CELDeviceSelectorFluent that = (V1CELDeviceSelectorFluent) o; + V1CELDeviceSelectorFluent that = (V1CELDeviceSelectorFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java index b7c752ddaa..138b76842f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CSIDriverBuilder extends V1CSIDriverFluent implements VisitableBuilder{ V1CSIDriverFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java index e5c6a8beb9..56e11a12e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CSIDriverFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CSIDriverFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CSIDriverFluent that = (V1CSIDriverFluent) o; + V1CSIDriverFluent that = (V1CSIDriverFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1CSIDriverSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1CSIDriverSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1CSIDriverSpec spec) { this.spec = new V1CSIDriverSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java index 2980000119..84e2d82b1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CSIDriverListBuilder extends V1CSIDriverListFluent implements VisitableBuilder{ V1CSIDriverListFluent fluent; 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 0afd80ac8b..0d9db6672c 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CSIDriverListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CSIDriverListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1CSIDriverListFluent(V1CSIDriverList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1CSIDriver item : items) { V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1CSIDriver item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1CSIDriver... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1CSIDriver item : items) { V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1CSIDriver... items) { public A addToItems(int index,V1CSIDriver item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CSIDriverListFluent that = (V1CSIDriverListFluent) o; + V1CSIDriverListFluent that = (V1CSIDriverListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1CSIDriverBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1CSIDriver item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1CSIDriver item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1CSIDriver item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1CSIDriverFluent> implements Nested{ 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 807bca7b22..289570009d 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CSIDriverSpecBuilder extends V1CSIDriverSpecFluent implements VisitableBuilder{ V1CSIDriverSpecFluent fluent; 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 68afee43b7..424240811f 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 @@ -27,12 +27,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CSIDriverSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CSIDriverSpecFluent> extends BaseFluent{ private Boolean attachRequired; private String fsGroupPolicy; @@ -55,7 +57,7 @@ public V1CSIDriverSpecFluent(V1CSIDriverSpec instance) { public A addAllToTokenRequests(Collection items) { if (this.tokenRequests == null) { - this.tokenRequests = new ArrayList(); + this.tokenRequests = new ArrayList<>(); } for (StorageV1TokenRequest item : items) { StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); @@ -67,7 +69,7 @@ public A addAllToTokenRequests(Collection items) { public A addAllToVolumeLifecycleModes(Collection items) { if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new ArrayList(); + this.volumeLifecycleModes = new ArrayList<>(); } for (String item : items) { this.volumeLifecycleModes.add(item); @@ -76,16 +78,16 @@ public A addAllToVolumeLifecycleModes(Collection items) { } public TokenRequestsNested addNewTokenRequest() { - return new TokenRequestsNested(-1, null); + return new TokenRequestsNested<>(-1, null); } public TokenRequestsNested addNewTokenRequestLike(StorageV1TokenRequest item) { - return new TokenRequestsNested(-1, item); + return new TokenRequestsNested<>(-1, item); } public A addToTokenRequests(StorageV1TokenRequest... items) { if (this.tokenRequests == null) { - this.tokenRequests = new ArrayList(); + this.tokenRequests = new ArrayList<>(); } for (StorageV1TokenRequest item : items) { StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); @@ -97,7 +99,7 @@ public A addToTokenRequests(StorageV1TokenRequest... items) { public A addToTokenRequests(int index,StorageV1TokenRequest item) { if (this.tokenRequests == null) { - this.tokenRequests = new ArrayList(); + this.tokenRequests = new ArrayList<>(); } StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); if (index < 0 || index >= this.tokenRequests.size()) { @@ -112,7 +114,7 @@ public A addToTokenRequests(int index,StorageV1TokenRequest item) { public A addToVolumeLifecycleModes(String... items) { if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new ArrayList(); + this.volumeLifecycleModes = new ArrayList<>(); } for (String item : items) { this.volumeLifecycleModes.add(item); @@ -122,7 +124,7 @@ public A addToVolumeLifecycleModes(String... items) { public A addToVolumeLifecycleModes(int index,String item) { if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new ArrayList(); + this.volumeLifecycleModes = new ArrayList<>(); } this.volumeLifecycleModes.add(index, item); return (A) this; @@ -216,7 +218,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CSIDriverSpecFluent that = (V1CSIDriverSpecFluent) o; + V1CSIDriverSpecFluent that = (V1CSIDriverSpecFluent) o; if (!(Objects.equals(attachRequired, that.attachRequired))) { return false; } @@ -429,6 +431,7 @@ public A removeMatchingFromTokenRequests(Predicate return (A) this; } Iterator each = tokenRequests.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("tokenRequests"); while (each.hasNext()) { StorageV1TokenRequestBuilder builder = each.next(); @@ -441,12 +444,12 @@ public A removeMatchingFromTokenRequests(Predicate } public TokenRequestsNested setNewTokenRequestLike(int index,StorageV1TokenRequest item) { - return new TokenRequestsNested(index, item); + return new TokenRequestsNested<>(index, item); } public A setToTokenRequests(int index,StorageV1TokenRequest item) { if (this.tokenRequests == null) { - this.tokenRequests = new ArrayList(); + this.tokenRequests = new ArrayList<>(); } StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); if (index < 0 || index >= this.tokenRequests.size()) { @@ -461,7 +464,7 @@ public A setToTokenRequests(int index,StorageV1TokenRequest item) { public A setToVolumeLifecycleModes(int index,String item) { if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new ArrayList(); + this.volumeLifecycleModes = new ArrayList<>(); } this.volumeLifecycleModes.set(index, item); return (A) this; @@ -606,7 +609,7 @@ public A withTokenRequests(List tokenRequests) { this._visitables.get("tokenRequests").clear(); } if (tokenRequests != null) { - this.tokenRequests = new ArrayList(); + this.tokenRequests = new ArrayList<>(); for (StorageV1TokenRequest item : tokenRequests) { this.addToTokenRequests(item); } @@ -631,7 +634,7 @@ public A withTokenRequests(StorageV1TokenRequest... tokenRequests) { public A withVolumeLifecycleModes(List volumeLifecycleModes) { if (volumeLifecycleModes != null) { - this.volumeLifecycleModes = new ArrayList(); + this.volumeLifecycleModes = new ArrayList<>(); for (String item : volumeLifecycleModes) { this.addToVolumeLifecycleModes(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java index 9ca5cff9b6..e73a906836 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CSINodeBuilder extends V1CSINodeFluent implements VisitableBuilder{ V1CSINodeFluent fluent; @@ -42,6 +43,7 @@ public V1CSINode build() { buildable.setKind(fluent.getKind()); buildable.setMetadata(fluent.buildMetadata()); buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java index 292a4c18db..afc439d608 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CSINodeDriverBuilder extends V1CSINodeDriverFluent implements VisitableBuilder{ V1CSINodeDriverFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java index ce84892e91..0ce3bcfff1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java @@ -24,12 +24,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CSINodeDriverFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CSINodeDriverFluent> extends BaseFluent{ private V1VolumeNodeResourcesBuilder allocatable; private String name; @@ -45,7 +47,7 @@ public V1CSINodeDriverFluent(V1CSINodeDriver instance) { public A addAllToTopologyKeys(Collection items) { if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); + this.topologyKeys = new ArrayList<>(); } for (String item : items) { this.topologyKeys.add(item); @@ -55,7 +57,7 @@ public A addAllToTopologyKeys(Collection items) { public A addToTopologyKeys(String... items) { if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); + this.topologyKeys = new ArrayList<>(); } for (String item : items) { this.topologyKeys.add(item); @@ -65,7 +67,7 @@ public A addToTopologyKeys(String... items) { public A addToTopologyKeys(int index,String item) { if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); + this.topologyKeys = new ArrayList<>(); } this.topologyKeys.add(index, item); return (A) this; @@ -107,7 +109,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CSINodeDriverFluent that = (V1CSINodeDriverFluent) o; + V1CSINodeDriverFluent that = (V1CSINodeDriverFluent) o; if (!(Objects.equals(allocatable, that.allocatable))) { return false; } @@ -207,7 +209,7 @@ public A removeFromTopologyKeys(String... items) { public A setToTopologyKeys(int index,String item) { if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); + this.topologyKeys = new ArrayList<>(); } this.topologyKeys.set(index, item); return (A) this; @@ -245,8 +247,8 @@ public A withAllocatable(V1VolumeNodeResources allocatable) { this.allocatable = new V1VolumeNodeResourcesBuilder(allocatable); this._visitables.get("allocatable").add(this.allocatable); } else { - this.allocatable = null; this._visitables.get("allocatable").remove(this.allocatable); + this.allocatable = null; } return (A) this; } @@ -257,11 +259,11 @@ public A withName(String name) { } public AllocatableNested withNewAllocatable() { - return new AllocatableNested(null); + return new AllocatableNested<>(null); } public AllocatableNested withNewAllocatableLike(V1VolumeNodeResources item) { - return new AllocatableNested(item); + return new AllocatableNested<>(item); } public A withNodeID(String nodeID) { @@ -271,7 +273,7 @@ public A withNodeID(String nodeID) { public A withTopologyKeys(List topologyKeys) { if (topologyKeys != null) { - this.topologyKeys = new ArrayList(); + this.topologyKeys = new ArrayList<>(); for (String item : topologyKeys) { this.addToTopologyKeys(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java index 2c793d66c1..603313604c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java @@ -20,17 +20,20 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CSINodeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CSINodeFluent> extends BaseFluent{ private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1CSINodeSpecBuilder spec; + private V1CSINodeStatusBuilder status; public V1CSINodeFluent() { } @@ -47,6 +50,10 @@ public V1CSINodeSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } + public V1CSINodeStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + protected void copyInstance(V1CSINode instance) { instance = instance != null ? instance : new V1CSINode(); if (instance != null) { @@ -54,6 +61,7 @@ protected void copyInstance(V1CSINode instance) { this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); } } @@ -77,10 +85,22 @@ public SpecNested editOrNewSpecLike(V1CSINodeSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1CSINodeStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1CSINodeStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + public SpecNested editSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -91,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CSINodeFluent that = (V1CSINodeFluent) o; + V1CSINodeFluent that = (V1CSINodeFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -104,6 +124,9 @@ public boolean equals(Object o) { if (!(Objects.equals(spec, that.spec))) { return false; } + if (!(Objects.equals(status, that.status))) { + return false; + } return true; } @@ -131,8 +154,12 @@ public boolean hasSpec() { return this.spec != null; } + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return Objects.hash(apiVersion, kind, metadata, spec, status); } public String toString() { @@ -156,6 +183,11 @@ public String toString() { if (!(spec == null)) { sb.append("spec:"); sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); } sb.append("}"); return sb.toString(); @@ -177,26 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1CSINodeSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); + } + + public StatusNested withNewStatus() { + return new StatusNested<>(null); + } + + public StatusNested withNewStatusLike(V1CSINodeStatus item) { + return new StatusNested<>(item); } public A withSpec(V1CSINodeSpec spec) { @@ -205,8 +245,20 @@ public A withSpec(V1CSINodeSpec spec) { this.spec = new V1CSINodeSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; + } + return (A) this; + } + + public A withStatus(V1CSINodeStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1CSINodeStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } @@ -244,4 +296,21 @@ public N endSpec() { } } + public class StatusNested extends V1CSINodeStatusFluent> implements Nested{ + + V1CSINodeStatusBuilder builder; + + StatusNested(V1CSINodeStatus item) { + this.builder = new V1CSINodeStatusBuilder(this, item); + } + + public N and() { + return (N) V1CSINodeFluent.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/V1CSINodeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java index 27287c5486..cf8fb3993e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CSINodeListBuilder extends V1CSINodeListFluent implements VisitableBuilder{ V1CSINodeListFluent fluent; 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 6d05f6402f..143915857d 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CSINodeListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CSINodeListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1CSINodeListFluent(V1CSINodeList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1CSINode item : items) { V1CSINodeBuilder builder = new V1CSINodeBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1CSINode item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1CSINode... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1CSINode item : items) { V1CSINodeBuilder builder = new V1CSINodeBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1CSINode... items) { public A addToItems(int index,V1CSINode item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1CSINodeBuilder builder = new V1CSINodeBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CSINodeListFluent that = (V1CSINodeListFluent) o; + V1CSINodeListFluent that = (V1CSINodeListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1CSINodeBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1CSINode item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1CSINode item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1CSINodeBuilder builder = new V1CSINodeBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1CSINode item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1CSINodeFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java index 50cf17ae0f..441efd826a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CSINodeSpecBuilder extends V1CSINodeSpecFluent implements VisitableBuilder{ V1CSINodeSpecFluent fluent; 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 76ea3f06d1..282cfc05a1 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CSINodeSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CSINodeSpecFluent> extends BaseFluent{ private ArrayList drivers; @@ -43,7 +45,7 @@ public V1CSINodeSpecFluent(V1CSINodeSpec instance) { public A addAllToDrivers(Collection items) { if (this.drivers == null) { - this.drivers = new ArrayList(); + this.drivers = new ArrayList<>(); } for (V1CSINodeDriver item : items) { V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); @@ -54,16 +56,16 @@ public A addAllToDrivers(Collection items) { } public DriversNested addNewDriver() { - return new DriversNested(-1, null); + return new DriversNested<>(-1, null); } public DriversNested addNewDriverLike(V1CSINodeDriver item) { - return new DriversNested(-1, item); + return new DriversNested<>(-1, item); } public A addToDrivers(V1CSINodeDriver... items) { if (this.drivers == null) { - this.drivers = new ArrayList(); + this.drivers = new ArrayList<>(); } for (V1CSINodeDriver item : items) { V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); @@ -75,7 +77,7 @@ public A addToDrivers(V1CSINodeDriver... items) { public A addToDrivers(int index,V1CSINodeDriver item) { if (this.drivers == null) { - this.drivers = new ArrayList(); + this.drivers = new ArrayList<>(); } V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); if (index < 0 || index >= this.drivers.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CSINodeSpecFluent that = (V1CSINodeSpecFluent) o; + V1CSINodeSpecFluent that = (V1CSINodeSpecFluent) o; if (!(Objects.equals(drivers, that.drivers))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromDrivers(Predicate predicate) return (A) this; } Iterator each = drivers.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("drivers"); while (each.hasNext()) { V1CSINodeDriverBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromDrivers(Predicate predicate) } public DriversNested setNewDriverLike(int index,V1CSINodeDriver item) { - return new DriversNested(index, item); + return new DriversNested<>(index, item); } public A setToDrivers(int index,V1CSINodeDriver item) { if (this.drivers == null) { - this.drivers = new ArrayList(); + this.drivers = new ArrayList<>(); } V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); if (index < 0 || index >= this.drivers.size()) { @@ -265,7 +268,7 @@ public A withDrivers(List drivers) { this._visitables.get("drivers").clear(); } if (drivers != null) { - this.drivers = new ArrayList(); + this.drivers = new ArrayList<>(); for (V1CSINodeDriver item : drivers) { this.addToDrivers(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeStatusBuilder.java similarity index 51% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeStatusBuilder.java index 0252d36b23..a4ef443a38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeStatusBuilder.java @@ -13,32 +13,33 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1beta1IPAddressSpecBuilder extends V1beta1IPAddressSpecFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1CSINodeStatusBuilder extends V1CSINodeStatusFluent implements VisitableBuilder{ - V1beta1IPAddressSpecFluent fluent; + V1CSINodeStatusFluent fluent; - public V1beta1IPAddressSpecBuilder() { - this(new V1beta1IPAddressSpec()); + public V1CSINodeStatusBuilder() { + this(new V1CSINodeStatus()); } - public V1beta1IPAddressSpecBuilder(V1beta1IPAddressSpecFluent fluent) { - this(fluent, new V1beta1IPAddressSpec()); + public V1CSINodeStatusBuilder(V1CSINodeStatusFluent fluent) { + this(fluent, new V1CSINodeStatus()); } - public V1beta1IPAddressSpecBuilder(V1beta1IPAddressSpec instance) { + public V1CSINodeStatusBuilder(V1CSINodeStatus instance) { this.fluent = this; this.copyInstance(instance); } - public V1beta1IPAddressSpecBuilder(V1beta1IPAddressSpecFluent fluent,V1beta1IPAddressSpec instance) { + public V1CSINodeStatusBuilder(V1CSINodeStatusFluent fluent,V1CSINodeStatus instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1beta1IPAddressSpec build() { - V1beta1IPAddressSpec buildable = new V1beta1IPAddressSpec(); - buildable.setParentRef(fluent.buildParentRef()); + public V1CSINodeStatus build() { + V1CSINodeStatus buildable = new V1CSINodeStatus(); + buildable.setStorageHealth(fluent.buildStorageHealth()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeStatusFluent.java new file mode 100644 index 0000000000..9293670175 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeStatusFluent.java @@ -0,0 +1,312 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CSINodeStatusFluent> extends BaseFluent{ + + private ArrayList storageHealth; + + public V1CSINodeStatusFluent() { + } + + public V1CSINodeStatusFluent(V1CSINodeStatus instance) { + this.copyInstance(instance); + } + + public A addAllToStorageHealth(Collection items) { + if (this.storageHealth == null) { + this.storageHealth = new ArrayList<>(); + } + for (V1StorageHealth item : items) { + V1StorageHealthBuilder builder = new V1StorageHealthBuilder(item); + this._visitables.get("storageHealth").add(builder); + this.storageHealth.add(builder); + } + return (A) this; + } + + public StorageHealthNested addNewStorageHealth() { + return new StorageHealthNested<>(-1, null); + } + + public StorageHealthNested addNewStorageHealthLike(V1StorageHealth item) { + return new StorageHealthNested<>(-1, item); + } + + public A addToStorageHealth(V1StorageHealth... items) { + if (this.storageHealth == null) { + this.storageHealth = new ArrayList<>(); + } + for (V1StorageHealth item : items) { + V1StorageHealthBuilder builder = new V1StorageHealthBuilder(item); + this._visitables.get("storageHealth").add(builder); + this.storageHealth.add(builder); + } + return (A) this; + } + + public A addToStorageHealth(int index,V1StorageHealth item) { + if (this.storageHealth == null) { + this.storageHealth = new ArrayList<>(); + } + V1StorageHealthBuilder builder = new V1StorageHealthBuilder(item); + if (index < 0 || index >= this.storageHealth.size()) { + this._visitables.get("storageHealth").add(builder); + this.storageHealth.add(builder); + } else { + this._visitables.get("storageHealth").add(builder); + this.storageHealth.add(index, builder); + } + return (A) this; + } + + public V1StorageHealth buildFirstStorageHealth() { + return this.storageHealth.get(0).build(); + } + + public V1StorageHealth buildLastStorageHealth() { + return this.storageHealth.get(storageHealth.size() - 1).build(); + } + + public V1StorageHealth buildMatchingStorageHealth(Predicate predicate) { + for (V1StorageHealthBuilder item : storageHealth) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public List buildStorageHealth() { + return this.storageHealth != null ? build(storageHealth) : null; + } + + public V1StorageHealth buildStorageHealth(int index) { + return this.storageHealth.get(index).build(); + } + + protected void copyInstance(V1CSINodeStatus instance) { + instance = instance != null ? instance : new V1CSINodeStatus(); + if (instance != null) { + this.withStorageHealth(instance.getStorageHealth()); + } + } + + public StorageHealthNested editFirstStorageHealth() { + if (storageHealth.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "storageHealth")); + } + return this.setNewStorageHealthLike(0, this.buildStorageHealth(0)); + } + + public StorageHealthNested editLastStorageHealth() { + int index = storageHealth.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "storageHealth")); + } + return this.setNewStorageHealthLike(index, this.buildStorageHealth(index)); + } + + public StorageHealthNested editMatchingStorageHealth(Predicate predicate) { + int index = -1; + for (int i = 0;i < storageHealth.size();i++) { + if (predicate.test(storageHealth.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "storageHealth")); + } + return this.setNewStorageHealthLike(index, this.buildStorageHealth(index)); + } + + public StorageHealthNested editStorageHealth(int index) { + if (storageHealth.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "storageHealth")); + } + return this.setNewStorageHealthLike(index, this.buildStorageHealth(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSINodeStatusFluent that = (V1CSINodeStatusFluent) o; + if (!(Objects.equals(storageHealth, that.storageHealth))) { + return false; + } + return true; + } + + public boolean hasMatchingStorageHealth(Predicate predicate) { + for (V1StorageHealthBuilder item : storageHealth) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasStorageHealth() { + return this.storageHealth != null && !(this.storageHealth.isEmpty()); + } + + public int hashCode() { + return Objects.hash(storageHealth); + } + + public A removeAllFromStorageHealth(Collection items) { + if (this.storageHealth == null) { + return (A) this; + } + for (V1StorageHealth item : items) { + V1StorageHealthBuilder builder = new V1StorageHealthBuilder(item); + _visitables.get("storageHealth").remove(builder); + this.storageHealth.remove(builder); + } + return (A) this; + } + + public A removeFromStorageHealth(V1StorageHealth... items) { + if (this.storageHealth == null) { + return (A) this; + } + for (V1StorageHealth item : items) { + V1StorageHealthBuilder builder = new V1StorageHealthBuilder(item); + _visitables.get("storageHealth").remove(builder); + this.storageHealth.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromStorageHealth(Predicate predicate) { + if (storageHealth == null) { + return (A) this; + } + Iterator each = storageHealth.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("storageHealth"); + while (each.hasNext()) { + V1StorageHealthBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public StorageHealthNested setNewStorageHealthLike(int index,V1StorageHealth item) { + return new StorageHealthNested<>(index, item); + } + + public A setToStorageHealth(int index,V1StorageHealth item) { + if (this.storageHealth == null) { + this.storageHealth = new ArrayList<>(); + } + V1StorageHealthBuilder builder = new V1StorageHealthBuilder(item); + if (index < 0 || index >= this.storageHealth.size()) { + this._visitables.get("storageHealth").add(builder); + this.storageHealth.add(builder); + } else { + this._visitables.get("storageHealth").add(builder); + this.storageHealth.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(storageHealth == null) && !(storageHealth.isEmpty())) { + sb.append("storageHealth:"); + sb.append(storageHealth); + } + sb.append("}"); + return sb.toString(); + } + + public A withStorageHealth(List storageHealth) { + if (this.storageHealth != null) { + this._visitables.get("storageHealth").clear(); + } + if (storageHealth != null) { + this.storageHealth = new ArrayList<>(); + for (V1StorageHealth item : storageHealth) { + this.addToStorageHealth(item); + } + } else { + this.storageHealth = null; + } + return (A) this; + } + + public A withStorageHealth(V1StorageHealth... storageHealth) { + if (this.storageHealth != null) { + this.storageHealth.clear(); + _visitables.remove("storageHealth"); + } + if (storageHealth != null) { + for (V1StorageHealth item : storageHealth) { + this.addToStorageHealth(item); + } + } + return (A) this; + } + public class StorageHealthNested extends V1StorageHealthFluent> implements Nested{ + + V1StorageHealthBuilder builder; + int index; + + StorageHealthNested(int index,V1StorageHealth item) { + this.index = index; + this.builder = new V1StorageHealthBuilder(this, item); + } + + public N and() { + return (N) V1CSINodeStatusFluent.this.setToStorageHealth(index, builder.build()); + } + + public N endStorageHealth() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java index d0455fa7ab..fd09deeb49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CSIPersistentVolumeSourceBuilder extends V1CSIPersistentVolumeSourceFluent implements VisitableBuilder{ V1CSIPersistentVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java index 11815e1a15..3318527f65 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java @@ -23,12 +23,14 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CSIPersistentVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CSIPersistentVolumeSourceFluent> extends BaseFluent{ private V1SecretReferenceBuilder controllerExpandSecretRef; private V1SecretReferenceBuilder controllerPublishSecretRef; @@ -50,7 +52,7 @@ public V1CSIPersistentVolumeSourceFluent(V1CSIPersistentVolumeSource instance) { public A addToVolumeAttributes(Map map) { if (this.volumeAttributes == null && map != null) { - this.volumeAttributes = new LinkedHashMap(); + this.volumeAttributes = new LinkedHashMap<>(); } if (map != null) { this.volumeAttributes.putAll(map); @@ -60,7 +62,7 @@ public A addToVolumeAttributes(Map map) { public A addToVolumeAttributes(String key,String value) { if (this.volumeAttributes == null && key != null && value != null) { - this.volumeAttributes = new LinkedHashMap(); + this.volumeAttributes = new LinkedHashMap<>(); } if (key != null && value != null) { this.volumeAttributes.put(key, value); @@ -174,7 +176,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CSIPersistentVolumeSourceFluent that = (V1CSIPersistentVolumeSourceFluent) o; + V1CSIPersistentVolumeSourceFluent that = (V1CSIPersistentVolumeSourceFluent) o; if (!(Objects.equals(controllerExpandSecretRef, that.controllerExpandSecretRef))) { return false; } @@ -358,8 +360,8 @@ public A withControllerExpandSecretRef(V1SecretReference controllerExpandSecretR this.controllerExpandSecretRef = new V1SecretReferenceBuilder(controllerExpandSecretRef); this._visitables.get("controllerExpandSecretRef").add(this.controllerExpandSecretRef); } else { - this.controllerExpandSecretRef = null; this._visitables.get("controllerExpandSecretRef").remove(this.controllerExpandSecretRef); + this.controllerExpandSecretRef = null; } return (A) this; } @@ -370,8 +372,8 @@ public A withControllerPublishSecretRef(V1SecretReference controllerPublishSecre this.controllerPublishSecretRef = new V1SecretReferenceBuilder(controllerPublishSecretRef); this._visitables.get("controllerPublishSecretRef").add(this.controllerPublishSecretRef); } else { - this.controllerPublishSecretRef = null; this._visitables.get("controllerPublishSecretRef").remove(this.controllerPublishSecretRef); + this.controllerPublishSecretRef = null; } return (A) this; } @@ -387,43 +389,43 @@ public A withFsType(String fsType) { } public ControllerExpandSecretRefNested withNewControllerExpandSecretRef() { - return new ControllerExpandSecretRefNested(null); + return new ControllerExpandSecretRefNested<>(null); } public ControllerExpandSecretRefNested withNewControllerExpandSecretRefLike(V1SecretReference item) { - return new ControllerExpandSecretRefNested(item); + return new ControllerExpandSecretRefNested<>(item); } public ControllerPublishSecretRefNested withNewControllerPublishSecretRef() { - return new ControllerPublishSecretRefNested(null); + return new ControllerPublishSecretRefNested<>(null); } public ControllerPublishSecretRefNested withNewControllerPublishSecretRefLike(V1SecretReference item) { - return new ControllerPublishSecretRefNested(item); + return new ControllerPublishSecretRefNested<>(item); } public NodeExpandSecretRefNested withNewNodeExpandSecretRef() { - return new NodeExpandSecretRefNested(null); + return new NodeExpandSecretRefNested<>(null); } public NodeExpandSecretRefNested withNewNodeExpandSecretRefLike(V1SecretReference item) { - return new NodeExpandSecretRefNested(item); + return new NodeExpandSecretRefNested<>(item); } public NodePublishSecretRefNested withNewNodePublishSecretRef() { - return new NodePublishSecretRefNested(null); + return new NodePublishSecretRefNested<>(null); } public NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1SecretReference item) { - return new NodePublishSecretRefNested(item); + return new NodePublishSecretRefNested<>(item); } public NodeStageSecretRefNested withNewNodeStageSecretRef() { - return new NodeStageSecretRefNested(null); + return new NodeStageSecretRefNested<>(null); } public NodeStageSecretRefNested withNewNodeStageSecretRefLike(V1SecretReference item) { - return new NodeStageSecretRefNested(item); + return new NodeStageSecretRefNested<>(item); } public A withNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef) { @@ -432,8 +434,8 @@ public A withNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef) { this.nodeExpandSecretRef = new V1SecretReferenceBuilder(nodeExpandSecretRef); this._visitables.get("nodeExpandSecretRef").add(this.nodeExpandSecretRef); } else { - this.nodeExpandSecretRef = null; this._visitables.get("nodeExpandSecretRef").remove(this.nodeExpandSecretRef); + this.nodeExpandSecretRef = null; } return (A) this; } @@ -444,8 +446,8 @@ public A withNodePublishSecretRef(V1SecretReference nodePublishSecretRef) { this.nodePublishSecretRef = new V1SecretReferenceBuilder(nodePublishSecretRef); this._visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); } else { - this.nodePublishSecretRef = null; this._visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); + this.nodePublishSecretRef = null; } return (A) this; } @@ -456,8 +458,8 @@ public A withNodeStageSecretRef(V1SecretReference nodeStageSecretRef) { this.nodeStageSecretRef = new V1SecretReferenceBuilder(nodeStageSecretRef); this._visitables.get("nodeStageSecretRef").add(this.nodeStageSecretRef); } else { - this.nodeStageSecretRef = null; this._visitables.get("nodeStageSecretRef").remove(this.nodeStageSecretRef); + this.nodeStageSecretRef = null; } return (A) this; } @@ -475,7 +477,7 @@ public A withVolumeAttributes(Map volumeAttributes) { if (volumeAttributes == null) { this.volumeAttributes = null; } else { - this.volumeAttributes = new LinkedHashMap(volumeAttributes); + this.volumeAttributes = new LinkedHashMap<>(volumeAttributes); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java index d326b4fcaf..75ee08bf90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CSIStorageCapacityBuilder extends V1CSIStorageCapacityFluent implements VisitableBuilder{ V1CSIStorageCapacityFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java index 7fec11fca8..474062fd07 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CSIStorageCapacityFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CSIStorageCapacityFluent> extends BaseFluent{ private String apiVersion; private Quantity capacity; @@ -98,7 +100,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CSIStorageCapacityFluent that = (V1CSIStorageCapacityFluent) o; + V1CSIStorageCapacityFluent that = (V1CSIStorageCapacityFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -242,8 +244,8 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } @@ -257,19 +259,19 @@ public A withNewMaximumVolumeSize(String value) { } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public NodeTopologyNested withNewNodeTopology() { - return new NodeTopologyNested(null); + return new NodeTopologyNested<>(null); } public NodeTopologyNested withNewNodeTopologyLike(V1LabelSelector item) { - return new NodeTopologyNested(item); + return new NodeTopologyNested<>(item); } public A withNodeTopology(V1LabelSelector nodeTopology) { @@ -278,8 +280,8 @@ public A withNodeTopology(V1LabelSelector nodeTopology) { this.nodeTopology = new V1LabelSelectorBuilder(nodeTopology); this._visitables.get("nodeTopology").add(this.nodeTopology); } else { - this.nodeTopology = null; this._visitables.get("nodeTopology").remove(this.nodeTopology); + this.nodeTopology = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java index e11324836e..2e2b47aa0b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CSIStorageCapacityListBuilder extends V1CSIStorageCapacityListFluent implements VisitableBuilder{ V1CSIStorageCapacityListFluent fluent; 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 5411765a04..e0199d0fd6 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CSIStorageCapacityListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CSIStorageCapacityListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1CSIStorageCapacityListFluent(V1CSIStorageCapacityList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1CSIStorageCapacity item : items) { V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1CSIStorageCapacity item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1CSIStorageCapacity... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1CSIStorageCapacity item : items) { V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1CSIStorageCapacity... items) { public A addToItems(int index,V1CSIStorageCapacity item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CSIStorageCapacityListFluent that = (V1CSIStorageCapacityListFluent) o; + V1CSIStorageCapacityListFluent that = (V1CSIStorageCapacityListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1CSIStorageCapacityBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicat } public ItemsNested setNewItemLike(int index,V1CSIStorageCapacity item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1CSIStorageCapacity item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1CSIStorageCapacity item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1CSIStorageCapacityFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java index b017bcdaaf..53188babef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CSIVolumeSourceBuilder extends V1CSIVolumeSourceFluent implements VisitableBuilder{ V1CSIVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java index a250cd1ab0..4945afe18d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java @@ -23,12 +23,14 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CSIVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CSIVolumeSourceFluent> extends BaseFluent{ private String driver; private String fsType; @@ -45,7 +47,7 @@ public V1CSIVolumeSourceFluent(V1CSIVolumeSource instance) { public A addToVolumeAttributes(Map map) { if (this.volumeAttributes == null && map != null) { - this.volumeAttributes = new LinkedHashMap(); + this.volumeAttributes = new LinkedHashMap<>(); } if (map != null) { this.volumeAttributes.putAll(map); @@ -55,7 +57,7 @@ public A addToVolumeAttributes(Map map) { public A addToVolumeAttributes(String key,String value) { if (this.volumeAttributes == null && key != null && value != null) { - this.volumeAttributes = new LinkedHashMap(); + this.volumeAttributes = new LinkedHashMap<>(); } if (key != null && value != null) { this.volumeAttributes.put(key, value); @@ -100,7 +102,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CSIVolumeSourceFluent that = (V1CSIVolumeSourceFluent) o; + V1CSIVolumeSourceFluent that = (V1CSIVolumeSourceFluent) o; if (!(Objects.equals(driver, that.driver))) { return false; } @@ -225,11 +227,11 @@ public A withFsType(String fsType) { } public NodePublishSecretRefNested withNewNodePublishSecretRef() { - return new NodePublishSecretRefNested(null); + return new NodePublishSecretRefNested<>(null); } public NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1LocalObjectReference item) { - return new NodePublishSecretRefNested(item); + return new NodePublishSecretRefNested<>(item); } public A withNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) { @@ -238,8 +240,8 @@ public A withNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) { this.nodePublishSecretRef = new V1LocalObjectReferenceBuilder(nodePublishSecretRef); this._visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); } else { - this.nodePublishSecretRef = null; this._visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); + this.nodePublishSecretRef = null; } return (A) this; } @@ -257,7 +259,7 @@ public A withVolumeAttributes(Map volumeAttributes) { if (volumeAttributes == null) { this.volumeAttributes = null; } else { - this.volumeAttributes = new LinkedHashMap(volumeAttributes); + this.volumeAttributes = new LinkedHashMap<>(volumeAttributes); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java index e8e24fb936..99706b8774 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CapabilitiesBuilder extends V1CapabilitiesFluent implements VisitableBuilder{ V1CapabilitiesFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java index 717843c0d4..777ea63b2a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CapabilitiesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CapabilitiesFluent> extends BaseFluent{ private List add; private List drop; @@ -41,7 +43,7 @@ public V1CapabilitiesFluent(V1Capabilities instance) { public A addAllToAdd(Collection items) { if (this.add == null) { - this.add = new ArrayList(); + this.add = new ArrayList<>(); } for (String item : items) { this.add.add(item); @@ -51,7 +53,7 @@ public A addAllToAdd(Collection items) { public A addAllToDrop(Collection items) { if (this.drop == null) { - this.drop = new ArrayList(); + this.drop = new ArrayList<>(); } for (String item : items) { this.drop.add(item); @@ -61,7 +63,7 @@ public A addAllToDrop(Collection items) { public A addToAdd(String... items) { if (this.add == null) { - this.add = new ArrayList(); + this.add = new ArrayList<>(); } for (String item : items) { this.add.add(item); @@ -71,7 +73,7 @@ public A addToAdd(String... items) { public A addToAdd(int index,String item) { if (this.add == null) { - this.add = new ArrayList(); + this.add = new ArrayList<>(); } this.add.add(index, item); return (A) this; @@ -79,7 +81,7 @@ public A addToAdd(int index,String item) { public A addToDrop(String... items) { if (this.drop == null) { - this.drop = new ArrayList(); + this.drop = new ArrayList<>(); } for (String item : items) { this.drop.add(item); @@ -89,7 +91,7 @@ public A addToDrop(String... items) { public A addToDrop(int index,String item) { if (this.drop == null) { - this.drop = new ArrayList(); + this.drop = new ArrayList<>(); } this.drop.add(index, item); return (A) this; @@ -113,7 +115,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CapabilitiesFluent that = (V1CapabilitiesFluent) o; + V1CapabilitiesFluent that = (V1CapabilitiesFluent) o; if (!(Objects.equals(add, that.add))) { return false; } @@ -245,7 +247,7 @@ public A removeFromDrop(String... items) { public A setToAdd(int index,String item) { if (this.add == null) { - this.add = new ArrayList(); + this.add = new ArrayList<>(); } this.add.set(index, item); return (A) this; @@ -253,7 +255,7 @@ public A setToAdd(int index,String item) { public A setToDrop(int index,String item) { if (this.drop == null) { - this.drop = new ArrayList(); + this.drop = new ArrayList<>(); } this.drop.set(index, item); return (A) this; @@ -277,7 +279,7 @@ public String toString() { public A withAdd(List add) { if (add != null) { - this.add = new ArrayList(); + this.add = new ArrayList<>(); for (String item : add) { this.addToAdd(item); } @@ -302,7 +304,7 @@ public A withAdd(String... add) { public A withDrop(List drop) { if (drop != null) { - this.drop = new ArrayList(); + this.drop = new ArrayList<>(); for (String item : drop) { this.addToDrop(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java index 063ef6d13d..2804c65d11 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CapacityRequestPolicyBuilder extends V1CapacityRequestPolicyFluent implements VisitableBuilder{ V1CapacityRequestPolicyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java index 5c520bd12b..fc9cbdfd57 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java @@ -25,12 +25,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CapacityRequestPolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CapacityRequestPolicyFluent> extends BaseFluent{ private Quantity _default; private V1CapacityRequestPolicyRangeBuilder validRange; @@ -45,7 +47,7 @@ public V1CapacityRequestPolicyFluent(V1CapacityRequestPolicy instance) { public A addAllToValidValues(Collection items) { if (this.validValues == null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); } for (Quantity item : items) { this.validValues.add(item); @@ -59,7 +61,7 @@ public A addNewValidValue(String value) { public A addToValidValues(Quantity... items) { if (this.validValues == null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); } for (Quantity item : items) { this.validValues.add(item); @@ -69,7 +71,7 @@ public A addToValidValues(Quantity... items) { public A addToValidValues(int index,Quantity item) { if (this.validValues == null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); } this.validValues.add(index, item); return (A) this; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CapacityRequestPolicyFluent that = (V1CapacityRequestPolicyFluent) o; + V1CapacityRequestPolicyFluent that = (V1CapacityRequestPolicyFluent) o; if (!(Objects.equals(_default, that._default))) { return false; } @@ -198,7 +200,7 @@ public A removeFromValidValues(Quantity... items) { public A setToValidValues(int index,Quantity item) { if (this.validValues == null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); } this.validValues.set(index, item); return (A) this; @@ -235,11 +237,11 @@ public A withNewDefault(String value) { } public ValidRangeNested withNewValidRange() { - return new ValidRangeNested(null); + return new ValidRangeNested<>(null); } public ValidRangeNested withNewValidRangeLike(V1CapacityRequestPolicyRange item) { - return new ValidRangeNested(item); + return new ValidRangeNested<>(item); } public A withValidRange(V1CapacityRequestPolicyRange validRange) { @@ -248,15 +250,15 @@ public A withValidRange(V1CapacityRequestPolicyRange validRange) { this.validRange = new V1CapacityRequestPolicyRangeBuilder(validRange); this._visitables.get("validRange").add(this.validRange); } else { - this.validRange = null; this._visitables.get("validRange").remove(this.validRange); + this.validRange = null; } return (A) this; } public A withValidValues(List validValues) { if (validValues != null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); for (Quantity item : validValues) { this.addToValidValues(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java index 1985a388a5..a249ad54c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CapacityRequestPolicyRangeBuilder extends V1CapacityRequestPolicyRangeFluent implements VisitableBuilder{ V1CapacityRequestPolicyRangeFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java index 3a412887b8..1186553f6b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CapacityRequestPolicyRangeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CapacityRequestPolicyRangeFluent> extends BaseFluent{ private Quantity max; private Quantity min; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CapacityRequestPolicyRangeFluent that = (V1CapacityRequestPolicyRangeFluent) o; + V1CapacityRequestPolicyRangeFluent that = (V1CapacityRequestPolicyRangeFluent) o; if (!(Objects.equals(max, that.max))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java index 23bf7b939e..8d907d03f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CapacityRequirementsBuilder extends V1CapacityRequirementsFluent implements VisitableBuilder{ V1CapacityRequirementsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java index 765689e85e..d280c63c4d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java @@ -21,12 +21,14 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CapacityRequirementsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CapacityRequirementsFluent> extends BaseFluent{ private Map requests; @@ -39,7 +41,7 @@ public V1CapacityRequirementsFluent(V1CapacityRequirements instance) { public A addToRequests(Map map) { if (this.requests == null && map != null) { - this.requests = new LinkedHashMap(); + this.requests = new LinkedHashMap<>(); } if (map != null) { this.requests.putAll(map); @@ -49,7 +51,7 @@ public A addToRequests(Map map) { public A addToRequests(String key,Quantity value) { if (this.requests == null && key != null && value != null) { - this.requests = new LinkedHashMap(); + this.requests = new LinkedHashMap<>(); } if (key != null && value != null) { this.requests.put(key, value); @@ -74,7 +76,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CapacityRequirementsFluent that = (V1CapacityRequirementsFluent) o; + V1CapacityRequirementsFluent that = (V1CapacityRequirementsFluent) o; if (!(Objects.equals(requests, that.requests))) { return false; } @@ -132,7 +134,7 @@ public A withRequests(Map requests) { if (requests == null) { this.requests = null; } else { - this.requests = new LinkedHashMap(requests); + this.requests = new LinkedHashMap<>(requests); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java index f58673c2cc..ce9c300aca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CephFSPersistentVolumeSourceBuilder extends V1CephFSPersistentVolumeSourceFluent implements VisitableBuilder{ V1CephFSPersistentVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java index 520b39ae6d..8b9e0f7169 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java @@ -25,12 +25,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CephFSPersistentVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CephFSPersistentVolumeSourceFluent> extends BaseFluent{ private List monitors; private String path; @@ -48,7 +50,7 @@ public V1CephFSPersistentVolumeSourceFluent(V1CephFSPersistentVolumeSource insta public A addAllToMonitors(Collection items) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } for (String item : items) { this.monitors.add(item); @@ -58,7 +60,7 @@ public A addAllToMonitors(Collection items) { public A addToMonitors(String... items) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } for (String item : items) { this.monitors.add(item); @@ -68,7 +70,7 @@ public A addToMonitors(String... items) { public A addToMonitors(int index,String item) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } this.monitors.add(index, item); return (A) this; @@ -112,7 +114,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CephFSPersistentVolumeSourceFluent that = (V1CephFSPersistentVolumeSourceFluent) o; + V1CephFSPersistentVolumeSourceFluent that = (V1CephFSPersistentVolumeSourceFluent) o; if (!(Objects.equals(monitors, that.monitors))) { return false; } @@ -234,7 +236,7 @@ public A removeFromMonitors(String... items) { public A setToMonitors(int index,String item) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } this.monitors.set(index, item); return (A) this; @@ -278,7 +280,7 @@ public String toString() { public A withMonitors(List monitors) { if (monitors != null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); for (String item : monitors) { this.addToMonitors(item); } @@ -302,11 +304,11 @@ public A withMonitors(String... monitors) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withPath(String path) { @@ -334,8 +336,8 @@ public A withSecretRef(V1SecretReference secretRef) { this.secretRef = new V1SecretReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java index 63b91d011b..3a3d2c3331 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CephFSVolumeSourceBuilder extends V1CephFSVolumeSourceFluent implements VisitableBuilder{ V1CephFSVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java index 70cc9be910..43341206a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java @@ -25,12 +25,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CephFSVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CephFSVolumeSourceFluent> extends BaseFluent{ private List monitors; private String path; @@ -48,7 +50,7 @@ public V1CephFSVolumeSourceFluent(V1CephFSVolumeSource instance) { public A addAllToMonitors(Collection items) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } for (String item : items) { this.monitors.add(item); @@ -58,7 +60,7 @@ public A addAllToMonitors(Collection items) { public A addToMonitors(String... items) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } for (String item : items) { this.monitors.add(item); @@ -68,7 +70,7 @@ public A addToMonitors(String... items) { public A addToMonitors(int index,String item) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } this.monitors.add(index, item); return (A) this; @@ -112,7 +114,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CephFSVolumeSourceFluent that = (V1CephFSVolumeSourceFluent) o; + V1CephFSVolumeSourceFluent that = (V1CephFSVolumeSourceFluent) o; if (!(Objects.equals(monitors, that.monitors))) { return false; } @@ -234,7 +236,7 @@ public A removeFromMonitors(String... items) { public A setToMonitors(int index,String item) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } this.monitors.set(index, item); return (A) this; @@ -278,7 +280,7 @@ public String toString() { public A withMonitors(List monitors) { if (monitors != null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); for (String item : monitors) { this.addToMonitors(item); } @@ -302,11 +304,11 @@ public A withMonitors(String... monitors) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withPath(String path) { @@ -334,8 +336,8 @@ public A withSecretRef(V1LocalObjectReference secretRef) { this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java index 6fc7c6d616..6d9346bf32 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CertificateSigningRequestBuilder extends V1CertificateSigningRequestFluent implements VisitableBuilder{ V1CertificateSigningRequestFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java index c6b52e50b5..62afe0657f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CertificateSigningRequestConditionBuilder extends V1CertificateSigningRequestConditionFluent implements VisitableBuilder{ V1CertificateSigningRequestConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java index 98f6f0664b..bec0cc7bab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CertificateSigningRequestConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CertificateSigningRequestConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private OffsetDateTime lastUpdateTime; @@ -62,7 +64,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CertificateSigningRequestConditionFluent that = (V1CertificateSigningRequestConditionFluent) o; + V1CertificateSigningRequestConditionFluent that = (V1CertificateSigningRequestConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java index 7617a335d7..d3e585f669 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CertificateSigningRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CertificateSigningRequestFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CertificateSigningRequestFluent that = (V1CertificateSigningRequestFluent) o; + V1CertificateSigningRequestFluent that = (V1CertificateSigningRequestFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1CertificateSigningRequestSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1CertificateSigningRequestStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1CertificateSigningRequestSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1CertificateSigningRequestSpec spec) { this.spec = new V1CertificateSigningRequestSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1CertificateSigningRequestStatus status) { this.status = new V1CertificateSigningRequestStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java index fca22b5320..827c56a5c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CertificateSigningRequestListBuilder extends V1CertificateSigningRequestListFluent implements VisitableBuilder{ V1CertificateSigningRequestListFluent fluent; 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 7481cc568a..0a68d46be4 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CertificateSigningRequestListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CertificateSigningRequestListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1CertificateSigningRequestListFluent(V1CertificateSigningRequestList ins public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1CertificateSigningRequest item : items) { V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1CertificateSigningRequest item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1CertificateSigningRequest... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1CertificateSigningRequest item : items) { V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1CertificateSigningRequest... items) { public A addToItems(int index,V1CertificateSigningRequest item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CertificateSigningRequestListFluent that = (V1CertificateSigningRequestListFluent) o; + V1CertificateSigningRequestListFluent that = (V1CertificateSigningRequestListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate p return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1CertificateSigningRequestBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate p } public ItemsNested setNewItemLike(int index,V1CertificateSigningRequest item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1CertificateSigningRequest item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1CertificateSigningRequest item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1CertificateSigningRequestFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java index 595ce0c10b..05a0508519 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CertificateSigningRequestSpecBuilder extends V1CertificateSigningRequestSpecFluent implements VisitableBuilder{ V1CertificateSigningRequestSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java index 04ef57f7c6..5b00937f93 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java @@ -26,12 +26,14 @@ import java.util.Map; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CertificateSigningRequestSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CertificateSigningRequestSpecFluent> extends BaseFluent{ private Integer expirationSeconds; private Map> extra; @@ -51,7 +53,7 @@ public V1CertificateSigningRequestSpecFluent(V1CertificateSigningRequestSpec ins public A addAllToGroups(Collection items) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } for (String item : items) { this.groups.add(item); @@ -71,7 +73,7 @@ public A addAllToRequest(Collection items) { public A addAllToUsages(Collection items) { if (this.usages == null) { - this.usages = new ArrayList(); + this.usages = new ArrayList<>(); } for (String item : items) { this.usages.add(item); @@ -81,7 +83,7 @@ public A addAllToUsages(Collection items) { public A addToExtra(Map> map) { if (this.extra == null && map != null) { - this.extra = new LinkedHashMap(); + this.extra = new LinkedHashMap<>(); } if (map != null) { this.extra.putAll(map); @@ -91,7 +93,7 @@ public A addToExtra(Map> map) { public A addToExtra(String key,List value) { if (this.extra == null && key != null && value != null) { - this.extra = new LinkedHashMap(); + this.extra = new LinkedHashMap<>(); } if (key != null && value != null) { this.extra.put(key, value); @@ -101,7 +103,7 @@ public A addToExtra(String key,List value) { public A addToGroups(String... items) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } for (String item : items) { this.groups.add(item); @@ -111,7 +113,7 @@ public A addToGroups(String... items) { public A addToGroups(int index,String item) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } this.groups.add(index, item); return (A) this; @@ -137,7 +139,7 @@ public A addToRequest(int index,Byte item) { public A addToUsages(String... items) { if (this.usages == null) { - this.usages = new ArrayList(); + this.usages = new ArrayList<>(); } for (String item : items) { this.usages.add(item); @@ -147,7 +149,7 @@ public A addToUsages(String... items) { public A addToUsages(int index,String item) { if (this.usages == null) { - this.usages = new ArrayList(); + this.usages = new ArrayList<>(); } this.usages.add(index, item); return (A) this; @@ -177,7 +179,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CertificateSigningRequestSpecFluent that = (V1CertificateSigningRequestSpecFluent) o; + V1CertificateSigningRequestSpecFluent that = (V1CertificateSigningRequestSpecFluent) o; if (!(Objects.equals(expirationSeconds, that.expirationSeconds))) { return false; } @@ -428,7 +430,7 @@ public A removeFromUsages(String... items) { public A setToGroups(int index,String item) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } this.groups.set(index, item); return (A) this; @@ -444,7 +446,7 @@ public A setToRequest(int index,Byte item) { public A setToUsages(int index,String item) { if (this.usages == null) { - this.usages = new ArrayList(); + this.usages = new ArrayList<>(); } this.usages.set(index, item); return (A) this; @@ -505,14 +507,14 @@ public A withExtra(Map> extra) { if (extra == null) { this.extra = null; } else { - this.extra = new LinkedHashMap(extra); + this.extra = new LinkedHashMap<>(extra); } return (A) this; } public A withGroups(List groups) { if (groups != null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); for (String item : groups) { this.addToGroups(item); } @@ -560,7 +562,7 @@ public A withUid(String uid) { public A withUsages(List usages) { if (usages != null) { - this.usages = new ArrayList(); + this.usages = new ArrayList<>(); for (String item : usages) { this.addToUsages(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java index 247ede70c7..7a935bcec2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CertificateSigningRequestStatusBuilder extends V1CertificateSigningRequestStatusFluent implements VisitableBuilder{ V1CertificateSigningRequestStatusFluent fluent; 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 3657b690ff..b2abec3e2e 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 @@ -26,12 +26,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CertificateSigningRequestStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CertificateSigningRequestStatusFluent> extends BaseFluent{ private List certificate; private ArrayList conditions; @@ -55,7 +57,7 @@ public A addAllToCertificate(Collection items) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1CertificateSigningRequestCondition item : items) { V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); @@ -66,11 +68,11 @@ public A addAllToConditions(Collection ite } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1CertificateSigningRequestCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToCertificate(Byte... items) { @@ -93,7 +95,7 @@ public A addToCertificate(int index,Byte item) { public A addToConditions(V1CertificateSigningRequestCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1CertificateSigningRequestCondition item : items) { V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); @@ -105,7 +107,7 @@ public A addToConditions(V1CertificateSigningRequestCondition... items) { public A addToConditions(int index,V1CertificateSigningRequestCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -197,7 +199,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CertificateSigningRequestStatusFluent that = (V1CertificateSigningRequestStatusFluent) o; + V1CertificateSigningRequestStatusFluent that = (V1CertificateSigningRequestStatusFluent) o; if (!(Objects.equals(certificate, that.certificate))) { return false; } @@ -290,6 +292,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1CertificateSigningRequestConditionBuilder builder = each.next(); @@ -302,7 +305,7 @@ public A removeMatchingFromConditions(Predicate setNewConditionLike(int index,V1CertificateSigningRequestCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToCertificate(int index,Byte item) { @@ -315,7 +318,7 @@ public A setToCertificate(int index,Byte item) { public A setToConditions(int index,V1CertificateSigningRequestCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -362,7 +365,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1CertificateSigningRequestCondition item : conditions) { this.addToConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java index d9d9aece62..15f977d126 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CinderPersistentVolumeSourceBuilder extends V1CinderPersistentVolumeSourceFluent implements VisitableBuilder{ V1CinderPersistentVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java index a3f40f72fe..3aa33e2a14 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CinderPersistentVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CinderPersistentVolumeSourceFluent> extends BaseFluent{ private String fsType; private Boolean readOnly; @@ -76,7 +78,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CinderPersistentVolumeSourceFluent that = (V1CinderPersistentVolumeSourceFluent) o; + V1CinderPersistentVolumeSourceFluent that = (V1CinderPersistentVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } @@ -156,11 +158,11 @@ public A withFsType(String fsType) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withReadOnly() { @@ -178,8 +180,8 @@ public A withSecretRef(V1SecretReference secretRef) { this.secretRef = new V1SecretReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java index c095cbeea4..77c33ec009 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CinderVolumeSourceBuilder extends V1CinderVolumeSourceFluent implements VisitableBuilder{ V1CinderVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java index f030d59e63..6ddd5bd850 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CinderVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CinderVolumeSourceFluent> extends BaseFluent{ private String fsType; private Boolean readOnly; @@ -76,7 +78,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CinderVolumeSourceFluent that = (V1CinderVolumeSourceFluent) o; + V1CinderVolumeSourceFluent that = (V1CinderVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } @@ -156,11 +158,11 @@ public A withFsType(String fsType) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withReadOnly() { @@ -178,8 +180,8 @@ public A withSecretRef(V1LocalObjectReference secretRef) { this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java index 97f76bb86a..3310005695 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ClientIPConfigBuilder extends V1ClientIPConfigFluent implements VisitableBuilder{ V1ClientIPConfigFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java index a2216e3b2b..e0f49043a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ClientIPConfigFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ClientIPConfigFluent> extends BaseFluent{ private Integer timeoutSeconds; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ClientIPConfigFluent that = (V1ClientIPConfigFluent) o; + V1ClientIPConfigFluent that = (V1ClientIPConfigFluent) o; if (!(Objects.equals(timeoutSeconds, that.timeoutSeconds))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java index 978d668678..6fad1c9a0c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ClusterRoleBindingBuilder extends V1ClusterRoleBindingFluent implements VisitableBuilder{ V1ClusterRoleBindingFluent fluent; 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 6faf5d5072..7192f57bf4 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ClusterRoleBindingFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ClusterRoleBindingFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -48,7 +50,7 @@ public V1ClusterRoleBindingFluent(V1ClusterRoleBinding instance) { public A addAllToSubjects(Collection items) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } for (RbacV1Subject item : items) { RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); @@ -59,16 +61,16 @@ public A addAllToSubjects(Collection items) { } public SubjectsNested addNewSubject() { - return new SubjectsNested(-1, null); + return new SubjectsNested<>(-1, null); } public SubjectsNested addNewSubjectLike(RbacV1Subject item) { - return new SubjectsNested(-1, item); + return new SubjectsNested<>(-1, item); } public A addToSubjects(RbacV1Subject... items) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } for (RbacV1Subject item : items) { RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); @@ -80,7 +82,7 @@ public A addToSubjects(RbacV1Subject... items) { public A addToSubjects(int index,RbacV1Subject item) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); if (index < 0 || index >= this.subjects.size()) { @@ -207,7 +209,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ClusterRoleBindingFluent that = (V1ClusterRoleBindingFluent) o; + V1ClusterRoleBindingFluent that = (V1ClusterRoleBindingFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -296,6 +298,7 @@ public A removeMatchingFromSubjects(Predicate predicate) { return (A) this; } Iterator each = subjects.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("subjects"); while (each.hasNext()) { RbacV1SubjectBuilder builder = each.next(); @@ -308,12 +311,12 @@ public A removeMatchingFromSubjects(Predicate predicate) { } public SubjectsNested setNewSubjectLike(int index,RbacV1Subject item) { - return new SubjectsNested(index, item); + return new SubjectsNested<>(index, item); } public A setToSubjects(int index,RbacV1Subject item) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); if (index < 0 || index >= this.subjects.size()) { @@ -373,26 +376,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public RoleRefNested withNewRoleRef() { - return new RoleRefNested(null); + return new RoleRefNested<>(null); } public RoleRefNested withNewRoleRefLike(V1RoleRef item) { - return new RoleRefNested(item); + return new RoleRefNested<>(item); } public A withRoleRef(V1RoleRef roleRef) { @@ -401,8 +404,8 @@ public A withRoleRef(V1RoleRef roleRef) { this.roleRef = new V1RoleRefBuilder(roleRef); this._visitables.get("roleRef").add(this.roleRef); } else { - this.roleRef = null; this._visitables.get("roleRef").remove(this.roleRef); + this.roleRef = null; } return (A) this; } @@ -412,7 +415,7 @@ public A withSubjects(List subjects) { this._visitables.get("subjects").clear(); } if (subjects != null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); for (RbacV1Subject item : subjects) { this.addToSubjects(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java index fd4db45e88..3e0c5db225 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ClusterRoleBindingListBuilder extends V1ClusterRoleBindingListFluent implements VisitableBuilder{ V1ClusterRoleBindingListFluent fluent; 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 fca995b51d..f8ccc3c0da 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ClusterRoleBindingListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ClusterRoleBindingListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ClusterRoleBindingListFluent(V1ClusterRoleBindingList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ClusterRoleBinding item : items) { V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ClusterRoleBinding item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ClusterRoleBinding... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ClusterRoleBinding item : items) { V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ClusterRoleBinding... items) { public A addToItems(int index,V1ClusterRoleBinding item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ClusterRoleBindingListFluent that = (V1ClusterRoleBindingListFluent) o; + V1ClusterRoleBindingListFluent that = (V1ClusterRoleBindingListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ClusterRoleBindingBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicat } public ItemsNested setNewItemLike(int index,V1ClusterRoleBinding item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ClusterRoleBinding item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ClusterRoleBinding item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ClusterRoleBindingFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java index 3b93a32ccf..5dcf698e82 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ClusterRoleBuilder extends V1ClusterRoleFluent implements VisitableBuilder{ V1ClusterRoleFluent fluent; 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 fc44853139..633fd8162b 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ClusterRoleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ClusterRoleFluent> extends BaseFluent{ private V1AggregationRuleBuilder aggregationRule; private String apiVersion; @@ -48,7 +50,7 @@ public V1ClusterRoleFluent(V1ClusterRole instance) { public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1PolicyRule item : items) { V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); @@ -59,16 +61,16 @@ public A addAllToRules(Collection items) { } public RulesNested addNewRule() { - return new RulesNested(-1, null); + return new RulesNested<>(-1, null); } public RulesNested addNewRuleLike(V1PolicyRule item) { - return new RulesNested(-1, item); + return new RulesNested<>(-1, item); } public A addToRules(V1PolicyRule... items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1PolicyRule item : items) { V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); @@ -80,7 +82,7 @@ public A addToRules(V1PolicyRule... items) { public A addToRules(int index,V1PolicyRule item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -207,7 +209,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ClusterRoleFluent that = (V1ClusterRoleFluent) o; + V1ClusterRoleFluent that = (V1ClusterRoleFluent) o; if (!(Objects.equals(aggregationRule, that.aggregationRule))) { return false; } @@ -296,6 +298,7 @@ public A removeMatchingFromRules(Predicate predicate) { return (A) this; } Iterator each = rules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1PolicyRuleBuilder builder = each.next(); @@ -308,12 +311,12 @@ public A removeMatchingFromRules(Predicate predicate) { } public RulesNested setNewRuleLike(int index,V1PolicyRule item) { - return new RulesNested(index, item); + return new RulesNested<>(index, item); } public A setToRules(int index,V1PolicyRule item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -363,8 +366,8 @@ public A withAggregationRule(V1AggregationRule aggregationRule) { this.aggregationRule = new V1AggregationRuleBuilder(aggregationRule); this._visitables.get("aggregationRule").add(this.aggregationRule); } else { - this.aggregationRule = null; this._visitables.get("aggregationRule").remove(this.aggregationRule); + this.aggregationRule = null; } return (A) this; } @@ -385,26 +388,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public AggregationRuleNested withNewAggregationRule() { - return new AggregationRuleNested(null); + return new AggregationRuleNested<>(null); } public AggregationRuleNested withNewAggregationRuleLike(V1AggregationRule item) { - return new AggregationRuleNested(item); + return new AggregationRuleNested<>(item); } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withRules(List rules) { @@ -412,7 +415,7 @@ public A withRules(List rules) { this._visitables.get("rules").clear(); } if (rules != null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); for (V1PolicyRule item : rules) { this.addToRules(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java index 947f17e961..a6e351974b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ClusterRoleListBuilder extends V1ClusterRoleListFluent implements VisitableBuilder{ V1ClusterRoleListFluent fluent; 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 a185da7db0..5f532cf292 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ClusterRoleListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ClusterRoleListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ClusterRoleListFluent(V1ClusterRoleList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ClusterRole item : items) { V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ClusterRole item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ClusterRole... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ClusterRole item : items) { V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ClusterRole... items) { public A addToItems(int index,V1ClusterRole item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ClusterRoleListFluent that = (V1ClusterRoleListFluent) o; + V1ClusterRoleListFluent that = (V1ClusterRoleListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ClusterRoleBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1ClusterRole item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ClusterRole item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ClusterRole item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ClusterRoleFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleBuilder.java new file mode 100644 index 0000000000..da5e340b25 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleBuilder.java @@ -0,0 +1,49 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1ClusterTrustBundleBuilder extends V1ClusterTrustBundleFluent implements VisitableBuilder{ + + V1ClusterTrustBundleFluent fluent; + + public V1ClusterTrustBundleBuilder() { + this(new V1ClusterTrustBundle()); + } + + public V1ClusterTrustBundleBuilder(V1ClusterTrustBundleFluent fluent) { + this(fluent, new V1ClusterTrustBundle()); + } + + public V1ClusterTrustBundleBuilder(V1ClusterTrustBundle instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ClusterTrustBundleBuilder(V1ClusterTrustBundleFluent fluent,V1ClusterTrustBundle instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ClusterTrustBundle build() { + V1ClusterTrustBundle buildable = new V1ClusterTrustBundle(); + 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/V1alpha1ClusterTrustBundleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleFluent.java similarity index 77% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleFluent.java index c5b8d687a9..1eee25ed10 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleFluent.java @@ -20,22 +20,24 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1ClusterTrustBundleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ClusterTrustBundleFluent> extends BaseFluent{ private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; - private V1alpha1ClusterTrustBundleSpecBuilder spec; + private V1ClusterTrustBundleSpecBuilder spec; - public V1alpha1ClusterTrustBundleFluent() { + public V1ClusterTrustBundleFluent() { } - public V1alpha1ClusterTrustBundleFluent(V1alpha1ClusterTrustBundle instance) { + public V1ClusterTrustBundleFluent(V1ClusterTrustBundle instance) { this.copyInstance(instance); } @@ -43,12 +45,12 @@ public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public V1alpha1ClusterTrustBundleSpec buildSpec() { + public V1ClusterTrustBundleSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - protected void copyInstance(V1alpha1ClusterTrustBundle instance) { - instance = instance != null ? instance : new V1alpha1ClusterTrustBundle(); + protected void copyInstance(V1ClusterTrustBundle instance) { + instance = instance != null ? instance : new V1ClusterTrustBundle(); if (instance != null) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -70,10 +72,10 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { } public SpecNested editOrNewSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1ClusterTrustBundleSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ClusterTrustBundleSpecBuilder().build())); } - public SpecNested editOrNewSpecLike(V1alpha1ClusterTrustBundleSpec item) { + public SpecNested editOrNewSpecLike(V1ClusterTrustBundleSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1ClusterTrustBundleFluent that = (V1alpha1ClusterTrustBundleFluent) o; + V1ClusterTrustBundleFluent that = (V1ClusterTrustBundleFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,36 +179,36 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } - public SpecNested withNewSpecLike(V1alpha1ClusterTrustBundleSpec item) { - return new SpecNested(item); + public SpecNested withNewSpecLike(V1ClusterTrustBundleSpec item) { + return new SpecNested<>(item); } - public A withSpec(V1alpha1ClusterTrustBundleSpec spec) { + public A withSpec(V1ClusterTrustBundleSpec spec) { this._visitables.remove("spec"); if (spec != null) { - this.spec = new V1alpha1ClusterTrustBundleSpecBuilder(spec); + this.spec = new V1ClusterTrustBundleSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -219,7 +221,7 @@ public class MetadataNested extends V1ObjectMetaFluent> imp } public N and() { - return (N) V1alpha1ClusterTrustBundleFluent.this.withMetadata(builder.build()); + return (N) V1ClusterTrustBundleFluent.this.withMetadata(builder.build()); } public N endMetadata() { @@ -227,16 +229,16 @@ public N endMetadata() { } } - public class SpecNested extends V1alpha1ClusterTrustBundleSpecFluent> implements Nested{ + public class SpecNested extends V1ClusterTrustBundleSpecFluent> implements Nested{ - V1alpha1ClusterTrustBundleSpecBuilder builder; + V1ClusterTrustBundleSpecBuilder builder; - SpecNested(V1alpha1ClusterTrustBundleSpec item) { - this.builder = new V1alpha1ClusterTrustBundleSpecBuilder(this, item); + SpecNested(V1ClusterTrustBundleSpec item) { + this.builder = new V1ClusterTrustBundleSpecBuilder(this, item); } public N and() { - return (N) V1alpha1ClusterTrustBundleFluent.this.withSpec(builder.build()); + return (N) V1ClusterTrustBundleFluent.this.withSpec(builder.build()); } public N endSpec() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleListBuilder.java new file mode 100644 index 0000000000..0f16853208 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleListBuilder.java @@ -0,0 +1,49 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1ClusterTrustBundleListBuilder extends V1ClusterTrustBundleListFluent implements VisitableBuilder{ + + V1ClusterTrustBundleListFluent fluent; + + public V1ClusterTrustBundleListBuilder() { + this(new V1ClusterTrustBundleList()); + } + + public V1ClusterTrustBundleListBuilder(V1ClusterTrustBundleListFluent fluent) { + this(fluent, new V1ClusterTrustBundleList()); + } + + public V1ClusterTrustBundleListBuilder(V1ClusterTrustBundleList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ClusterTrustBundleListBuilder(V1ClusterTrustBundleListFluent fluent,V1ClusterTrustBundleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ClusterTrustBundleList build() { + V1ClusterTrustBundleList buildable = new V1ClusterTrustBundleList(); + 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/V1ClusterTrustBundleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleListFluent.java new file mode 100644 index 0000000000..4367864d7a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleListFluent.java @@ -0,0 +1,426 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ClusterTrustBundleListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1ClusterTrustBundleListFluent() { + } + + public V1ClusterTrustBundleListFluent(V1ClusterTrustBundleList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + for (V1ClusterTrustBundle item : items) { + V1ClusterTrustBundleBuilder builder = new V1ClusterTrustBundleBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested<>(-1, null); + } + + public ItemsNested addNewItemLike(V1ClusterTrustBundle item) { + return new ItemsNested<>(-1, item); + } + + public A addToItems(V1ClusterTrustBundle... items) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + for (V1ClusterTrustBundle item : items) { + V1ClusterTrustBundleBuilder builder = new V1ClusterTrustBundleBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1ClusterTrustBundle item) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + V1ClusterTrustBundleBuilder builder = new V1ClusterTrustBundleBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.add(index, builder); + } + return (A) this; + } + + public V1ClusterTrustBundle buildFirstItem() { + return this.items.get(0).build(); + } + + public V1ClusterTrustBundle buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1ClusterTrustBundle buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1ClusterTrustBundle buildMatchingItem(Predicate predicate) { + for (V1ClusterTrustBundleBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ClusterTrustBundleList instance) { + instance = instance != null ? instance : new V1ClusterTrustBundleList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ClusterTrustBundleListFluent that = (V1ClusterTrustBundleListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ClusterTrustBundleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ClusterTrustBundle item : items) { + V1ClusterTrustBundleBuilder builder = new V1ClusterTrustBundleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ClusterTrustBundle... items) { + if (this.items == null) { + return (A) this; + } + for (V1ClusterTrustBundle item : items) { + V1ClusterTrustBundleBuilder builder = new V1ClusterTrustBundleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("items"); + while (each.hasNext()) { + V1ClusterTrustBundleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ClusterTrustBundle item) { + return new ItemsNested<>(index, item); + } + + public A setToItems(int index,V1ClusterTrustBundle item) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + V1ClusterTrustBundleBuilder builder = new V1ClusterTrustBundleBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList<>(); + for (V1ClusterTrustBundle item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ClusterTrustBundle... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ClusterTrustBundle item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested<>(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested<>(item); + } + public class ItemsNested extends V1ClusterTrustBundleFluent> implements Nested{ + + V1ClusterTrustBundleBuilder builder; + int index; + + ItemsNested(int index,V1ClusterTrustBundle item) { + this.index = index; + this.builder = new V1ClusterTrustBundleBuilder(this, item); + } + + public N and() { + return (N) V1ClusterTrustBundleListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1ClusterTrustBundleListFluent.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/V1ClusterTrustBundleProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java index 21483b2e52..e14a2979a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ClusterTrustBundleProjectionBuilder extends V1ClusterTrustBundleProjectionFluent implements VisitableBuilder{ V1ClusterTrustBundleProjectionFluent fluent; @@ -43,6 +44,7 @@ public V1ClusterTrustBundleProjection build() { buildable.setOptional(fluent.getOptional()); buildable.setPath(fluent.getPath()); buildable.setSignerName(fluent.getSignerName()); + buildable.setUser(fluent.getUser()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java index 6254e0e00d..b40494da89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java @@ -15,24 +15,28 @@ import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; +import java.lang.Long; import java.lang.Object; import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ClusterTrustBundleProjectionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ClusterTrustBundleProjectionFluent> extends BaseFluent{ private V1LabelSelectorBuilder labelSelector; private String name; private Boolean optional; private String path; private String signerName; + private Long user; public V1ClusterTrustBundleProjectionFluent() { } @@ -53,6 +57,7 @@ protected void copyInstance(V1ClusterTrustBundleProjection instance) { this.withOptional(instance.getOptional()); this.withPath(instance.getPath()); this.withSignerName(instance.getSignerName()); + this.withUser(instance.getUser()); } } @@ -78,7 +83,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ClusterTrustBundleProjectionFluent that = (V1ClusterTrustBundleProjectionFluent) o; + V1ClusterTrustBundleProjectionFluent that = (V1ClusterTrustBundleProjectionFluent) o; if (!(Objects.equals(labelSelector, that.labelSelector))) { return false; } @@ -94,6 +99,9 @@ public boolean equals(Object o) { if (!(Objects.equals(signerName, that.signerName))) { return false; } + if (!(Objects.equals(user, that.user))) { + return false; + } return true; } @@ -113,6 +121,10 @@ public String getSignerName() { return this.signerName; } + public Long getUser() { + return this.user; + } + public boolean hasLabelSelector() { return this.labelSelector != null; } @@ -133,8 +145,12 @@ public boolean hasSignerName() { return this.signerName != null; } + public boolean hasUser() { + return this.user != null; + } + public int hashCode() { - return Objects.hash(labelSelector, name, optional, path, signerName); + return Objects.hash(labelSelector, name, optional, path, signerName, user); } public String toString() { @@ -163,6 +179,11 @@ public String toString() { if (!(signerName == null)) { sb.append("signerName:"); sb.append(signerName); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); } sb.append("}"); return sb.toString(); @@ -174,8 +195,8 @@ public A withLabelSelector(V1LabelSelector labelSelector) { this.labelSelector = new V1LabelSelectorBuilder(labelSelector); this._visitables.get("labelSelector").add(this.labelSelector); } else { - this.labelSelector = null; this._visitables.get("labelSelector").remove(this.labelSelector); + this.labelSelector = null; } return (A) this; } @@ -186,11 +207,11 @@ public A withName(String name) { } public LabelSelectorNested withNewLabelSelector() { - return new LabelSelectorNested(null); + return new LabelSelectorNested<>(null); } public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { - return new LabelSelectorNested(item); + return new LabelSelectorNested<>(item); } public A withOptional() { @@ -211,6 +232,11 @@ public A withSignerName(String signerName) { this.signerName = signerName; return (A) this; } + + public A withUser(Long user) { + this.user = user; + return (A) this; + } public class LabelSelectorNested extends V1LabelSelectorFluent> implements Nested{ V1LabelSelectorBuilder builder; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleSpecBuilder.java similarity index 50% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleSpecBuilder.java index 1e30913533..8cb4634604 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleSpecBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha1ClusterTrustBundleSpecBuilder extends V1alpha1ClusterTrustBundleSpecFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1ClusterTrustBundleSpecBuilder extends V1ClusterTrustBundleSpecFluent implements VisitableBuilder{ - V1alpha1ClusterTrustBundleSpecFluent fluent; + V1ClusterTrustBundleSpecFluent fluent; - public V1alpha1ClusterTrustBundleSpecBuilder() { - this(new V1alpha1ClusterTrustBundleSpec()); + public V1ClusterTrustBundleSpecBuilder() { + this(new V1ClusterTrustBundleSpec()); } - public V1alpha1ClusterTrustBundleSpecBuilder(V1alpha1ClusterTrustBundleSpecFluent fluent) { - this(fluent, new V1alpha1ClusterTrustBundleSpec()); + public V1ClusterTrustBundleSpecBuilder(V1ClusterTrustBundleSpecFluent fluent) { + this(fluent, new V1ClusterTrustBundleSpec()); } - public V1alpha1ClusterTrustBundleSpecBuilder(V1alpha1ClusterTrustBundleSpec instance) { + public V1ClusterTrustBundleSpecBuilder(V1ClusterTrustBundleSpec instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha1ClusterTrustBundleSpecBuilder(V1alpha1ClusterTrustBundleSpecFluent fluent,V1alpha1ClusterTrustBundleSpec instance) { + public V1ClusterTrustBundleSpecBuilder(V1ClusterTrustBundleSpecFluent fluent,V1ClusterTrustBundleSpec instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha1ClusterTrustBundleSpec build() { - V1alpha1ClusterTrustBundleSpec buildable = new V1alpha1ClusterTrustBundleSpec(); + public V1ClusterTrustBundleSpec build() { + V1ClusterTrustBundleSpec buildable = new V1ClusterTrustBundleSpec(); buildable.setSignerName(fluent.getSignerName()); buildable.setTrustBundle(fluent.getTrustBundle()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleSpecFluent.java similarity index 80% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleSpecFluent.java index c6da611b98..55a877d06b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleSpecFluent.java @@ -18,25 +18,27 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1ClusterTrustBundleSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ClusterTrustBundleSpecFluent> extends BaseFluent{ private String signerName; private String trustBundle; - public V1alpha1ClusterTrustBundleSpecFluent() { + public V1ClusterTrustBundleSpecFluent() { } - public V1alpha1ClusterTrustBundleSpecFluent(V1alpha1ClusterTrustBundleSpec instance) { + public V1ClusterTrustBundleSpecFluent(V1ClusterTrustBundleSpec instance) { this.copyInstance(instance); } - protected void copyInstance(V1alpha1ClusterTrustBundleSpec instance) { - instance = instance != null ? instance : new V1alpha1ClusterTrustBundleSpec(); + protected void copyInstance(V1ClusterTrustBundleSpec instance) { + instance = instance != null ? instance : new V1ClusterTrustBundleSpec(); if (instance != null) { this.withSignerName(instance.getSignerName()); this.withTrustBundle(instance.getTrustBundle()); @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1ClusterTrustBundleSpecFluent that = (V1alpha1ClusterTrustBundleSpecFluent) o; + V1ClusterTrustBundleSpecFluent that = (V1ClusterTrustBundleSpecFluent) o; if (!(Objects.equals(signerName, that.signerName))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java index 9c2433a87f..e28d022b92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ComponentConditionBuilder extends V1ComponentConditionFluent implements VisitableBuilder{ V1ComponentConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java index 9c73f56c8e..1a1ee3e0dd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ComponentConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ComponentConditionFluent> extends BaseFluent{ private String error; private String message; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ComponentConditionFluent that = (V1ComponentConditionFluent) o; + V1ComponentConditionFluent that = (V1ComponentConditionFluent) o; if (!(Objects.equals(error, that.error))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java index e9d195ad72..13a2c1872b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ComponentStatusBuilder extends V1ComponentStatusFluent implements VisitableBuilder{ V1ComponentStatusFluent fluent; 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 b769d28c4a..eed78da7fb 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ComponentStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ComponentStatusFluent> extends BaseFluent{ private String apiVersion; private ArrayList conditions; @@ -47,7 +49,7 @@ public V1ComponentStatusFluent(V1ComponentStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1ComponentCondition item : items) { V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); @@ -58,16 +60,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1ComponentCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1ComponentCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1ComponentCondition item : items) { V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); @@ -79,7 +81,7 @@ public A addToConditions(V1ComponentCondition... items) { public A addToConditions(int index,V1ComponentCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ComponentStatusFluent that = (V1ComponentStatusFluent) o; + V1ComponentStatusFluent that = (V1ComponentStatusFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromConditions(Predicate pre return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ComponentConditionBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromConditions(Predicate pre } public ConditionsNested setNewConditionLike(int index,V1ComponentCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1ComponentCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -337,7 +340,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1ComponentCondition item : conditions) { this.addToConditions(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ConditionsNested extends V1ComponentConditionFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java index 9af5243aa5..d95abaa4a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ComponentStatusListBuilder extends V1ComponentStatusListFluent implements VisitableBuilder{ V1ComponentStatusListFluent fluent; 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 2ee5f5701d..816edba2ff 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ComponentStatusListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ComponentStatusListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ComponentStatusListFluent(V1ComponentStatusList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ComponentStatus item : items) { V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ComponentStatus item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ComponentStatus... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ComponentStatus item : items) { V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ComponentStatus... items) { public A addToItems(int index,V1ComponentStatus item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ComponentStatusListFluent that = (V1ComponentStatusListFluent) o; + V1ComponentStatusListFluent that = (V1ComponentStatusListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ComponentStatusBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) } public ItemsNested setNewItemLike(int index,V1ComponentStatus item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ComponentStatus item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ComponentStatus item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ComponentStatusFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java index 340cad53f7..20b0e89f07 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ConditionBuilder extends V1ConditionFluent implements VisitableBuilder{ V1ConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java index dc66462c96..327fc26d58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private String message; @@ -63,7 +65,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ConditionFluent that = (V1ConditionFluent) o; + V1ConditionFluent that = (V1ConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java index 096be48b8c..6ba2ef0adb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ConfigMapBuilder extends V1ConfigMapFluent implements VisitableBuilder{ V1ConfigMapFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java index d7f4a0b277..15d27ffe7c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ConfigMapEnvSourceBuilder extends V1ConfigMapEnvSourceFluent implements VisitableBuilder{ V1ConfigMapEnvSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java index a2e2f13fb8..2ef4ce771f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ConfigMapEnvSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ConfigMapEnvSourceFluent> extends BaseFluent{ private String name; private Boolean optional; @@ -54,7 +56,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ConfigMapEnvSourceFluent that = (V1ConfigMapEnvSourceFluent) o; + V1ConfigMapEnvSourceFluent that = (V1ConfigMapEnvSourceFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java index 4bb18220cd..c00b3bd7c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java @@ -23,12 +23,14 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ConfigMapFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ConfigMapFluent> extends BaseFluent{ private String apiVersion; private Map binaryData; @@ -46,7 +48,7 @@ public V1ConfigMapFluent(V1ConfigMap instance) { public A addToBinaryData(Map map) { if (this.binaryData == null && map != null) { - this.binaryData = new LinkedHashMap(); + this.binaryData = new LinkedHashMap<>(); } if (map != null) { this.binaryData.putAll(map); @@ -56,7 +58,7 @@ public A addToBinaryData(Map map) { public A addToBinaryData(String key,byte[] value) { if (this.binaryData == null && key != null && value != null) { - this.binaryData = new LinkedHashMap(); + this.binaryData = new LinkedHashMap<>(); } if (key != null && value != null) { this.binaryData.put(key, value); @@ -66,7 +68,7 @@ public A addToBinaryData(String key,byte[] value) { public A addToData(Map map) { if (this.data == null && map != null) { - this.data = new LinkedHashMap(); + this.data = new LinkedHashMap<>(); } if (map != null) { this.data.putAll(map); @@ -76,7 +78,7 @@ public A addToData(Map map) { public A addToData(String key,String value) { if (this.data == null && key != null && value != null) { - this.data = new LinkedHashMap(); + this.data = new LinkedHashMap<>(); } if (key != null && value != null) { this.data.put(key, value); @@ -122,7 +124,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ConfigMapFluent that = (V1ConfigMapFluent) o; + V1ConfigMapFluent that = (V1ConfigMapFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -285,7 +287,7 @@ public A withBinaryData(Map binaryData) { if (binaryData == null) { this.binaryData = null; } else { - this.binaryData = new LinkedHashMap(binaryData); + this.binaryData = new LinkedHashMap<>(binaryData); } return (A) this; } @@ -294,7 +296,7 @@ public A withData(Map data) { if (data == null) { this.data = null; } else { - this.data = new LinkedHashMap(data); + this.data = new LinkedHashMap<>(data); } return (A) this; } @@ -319,18 +321,18 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java index c1299efdcb..3b1a311888 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ConfigMapKeySelectorBuilder extends V1ConfigMapKeySelectorFluent implements VisitableBuilder{ V1ConfigMapKeySelectorFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java index 6a17388fe9..af3b8b9144 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ConfigMapKeySelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ConfigMapKeySelectorFluent> extends BaseFluent{ private String key; private String name; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ConfigMapKeySelectorFluent that = (V1ConfigMapKeySelectorFluent) o; + V1ConfigMapKeySelectorFluent that = (V1ConfigMapKeySelectorFluent) o; if (!(Objects.equals(key, that.key))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java index d02476d590..5575cf2d78 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ConfigMapListBuilder extends V1ConfigMapListFluent implements VisitableBuilder{ V1ConfigMapListFluent fluent; 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 e079af0677..3acc962002 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ConfigMapListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ConfigMapListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ConfigMapListFluent(V1ConfigMapList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ConfigMap item : items) { V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ConfigMap item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ConfigMap... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ConfigMap item : items) { V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ConfigMap... items) { public A addToItems(int index,V1ConfigMap item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ConfigMapListFluent that = (V1ConfigMapListFluent) o; + V1ConfigMapListFluent that = (V1ConfigMapListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ConfigMapBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1ConfigMap item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ConfigMap item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ConfigMap item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ConfigMapFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java index c0397f3087..5f3e41c37f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ConfigMapNodeConfigSourceBuilder extends V1ConfigMapNodeConfigSourceFluent implements VisitableBuilder{ V1ConfigMapNodeConfigSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java index 1d2d9d08b7..18b8012286 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ConfigMapNodeConfigSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ConfigMapNodeConfigSourceFluent> extends BaseFluent{ private String kubeletConfigKey; private String name; @@ -59,7 +61,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ConfigMapNodeConfigSourceFluent that = (V1ConfigMapNodeConfigSourceFluent) o; + V1ConfigMapNodeConfigSourceFluent that = (V1ConfigMapNodeConfigSourceFluent) o; if (!(Objects.equals(kubeletConfigKey, that.kubeletConfigKey))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java index c190408bbc..31b23e8346 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ConfigMapProjectionBuilder extends V1ConfigMapProjectionFluent implements VisitableBuilder{ V1ConfigMapProjectionFluent fluent; 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 8123491d9c..5537be39f2 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 @@ -26,12 +26,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ConfigMapProjectionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ConfigMapProjectionFluent> extends BaseFluent{ private ArrayList items; private String name; @@ -46,7 +48,7 @@ public V1ConfigMapProjectionFluent(V1ConfigMapProjection instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); @@ -57,16 +59,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1KeyToPath item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1KeyToPath... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); @@ -78,7 +80,7 @@ public A addToItems(V1KeyToPath... items) { public A addToItems(int index,V1KeyToPath item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -171,7 +173,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ConfigMapProjectionFluent that = (V1ConfigMapProjectionFluent) o; + V1ConfigMapProjectionFluent that = (V1ConfigMapProjectionFluent) o; if (!(Objects.equals(items, that.items))) { return false; } @@ -246,6 +248,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1KeyToPathBuilder builder = each.next(); @@ -258,12 +261,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1KeyToPath item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1KeyToPath item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -302,7 +305,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1KeyToPath item : items) { this.addToItems(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java index 382c1bad20..3c7fee713a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ConfigMapVolumeSourceBuilder extends V1ConfigMapVolumeSourceFluent implements VisitableBuilder{ V1ConfigMapVolumeSourceFluent fluent; @@ -39,6 +40,7 @@ public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSourceFluent fluent,V1 public V1ConfigMapVolumeSource build() { V1ConfigMapVolumeSource buildable = new V1ConfigMapVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); + buildable.setDefaultUser(fluent.getDefaultUser()); buildable.setItems(fluent.buildItems()); buildable.setName(fluent.getName()); buildable.setOptional(fluent.getOptional()); 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 0024a46dfc..90504f14da 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 @@ -16,6 +16,7 @@ import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; import java.lang.Integer; +import java.lang.Long; import java.lang.Object; import java.lang.RuntimeException; import java.lang.String; @@ -27,14 +28,17 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ConfigMapVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ConfigMapVolumeSourceFluent> extends BaseFluent{ private Integer defaultMode; + private Long defaultUser; private ArrayList items; private String name; private Boolean optional; @@ -48,7 +52,7 @@ public V1ConfigMapVolumeSourceFluent(V1ConfigMapVolumeSource instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); @@ -59,16 +63,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1KeyToPath item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1KeyToPath... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); @@ -80,7 +84,7 @@ public A addToItems(V1KeyToPath... items) { public A addToItems(int index,V1KeyToPath item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -122,6 +126,7 @@ protected void copyInstance(V1ConfigMapVolumeSource instance) { instance = instance != null ? instance : new V1ConfigMapVolumeSource(); if (instance != null) { this.withDefaultMode(instance.getDefaultMode()); + this.withDefaultUser(instance.getDefaultUser()); this.withItems(instance.getItems()); this.withName(instance.getName()); this.withOptional(instance.getOptional()); @@ -174,10 +179,13 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ConfigMapVolumeSourceFluent that = (V1ConfigMapVolumeSourceFluent) o; + V1ConfigMapVolumeSourceFluent that = (V1ConfigMapVolumeSourceFluent) o; if (!(Objects.equals(defaultMode, that.defaultMode))) { return false; } + if (!(Objects.equals(defaultUser, that.defaultUser))) { + return false; + } if (!(Objects.equals(items, that.items))) { return false; } @@ -194,6 +202,10 @@ public Integer getDefaultMode() { return this.defaultMode; } + public Long getDefaultUser() { + return this.defaultUser; + } + public String getName() { return this.name; } @@ -206,6 +218,10 @@ public boolean hasDefaultMode() { return this.defaultMode != null; } + public boolean hasDefaultUser() { + return this.defaultUser != null; + } + public boolean hasItems() { return this.items != null && !(this.items.isEmpty()); } @@ -228,7 +244,7 @@ public boolean hasOptional() { } public int hashCode() { - return Objects.hash(defaultMode, items, name, optional); + return Objects.hash(defaultMode, defaultUser, items, name, optional); } public A removeAllFromItems(Collection items) { @@ -260,6 +276,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1KeyToPathBuilder builder = each.next(); @@ -272,12 +289,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1KeyToPath item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1KeyToPath item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -298,6 +315,11 @@ public String toString() { sb.append(defaultMode); sb.append(","); } + if (!(defaultUser == null)) { + sb.append("defaultUser:"); + sb.append(defaultUser); + sb.append(","); + } if (!(items == null) && !(items.isEmpty())) { sb.append("items:"); sb.append(items); @@ -321,12 +343,17 @@ public A withDefaultMode(Integer defaultMode) { return (A) this; } + public A withDefaultUser(Long defaultUser) { + this.defaultUser = defaultUser; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1KeyToPath item : items) { this.addToItems(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java index 7d1f389ad3..44780f7217 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ContainerBuilder extends V1ContainerFluent implements VisitableBuilder{ V1ContainerFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java index 2d5f7a3799..b3d634437c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ContainerExtendedResourceRequestBuilder extends V1ContainerExtendedResourceRequestFluent implements VisitableBuilder{ V1ContainerExtendedResourceRequestFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java index cce6b83755..a6c682f1e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ContainerExtendedResourceRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ContainerExtendedResourceRequestFluent> extends BaseFluent{ private String containerName; private String requestName; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ContainerExtendedResourceRequestFluent that = (V1ContainerExtendedResourceRequestFluent) o; + V1ContainerExtendedResourceRequestFluent that = (V1ContainerExtendedResourceRequestFluent) o; if (!(Objects.equals(containerName, that.containerName))) { return false; } 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 54d2813de3..abf7f82e27 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 @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ContainerFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ContainerFluent> extends BaseFluent{ private List args; private List command; @@ -69,7 +71,7 @@ public V1ContainerFluent(V1Container instance) { public A addAllToArgs(Collection items) { if (this.args == null) { - this.args = new ArrayList(); + this.args = new ArrayList<>(); } for (String item : items) { this.args.add(item); @@ -79,7 +81,7 @@ public A addAllToArgs(Collection items) { public A addAllToCommand(Collection items) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } for (String item : items) { this.command.add(item); @@ -89,7 +91,7 @@ public A addAllToCommand(Collection items) { public A addAllToEnv(Collection items) { if (this.env == null) { - this.env = new ArrayList(); + this.env = new ArrayList<>(); } for (V1EnvVar item : items) { V1EnvVarBuilder builder = new V1EnvVarBuilder(item); @@ -101,7 +103,7 @@ public A addAllToEnv(Collection items) { public A addAllToEnvFrom(Collection items) { if (this.envFrom == null) { - this.envFrom = new ArrayList(); + this.envFrom = new ArrayList<>(); } for (V1EnvFromSource item : items) { V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); @@ -113,7 +115,7 @@ public A addAllToEnvFrom(Collection items) { public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1ContainerPort item : items) { V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); @@ -125,7 +127,7 @@ public A addAllToPorts(Collection items) { public A addAllToResizePolicy(Collection items) { if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); + this.resizePolicy = new ArrayList<>(); } for (V1ContainerResizePolicy item : items) { V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); @@ -137,7 +139,7 @@ public A addAllToResizePolicy(Collection items) { public A addAllToRestartPolicyRules(Collection items) { if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); + this.restartPolicyRules = new ArrayList<>(); } for (V1ContainerRestartRule item : items) { V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); @@ -149,7 +151,7 @@ public A addAllToRestartPolicyRules(Collection items) { public A addAllToVolumeDevices(Collection items) { if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + this.volumeDevices = new ArrayList<>(); } for (V1VolumeDevice item : items) { V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); @@ -161,7 +163,7 @@ public A addAllToVolumeDevices(Collection items) { public A addAllToVolumeMounts(Collection items) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } for (V1VolumeMount item : items) { V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); @@ -172,64 +174,64 @@ public A addAllToVolumeMounts(Collection items) { } public EnvNested addNewEnv() { - return new EnvNested(-1, null); + return new EnvNested<>(-1, null); } public EnvFromNested addNewEnvFrom() { - return new EnvFromNested(-1, null); + return new EnvFromNested<>(-1, null); } public EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { - return new EnvFromNested(-1, item); + return new EnvFromNested<>(-1, item); } public EnvNested addNewEnvLike(V1EnvVar item) { - return new EnvNested(-1, item); + return new EnvNested<>(-1, item); } public PortsNested addNewPort() { - return new PortsNested(-1, null); + return new PortsNested<>(-1, null); } public PortsNested addNewPortLike(V1ContainerPort item) { - return new PortsNested(-1, item); + return new PortsNested<>(-1, item); } public ResizePolicyNested addNewResizePolicy() { - return new ResizePolicyNested(-1, null); + return new ResizePolicyNested<>(-1, null); } public ResizePolicyNested addNewResizePolicyLike(V1ContainerResizePolicy item) { - return new ResizePolicyNested(-1, item); + return new ResizePolicyNested<>(-1, item); } public RestartPolicyRulesNested addNewRestartPolicyRule() { - return new RestartPolicyRulesNested(-1, null); + return new RestartPolicyRulesNested<>(-1, null); } public RestartPolicyRulesNested addNewRestartPolicyRuleLike(V1ContainerRestartRule item) { - return new RestartPolicyRulesNested(-1, item); + return new RestartPolicyRulesNested<>(-1, item); } public VolumeDevicesNested addNewVolumeDevice() { - return new VolumeDevicesNested(-1, null); + return new VolumeDevicesNested<>(-1, null); } public VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) { - return new VolumeDevicesNested(-1, item); + return new VolumeDevicesNested<>(-1, item); } public VolumeMountsNested addNewVolumeMount() { - return new VolumeMountsNested(-1, null); + return new VolumeMountsNested<>(-1, null); } public VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) { - return new VolumeMountsNested(-1, item); + return new VolumeMountsNested<>(-1, item); } public A addToArgs(String... items) { if (this.args == null) { - this.args = new ArrayList(); + this.args = new ArrayList<>(); } for (String item : items) { this.args.add(item); @@ -239,7 +241,7 @@ public A addToArgs(String... items) { public A addToArgs(int index,String item) { if (this.args == null) { - this.args = new ArrayList(); + this.args = new ArrayList<>(); } this.args.add(index, item); return (A) this; @@ -247,7 +249,7 @@ public A addToArgs(int index,String item) { public A addToCommand(String... items) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } for (String item : items) { this.command.add(item); @@ -257,7 +259,7 @@ public A addToCommand(String... items) { public A addToCommand(int index,String item) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } this.command.add(index, item); return (A) this; @@ -265,7 +267,7 @@ public A addToCommand(int index,String item) { public A addToEnv(V1EnvVar... items) { if (this.env == null) { - this.env = new ArrayList(); + this.env = new ArrayList<>(); } for (V1EnvVar item : items) { V1EnvVarBuilder builder = new V1EnvVarBuilder(item); @@ -277,7 +279,7 @@ public A addToEnv(V1EnvVar... items) { public A addToEnv(int index,V1EnvVar item) { if (this.env == null) { - this.env = new ArrayList(); + this.env = new ArrayList<>(); } V1EnvVarBuilder builder = new V1EnvVarBuilder(item); if (index < 0 || index >= this.env.size()) { @@ -292,7 +294,7 @@ public A addToEnv(int index,V1EnvVar item) { public A addToEnvFrom(V1EnvFromSource... items) { if (this.envFrom == null) { - this.envFrom = new ArrayList(); + this.envFrom = new ArrayList<>(); } for (V1EnvFromSource item : items) { V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); @@ -304,7 +306,7 @@ public A addToEnvFrom(V1EnvFromSource... items) { public A addToEnvFrom(int index,V1EnvFromSource item) { if (this.envFrom == null) { - this.envFrom = new ArrayList(); + this.envFrom = new ArrayList<>(); } V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); if (index < 0 || index >= this.envFrom.size()) { @@ -319,7 +321,7 @@ public A addToEnvFrom(int index,V1EnvFromSource item) { public A addToPorts(V1ContainerPort... items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1ContainerPort item : items) { V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); @@ -331,7 +333,7 @@ public A addToPorts(V1ContainerPort... items) { public A addToPorts(int index,V1ContainerPort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -346,7 +348,7 @@ public A addToPorts(int index,V1ContainerPort item) { public A addToResizePolicy(V1ContainerResizePolicy... items) { if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); + this.resizePolicy = new ArrayList<>(); } for (V1ContainerResizePolicy item : items) { V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); @@ -358,7 +360,7 @@ public A addToResizePolicy(V1ContainerResizePolicy... items) { public A addToResizePolicy(int index,V1ContainerResizePolicy item) { if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); + this.resizePolicy = new ArrayList<>(); } V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); if (index < 0 || index >= this.resizePolicy.size()) { @@ -373,7 +375,7 @@ public A addToResizePolicy(int index,V1ContainerResizePolicy item) { public A addToRestartPolicyRules(V1ContainerRestartRule... items) { if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); + this.restartPolicyRules = new ArrayList<>(); } for (V1ContainerRestartRule item : items) { V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); @@ -385,7 +387,7 @@ public A addToRestartPolicyRules(V1ContainerRestartRule... items) { public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); + this.restartPolicyRules = new ArrayList<>(); } V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); if (index < 0 || index >= this.restartPolicyRules.size()) { @@ -400,7 +402,7 @@ public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { public A addToVolumeDevices(V1VolumeDevice... items) { if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + this.volumeDevices = new ArrayList<>(); } for (V1VolumeDevice item : items) { V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); @@ -412,7 +414,7 @@ public A addToVolumeDevices(V1VolumeDevice... items) { public A addToVolumeDevices(int index,V1VolumeDevice item) { if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + this.volumeDevices = new ArrayList<>(); } V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); if (index < 0 || index >= this.volumeDevices.size()) { @@ -427,7 +429,7 @@ public A addToVolumeDevices(int index,V1VolumeDevice item) { public A addToVolumeMounts(V1VolumeMount... items) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } for (V1VolumeMount item : items) { V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); @@ -439,7 +441,7 @@ public A addToVolumeMounts(V1VolumeMount... items) { public A addToVolumeMounts(int index,V1VolumeMount item) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); if (index < 0 || index >= this.volumeMounts.size()) { @@ -1016,7 +1018,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ContainerFluent that = (V1ContainerFluent) o; + V1ContainerFluent that = (V1ContainerFluent) o; if (!(Objects.equals(args, that.args))) { return false; } @@ -1583,6 +1585,7 @@ public A removeMatchingFromEnv(Predicate predicate) { return (A) this; } Iterator each = env.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("env"); while (each.hasNext()) { V1EnvVarBuilder builder = each.next(); @@ -1599,6 +1602,7 @@ public A removeMatchingFromEnvFrom(Predicate predicate) return (A) this; } Iterator each = envFrom.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("envFrom"); while (each.hasNext()) { V1EnvFromSourceBuilder builder = each.next(); @@ -1615,6 +1619,7 @@ public A removeMatchingFromPorts(Predicate predicate) { return (A) this; } Iterator each = ports.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1ContainerPortBuilder builder = each.next(); @@ -1631,6 +1636,7 @@ public A removeMatchingFromResizePolicy(Predicate each = resizePolicy.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resizePolicy"); while (each.hasNext()) { V1ContainerResizePolicyBuilder builder = each.next(); @@ -1647,6 +1653,7 @@ public A removeMatchingFromRestartPolicyRules(Predicate each = restartPolicyRules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("restartPolicyRules"); while (each.hasNext()) { V1ContainerRestartRuleBuilder builder = each.next(); @@ -1663,6 +1670,7 @@ public A removeMatchingFromVolumeDevices(Predicate predic return (A) this; } Iterator each = volumeDevices.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("volumeDevices"); while (each.hasNext()) { V1VolumeDeviceBuilder builder = each.next(); @@ -1679,6 +1687,7 @@ public A removeMatchingFromVolumeMounts(Predicate predicat return (A) this; } Iterator each = volumeMounts.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("volumeMounts"); while (each.hasNext()) { V1VolumeMountBuilder builder = each.next(); @@ -1691,36 +1700,36 @@ public A removeMatchingFromVolumeMounts(Predicate predicat } public EnvFromNested setNewEnvFromLike(int index,V1EnvFromSource item) { - return new EnvFromNested(index, item); + return new EnvFromNested<>(index, item); } public EnvNested setNewEnvLike(int index,V1EnvVar item) { - return new EnvNested(index, item); + return new EnvNested<>(index, item); } public PortsNested setNewPortLike(int index,V1ContainerPort item) { - return new PortsNested(index, item); + return new PortsNested<>(index, item); } public ResizePolicyNested setNewResizePolicyLike(int index,V1ContainerResizePolicy item) { - return new ResizePolicyNested(index, item); + return new ResizePolicyNested<>(index, item); } public RestartPolicyRulesNested setNewRestartPolicyRuleLike(int index,V1ContainerRestartRule item) { - return new RestartPolicyRulesNested(index, item); + return new RestartPolicyRulesNested<>(index, item); } public VolumeDevicesNested setNewVolumeDeviceLike(int index,V1VolumeDevice item) { - return new VolumeDevicesNested(index, item); + return new VolumeDevicesNested<>(index, item); } public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMount item) { - return new VolumeMountsNested(index, item); + return new VolumeMountsNested<>(index, item); } public A setToArgs(int index,String item) { if (this.args == null) { - this.args = new ArrayList(); + this.args = new ArrayList<>(); } this.args.set(index, item); return (A) this; @@ -1728,7 +1737,7 @@ public A setToArgs(int index,String item) { public A setToCommand(int index,String item) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } this.command.set(index, item); return (A) this; @@ -1736,7 +1745,7 @@ public A setToCommand(int index,String item) { public A setToEnv(int index,V1EnvVar item) { if (this.env == null) { - this.env = new ArrayList(); + this.env = new ArrayList<>(); } V1EnvVarBuilder builder = new V1EnvVarBuilder(item); if (index < 0 || index >= this.env.size()) { @@ -1751,7 +1760,7 @@ public A setToEnv(int index,V1EnvVar item) { public A setToEnvFrom(int index,V1EnvFromSource item) { if (this.envFrom == null) { - this.envFrom = new ArrayList(); + this.envFrom = new ArrayList<>(); } V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); if (index < 0 || index >= this.envFrom.size()) { @@ -1766,7 +1775,7 @@ public A setToEnvFrom(int index,V1EnvFromSource item) { public A setToPorts(int index,V1ContainerPort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -1781,7 +1790,7 @@ public A setToPorts(int index,V1ContainerPort item) { public A setToResizePolicy(int index,V1ContainerResizePolicy item) { if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); + this.resizePolicy = new ArrayList<>(); } V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); if (index < 0 || index >= this.resizePolicy.size()) { @@ -1796,7 +1805,7 @@ public A setToResizePolicy(int index,V1ContainerResizePolicy item) { public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); + this.restartPolicyRules = new ArrayList<>(); } V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); if (index < 0 || index >= this.restartPolicyRules.size()) { @@ -1811,7 +1820,7 @@ public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { public A setToVolumeDevices(int index,V1VolumeDevice item) { if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + this.volumeDevices = new ArrayList<>(); } V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); if (index < 0 || index >= this.volumeDevices.size()) { @@ -1826,7 +1835,7 @@ public A setToVolumeDevices(int index,V1VolumeDevice item) { public A setToVolumeMounts(int index,V1VolumeMount item) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); if (index < 0 || index >= this.volumeMounts.size()) { @@ -1972,7 +1981,7 @@ public String toString() { public A withArgs(List args) { if (args != null) { - this.args = new ArrayList(); + this.args = new ArrayList<>(); for (String item : args) { this.addToArgs(item); } @@ -1997,7 +2006,7 @@ public A withArgs(String... args) { public A withCommand(List command) { if (command != null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); for (String item : command) { this.addToCommand(item); } @@ -2025,7 +2034,7 @@ public A withEnv(List env) { this._visitables.get("env").clear(); } if (env != null) { - this.env = new ArrayList(); + this.env = new ArrayList<>(); for (V1EnvVar item : env) { this.addToEnv(item); } @@ -2053,7 +2062,7 @@ public A withEnvFrom(List envFrom) { this._visitables.get("envFrom").clear(); } if (envFrom != null) { - this.envFrom = new ArrayList(); + this.envFrom = new ArrayList<>(); for (V1EnvFromSource item : envFrom) { this.addToEnvFrom(item); } @@ -2092,8 +2101,8 @@ public A withLifecycle(V1Lifecycle lifecycle) { this.lifecycle = new V1LifecycleBuilder(lifecycle); this._visitables.get("lifecycle").add(this.lifecycle); } else { - this.lifecycle = null; this._visitables.get("lifecycle").remove(this.lifecycle); + this.lifecycle = null; } return (A) this; } @@ -2104,8 +2113,8 @@ public A withLivenessProbe(V1Probe livenessProbe) { this.livenessProbe = new V1ProbeBuilder(livenessProbe); this._visitables.get("livenessProbe").add(this.livenessProbe); } else { - this.livenessProbe = null; this._visitables.get("livenessProbe").remove(this.livenessProbe); + this.livenessProbe = null; } return (A) this; } @@ -2116,51 +2125,51 @@ public A withName(String name) { } public LifecycleNested withNewLifecycle() { - return new LifecycleNested(null); + return new LifecycleNested<>(null); } public LifecycleNested withNewLifecycleLike(V1Lifecycle item) { - return new LifecycleNested(item); + return new LifecycleNested<>(item); } public LivenessProbeNested withNewLivenessProbe() { - return new LivenessProbeNested(null); + return new LivenessProbeNested<>(null); } public LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { - return new LivenessProbeNested(item); + return new LivenessProbeNested<>(item); } public ReadinessProbeNested withNewReadinessProbe() { - return new ReadinessProbeNested(null); + return new ReadinessProbeNested<>(null); } public ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) { - return new ReadinessProbeNested(item); + return new ReadinessProbeNested<>(item); } public ResourcesNested withNewResources() { - return new ResourcesNested(null); + return new ResourcesNested<>(null); } public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { - return new ResourcesNested(item); + return new ResourcesNested<>(item); } public SecurityContextNested withNewSecurityContext() { - return new SecurityContextNested(null); + return new SecurityContextNested<>(null); } public SecurityContextNested withNewSecurityContextLike(V1SecurityContext item) { - return new SecurityContextNested(item); + return new SecurityContextNested<>(item); } public StartupProbeNested withNewStartupProbe() { - return new StartupProbeNested(null); + return new StartupProbeNested<>(null); } public StartupProbeNested withNewStartupProbeLike(V1Probe item) { - return new StartupProbeNested(item); + return new StartupProbeNested<>(item); } public A withPorts(List ports) { @@ -2168,7 +2177,7 @@ public A withPorts(List ports) { this._visitables.get("ports").clear(); } if (ports != null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); for (V1ContainerPort item : ports) { this.addToPorts(item); } @@ -2197,8 +2206,8 @@ public A withReadinessProbe(V1Probe readinessProbe) { this.readinessProbe = new V1ProbeBuilder(readinessProbe); this._visitables.get("readinessProbe").add(this.readinessProbe); } else { - this.readinessProbe = null; this._visitables.get("readinessProbe").remove(this.readinessProbe); + this.readinessProbe = null; } return (A) this; } @@ -2208,7 +2217,7 @@ public A withResizePolicy(List resizePolicy) { this._visitables.get("resizePolicy").clear(); } if (resizePolicy != null) { - this.resizePolicy = new ArrayList(); + this.resizePolicy = new ArrayList<>(); for (V1ContainerResizePolicy item : resizePolicy) { this.addToResizePolicy(item); } @@ -2237,8 +2246,8 @@ public A withResources(V1ResourceRequirements resources) { this.resources = new V1ResourceRequirementsBuilder(resources); this._visitables.get("resources").add(this.resources); } else { - this.resources = null; this._visitables.get("resources").remove(this.resources); + this.resources = null; } return (A) this; } @@ -2253,7 +2262,7 @@ public A withRestartPolicyRules(List restartPolicyRules) this._visitables.get("restartPolicyRules").clear(); } if (restartPolicyRules != null) { - this.restartPolicyRules = new ArrayList(); + this.restartPolicyRules = new ArrayList<>(); for (V1ContainerRestartRule item : restartPolicyRules) { this.addToRestartPolicyRules(item); } @@ -2282,8 +2291,8 @@ public A withSecurityContext(V1SecurityContext securityContext) { this.securityContext = new V1SecurityContextBuilder(securityContext); this._visitables.get("securityContext").add(this.securityContext); } else { - this.securityContext = null; this._visitables.get("securityContext").remove(this.securityContext); + this.securityContext = null; } return (A) this; } @@ -2294,8 +2303,8 @@ public A withStartupProbe(V1Probe startupProbe) { this.startupProbe = new V1ProbeBuilder(startupProbe); this._visitables.get("startupProbe").add(this.startupProbe); } else { - this.startupProbe = null; this._visitables.get("startupProbe").remove(this.startupProbe); + this.startupProbe = null; } return (A) this; } @@ -2342,7 +2351,7 @@ public A withVolumeDevices(List volumeDevices) { this._visitables.get("volumeDevices").clear(); } if (volumeDevices != null) { - this.volumeDevices = new ArrayList(); + this.volumeDevices = new ArrayList<>(); for (V1VolumeDevice item : volumeDevices) { this.addToVolumeDevices(item); } @@ -2370,7 +2379,7 @@ public A withVolumeMounts(List volumeMounts) { this._visitables.get("volumeMounts").clear(); } if (volumeMounts != null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); for (V1VolumeMount item : volumeMounts) { this.addToVolumeMounts(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java index ded1e59342..5d4827942c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ContainerImageBuilder extends V1ContainerImageFluent implements VisitableBuilder{ V1ContainerImageFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java index c10db0d8ce..b534985ad5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java @@ -23,12 +23,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ContainerImageFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ContainerImageFluent> extends BaseFluent{ private List names; private Long sizeBytes; @@ -42,7 +44,7 @@ public V1ContainerImageFluent(V1ContainerImage instance) { public A addAllToNames(Collection items) { if (this.names == null) { - this.names = new ArrayList(); + this.names = new ArrayList<>(); } for (String item : items) { this.names.add(item); @@ -52,7 +54,7 @@ public A addAllToNames(Collection items) { public A addToNames(String... items) { if (this.names == null) { - this.names = new ArrayList(); + this.names = new ArrayList<>(); } for (String item : items) { this.names.add(item); @@ -62,7 +64,7 @@ public A addToNames(String... items) { public A addToNames(int index,String item) { if (this.names == null) { - this.names = new ArrayList(); + this.names = new ArrayList<>(); } this.names.add(index, item); return (A) this; @@ -86,7 +88,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ContainerImageFluent that = (V1ContainerImageFluent) o; + V1ContainerImageFluent that = (V1ContainerImageFluent) o; if (!(Objects.equals(names, that.names))) { return false; } @@ -168,7 +170,7 @@ public A removeFromNames(String... items) { public A setToNames(int index,String item) { if (this.names == null) { - this.names = new ArrayList(); + this.names = new ArrayList<>(); } this.names.set(index, item); return (A) this; @@ -192,7 +194,7 @@ public String toString() { public A withNames(List names) { if (names != null) { - this.names = new ArrayList(); + this.names = new ArrayList<>(); for (String item : names) { this.addToNames(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java index 36c7d59f92..0480a9f0bc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ContainerPortBuilder extends V1ContainerPortFluent implements VisitableBuilder{ V1ContainerPortFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java index df149c485c..2fcab3bb29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ContainerPortFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ContainerPortFluent> extends BaseFluent{ private Integer containerPort; private String hostIP; @@ -60,7 +62,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ContainerPortFluent that = (V1ContainerPortFluent) o; + V1ContainerPortFluent that = (V1ContainerPortFluent) o; if (!(Objects.equals(containerPort, that.containerPort))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java index 9e28931832..30ed7c20d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ContainerResizePolicyBuilder extends V1ContainerResizePolicyFluent implements VisitableBuilder{ V1ContainerResizePolicyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java index 4e7732cb1a..176b34519b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ContainerResizePolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ContainerResizePolicyFluent> extends BaseFluent{ private String resourceName; private String restartPolicy; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ContainerResizePolicyFluent that = (V1ContainerResizePolicyFluent) o; + V1ContainerResizePolicyFluent that = (V1ContainerResizePolicyFluent) o; if (!(Objects.equals(resourceName, that.resourceName))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java index 2b9b8b7a69..e9b04dbe05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ContainerRestartRuleBuilder extends V1ContainerRestartRuleFluent implements VisitableBuilder{ V1ContainerRestartRuleFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java index 30a450d23c..b77c8ca58e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ContainerRestartRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ContainerRestartRuleFluent> extends BaseFluent{ private String action; private V1ContainerRestartRuleOnExitCodesBuilder exitCodes; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ContainerRestartRuleFluent that = (V1ContainerRestartRuleFluent) o; + V1ContainerRestartRuleFluent that = (V1ContainerRestartRuleFluent) o; if (!(Objects.equals(action, that.action))) { return false; } @@ -124,18 +126,18 @@ public A withExitCodes(V1ContainerRestartRuleOnExitCodes exitCodes) { this.exitCodes = new V1ContainerRestartRuleOnExitCodesBuilder(exitCodes); this._visitables.get("exitCodes").add(this.exitCodes); } else { - this.exitCodes = null; this._visitables.get("exitCodes").remove(this.exitCodes); + this.exitCodes = null; } return (A) this; } public ExitCodesNested withNewExitCodes() { - return new ExitCodesNested(null); + return new ExitCodesNested<>(null); } public ExitCodesNested withNewExitCodesLike(V1ContainerRestartRuleOnExitCodes item) { - return new ExitCodesNested(item); + return new ExitCodesNested<>(item); } public class ExitCodesNested extends V1ContainerRestartRuleOnExitCodesFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java index bb468d58dc..676e9c151e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ContainerRestartRuleOnExitCodesBuilder extends V1ContainerRestartRuleOnExitCodesFluent implements VisitableBuilder{ V1ContainerRestartRuleOnExitCodesFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java index df09faa15a..5b8c4687ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java @@ -23,12 +23,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ContainerRestartRuleOnExitCodesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ContainerRestartRuleOnExitCodesFluent> extends BaseFluent{ private String operator; private List values; @@ -42,7 +44,7 @@ public V1ContainerRestartRuleOnExitCodesFluent(V1ContainerRestartRuleOnExitCodes public A addAllToValues(Collection items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (Integer item : items) { this.values.add(item); @@ -52,7 +54,7 @@ public A addAllToValues(Collection items) { public A addToValues(Integer... items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (Integer item : items) { this.values.add(item); @@ -62,7 +64,7 @@ public A addToValues(Integer... items) { public A addToValues(int index,Integer item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.add(index, item); return (A) this; @@ -86,7 +88,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ContainerRestartRuleOnExitCodesFluent that = (V1ContainerRestartRuleOnExitCodesFluent) o; + V1ContainerRestartRuleOnExitCodesFluent that = (V1ContainerRestartRuleOnExitCodesFluent) o; if (!(Objects.equals(operator, that.operator))) { return false; } @@ -168,7 +170,7 @@ public A removeFromValues(Integer... items) { public A setToValues(int index,Integer item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.set(index, item); return (A) this; @@ -197,7 +199,7 @@ public A withOperator(String operator) { public A withValues(List values) { if (values != null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); for (Integer item : values) { this.addToValues(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java index fd03a71471..e830f63ce9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ContainerStateBuilder extends V1ContainerStateFluent implements VisitableBuilder{ V1ContainerStateFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java index 1a8728d707..d93dd7472b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ContainerStateFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ContainerStateFluent> extends BaseFluent{ private V1ContainerStateRunningBuilder running; private V1ContainerStateTerminatedBuilder terminated; @@ -105,7 +107,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ContainerStateFluent that = (V1ContainerStateFluent) o; + V1ContainerStateFluent that = (V1ContainerStateFluent) o; if (!(Objects.equals(running, that.running))) { return false; } @@ -156,27 +158,27 @@ public String toString() { } public RunningNested withNewRunning() { - return new RunningNested(null); + return new RunningNested<>(null); } public RunningNested withNewRunningLike(V1ContainerStateRunning item) { - return new RunningNested(item); + return new RunningNested<>(item); } public TerminatedNested withNewTerminated() { - return new TerminatedNested(null); + return new TerminatedNested<>(null); } public TerminatedNested withNewTerminatedLike(V1ContainerStateTerminated item) { - return new TerminatedNested(item); + return new TerminatedNested<>(item); } public WaitingNested withNewWaiting() { - return new WaitingNested(null); + return new WaitingNested<>(null); } public WaitingNested withNewWaitingLike(V1ContainerStateWaiting item) { - return new WaitingNested(item); + return new WaitingNested<>(item); } public A withRunning(V1ContainerStateRunning running) { @@ -185,8 +187,8 @@ public A withRunning(V1ContainerStateRunning running) { this.running = new V1ContainerStateRunningBuilder(running); this._visitables.get("running").add(this.running); } else { - this.running = null; this._visitables.get("running").remove(this.running); + this.running = null; } return (A) this; } @@ -197,8 +199,8 @@ public A withTerminated(V1ContainerStateTerminated terminated) { this.terminated = new V1ContainerStateTerminatedBuilder(terminated); this._visitables.get("terminated").add(this.terminated); } else { - this.terminated = null; this._visitables.get("terminated").remove(this.terminated); + this.terminated = null; } return (A) this; } @@ -209,8 +211,8 @@ public A withWaiting(V1ContainerStateWaiting waiting) { this.waiting = new V1ContainerStateWaitingBuilder(waiting); this._visitables.get("waiting").add(this.waiting); } else { - this.waiting = null; this._visitables.get("waiting").remove(this.waiting); + this.waiting = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java index d61ba2aaf8..db5a0662e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ContainerStateRunningBuilder extends V1ContainerStateRunningFluent implements VisitableBuilder{ V1ContainerStateRunningFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java index 568b9f6b09..302d16753f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ContainerStateRunningFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ContainerStateRunningFluent> extends BaseFluent{ private OffsetDateTime startedAt; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ContainerStateRunningFluent that = (V1ContainerStateRunningFluent) o; + V1ContainerStateRunningFluent that = (V1ContainerStateRunningFluent) o; if (!(Objects.equals(startedAt, that.startedAt))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java index c35d421d0b..6e6b774c1f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ContainerStateTerminatedBuilder extends V1ContainerStateTerminatedFluent implements VisitableBuilder{ V1ContainerStateTerminatedFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java index 14a4103b14..05ac42e9e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ContainerStateTerminatedFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ContainerStateTerminatedFluent> extends BaseFluent{ private String containerID; private Integer exitCode; @@ -65,7 +67,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ContainerStateTerminatedFluent that = (V1ContainerStateTerminatedFluent) o; + V1ContainerStateTerminatedFluent that = (V1ContainerStateTerminatedFluent) o; if (!(Objects.equals(containerID, that.containerID))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java index d7f6b256ff..45b2fce246 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ContainerStateWaitingBuilder extends V1ContainerStateWaitingFluent implements VisitableBuilder{ V1ContainerStateWaitingFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java index 0a7d2034e9..32b662d257 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ContainerStateWaitingFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ContainerStateWaitingFluent> extends BaseFluent{ private String message; private String reason; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ContainerStateWaitingFluent that = (V1ContainerStateWaitingFluent) o; + V1ContainerStateWaitingFluent that = (V1ContainerStateWaitingFluent) o; if (!(Objects.equals(message, that.message))) { return false; } 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 d70626fceb..9d0a703ce1 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ContainerStatusBuilder extends V1ContainerStatusFluent implements VisitableBuilder{ V1ContainerStatusFluent fluent; 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 7fe803ff7d..42f44f54dd 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 @@ -31,12 +31,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ContainerStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ContainerStatusFluent> extends BaseFluent{ private Map allocatedResources; private ArrayList allocatedResourcesStatus; @@ -63,7 +65,7 @@ public V1ContainerStatusFluent(V1ContainerStatus instance) { public A addAllToAllocatedResourcesStatus(Collection items) { if (this.allocatedResourcesStatus == null) { - this.allocatedResourcesStatus = new ArrayList(); + this.allocatedResourcesStatus = new ArrayList<>(); } for (V1ResourceStatus item : items) { V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); @@ -75,7 +77,7 @@ public A addAllToAllocatedResourcesStatus(Collection items) { public A addAllToVolumeMounts(Collection items) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } for (V1VolumeMountStatus item : items) { V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); @@ -86,24 +88,24 @@ public A addAllToVolumeMounts(Collection items) { } public AllocatedResourcesStatusNested addNewAllocatedResourcesStatus() { - return new AllocatedResourcesStatusNested(-1, null); + return new AllocatedResourcesStatusNested<>(-1, null); } public AllocatedResourcesStatusNested addNewAllocatedResourcesStatusLike(V1ResourceStatus item) { - return new AllocatedResourcesStatusNested(-1, item); + return new AllocatedResourcesStatusNested<>(-1, item); } public VolumeMountsNested addNewVolumeMount() { - return new VolumeMountsNested(-1, null); + return new VolumeMountsNested<>(-1, null); } public VolumeMountsNested addNewVolumeMountLike(V1VolumeMountStatus item) { - return new VolumeMountsNested(-1, item); + return new VolumeMountsNested<>(-1, item); } public A addToAllocatedResources(Map map) { if (this.allocatedResources == null && map != null) { - this.allocatedResources = new LinkedHashMap(); + this.allocatedResources = new LinkedHashMap<>(); } if (map != null) { this.allocatedResources.putAll(map); @@ -113,7 +115,7 @@ public A addToAllocatedResources(Map map) { public A addToAllocatedResources(String key,Quantity value) { if (this.allocatedResources == null && key != null && value != null) { - this.allocatedResources = new LinkedHashMap(); + this.allocatedResources = new LinkedHashMap<>(); } if (key != null && value != null) { this.allocatedResources.put(key, value); @@ -123,7 +125,7 @@ public A addToAllocatedResources(String key,Quantity value) { public A addToAllocatedResourcesStatus(V1ResourceStatus... items) { if (this.allocatedResourcesStatus == null) { - this.allocatedResourcesStatus = new ArrayList(); + this.allocatedResourcesStatus = new ArrayList<>(); } for (V1ResourceStatus item : items) { V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); @@ -135,7 +137,7 @@ public A addToAllocatedResourcesStatus(V1ResourceStatus... items) { public A addToAllocatedResourcesStatus(int index,V1ResourceStatus item) { if (this.allocatedResourcesStatus == null) { - this.allocatedResourcesStatus = new ArrayList(); + this.allocatedResourcesStatus = new ArrayList<>(); } V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); if (index < 0 || index >= this.allocatedResourcesStatus.size()) { @@ -150,7 +152,7 @@ public A addToAllocatedResourcesStatus(int index,V1ResourceStatus item) { public A addToVolumeMounts(V1VolumeMountStatus... items) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } for (V1VolumeMountStatus item : items) { V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); @@ -162,7 +164,7 @@ public A addToVolumeMounts(V1VolumeMountStatus... items) { public A addToVolumeMounts(int index,V1VolumeMountStatus item) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); if (index < 0 || index >= this.volumeMounts.size()) { @@ -392,7 +394,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ContainerStatusFluent that = (V1ContainerStatusFluent) o; + V1ContainerStatusFluent that = (V1ContainerStatusFluent) o; if (!(Objects.equals(allocatedResources, that.allocatedResources))) { return false; } @@ -636,6 +638,7 @@ public A removeMatchingFromAllocatedResourcesStatus(Predicate each = allocatedResourcesStatus.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("allocatedResourcesStatus"); while (each.hasNext()) { V1ResourceStatusBuilder builder = each.next(); @@ -652,6 +655,7 @@ public A removeMatchingFromVolumeMounts(Predicate pr return (A) this; } Iterator each = volumeMounts.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("volumeMounts"); while (each.hasNext()) { V1VolumeMountStatusBuilder builder = each.next(); @@ -664,16 +668,16 @@ public A removeMatchingFromVolumeMounts(Predicate pr } public AllocatedResourcesStatusNested setNewAllocatedResourcesStatusLike(int index,V1ResourceStatus item) { - return new AllocatedResourcesStatusNested(index, item); + return new AllocatedResourcesStatusNested<>(index, item); } public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMountStatus item) { - return new VolumeMountsNested(index, item); + return new VolumeMountsNested<>(index, item); } public A setToAllocatedResourcesStatus(int index,V1ResourceStatus item) { if (this.allocatedResourcesStatus == null) { - this.allocatedResourcesStatus = new ArrayList(); + this.allocatedResourcesStatus = new ArrayList<>(); } V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); if (index < 0 || index >= this.allocatedResourcesStatus.size()) { @@ -688,7 +692,7 @@ public A setToAllocatedResourcesStatus(int index,V1ResourceStatus item) { public A setToVolumeMounts(int index,V1VolumeMountStatus item) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); if (index < 0 || index >= this.volumeMounts.size()) { @@ -786,7 +790,7 @@ public A withAllocatedResources(Map allocatedResources) { if (allocatedResources == null) { this.allocatedResources = null; } else { - this.allocatedResources = new LinkedHashMap(allocatedResources); + this.allocatedResources = new LinkedHashMap<>(allocatedResources); } return (A) this; } @@ -796,7 +800,7 @@ public A withAllocatedResourcesStatus(List allocatedResourcesS this._visitables.get("allocatedResourcesStatus").clear(); } if (allocatedResourcesStatus != null) { - this.allocatedResourcesStatus = new ArrayList(); + this.allocatedResourcesStatus = new ArrayList<>(); for (V1ResourceStatus item : allocatedResourcesStatus) { this.addToAllocatedResourcesStatus(item); } @@ -840,8 +844,8 @@ public A withLastState(V1ContainerState lastState) { this.lastState = new V1ContainerStateBuilder(lastState); this._visitables.get("lastState").add(this.lastState); } else { - this.lastState = null; this._visitables.get("lastState").remove(this.lastState); + this.lastState = null; } return (A) this; } @@ -852,35 +856,35 @@ public A withName(String name) { } public LastStateNested withNewLastState() { - return new LastStateNested(null); + return new LastStateNested<>(null); } public LastStateNested withNewLastStateLike(V1ContainerState item) { - return new LastStateNested(item); + return new LastStateNested<>(item); } public ResourcesNested withNewResources() { - return new ResourcesNested(null); + return new ResourcesNested<>(null); } public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { - return new ResourcesNested(item); + return new ResourcesNested<>(item); } public StateNested withNewState() { - return new StateNested(null); + return new StateNested<>(null); } public StateNested withNewStateLike(V1ContainerState item) { - return new StateNested(item); + return new StateNested<>(item); } public UserNested withNewUser() { - return new UserNested(null); + return new UserNested<>(null); } public UserNested withNewUserLike(V1ContainerUser item) { - return new UserNested(item); + return new UserNested<>(item); } public A withReady() { @@ -898,8 +902,8 @@ public A withResources(V1ResourceRequirements resources) { this.resources = new V1ResourceRequirementsBuilder(resources); this._visitables.get("resources").add(this.resources); } else { - this.resources = null; this._visitables.get("resources").remove(this.resources); + this.resources = null; } return (A) this; } @@ -924,8 +928,8 @@ public A withState(V1ContainerState state) { this.state = new V1ContainerStateBuilder(state); this._visitables.get("state").add(this.state); } else { - this.state = null; this._visitables.get("state").remove(this.state); + this.state = null; } return (A) this; } @@ -941,8 +945,8 @@ public A withUser(V1ContainerUser user) { this.user = new V1ContainerUserBuilder(user); this._visitables.get("user").add(this.user); } else { - this.user = null; this._visitables.get("user").remove(this.user); + this.user = null; } return (A) this; } @@ -952,7 +956,7 @@ public A withVolumeMounts(List volumeMounts) { this._visitables.get("volumeMounts").clear(); } if (volumeMounts != null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); for (V1VolumeMountStatus item : volumeMounts) { this.addToVolumeMounts(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java index 0aa0fe5194..222fe4a3d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ContainerUserBuilder extends V1ContainerUserFluent implements VisitableBuilder{ V1ContainerUserFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java index abdc522483..404a148e85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ContainerUserFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ContainerUserFluent> extends BaseFluent{ private V1LinuxContainerUserBuilder linux; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ContainerUserFluent that = (V1ContainerUserFluent) o; + V1ContainerUserFluent that = (V1ContainerUserFluent) o; if (!(Objects.equals(linux, that.linux))) { return false; } @@ -101,18 +103,18 @@ public A withLinux(V1LinuxContainerUser linux) { this.linux = new V1LinuxContainerUserBuilder(linux); this._visitables.get("linux").add(this.linux); } else { - this.linux = null; this._visitables.get("linux").remove(this.linux); + this.linux = null; } return (A) this; } public LinuxNested withNewLinux() { - return new LinuxNested(null); + return new LinuxNested<>(null); } public LinuxNested withNewLinuxLike(V1LinuxContainerUser item) { - return new LinuxNested(item); + return new LinuxNested<>(item); } public class LinuxNested extends V1LinuxContainerUserFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java index bf156bfe25..02a1655b16 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ControllerRevisionBuilder extends V1ControllerRevisionFluent implements VisitableBuilder{ V1ControllerRevisionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java index d4647b867d..0d7146e2cb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ControllerRevisionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ControllerRevisionFluent> extends BaseFluent{ private String apiVersion; private Object data; @@ -78,7 +80,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ControllerRevisionFluent that = (V1ControllerRevisionFluent) o; + V1ControllerRevisionFluent that = (V1ControllerRevisionFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -189,18 +191,18 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withRevision(Long revision) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java index ba261f865c..bc306a8781 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ControllerRevisionListBuilder extends V1ControllerRevisionListFluent implements VisitableBuilder{ V1ControllerRevisionListFluent fluent; 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 796cc6059f..2fb9dbe90e 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ControllerRevisionListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ControllerRevisionListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ControllerRevisionListFluent(V1ControllerRevisionList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ControllerRevision item : items) { V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ControllerRevision item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ControllerRevision... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ControllerRevision item : items) { V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ControllerRevision... items) { public A addToItems(int index,V1ControllerRevision item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ControllerRevisionListFluent that = (V1ControllerRevisionListFluent) o; + V1ControllerRevisionListFluent that = (V1ControllerRevisionListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ControllerRevisionBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicat } public ItemsNested setNewItemLike(int index,V1ControllerRevision item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ControllerRevision item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ControllerRevision item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ControllerRevisionFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java index 4c3322126c..202f243eec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CounterBuilder extends V1CounterFluent implements VisitableBuilder{ V1CounterFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java index 6611c601aa..d4dc20d890 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CounterFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CounterFluent> extends BaseFluent{ private Quantity value; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CounterFluent that = (V1CounterFluent) o; + V1CounterFluent that = (V1CounterFluent) o; if (!(Objects.equals(value, that.value))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java index 7411538eab..2b06dd70be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CounterSetBuilder extends V1CounterSetFluent implements VisitableBuilder{ V1CounterSetFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java index beb3d81c74..c018b612b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java @@ -20,12 +20,14 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CounterSetFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CounterSetFluent> extends BaseFluent{ private Map counters; private String name; @@ -39,7 +41,7 @@ public V1CounterSetFluent(V1CounterSet instance) { public A addToCounters(Map map) { if (this.counters == null && map != null) { - this.counters = new LinkedHashMap(); + this.counters = new LinkedHashMap<>(); } if (map != null) { this.counters.putAll(map); @@ -49,7 +51,7 @@ public A addToCounters(Map map) { public A addToCounters(String key,V1Counter value) { if (this.counters == null && key != null && value != null) { - this.counters = new LinkedHashMap(); + this.counters = new LinkedHashMap<>(); } if (key != null && value != null) { this.counters.put(key, value); @@ -75,7 +77,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CounterSetFluent that = (V1CounterSetFluent) o; + V1CounterSetFluent that = (V1CounterSetFluent) o; if (!(Objects.equals(counters, that.counters))) { return false; } @@ -149,7 +151,7 @@ public A withCounters(Map counters) { if (counters == null) { this.counters = null; } else { - this.counters = new LinkedHashMap(counters); + this.counters = new LinkedHashMap<>(counters); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java index 148f6e6a16..f4618f1215 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CronJobBuilder extends V1CronJobFluent implements VisitableBuilder{ V1CronJobFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java index 7e9b11fd47..ae65fc851d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CronJobFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CronJobFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CronJobFluent that = (V1CronJobFluent) o; + V1CronJobFluent that = (V1CronJobFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1CronJobSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1CronJobStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1CronJobSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1CronJobSpec spec) { this.spec = new V1CronJobSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1CronJobStatus status) { this.status = new V1CronJobStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java index 4dbd479c83..824aecf353 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CronJobListBuilder extends V1CronJobListFluent implements VisitableBuilder{ V1CronJobListFluent fluent; 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 caccd40728..14a759df65 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CronJobListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CronJobListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1CronJobListFluent(V1CronJobList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1CronJob item : items) { V1CronJobBuilder builder = new V1CronJobBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1CronJob item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1CronJob... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1CronJob item : items) { V1CronJobBuilder builder = new V1CronJobBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1CronJob... items) { public A addToItems(int index,V1CronJob item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1CronJobBuilder builder = new V1CronJobBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CronJobListFluent that = (V1CronJobListFluent) o; + V1CronJobListFluent that = (V1CronJobListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1CronJobBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1CronJob item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1CronJob item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1CronJobBuilder builder = new V1CronJobBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1CronJob item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1CronJobFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java index deda957f13..6cfc628b83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CronJobSpecBuilder extends V1CronJobSpecFluent implements VisitableBuilder{ V1CronJobSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java index 86d9091c42..ce0368520d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java @@ -23,12 +23,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CronJobSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CronJobSpecFluent> extends BaseFluent{ private String concurrencyPolicy; private Integer failedJobsHistoryLimit; @@ -86,7 +88,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CronJobSpecFluent that = (V1CronJobSpecFluent) o; + V1CronJobSpecFluent that = (V1CronJobSpecFluent) o; if (!(Objects.equals(concurrencyPolicy, that.concurrencyPolicy))) { return false; } @@ -240,18 +242,18 @@ public A withJobTemplate(V1JobTemplateSpec jobTemplate) { this.jobTemplate = new V1JobTemplateSpecBuilder(jobTemplate); this._visitables.get("jobTemplate").add(this.jobTemplate); } else { - this.jobTemplate = null; this._visitables.get("jobTemplate").remove(this.jobTemplate); + this.jobTemplate = null; } return (A) this; } public JobTemplateNested withNewJobTemplate() { - return new JobTemplateNested(null); + return new JobTemplateNested<>(null); } public JobTemplateNested withNewJobTemplateLike(V1JobTemplateSpec item) { - return new JobTemplateNested(item); + return new JobTemplateNested<>(item); } public A withSchedule(String schedule) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java index bf663d7d4f..66119f234a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CronJobStatusBuilder extends V1CronJobStatusFluent implements VisitableBuilder{ V1CronJobStatusFluent fluent; 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 93d7bd7a6f..ade4794df4 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 @@ -26,12 +26,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CronJobStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CronJobStatusFluent> extends BaseFluent{ private ArrayList active; private OffsetDateTime lastScheduleTime; @@ -46,7 +48,7 @@ public V1CronJobStatusFluent(V1CronJobStatus instance) { public A addAllToActive(Collection items) { if (this.active == null) { - this.active = new ArrayList(); + this.active = new ArrayList<>(); } for (V1ObjectReference item : items) { V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); @@ -57,16 +59,16 @@ public A addAllToActive(Collection items) { } public ActiveNested addNewActive() { - return new ActiveNested(-1, null); + return new ActiveNested<>(-1, null); } public ActiveNested addNewActiveLike(V1ObjectReference item) { - return new ActiveNested(-1, item); + return new ActiveNested<>(-1, item); } public A addToActive(V1ObjectReference... items) { if (this.active == null) { - this.active = new ArrayList(); + this.active = new ArrayList<>(); } for (V1ObjectReference item : items) { V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); @@ -78,7 +80,7 @@ public A addToActive(V1ObjectReference... items) { public A addToActive(int index,V1ObjectReference item) { if (this.active == null) { - this.active = new ArrayList(); + this.active = new ArrayList<>(); } V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); if (index < 0 || index >= this.active.size()) { @@ -171,7 +173,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CronJobStatusFluent that = (V1CronJobStatusFluent) o; + V1CronJobStatusFluent that = (V1CronJobStatusFluent) o; if (!(Objects.equals(active, that.active))) { return false; } @@ -246,6 +248,7 @@ public A removeMatchingFromActive(Predicate predicate) return (A) this; } Iterator each = active.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("active"); while (each.hasNext()) { V1ObjectReferenceBuilder builder = each.next(); @@ -258,12 +261,12 @@ public A removeMatchingFromActive(Predicate predicate) } public ActiveNested setNewActiveLike(int index,V1ObjectReference item) { - return new ActiveNested(index, item); + return new ActiveNested<>(index, item); } public A setToActive(int index,V1ObjectReference item) { if (this.active == null) { - this.active = new ArrayList(); + this.active = new ArrayList<>(); } V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); if (index < 0 || index >= this.active.size()) { @@ -302,7 +305,7 @@ public A withActive(List active) { this._visitables.get("active").clear(); } if (active != null) { - this.active = new ArrayList(); + this.active = new ArrayList<>(); for (V1ObjectReference item : active) { this.addToActive(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java index eedbd601f1..6d6e26c5c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CrossVersionObjectReferenceBuilder extends V1CrossVersionObjectReferenceFluent implements VisitableBuilder{ V1CrossVersionObjectReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java index ada125cef8..eee7e98d1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CrossVersionObjectReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CrossVersionObjectReferenceFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CrossVersionObjectReferenceFluent that = (V1CrossVersionObjectReferenceFluent) o; + V1CrossVersionObjectReferenceFluent that = (V1CrossVersionObjectReferenceFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java index c9b4402970..52e567ec1f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CustomResourceColumnDefinitionBuilder extends V1CustomResourceColumnDefinitionFluent implements VisitableBuilder{ V1CustomResourceColumnDefinitionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java index 9c5628d758..78b87f071e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CustomResourceColumnDefinitionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CustomResourceColumnDefinitionFluent> extends BaseFluent{ private String description; private String format; @@ -62,7 +64,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CustomResourceColumnDefinitionFluent that = (V1CustomResourceColumnDefinitionFluent) o; + V1CustomResourceColumnDefinitionFluent that = (V1CustomResourceColumnDefinitionFluent) o; if (!(Objects.equals(description, that.description))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java index 88d5c3575f..f5f9f2b16b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CustomResourceConversionBuilder extends V1CustomResourceConversionFluent implements VisitableBuilder{ V1CustomResourceConversionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java index f2aaf0dbc5..e08815c2af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CustomResourceConversionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CustomResourceConversionFluent> extends BaseFluent{ private String strategy; private V1WebhookConversionBuilder webhook; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CustomResourceConversionFluent that = (V1CustomResourceConversionFluent) o; + V1CustomResourceConversionFluent that = (V1CustomResourceConversionFluent) o; if (!(Objects.equals(strategy, that.strategy))) { return false; } @@ -114,11 +116,11 @@ public String toString() { } public WebhookNested withNewWebhook() { - return new WebhookNested(null); + return new WebhookNested<>(null); } public WebhookNested withNewWebhookLike(V1WebhookConversion item) { - return new WebhookNested(item); + return new WebhookNested<>(item); } public A withStrategy(String strategy) { @@ -132,8 +134,8 @@ public A withWebhook(V1WebhookConversion webhook) { this.webhook = new V1WebhookConversionBuilder(webhook); this._visitables.get("webhook").add(this.webhook); } else { - this.webhook = null; this._visitables.get("webhook").remove(this.webhook); + this.webhook = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java index 18fe57a8be..c51360cb46 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CustomResourceDefinitionBuilder extends V1CustomResourceDefinitionFluent implements VisitableBuilder{ V1CustomResourceDefinitionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java index 6e1658364a..3ac1ee1db1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CustomResourceDefinitionConditionBuilder extends V1CustomResourceDefinitionConditionFluent implements VisitableBuilder{ V1CustomResourceDefinitionConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java index d07b71416a..6b9c89c743 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CustomResourceDefinitionConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private String message; @@ -63,7 +65,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CustomResourceDefinitionConditionFluent that = (V1CustomResourceDefinitionConditionFluent) o; + V1CustomResourceDefinitionConditionFluent that = (V1CustomResourceDefinitionConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java index 1b2fa5f036..a8573a9e8e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CustomResourceDefinitionFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CustomResourceDefinitionFluent that = (V1CustomResourceDefinitionFluent) o; + V1CustomResourceDefinitionFluent that = (V1CustomResourceDefinitionFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1CustomResourceDefinitionSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1CustomResourceDefinitionStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1CustomResourceDefinitionSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1CustomResourceDefinitionSpec spec) { this.spec = new V1CustomResourceDefinitionSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1CustomResourceDefinitionStatus status) { this.status = new V1CustomResourceDefinitionStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java index 393b9306ce..0de6571445 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CustomResourceDefinitionListBuilder extends V1CustomResourceDefinitionListFluent implements VisitableBuilder{ V1CustomResourceDefinitionListFluent fluent; 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 78abe9d1c0..6cfca979d0 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CustomResourceDefinitionListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1CustomResourceDefinitionListFluent(V1CustomResourceDefinitionList insta public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1CustomResourceDefinition item : items) { V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1CustomResourceDefinition item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1CustomResourceDefinition... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1CustomResourceDefinition item : items) { V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1CustomResourceDefinition... items) { public A addToItems(int index,V1CustomResourceDefinition item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CustomResourceDefinitionListFluent that = (V1CustomResourceDefinitionListFluent) o; + V1CustomResourceDefinitionListFluent that = (V1CustomResourceDefinitionListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate pr return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1CustomResourceDefinitionBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate pr } public ItemsNested setNewItemLike(int index,V1CustomResourceDefinition item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1CustomResourceDefinition item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1CustomResourceDefinition item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1CustomResourceDefinitionFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java index c72df7bf6b..36279de3b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CustomResourceDefinitionNamesBuilder extends V1CustomResourceDefinitionNamesFluent implements VisitableBuilder{ V1CustomResourceDefinitionNamesFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java index b33a94117c..1b02c534aa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionNamesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CustomResourceDefinitionNamesFluent> extends BaseFluent{ private List categories; private String kind; @@ -45,7 +47,7 @@ public V1CustomResourceDefinitionNamesFluent(V1CustomResourceDefinitionNames ins public A addAllToCategories(Collection items) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } for (String item : items) { this.categories.add(item); @@ -55,7 +57,7 @@ public A addAllToCategories(Collection items) { public A addAllToShortNames(Collection items) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } for (String item : items) { this.shortNames.add(item); @@ -65,7 +67,7 @@ public A addAllToShortNames(Collection items) { public A addToCategories(String... items) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } for (String item : items) { this.categories.add(item); @@ -75,7 +77,7 @@ public A addToCategories(String... items) { public A addToCategories(int index,String item) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } this.categories.add(index, item); return (A) this; @@ -83,7 +85,7 @@ public A addToCategories(int index,String item) { public A addToShortNames(String... items) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } for (String item : items) { this.shortNames.add(item); @@ -93,7 +95,7 @@ public A addToShortNames(String... items) { public A addToShortNames(int index,String item) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } this.shortNames.add(index, item); return (A) this; @@ -121,7 +123,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CustomResourceDefinitionNamesFluent that = (V1CustomResourceDefinitionNamesFluent) o; + V1CustomResourceDefinitionNamesFluent that = (V1CustomResourceDefinitionNamesFluent) o; if (!(Objects.equals(categories, that.categories))) { return false; } @@ -297,7 +299,7 @@ public A removeFromShortNames(String... items) { public A setToCategories(int index,String item) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } this.categories.set(index, item); return (A) this; @@ -305,7 +307,7 @@ public A setToCategories(int index,String item) { public A setToShortNames(int index,String item) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } this.shortNames.set(index, item); return (A) this; @@ -349,7 +351,7 @@ public String toString() { public A withCategories(List categories) { if (categories != null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); for (String item : categories) { this.addToCategories(item); } @@ -389,7 +391,7 @@ public A withPlural(String plural) { public A withShortNames(List shortNames) { if (shortNames != null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); for (String item : shortNames) { this.addToShortNames(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java index 94af6275d9..d2305aff08 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CustomResourceDefinitionSpecBuilder extends V1CustomResourceDefinitionSpecFluent implements VisitableBuilder{ V1CustomResourceDefinitionSpecFluent fluent; 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 5b481c760a..80416db6d0 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 @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CustomResourceDefinitionSpecFluent> extends BaseFluent{ private V1CustomResourceConversionBuilder conversion; private String group; @@ -50,7 +52,7 @@ public V1CustomResourceDefinitionSpecFluent(V1CustomResourceDefinitionSpec insta public A addAllToVersions(Collection items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (V1CustomResourceDefinitionVersion item : items) { V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); @@ -61,16 +63,16 @@ public A addAllToVersions(Collection items) { } public VersionsNested addNewVersion() { - return new VersionsNested(-1, null); + return new VersionsNested<>(-1, null); } public VersionsNested addNewVersionLike(V1CustomResourceDefinitionVersion item) { - return new VersionsNested(-1, item); + return new VersionsNested<>(-1, item); } public A addToVersions(V1CustomResourceDefinitionVersion... items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (V1CustomResourceDefinitionVersion item : items) { V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); @@ -82,7 +84,7 @@ public A addToVersions(V1CustomResourceDefinitionVersion... items) { public A addToVersions(int index,V1CustomResourceDefinitionVersion item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); if (index < 0 || index >= this.versions.size()) { @@ -210,7 +212,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CustomResourceDefinitionSpecFluent that = (V1CustomResourceDefinitionSpecFluent) o; + V1CustomResourceDefinitionSpecFluent that = (V1CustomResourceDefinitionSpecFluent) o; if (!(Objects.equals(conversion, that.conversion))) { return false; } @@ -310,6 +312,7 @@ public A removeMatchingFromVersions(Predicate each = versions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("versions"); while (each.hasNext()) { V1CustomResourceDefinitionVersionBuilder builder = each.next(); @@ -322,12 +325,12 @@ public A removeMatchingFromVersions(Predicate setNewVersionLike(int index,V1CustomResourceDefinitionVersion item) { - return new VersionsNested(index, item); + return new VersionsNested<>(index, item); } public A setToVersions(int index,V1CustomResourceDefinitionVersion item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); if (index < 0 || index >= this.versions.size()) { @@ -382,8 +385,8 @@ public A withConversion(V1CustomResourceConversion conversion) { this.conversion = new V1CustomResourceConversionBuilder(conversion); this._visitables.get("conversion").add(this.conversion); } else { - this.conversion = null; this._visitables.get("conversion").remove(this.conversion); + this.conversion = null; } return (A) this; } @@ -399,26 +402,26 @@ public A withNames(V1CustomResourceDefinitionNames names) { this.names = new V1CustomResourceDefinitionNamesBuilder(names); this._visitables.get("names").add(this.names); } else { - this.names = null; this._visitables.get("names").remove(this.names); + this.names = null; } return (A) this; } public ConversionNested withNewConversion() { - return new ConversionNested(null); + return new ConversionNested<>(null); } public ConversionNested withNewConversionLike(V1CustomResourceConversion item) { - return new ConversionNested(item); + return new ConversionNested<>(item); } public NamesNested withNewNames() { - return new NamesNested(null); + return new NamesNested<>(null); } public NamesNested withNewNamesLike(V1CustomResourceDefinitionNames item) { - return new NamesNested(item); + return new NamesNested<>(item); } public A withPreserveUnknownFields() { @@ -440,7 +443,7 @@ public A withVersions(List versions) { this._visitables.get("versions").clear(); } if (versions != null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); for (V1CustomResourceDefinitionVersion item : versions) { this.addToVersions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java index 0139d6e8f6..03c3ab6247 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CustomResourceDefinitionStatusBuilder extends V1CustomResourceDefinitionStatusFluent implements VisitableBuilder{ V1CustomResourceDefinitionStatusFluent fluent; 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 0983a9a671..5c69a74e53 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 @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CustomResourceDefinitionStatusFluent> extends BaseFluent{ private V1CustomResourceDefinitionNamesBuilder acceptedNames; private ArrayList conditions; @@ -48,7 +50,7 @@ public V1CustomResourceDefinitionStatusFluent(V1CustomResourceDefinitionStatus i public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1CustomResourceDefinitionCondition item : items) { V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); @@ -60,7 +62,7 @@ public A addAllToConditions(Collection item public A addAllToStoredVersions(Collection items) { if (this.storedVersions == null) { - this.storedVersions = new ArrayList(); + this.storedVersions = new ArrayList<>(); } for (String item : items) { this.storedVersions.add(item); @@ -69,16 +71,16 @@ public A addAllToStoredVersions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1CustomResourceDefinitionCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1CustomResourceDefinitionCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1CustomResourceDefinitionCondition item : items) { V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); @@ -90,7 +92,7 @@ public A addToConditions(V1CustomResourceDefinitionCondition... items) { public A addToConditions(int index,V1CustomResourceDefinitionCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -105,7 +107,7 @@ public A addToConditions(int index,V1CustomResourceDefinitionCondition item) { public A addToStoredVersions(String... items) { if (this.storedVersions == null) { - this.storedVersions = new ArrayList(); + this.storedVersions = new ArrayList<>(); } for (String item : items) { this.storedVersions.add(item); @@ -115,7 +117,7 @@ public A addToStoredVersions(String... items) { public A addToStoredVersions(int index,String item) { if (this.storedVersions == null) { - this.storedVersions = new ArrayList(); + this.storedVersions = new ArrayList<>(); } this.storedVersions.add(index, item); return (A) this; @@ -218,7 +220,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CustomResourceDefinitionStatusFluent that = (V1CustomResourceDefinitionStatusFluent) o; + V1CustomResourceDefinitionStatusFluent that = (V1CustomResourceDefinitionStatusFluent) o; if (!(Objects.equals(acceptedNames, that.acceptedNames))) { return false; } @@ -350,6 +352,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1CustomResourceDefinitionConditionBuilder builder = each.next(); @@ -362,12 +365,12 @@ public A removeMatchingFromConditions(Predicate setNewConditionLike(int index,V1CustomResourceDefinitionCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1CustomResourceDefinitionCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -382,7 +385,7 @@ public A setToConditions(int index,V1CustomResourceDefinitionCondition item) { public A setToStoredVersions(int index,String item) { if (this.storedVersions == null) { - this.storedVersions = new ArrayList(); + this.storedVersions = new ArrayList<>(); } this.storedVersions.set(index, item); return (A) this; @@ -420,8 +423,8 @@ public A withAcceptedNames(V1CustomResourceDefinitionNames acceptedNames) { this.acceptedNames = new V1CustomResourceDefinitionNamesBuilder(acceptedNames); this._visitables.get("acceptedNames").add(this.acceptedNames); } else { - this.acceptedNames = null; this._visitables.get("acceptedNames").remove(this.acceptedNames); + this.acceptedNames = null; } return (A) this; } @@ -431,7 +434,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1CustomResourceDefinitionCondition item : conditions) { this.addToConditions(item); } @@ -455,11 +458,11 @@ public A withConditions(V1CustomResourceDefinitionCondition... conditions) { } public AcceptedNamesNested withNewAcceptedNames() { - return new AcceptedNamesNested(null); + return new AcceptedNamesNested<>(null); } public AcceptedNamesNested withNewAcceptedNamesLike(V1CustomResourceDefinitionNames item) { - return new AcceptedNamesNested(item); + return new AcceptedNamesNested<>(item); } public A withObservedGeneration(Long observedGeneration) { @@ -469,7 +472,7 @@ public A withObservedGeneration(Long observedGeneration) { public A withStoredVersions(List storedVersions) { if (storedVersions != null) { - this.storedVersions = new ArrayList(); + this.storedVersions = new ArrayList<>(); for (String item : storedVersions) { this.addToStoredVersions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java index 101ae6ccee..b845d8daa1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CustomResourceDefinitionVersionBuilder extends V1CustomResourceDefinitionVersionFluent implements VisitableBuilder{ V1CustomResourceDefinitionVersionFluent fluent; 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 0ece77bb4a..4820677a01 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 @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionVersionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CustomResourceDefinitionVersionFluent> extends BaseFluent{ private ArrayList additionalPrinterColumns; private Boolean deprecated; @@ -53,7 +55,7 @@ public V1CustomResourceDefinitionVersionFluent(V1CustomResourceDefinitionVersion public A addAllToAdditionalPrinterColumns(Collection items) { if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = new ArrayList(); + this.additionalPrinterColumns = new ArrayList<>(); } for (V1CustomResourceColumnDefinition item : items) { V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); @@ -65,7 +67,7 @@ public A addAllToAdditionalPrinterColumns(Collection items) { if (this.selectableFields == null) { - this.selectableFields = new ArrayList(); + this.selectableFields = new ArrayList<>(); } for (V1SelectableField item : items) { V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); @@ -76,24 +78,24 @@ public A addAllToSelectableFields(Collection items) { } public AdditionalPrinterColumnsNested addNewAdditionalPrinterColumn() { - return new AdditionalPrinterColumnsNested(-1, null); + return new AdditionalPrinterColumnsNested<>(-1, null); } public AdditionalPrinterColumnsNested addNewAdditionalPrinterColumnLike(V1CustomResourceColumnDefinition item) { - return new AdditionalPrinterColumnsNested(-1, item); + return new AdditionalPrinterColumnsNested<>(-1, item); } public SelectableFieldsNested addNewSelectableField() { - return new SelectableFieldsNested(-1, null); + return new SelectableFieldsNested<>(-1, null); } public SelectableFieldsNested addNewSelectableFieldLike(V1SelectableField item) { - return new SelectableFieldsNested(-1, item); + return new SelectableFieldsNested<>(-1, item); } public A addToAdditionalPrinterColumns(V1CustomResourceColumnDefinition... items) { if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = new ArrayList(); + this.additionalPrinterColumns = new ArrayList<>(); } for (V1CustomResourceColumnDefinition item : items) { V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); @@ -105,7 +107,7 @@ public A addToAdditionalPrinterColumns(V1CustomResourceColumnDefinition... items public A addToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinition item) { if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = new ArrayList(); + this.additionalPrinterColumns = new ArrayList<>(); } V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); if (index < 0 || index >= this.additionalPrinterColumns.size()) { @@ -120,7 +122,7 @@ public A addToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinitio public A addToSelectableFields(V1SelectableField... items) { if (this.selectableFields == null) { - this.selectableFields = new ArrayList(); + this.selectableFields = new ArrayList<>(); } for (V1SelectableField item : items) { V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); @@ -132,7 +134,7 @@ public A addToSelectableFields(V1SelectableField... items) { public A addToSelectableFields(int index,V1SelectableField item) { if (this.selectableFields == null) { - this.selectableFields = new ArrayList(); + this.selectableFields = new ArrayList<>(); } V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); if (index < 0 || index >= this.selectableFields.size()) { @@ -324,7 +326,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CustomResourceDefinitionVersionFluent that = (V1CustomResourceDefinitionVersionFluent) o; + V1CustomResourceDefinitionVersionFluent that = (V1CustomResourceDefinitionVersionFluent) o; if (!(Objects.equals(additionalPrinterColumns, that.additionalPrinterColumns))) { return false; } @@ -486,6 +488,7 @@ public A removeMatchingFromAdditionalPrinterColumns(Predicate each = additionalPrinterColumns.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("additionalPrinterColumns"); while (each.hasNext()) { V1CustomResourceColumnDefinitionBuilder builder = each.next(); @@ -502,6 +505,7 @@ public A removeMatchingFromSelectableFields(Predicate return (A) this; } Iterator each = selectableFields.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("selectableFields"); while (each.hasNext()) { V1SelectableFieldBuilder builder = each.next(); @@ -514,16 +518,16 @@ public A removeMatchingFromSelectableFields(Predicate } public AdditionalPrinterColumnsNested setNewAdditionalPrinterColumnLike(int index,V1CustomResourceColumnDefinition item) { - return new AdditionalPrinterColumnsNested(index, item); + return new AdditionalPrinterColumnsNested<>(index, item); } public SelectableFieldsNested setNewSelectableFieldLike(int index,V1SelectableField item) { - return new SelectableFieldsNested(index, item); + return new SelectableFieldsNested<>(index, item); } public A setToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinition item) { if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = new ArrayList(); + this.additionalPrinterColumns = new ArrayList<>(); } V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); if (index < 0 || index >= this.additionalPrinterColumns.size()) { @@ -538,7 +542,7 @@ public A setToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinitio public A setToSelectableFields(int index,V1SelectableField item) { if (this.selectableFields == null) { - this.selectableFields = new ArrayList(); + this.selectableFields = new ArrayList<>(); } V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); if (index < 0 || index >= this.selectableFields.size()) { @@ -607,7 +611,7 @@ public A withAdditionalPrinterColumns(List add this._visitables.get("additionalPrinterColumns").clear(); } if (additionalPrinterColumns != null) { - this.additionalPrinterColumns = new ArrayList(); + this.additionalPrinterColumns = new ArrayList<>(); for (V1CustomResourceColumnDefinition item : additionalPrinterColumns) { this.addToAdditionalPrinterColumns(item); } @@ -650,19 +654,19 @@ public A withName(String name) { } public SchemaNested withNewSchema() { - return new SchemaNested(null); + return new SchemaNested<>(null); } public SchemaNested withNewSchemaLike(V1CustomResourceValidation item) { - return new SchemaNested(item); + return new SchemaNested<>(item); } public SubresourcesNested withNewSubresources() { - return new SubresourcesNested(null); + return new SubresourcesNested<>(null); } public SubresourcesNested withNewSubresourcesLike(V1CustomResourceSubresources item) { - return new SubresourcesNested(item); + return new SubresourcesNested<>(item); } public A withSchema(V1CustomResourceValidation schema) { @@ -671,8 +675,8 @@ public A withSchema(V1CustomResourceValidation schema) { this.schema = new V1CustomResourceValidationBuilder(schema); this._visitables.get("schema").add(this.schema); } else { - this.schema = null; this._visitables.get("schema").remove(this.schema); + this.schema = null; } return (A) this; } @@ -682,7 +686,7 @@ public A withSelectableFields(List selectableFields) { this._visitables.get("selectableFields").clear(); } if (selectableFields != null) { - this.selectableFields = new ArrayList(); + this.selectableFields = new ArrayList<>(); for (V1SelectableField item : selectableFields) { this.addToSelectableFields(item); } @@ -729,8 +733,8 @@ public A withSubresources(V1CustomResourceSubresources subresources) { this.subresources = new V1CustomResourceSubresourcesBuilder(subresources); this._visitables.get("subresources").add(this.subresources); } else { - this.subresources = null; this._visitables.get("subresources").remove(this.subresources); + this.subresources = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java index 8f1497ea58..97236c318e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CustomResourceSubresourceScaleBuilder extends V1CustomResourceSubresourceScaleFluent implements VisitableBuilder{ V1CustomResourceSubresourceScaleFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java index 13759b622c..6eb22ece1f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CustomResourceSubresourceScaleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CustomResourceSubresourceScaleFluent> extends BaseFluent{ private String labelSelectorPath; private String specReplicasPath; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CustomResourceSubresourceScaleFluent that = (V1CustomResourceSubresourceScaleFluent) o; + V1CustomResourceSubresourceScaleFluent that = (V1CustomResourceSubresourceScaleFluent) o; if (!(Objects.equals(labelSelectorPath, that.labelSelectorPath))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java index f1b92b3cf2..e4a4ff2983 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CustomResourceSubresourcesBuilder extends V1CustomResourceSubresourcesFluent implements VisitableBuilder{ V1CustomResourceSubresourcesFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java index f88c94d74d..98d3d521e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CustomResourceSubresourcesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CustomResourceSubresourcesFluent> extends BaseFluent{ private V1CustomResourceSubresourceScaleBuilder scale; private Object status; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CustomResourceSubresourcesFluent that = (V1CustomResourceSubresourcesFluent) o; + V1CustomResourceSubresourcesFluent that = (V1CustomResourceSubresourcesFluent) o; if (!(Objects.equals(scale, that.scale))) { return false; } @@ -114,11 +116,11 @@ public String toString() { } public ScaleNested withNewScale() { - return new ScaleNested(null); + return new ScaleNested<>(null); } public ScaleNested withNewScaleLike(V1CustomResourceSubresourceScale item) { - return new ScaleNested(item); + return new ScaleNested<>(item); } public A withScale(V1CustomResourceSubresourceScale scale) { @@ -127,8 +129,8 @@ public A withScale(V1CustomResourceSubresourceScale scale) { this.scale = new V1CustomResourceSubresourceScaleBuilder(scale); this._visitables.get("scale").add(this.scale); } else { - this.scale = null; this._visitables.get("scale").remove(this.scale); + this.scale = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java index 0d5f287a5b..5087063eeb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1CustomResourceValidationBuilder extends V1CustomResourceValidationFluent implements VisitableBuilder{ V1CustomResourceValidationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java index d211b55cc6..42183d15da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1CustomResourceValidationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1CustomResourceValidationFluent> extends BaseFluent{ private V1JSONSchemaPropsBuilder openAPIV3Schema; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1CustomResourceValidationFluent that = (V1CustomResourceValidationFluent) o; + V1CustomResourceValidationFluent that = (V1CustomResourceValidationFluent) o; if (!(Objects.equals(openAPIV3Schema, that.openAPIV3Schema))) { return false; } @@ -96,11 +98,11 @@ public String toString() { } public OpenAPIV3SchemaNested withNewOpenAPIV3Schema() { - return new OpenAPIV3SchemaNested(null); + return new OpenAPIV3SchemaNested<>(null); } public OpenAPIV3SchemaNested withNewOpenAPIV3SchemaLike(V1JSONSchemaProps item) { - return new OpenAPIV3SchemaNested(item); + return new OpenAPIV3SchemaNested<>(item); } public A withOpenAPIV3Schema(V1JSONSchemaProps openAPIV3Schema) { @@ -109,8 +111,8 @@ public A withOpenAPIV3Schema(V1JSONSchemaProps openAPIV3Schema) { this.openAPIV3Schema = new V1JSONSchemaPropsBuilder(openAPIV3Schema); this._visitables.get("openAPIV3Schema").add(this.openAPIV3Schema); } else { - this.openAPIV3Schema = null; this._visitables.get("openAPIV3Schema").remove(this.openAPIV3Schema); + this.openAPIV3Schema = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java index d79ebd85b9..fd11a60ca7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DaemonEndpointBuilder extends V1DaemonEndpointFluent implements VisitableBuilder{ V1DaemonEndpointFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java index eb773b6225..761e3f6f8b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DaemonEndpointFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DaemonEndpointFluent> extends BaseFluent{ private Integer port; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DaemonEndpointFluent that = (V1DaemonEndpointFluent) o; + V1DaemonEndpointFluent that = (V1DaemonEndpointFluent) o; if (!(Objects.equals(port, that.port))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java index 517de13e35..9b85930493 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DaemonSetBuilder extends V1DaemonSetFluent implements VisitableBuilder{ V1DaemonSetFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java index ee53068605..a50d03de30 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DaemonSetConditionBuilder extends V1DaemonSetConditionFluent implements VisitableBuilder{ V1DaemonSetConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java index 9a1fb9715f..f898d85856 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DaemonSetConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DaemonSetConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private String message; @@ -60,7 +62,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DaemonSetConditionFluent that = (V1DaemonSetConditionFluent) o; + V1DaemonSetConditionFluent that = (V1DaemonSetConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java index 1201f88630..c8fb9f11da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DaemonSetFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DaemonSetFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DaemonSetFluent that = (V1DaemonSetFluent) o; + V1DaemonSetFluent that = (V1DaemonSetFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1DaemonSetSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1DaemonSetStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1DaemonSetSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1DaemonSetSpec spec) { this.spec = new V1DaemonSetSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1DaemonSetStatus status) { this.status = new V1DaemonSetStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java index bacc138657..f31ff4a942 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DaemonSetListBuilder extends V1DaemonSetListFluent implements VisitableBuilder{ V1DaemonSetListFluent fluent; 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 fa872d0a2c..72901bb5b5 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DaemonSetListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DaemonSetListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1DaemonSetListFluent(V1DaemonSetList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1DaemonSet item : items) { V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1DaemonSet item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1DaemonSet... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1DaemonSet item : items) { V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1DaemonSet... items) { public A addToItems(int index,V1DaemonSet item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DaemonSetListFluent that = (V1DaemonSetListFluent) o; + V1DaemonSetListFluent that = (V1DaemonSetListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1DaemonSetBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1DaemonSet item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1DaemonSet item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1DaemonSet item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1DaemonSetFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java index 16b618a8ae..cb22c074d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DaemonSetSpecBuilder extends V1DaemonSetSpecFluent implements VisitableBuilder{ V1DaemonSetSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java index fd473b9697..36649eeab3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DaemonSetSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DaemonSetSpecFluent> extends BaseFluent{ private Integer minReadySeconds; private Integer revisionHistoryLimit; @@ -110,7 +112,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DaemonSetSpecFluent that = (V1DaemonSetSpecFluent) o; + V1DaemonSetSpecFluent that = (V1DaemonSetSpecFluent) o; if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { return false; } @@ -198,27 +200,27 @@ public A withMinReadySeconds(Integer minReadySeconds) { } public SelectorNested withNewSelector() { - return new SelectorNested(null); + return new SelectorNested<>(null); } public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + return new SelectorNested<>(item); } public TemplateNested withNewTemplate() { - return new TemplateNested(null); + return new TemplateNested<>(null); } public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); + return new TemplateNested<>(item); } public UpdateStrategyNested withNewUpdateStrategy() { - return new UpdateStrategyNested(null); + return new UpdateStrategyNested<>(null); } public UpdateStrategyNested withNewUpdateStrategyLike(V1DaemonSetUpdateStrategy item) { - return new UpdateStrategyNested(item); + return new UpdateStrategyNested<>(item); } public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { @@ -232,8 +234,8 @@ public A withSelector(V1LabelSelector selector) { this.selector = new V1LabelSelectorBuilder(selector); this._visitables.get("selector").add(this.selector); } else { - this.selector = null; this._visitables.get("selector").remove(this.selector); + this.selector = null; } return (A) this; } @@ -244,8 +246,8 @@ public A withTemplate(V1PodTemplateSpec template) { this.template = new V1PodTemplateSpecBuilder(template); this._visitables.get("template").add(this.template); } else { - this.template = null; this._visitables.get("template").remove(this.template); + this.template = null; } return (A) this; } @@ -256,8 +258,8 @@ public A withUpdateStrategy(V1DaemonSetUpdateStrategy updateStrategy) { this.updateStrategy = new V1DaemonSetUpdateStrategyBuilder(updateStrategy); this._visitables.get("updateStrategy").add(this.updateStrategy); } else { - this.updateStrategy = null; this._visitables.get("updateStrategy").remove(this.updateStrategy); + this.updateStrategy = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java index 470f547201..bc45e26737 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DaemonSetStatusBuilder extends V1DaemonSetStatusFluent implements VisitableBuilder{ V1DaemonSetStatusFluent fluent; 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 fcf7dc9704..bfae1abd83 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 @@ -27,12 +27,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DaemonSetStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DaemonSetStatusFluent> extends BaseFluent{ private Integer collisionCount; private ArrayList conditions; @@ -54,7 +56,7 @@ public V1DaemonSetStatusFluent(V1DaemonSetStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1DaemonSetCondition item : items) { V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); @@ -65,16 +67,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1DaemonSetCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1DaemonSetCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1DaemonSetCondition item : items) { V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); @@ -86,7 +88,7 @@ public A addToConditions(V1DaemonSetCondition... items) { public A addToConditions(int index,V1DaemonSetCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -186,7 +188,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DaemonSetStatusFluent that = (V1DaemonSetStatusFluent) o; + V1DaemonSetStatusFluent that = (V1DaemonSetStatusFluent) o; if (!(Objects.equals(collisionCount, that.collisionCount))) { return false; } @@ -338,6 +340,7 @@ public A removeMatchingFromConditions(Predicate pre return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1DaemonSetConditionBuilder builder = each.next(); @@ -350,12 +353,12 @@ public A removeMatchingFromConditions(Predicate pre } public ConditionsNested setNewConditionLike(int index,V1DaemonSetCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1DaemonSetCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -434,7 +437,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1DaemonSetCondition item : conditions) { this.addToConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java index d111a250d9..9a03f4c21b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DaemonSetUpdateStrategyBuilder extends V1DaemonSetUpdateStrategyFluent implements VisitableBuilder{ V1DaemonSetUpdateStrategyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java index 360067ce25..b4fdf71ce8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DaemonSetUpdateStrategyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DaemonSetUpdateStrategyFluent> extends BaseFluent{ private V1RollingUpdateDaemonSetBuilder rollingUpdate; private String type; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DaemonSetUpdateStrategyFluent that = (V1DaemonSetUpdateStrategyFluent) o; + V1DaemonSetUpdateStrategyFluent that = (V1DaemonSetUpdateStrategyFluent) o; if (!(Objects.equals(rollingUpdate, that.rollingUpdate))) { return false; } @@ -114,11 +116,11 @@ public String toString() { } public RollingUpdateNested withNewRollingUpdate() { - return new RollingUpdateNested(null); + return new RollingUpdateNested<>(null); } public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDaemonSet item) { - return new RollingUpdateNested(item); + return new RollingUpdateNested<>(item); } public A withRollingUpdate(V1RollingUpdateDaemonSet rollingUpdate) { @@ -127,8 +129,8 @@ public A withRollingUpdate(V1RollingUpdateDaemonSet rollingUpdate) { this.rollingUpdate = new V1RollingUpdateDaemonSetBuilder(rollingUpdate); this._visitables.get("rollingUpdate").add(this.rollingUpdate); } else { - this.rollingUpdate = null; this._visitables.get("rollingUpdate").remove(this.rollingUpdate); + this.rollingUpdate = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java index ab653c5bdc..1fa4c9431a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeleteOptionsBuilder extends V1DeleteOptionsFluent implements VisitableBuilder{ V1DeleteOptionsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java index bf9588102d..eb88d98251 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeleteOptionsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeleteOptionsFluent> extends BaseFluent{ private String apiVersion; private List dryRun; @@ -51,7 +53,7 @@ public V1DeleteOptionsFluent(V1DeleteOptions instance) { public A addAllToDryRun(Collection items) { if (this.dryRun == null) { - this.dryRun = new ArrayList(); + this.dryRun = new ArrayList<>(); } for (String item : items) { this.dryRun.add(item); @@ -61,7 +63,7 @@ public A addAllToDryRun(Collection items) { public A addToDryRun(String... items) { if (this.dryRun == null) { - this.dryRun = new ArrayList(); + this.dryRun = new ArrayList<>(); } for (String item : items) { this.dryRun.add(item); @@ -71,7 +73,7 @@ public A addToDryRun(String... items) { public A addToDryRun(int index,String item) { if (this.dryRun == null) { - this.dryRun = new ArrayList(); + this.dryRun = new ArrayList<>(); } this.dryRun.add(index, item); return (A) this; @@ -117,7 +119,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeleteOptionsFluent that = (V1DeleteOptionsFluent) o; + V1DeleteOptionsFluent that = (V1DeleteOptionsFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -261,7 +263,7 @@ public A removeFromDryRun(String... items) { public A setToDryRun(int index,String item) { if (this.dryRun == null) { - this.dryRun = new ArrayList(); + this.dryRun = new ArrayList<>(); } this.dryRun.set(index, item); return (A) this; @@ -320,7 +322,7 @@ public A withApiVersion(String apiVersion) { public A withDryRun(List dryRun) { if (dryRun != null) { - this.dryRun = new ArrayList(); + this.dryRun = new ArrayList<>(); for (String item : dryRun) { this.addToDryRun(item); } @@ -363,11 +365,11 @@ public A withKind(String kind) { } public PreconditionsNested withNewPreconditions() { - return new PreconditionsNested(null); + return new PreconditionsNested<>(null); } public PreconditionsNested withNewPreconditionsLike(V1Preconditions item) { - return new PreconditionsNested(item); + return new PreconditionsNested<>(item); } public A withOrphanDependents() { @@ -385,8 +387,8 @@ public A withPreconditions(V1Preconditions preconditions) { this.preconditions = new V1PreconditionsBuilder(preconditions); this._visitables.get("preconditions").add(this.preconditions); } else { - this.preconditions = null; this._visitables.get("preconditions").remove(this.preconditions); + this.preconditions = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java index bbdf54d8cb..dc2e459e20 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeploymentBuilder extends V1DeploymentFluent implements VisitableBuilder{ V1DeploymentFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java index 1043385b90..745d4b4dd0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeploymentConditionBuilder extends V1DeploymentConditionFluent implements VisitableBuilder{ V1DeploymentConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java index 904233a5a8..883b5aa8bf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeploymentConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeploymentConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private OffsetDateTime lastUpdateTime; @@ -62,7 +64,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeploymentConditionFluent that = (V1DeploymentConditionFluent) o; + V1DeploymentConditionFluent that = (V1DeploymentConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java index 5f75928dcb..1f52d11fc8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeploymentFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeploymentFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeploymentFluent that = (V1DeploymentFluent) o; + V1DeploymentFluent that = (V1DeploymentFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1DeploymentSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1DeploymentStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1DeploymentSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1DeploymentSpec spec) { this.spec = new V1DeploymentSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1DeploymentStatus status) { this.status = new V1DeploymentStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java index e905b27fce..f6f381458d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeploymentListBuilder extends V1DeploymentListFluent implements VisitableBuilder{ V1DeploymentListFluent fluent; 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 f43f9ce23d..b0506c8fe5 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeploymentListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeploymentListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1DeploymentListFluent(V1DeploymentList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Deployment item : items) { V1DeploymentBuilder builder = new V1DeploymentBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1Deployment item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1Deployment... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Deployment item : items) { V1DeploymentBuilder builder = new V1DeploymentBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1Deployment... items) { public A addToItems(int index,V1Deployment item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1DeploymentBuilder builder = new V1DeploymentBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeploymentListFluent that = (V1DeploymentListFluent) o; + V1DeploymentListFluent that = (V1DeploymentListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1DeploymentBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1Deployment item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1Deployment item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1DeploymentBuilder builder = new V1DeploymentBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1Deployment item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1DeploymentFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java index a5c578d77d..11d6932176 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeploymentSpecBuilder extends V1DeploymentSpecFluent implements VisitableBuilder{ V1DeploymentSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java index 259eed8e0c..52418a831c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java @@ -22,12 +22,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeploymentSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeploymentSpecFluent> extends BaseFluent{ private Integer minReadySeconds; private Boolean paused; @@ -117,7 +119,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeploymentSpecFluent that = (V1DeploymentSpecFluent) o; + V1DeploymentSpecFluent that = (V1DeploymentSpecFluent) o; if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { return false; } @@ -253,27 +255,27 @@ public A withMinReadySeconds(Integer minReadySeconds) { } public SelectorNested withNewSelector() { - return new SelectorNested(null); + return new SelectorNested<>(null); } public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + return new SelectorNested<>(item); } public StrategyNested withNewStrategy() { - return new StrategyNested(null); + return new StrategyNested<>(null); } public StrategyNested withNewStrategyLike(V1DeploymentStrategy item) { - return new StrategyNested(item); + return new StrategyNested<>(item); } public TemplateNested withNewTemplate() { - return new TemplateNested(null); + return new TemplateNested<>(null); } public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); + return new TemplateNested<>(item); } public A withPaused() { @@ -306,8 +308,8 @@ public A withSelector(V1LabelSelector selector) { this.selector = new V1LabelSelectorBuilder(selector); this._visitables.get("selector").add(this.selector); } else { - this.selector = null; this._visitables.get("selector").remove(this.selector); + this.selector = null; } return (A) this; } @@ -318,8 +320,8 @@ public A withStrategy(V1DeploymentStrategy strategy) { this.strategy = new V1DeploymentStrategyBuilder(strategy); this._visitables.get("strategy").add(this.strategy); } else { - this.strategy = null; this._visitables.get("strategy").remove(this.strategy); + this.strategy = null; } return (A) this; } @@ -330,8 +332,8 @@ public A withTemplate(V1PodTemplateSpec template) { this.template = new V1PodTemplateSpecBuilder(template); this._visitables.get("template").add(this.template); } else { - this.template = null; this._visitables.get("template").remove(this.template); + this.template = null; } 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 b907abbab1..d3ac25b796 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeploymentStatusBuilder extends V1DeploymentStatusFluent implements VisitableBuilder{ V1DeploymentStatusFluent fluent; 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 b3d39e2961..2cb7f59f49 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 @@ -27,12 +27,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeploymentStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeploymentStatusFluent> extends BaseFluent{ private Integer availableReplicas; private Integer collisionCount; @@ -53,7 +55,7 @@ public V1DeploymentStatusFluent(V1DeploymentStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1DeploymentCondition item : items) { V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); @@ -64,16 +66,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1DeploymentCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1DeploymentCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1DeploymentCondition item : items) { V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); @@ -85,7 +87,7 @@ public A addToConditions(V1DeploymentCondition... items) { public A addToConditions(int index,V1DeploymentCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -184,7 +186,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeploymentStatusFluent that = (V1DeploymentStatusFluent) o; + V1DeploymentStatusFluent that = (V1DeploymentStatusFluent) o; if (!(Objects.equals(availableReplicas, that.availableReplicas))) { return false; } @@ -325,6 +327,7 @@ public A removeMatchingFromConditions(Predicate pr return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1DeploymentConditionBuilder builder = each.next(); @@ -337,12 +340,12 @@ public A removeMatchingFromConditions(Predicate pr } public ConditionsNested setNewConditionLike(int index,V1DeploymentCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1DeploymentCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -421,7 +424,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1DeploymentCondition item : conditions) { this.addToConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java index 089d2ec361..a3777c0cf1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeploymentStrategyBuilder extends V1DeploymentStrategyFluent implements VisitableBuilder{ V1DeploymentStrategyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java index 1fbb8707f1..f39d67bf0a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeploymentStrategyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeploymentStrategyFluent> extends BaseFluent{ private V1RollingUpdateDeploymentBuilder rollingUpdate; private String type; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeploymentStrategyFluent that = (V1DeploymentStrategyFluent) o; + V1DeploymentStrategyFluent that = (V1DeploymentStrategyFluent) o; if (!(Objects.equals(rollingUpdate, that.rollingUpdate))) { return false; } @@ -114,11 +116,11 @@ public String toString() { } public RollingUpdateNested withNewRollingUpdate() { - return new RollingUpdateNested(null); + return new RollingUpdateNested<>(null); } public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDeployment item) { - return new RollingUpdateNested(item); + return new RollingUpdateNested<>(item); } public A withRollingUpdate(V1RollingUpdateDeployment rollingUpdate) { @@ -127,8 +129,8 @@ public A withRollingUpdate(V1RollingUpdateDeployment rollingUpdate) { this.rollingUpdate = new V1RollingUpdateDeploymentBuilder(rollingUpdate); this._visitables.get("rollingUpdate").add(this.rollingUpdate); } else { - this.rollingUpdate = null; this._visitables.get("rollingUpdate").remove(this.rollingUpdate); + this.rollingUpdate = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java index e0cfe13dc2..d7bb276a7b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceAllocationConfigurationBuilder extends V1DeviceAllocationConfigurationFluent implements VisitableBuilder{ V1DeviceAllocationConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java index 2cba6607ed..0e181bd389 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java @@ -24,12 +24,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceAllocationConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceAllocationConfigurationFluent> extends BaseFluent{ private V1OpaqueDeviceConfigurationBuilder opaque; private List requests; @@ -44,7 +46,7 @@ public V1DeviceAllocationConfigurationFluent(V1DeviceAllocationConfiguration ins public A addAllToRequests(Collection items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -54,7 +56,7 @@ public A addAllToRequests(Collection items) { public A addToRequests(String... items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -64,7 +66,7 @@ public A addToRequests(String... items) { public A addToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.add(index, item); return (A) this; @@ -105,7 +107,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceAllocationConfigurationFluent that = (V1DeviceAllocationConfigurationFluent) o; + V1DeviceAllocationConfigurationFluent that = (V1DeviceAllocationConfigurationFluent) o; if (!(Objects.equals(opaque, that.opaque))) { return false; } @@ -194,7 +196,7 @@ public A removeFromRequests(String... items) { public A setToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.set(index, item); return (A) this; @@ -222,11 +224,11 @@ public String toString() { } public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); + return new OpaqueNested<>(null); } public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); + return new OpaqueNested<>(item); } public A withOpaque(V1OpaqueDeviceConfiguration opaque) { @@ -235,15 +237,15 @@ public A withOpaque(V1OpaqueDeviceConfiguration opaque) { this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); this._visitables.get("opaque").add(this.opaque); } else { - this.opaque = null; this._visitables.get("opaque").remove(this.opaque); + this.opaque = null; } return (A) this; } public A withRequests(List requests) { if (requests != null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); for (String item : requests) { this.addToRequests(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java index 34db056fe1..1deb30fb8c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceAllocationResultBuilder extends V1DeviceAllocationResultFluent implements VisitableBuilder{ V1DeviceAllocationResultFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java index 5f1f116821..af747ab281 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceAllocationResultFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceAllocationResultFluent> extends BaseFluent{ private ArrayList config; private ArrayList results; @@ -44,7 +46,7 @@ public V1DeviceAllocationResultFluent(V1DeviceAllocationResult instance) { public A addAllToConfig(Collection items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1DeviceAllocationConfiguration item : items) { V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); @@ -56,7 +58,7 @@ public A addAllToConfig(Collection items) { public A addAllToResults(Collection items) { if (this.results == null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); } for (V1DeviceRequestAllocationResult item : items) { V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); @@ -67,24 +69,24 @@ public A addAllToResults(Collection items) { } public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + return new ConfigNested<>(-1, null); } public ConfigNested addNewConfigLike(V1DeviceAllocationConfiguration item) { - return new ConfigNested(-1, item); + return new ConfigNested<>(-1, item); } public ResultsNested addNewResult() { - return new ResultsNested(-1, null); + return new ResultsNested<>(-1, null); } public ResultsNested addNewResultLike(V1DeviceRequestAllocationResult item) { - return new ResultsNested(-1, item); + return new ResultsNested<>(-1, item); } public A addToConfig(V1DeviceAllocationConfiguration... items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1DeviceAllocationConfiguration item : items) { V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); @@ -96,7 +98,7 @@ public A addToConfig(V1DeviceAllocationConfiguration... items) { public A addToConfig(int index,V1DeviceAllocationConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -111,7 +113,7 @@ public A addToConfig(int index,V1DeviceAllocationConfiguration item) { public A addToResults(V1DeviceRequestAllocationResult... items) { if (this.results == null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); } for (V1DeviceRequestAllocationResult item : items) { V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); @@ -123,7 +125,7 @@ public A addToResults(V1DeviceRequestAllocationResult... items) { public A addToResults(int index,V1DeviceRequestAllocationResult item) { if (this.results == null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); } V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); if (index < 0 || index >= this.results.size()) { @@ -276,7 +278,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceAllocationResultFluent that = (V1DeviceAllocationResultFluent) o; + V1DeviceAllocationResultFluent that = (V1DeviceAllocationResultFluent) o; if (!(Objects.equals(config, that.config))) { return false; } @@ -369,6 +371,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("config"); while (each.hasNext()) { V1DeviceAllocationConfigurationBuilder builder = each.next(); @@ -385,6 +388,7 @@ public A removeMatchingFromResults(Predicate each = results.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("results"); while (each.hasNext()) { V1DeviceRequestAllocationResultBuilder builder = each.next(); @@ -397,16 +401,16 @@ public A removeMatchingFromResults(Predicate setNewConfigLike(int index,V1DeviceAllocationConfiguration item) { - return new ConfigNested(index, item); + return new ConfigNested<>(index, item); } public ResultsNested setNewResultLike(int index,V1DeviceRequestAllocationResult item) { - return new ResultsNested(index, item); + return new ResultsNested<>(index, item); } public A setToConfig(int index,V1DeviceAllocationConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -421,7 +425,7 @@ public A setToConfig(int index,V1DeviceAllocationConfiguration item) { public A setToResults(int index,V1DeviceRequestAllocationResult item) { if (this.results == null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); } V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); if (index < 0 || index >= this.results.size()) { @@ -455,7 +459,7 @@ public A withConfig(List config) { this._visitables.get("config").clear(); } if (config != null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); for (V1DeviceAllocationConfiguration item : config) { this.addToConfig(item); } @@ -483,7 +487,7 @@ public A withResults(List results) { this._visitables.get("results").clear(); } if (results != null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); for (V1DeviceRequestAllocationResult item : results) { this.addToResults(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java index 58f7f5a812..7e0d899049 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceAttributeBuilder extends V1DeviceAttributeFluent implements VisitableBuilder{ V1DeviceAttributeFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java index 7a83aa51f5..43b365fd41 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java @@ -24,12 +24,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceAttributeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceAttributeFluent> extends BaseFluent{ private Long _int; private Boolean bool; @@ -49,7 +51,7 @@ public V1DeviceAttributeFluent(V1DeviceAttribute instance) { public A addAllToBools(Collection items) { if (this.bools == null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); } for (Boolean item : items) { this.bools.add(item); @@ -59,7 +61,7 @@ public A addAllToBools(Collection items) { public A addAllToInts(Collection items) { if (this.ints == null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); } for (Long item : items) { this.ints.add(item); @@ -69,7 +71,7 @@ public A addAllToInts(Collection items) { public A addAllToStrings(Collection items) { if (this.strings == null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); } for (String item : items) { this.strings.add(item); @@ -79,7 +81,7 @@ public A addAllToStrings(Collection items) { public A addAllToVersions(Collection items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (String item : items) { this.versions.add(item); @@ -89,7 +91,7 @@ public A addAllToVersions(Collection items) { public A addToBools(Boolean... items) { if (this.bools == null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); } for (Boolean item : items) { this.bools.add(item); @@ -99,7 +101,7 @@ public A addToBools(Boolean... items) { public A addToBools(int index,Boolean item) { if (this.bools == null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); } this.bools.add(index, item); return (A) this; @@ -107,7 +109,7 @@ public A addToBools(int index,Boolean item) { public A addToInts(Long... items) { if (this.ints == null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); } for (Long item : items) { this.ints.add(item); @@ -117,7 +119,7 @@ public A addToInts(Long... items) { public A addToInts(int index,Long item) { if (this.ints == null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); } this.ints.add(index, item); return (A) this; @@ -125,7 +127,7 @@ public A addToInts(int index,Long item) { public A addToStrings(String... items) { if (this.strings == null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); } for (String item : items) { this.strings.add(item); @@ -135,7 +137,7 @@ public A addToStrings(String... items) { public A addToStrings(int index,String item) { if (this.strings == null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); } this.strings.add(index, item); return (A) this; @@ -143,7 +145,7 @@ public A addToStrings(int index,String item) { public A addToVersions(String... items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (String item : items) { this.versions.add(item); @@ -153,7 +155,7 @@ public A addToVersions(String... items) { public A addToVersions(int index,String item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } this.versions.add(index, item); return (A) this; @@ -182,7 +184,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceAttributeFluent that = (V1DeviceAttributeFluent) o; + V1DeviceAttributeFluent that = (V1DeviceAttributeFluent) o; if (!(Objects.equals(bool, that.bool))) { return false; } @@ -480,7 +482,7 @@ public A removeFromVersions(String... items) { public A setToBools(int index,Boolean item) { if (this.bools == null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); } this.bools.set(index, item); return (A) this; @@ -488,7 +490,7 @@ public A setToBools(int index,Boolean item) { public A setToInts(int index,Long item) { if (this.ints == null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); } this.ints.set(index, item); return (A) this; @@ -496,7 +498,7 @@ public A setToInts(int index,Long item) { public A setToStrings(int index,String item) { if (this.strings == null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); } this.strings.set(index, item); return (A) this; @@ -504,7 +506,7 @@ public A setToStrings(int index,String item) { public A setToVersions(int index,String item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } this.versions.set(index, item); return (A) this; @@ -567,7 +569,7 @@ public A withBool(Boolean bool) { public A withBools(List bools) { if (bools != null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); for (Boolean item : bools) { this.addToBools(item); } @@ -597,7 +599,7 @@ public A withInt(Long _int) { public A withInts(List ints) { if (ints != null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); for (Long item : ints) { this.addToInts(item); } @@ -627,7 +629,7 @@ public A withString(String string) { public A withStrings(List strings) { if (strings != null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); for (String item : strings) { this.addToStrings(item); } @@ -657,7 +659,7 @@ public A withVersion(String version) { public A withVersions(List versions) { if (versions != null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); for (String item : versions) { this.addToVersions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java index 736bd5e886..6d5785e042 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceBuilder extends V1DeviceFluent implements VisitableBuilder{ V1DeviceFluent fluent; @@ -47,7 +48,7 @@ public V1Device build() { buildable.setCapacity(fluent.getCapacity()); buildable.setConsumesCounters(fluent.buildConsumesCounters()); buildable.setName(fluent.getName()); - buildable.setNodeAllocatableResourceMappings(fluent.getNodeAllocatableResourceMappings()); + buildable.setNodeAllocatableResources(fluent.getNodeAllocatableResources()); buildable.setNodeName(fluent.getNodeName()); buildable.setNodeSelector(fluent.buildNodeSelector()); buildable.setTaints(fluent.buildTaints()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java index 857f6dd9be..c34b16bbb7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceCapacityBuilder extends V1DeviceCapacityFluent implements VisitableBuilder{ V1DeviceCapacityFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java index e045cc9579..0be33c3b18 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceCapacityFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceCapacityFluent> extends BaseFluent{ private V1CapacityRequestPolicyBuilder requestPolicy; private Quantity value; @@ -72,7 +74,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceCapacityFluent that = (V1DeviceCapacityFluent) o; + V1DeviceCapacityFluent that = (V1DeviceCapacityFluent) o; if (!(Objects.equals(requestPolicy, that.requestPolicy))) { return false; } @@ -115,11 +117,11 @@ public String toString() { } public RequestPolicyNested withNewRequestPolicy() { - return new RequestPolicyNested(null); + return new RequestPolicyNested<>(null); } public RequestPolicyNested withNewRequestPolicyLike(V1CapacityRequestPolicy item) { - return new RequestPolicyNested(item); + return new RequestPolicyNested<>(item); } public A withNewValue(String value) { @@ -132,8 +134,8 @@ public A withRequestPolicy(V1CapacityRequestPolicy requestPolicy) { this.requestPolicy = new V1CapacityRequestPolicyBuilder(requestPolicy); this._visitables.get("requestPolicy").add(this.requestPolicy); } else { - this.requestPolicy = null; this._visitables.get("requestPolicy").remove(this.requestPolicy); + this.requestPolicy = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java index 80f3ed3569..5da724eaa0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceClaimBuilder extends V1DeviceClaimFluent implements VisitableBuilder{ V1DeviceClaimFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java index c0a7201dcb..1a6f98296c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceClaimConfigurationBuilder extends V1DeviceClaimConfigurationFluent implements VisitableBuilder{ V1DeviceClaimConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java index d6b4b9bec0..8478fab793 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java @@ -24,12 +24,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceClaimConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceClaimConfigurationFluent> extends BaseFluent{ private V1OpaqueDeviceConfigurationBuilder opaque; private List requests; @@ -43,7 +45,7 @@ public V1DeviceClaimConfigurationFluent(V1DeviceClaimConfiguration instance) { public A addAllToRequests(Collection items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -53,7 +55,7 @@ public A addAllToRequests(Collection items) { public A addToRequests(String... items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -63,7 +65,7 @@ public A addToRequests(String... items) { public A addToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.add(index, item); return (A) this; @@ -103,7 +105,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceClaimConfigurationFluent that = (V1DeviceClaimConfigurationFluent) o; + V1DeviceClaimConfigurationFluent that = (V1DeviceClaimConfigurationFluent) o; if (!(Objects.equals(opaque, that.opaque))) { return false; } @@ -181,7 +183,7 @@ public A removeFromRequests(String... items) { public A setToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.set(index, item); return (A) this; @@ -204,11 +206,11 @@ public String toString() { } public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); + return new OpaqueNested<>(null); } public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); + return new OpaqueNested<>(item); } public A withOpaque(V1OpaqueDeviceConfiguration opaque) { @@ -217,15 +219,15 @@ public A withOpaque(V1OpaqueDeviceConfiguration opaque) { this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); this._visitables.get("opaque").add(this.opaque); } else { - this.opaque = null; this._visitables.get("opaque").remove(this.opaque); + this.opaque = null; } return (A) this; } public A withRequests(List requests) { if (requests != null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); for (String item : requests) { this.addToRequests(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java index 53d2a1ddec..462c51904b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceClaimFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceClaimFluent> extends BaseFluent{ private ArrayList config; private ArrayList constraints; @@ -45,7 +47,7 @@ public V1DeviceClaimFluent(V1DeviceClaim instance) { public A addAllToConfig(Collection items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1DeviceClaimConfiguration item : items) { V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); @@ -57,7 +59,7 @@ public A addAllToConfig(Collection items) { public A addAllToConstraints(Collection items) { if (this.constraints == null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); } for (V1DeviceConstraint item : items) { V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); @@ -69,7 +71,7 @@ public A addAllToConstraints(Collection items) { public A addAllToRequests(Collection items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (V1DeviceRequest item : items) { V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); @@ -80,32 +82,32 @@ public A addAllToRequests(Collection items) { } public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + return new ConfigNested<>(-1, null); } public ConfigNested addNewConfigLike(V1DeviceClaimConfiguration item) { - return new ConfigNested(-1, item); + return new ConfigNested<>(-1, item); } public ConstraintsNested addNewConstraint() { - return new ConstraintsNested(-1, null); + return new ConstraintsNested<>(-1, null); } public ConstraintsNested addNewConstraintLike(V1DeviceConstraint item) { - return new ConstraintsNested(-1, item); + return new ConstraintsNested<>(-1, item); } public RequestsNested addNewRequest() { - return new RequestsNested(-1, null); + return new RequestsNested<>(-1, null); } public RequestsNested addNewRequestLike(V1DeviceRequest item) { - return new RequestsNested(-1, item); + return new RequestsNested<>(-1, item); } public A addToConfig(V1DeviceClaimConfiguration... items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1DeviceClaimConfiguration item : items) { V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); @@ -117,7 +119,7 @@ public A addToConfig(V1DeviceClaimConfiguration... items) { public A addToConfig(int index,V1DeviceClaimConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -132,7 +134,7 @@ public A addToConfig(int index,V1DeviceClaimConfiguration item) { public A addToConstraints(V1DeviceConstraint... items) { if (this.constraints == null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); } for (V1DeviceConstraint item : items) { V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); @@ -144,7 +146,7 @@ public A addToConstraints(V1DeviceConstraint... items) { public A addToConstraints(int index,V1DeviceConstraint item) { if (this.constraints == null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); } V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); if (index < 0 || index >= this.constraints.size()) { @@ -159,7 +161,7 @@ public A addToConstraints(int index,V1DeviceConstraint item) { public A addToRequests(V1DeviceRequest... items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (V1DeviceRequest item : items) { V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); @@ -171,7 +173,7 @@ public A addToRequests(V1DeviceRequest... items) { public A addToRequests(int index,V1DeviceRequest item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); if (index < 0 || index >= this.requests.size()) { @@ -386,7 +388,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceClaimFluent that = (V1DeviceClaimFluent) o; + V1DeviceClaimFluent that = (V1DeviceClaimFluent) o; if (!(Objects.equals(config, that.config))) { return false; } @@ -519,6 +521,7 @@ public A removeMatchingFromConfig(Predicate p return (A) this; } Iterator each = config.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("config"); while (each.hasNext()) { V1DeviceClaimConfigurationBuilder builder = each.next(); @@ -535,6 +538,7 @@ public A removeMatchingFromConstraints(Predicate pred return (A) this; } Iterator each = constraints.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("constraints"); while (each.hasNext()) { V1DeviceConstraintBuilder builder = each.next(); @@ -551,6 +555,7 @@ public A removeMatchingFromRequests(Predicate predicate) return (A) this; } Iterator each = requests.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("requests"); while (each.hasNext()) { V1DeviceRequestBuilder builder = each.next(); @@ -563,20 +568,20 @@ public A removeMatchingFromRequests(Predicate predicate) } public ConfigNested setNewConfigLike(int index,V1DeviceClaimConfiguration item) { - return new ConfigNested(index, item); + return new ConfigNested<>(index, item); } public ConstraintsNested setNewConstraintLike(int index,V1DeviceConstraint item) { - return new ConstraintsNested(index, item); + return new ConstraintsNested<>(index, item); } public RequestsNested setNewRequestLike(int index,V1DeviceRequest item) { - return new RequestsNested(index, item); + return new RequestsNested<>(index, item); } public A setToConfig(int index,V1DeviceClaimConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -591,7 +596,7 @@ public A setToConfig(int index,V1DeviceClaimConfiguration item) { public A setToConstraints(int index,V1DeviceConstraint item) { if (this.constraints == null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); } V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); if (index < 0 || index >= this.constraints.size()) { @@ -606,7 +611,7 @@ public A setToConstraints(int index,V1DeviceConstraint item) { public A setToRequests(int index,V1DeviceRequest item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); if (index < 0 || index >= this.requests.size()) { @@ -645,7 +650,7 @@ public A withConfig(List config) { this._visitables.get("config").clear(); } if (config != null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); for (V1DeviceClaimConfiguration item : config) { this.addToConfig(item); } @@ -673,7 +678,7 @@ public A withConstraints(List constraints) { this._visitables.get("constraints").clear(); } if (constraints != null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); for (V1DeviceConstraint item : constraints) { this.addToConstraints(item); } @@ -701,7 +706,7 @@ public A withRequests(List requests) { this._visitables.get("requests").clear(); } if (requests != null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); for (V1DeviceRequest item : requests) { this.addToRequests(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java index e9db28357d..23f29d03e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceClassBuilder extends V1DeviceClassFluent implements VisitableBuilder{ V1DeviceClassFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java index 28f2b6f158..02c022bee2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceClassConfigurationBuilder extends V1DeviceClassConfigurationFluent implements VisitableBuilder{ V1DeviceClassConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java index da298082ec..39e656050f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceClassConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceClassConfigurationFluent> extends BaseFluent{ private V1OpaqueDeviceConfigurationBuilder opaque; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceClassConfigurationFluent that = (V1DeviceClassConfigurationFluent) o; + V1DeviceClassConfigurationFluent that = (V1DeviceClassConfigurationFluent) o; if (!(Objects.equals(opaque, that.opaque))) { return false; } @@ -96,11 +98,11 @@ public String toString() { } public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); + return new OpaqueNested<>(null); } public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); + return new OpaqueNested<>(item); } public A withOpaque(V1OpaqueDeviceConfiguration opaque) { @@ -109,8 +111,8 @@ public A withOpaque(V1OpaqueDeviceConfiguration opaque) { this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); this._visitables.get("opaque").add(this.opaque); } else { - this.opaque = null; this._visitables.get("opaque").remove(this.opaque); + this.opaque = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java index 9d82f1d7da..b1d46257f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceClassFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceClassFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceClassFluent that = (V1DeviceClassFluent) o; + V1DeviceClassFluent that = (V1DeviceClassFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1DeviceClassSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1DeviceClassSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1DeviceClassSpec spec) { this.spec = new V1DeviceClassSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java index 2ddd361f15..e9ec94f4e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceClassListBuilder extends V1DeviceClassListFluent implements VisitableBuilder{ V1DeviceClassListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java index c4ed7d5030..02b785d543 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceClassListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceClassListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1DeviceClassListFluent(V1DeviceClassList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1DeviceClass item : items) { V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1DeviceClass item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1DeviceClass... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1DeviceClass item : items) { V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1DeviceClass... items) { public A addToItems(int index,V1DeviceClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceClassListFluent that = (V1DeviceClassListFluent) o; + V1DeviceClassListFluent that = (V1DeviceClassListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1DeviceClassBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1DeviceClass item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1DeviceClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1DeviceClass item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1DeviceClassFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java index 581c37cbb1..134316bfdb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceClassSpecBuilder extends V1DeviceClassSpecFluent implements VisitableBuilder{ V1DeviceClassSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java index 781295bf97..20bc7eab10 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceClassSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceClassSpecFluent> extends BaseFluent{ private ArrayList config; private String extendedResourceName; @@ -45,7 +47,7 @@ public V1DeviceClassSpecFluent(V1DeviceClassSpec instance) { public A addAllToConfig(Collection items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1DeviceClassConfiguration item : items) { V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); @@ -57,7 +59,7 @@ public A addAllToConfig(Collection items) { public A addAllToSelectors(Collection items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1DeviceSelector item : items) { V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); @@ -68,24 +70,24 @@ public A addAllToSelectors(Collection items) { } public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + return new ConfigNested<>(-1, null); } public ConfigNested addNewConfigLike(V1DeviceClassConfiguration item) { - return new ConfigNested(-1, item); + return new ConfigNested<>(-1, item); } public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + return new SelectorsNested<>(-1, null); } public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { - return new SelectorsNested(-1, item); + return new SelectorsNested<>(-1, item); } public A addToConfig(V1DeviceClassConfiguration... items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1DeviceClassConfiguration item : items) { V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); @@ -97,7 +99,7 @@ public A addToConfig(V1DeviceClassConfiguration... items) { public A addToConfig(int index,V1DeviceClassConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -112,7 +114,7 @@ public A addToConfig(int index,V1DeviceClassConfiguration item) { public A addToSelectors(V1DeviceSelector... items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1DeviceSelector item : items) { V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); @@ -124,7 +126,7 @@ public A addToSelectors(V1DeviceSelector... items) { public A addToSelectors(int index,V1DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -278,7 +280,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceClassSpecFluent that = (V1DeviceClassSpecFluent) o; + V1DeviceClassSpecFluent that = (V1DeviceClassSpecFluent) o; if (!(Objects.equals(config, that.config))) { return false; } @@ -382,6 +384,7 @@ public A removeMatchingFromConfig(Predicate p return (A) this; } Iterator each = config.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("config"); while (each.hasNext()) { V1DeviceClassConfigurationBuilder builder = each.next(); @@ -398,6 +401,7 @@ public A removeMatchingFromSelectors(Predicate predicat return (A) this; } Iterator each = selectors.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1DeviceSelectorBuilder builder = each.next(); @@ -410,16 +414,16 @@ public A removeMatchingFromSelectors(Predicate predicat } public ConfigNested setNewConfigLike(int index,V1DeviceClassConfiguration item) { - return new ConfigNested(index, item); + return new ConfigNested<>(index, item); } public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { - return new SelectorsNested(index, item); + return new SelectorsNested<>(index, item); } public A setToConfig(int index,V1DeviceClassConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -434,7 +438,7 @@ public A setToConfig(int index,V1DeviceClassConfiguration item) { public A setToSelectors(int index,V1DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -473,7 +477,7 @@ public A withConfig(List config) { this._visitables.get("config").clear(); } if (config != null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); for (V1DeviceClassConfiguration item : config) { this.addToConfig(item); } @@ -506,7 +510,7 @@ public A withSelectors(List selectors) { this._visitables.get("selectors").clear(); } if (selectors != null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); for (V1DeviceSelector item : selectors) { this.addToSelectors(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java index ad4ced8af9..215bf31bdb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceConstraintBuilder extends V1DeviceConstraintFluent implements VisitableBuilder{ V1DeviceConstraintFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java index 6512c4ed19..6870e7971a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceConstraintFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceConstraintFluent> extends BaseFluent{ private String distinctAttribute; private String matchAttribute; @@ -42,7 +44,7 @@ public V1DeviceConstraintFluent(V1DeviceConstraint instance) { public A addAllToRequests(Collection items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -52,7 +54,7 @@ public A addAllToRequests(Collection items) { public A addToRequests(String... items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -62,7 +64,7 @@ public A addToRequests(String... items) { public A addToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.add(index, item); return (A) this; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceConstraintFluent that = (V1DeviceConstraintFluent) o; + V1DeviceConstraintFluent that = (V1DeviceConstraintFluent) o; if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { return false; } @@ -180,7 +182,7 @@ public A removeFromRequests(String... items) { public A setToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.set(index, item); return (A) this; @@ -219,7 +221,7 @@ public A withMatchAttribute(String matchAttribute) { public A withRequests(List requests) { if (requests != null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); for (String item : requests) { this.addToRequests(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java index 07119ca790..2e66922955 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceCounterConsumptionBuilder extends V1DeviceCounterConsumptionFluent implements VisitableBuilder{ V1DeviceCounterConsumptionFluent fluent; @@ -38,6 +39,7 @@ public V1DeviceCounterConsumptionBuilder(V1DeviceCounterConsumptionFluent flu public V1DeviceCounterConsumption build() { V1DeviceCounterConsumption buildable = new V1DeviceCounterConsumption(); + buildable.setCompatibilityGroups(fluent.getCompatibilityGroups()); buildable.setCounterSet(fluent.getCounterSet()); buildable.setCounters(fluent.getCounters()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java index 3418b4c943..456f2d06a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java @@ -17,16 +17,23 @@ import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceCounterConsumptionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceCounterConsumptionFluent> extends BaseFluent{ + private List compatibilityGroups; private String counterSet; private Map counters; @@ -37,9 +44,37 @@ public V1DeviceCounterConsumptionFluent(V1DeviceCounterConsumption instance) { this.copyInstance(instance); } + public A addAllToCompatibilityGroups(Collection items) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + for (String item : items) { + this.compatibilityGroups.add(item); + } + return (A) this; + } + + public A addToCompatibilityGroups(String... items) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + for (String item : items) { + this.compatibilityGroups.add(item); + } + return (A) this; + } + + public A addToCompatibilityGroups(int index,String item) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + this.compatibilityGroups.add(index, item); + return (A) this; + } + public A addToCounters(Map map) { if (this.counters == null && map != null) { - this.counters = new LinkedHashMap(); + this.counters = new LinkedHashMap<>(); } if (map != null) { this.counters.putAll(map); @@ -49,7 +84,7 @@ public A addToCounters(Map map) { public A addToCounters(String key,V1Counter value) { if (this.counters == null && key != null && value != null) { - this.counters = new LinkedHashMap(); + this.counters = new LinkedHashMap<>(); } if (key != null && value != null) { this.counters.put(key, value); @@ -60,6 +95,7 @@ public A addToCounters(String key,V1Counter value) { protected void copyInstance(V1DeviceCounterConsumption instance) { instance = instance != null ? instance : new V1DeviceCounterConsumption(); if (instance != null) { + this.withCompatibilityGroups(instance.getCompatibilityGroups()); this.withCounterSet(instance.getCounterSet()); this.withCounters(instance.getCounters()); } @@ -75,7 +111,10 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceCounterConsumptionFluent that = (V1DeviceCounterConsumptionFluent) o; + V1DeviceCounterConsumptionFluent that = (V1DeviceCounterConsumptionFluent) o; + if (!(Objects.equals(compatibilityGroups, that.compatibilityGroups))) { + return false; + } if (!(Objects.equals(counterSet, that.counterSet))) { return false; } @@ -85,6 +124,14 @@ public boolean equals(Object o) { return true; } + public String getCompatibilityGroup(int index) { + return this.compatibilityGroups.get(index); + } + + public List getCompatibilityGroups() { + return this.compatibilityGroups; + } + public String getCounterSet() { return this.counterSet; } @@ -93,6 +140,27 @@ public Map getCounters() { return this.counters; } + public String getFirstCompatibilityGroup() { + return this.compatibilityGroups.get(0); + } + + public String getLastCompatibilityGroup() { + return this.compatibilityGroups.get(compatibilityGroups.size() - 1); + } + + public String getMatchingCompatibilityGroup(Predicate predicate) { + for (String item : compatibilityGroups) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasCompatibilityGroups() { + return this.compatibilityGroups != null && !(this.compatibilityGroups.isEmpty()); + } + public boolean hasCounterSet() { return this.counterSet != null; } @@ -101,8 +169,37 @@ public boolean hasCounters() { return this.counters != null; } + public boolean hasMatchingCompatibilityGroup(Predicate predicate) { + for (String item : compatibilityGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { - return Objects.hash(counterSet, counters); + return Objects.hash(compatibilityGroups, counterSet, counters); + } + + public A removeAllFromCompatibilityGroups(Collection items) { + if (this.compatibilityGroups == null) { + return (A) this; + } + for (String item : items) { + this.compatibilityGroups.remove(item); + } + return (A) this; + } + + public A removeFromCompatibilityGroups(String... items) { + if (this.compatibilityGroups == null) { + return (A) this; + } + for (String item : items) { + this.compatibilityGroups.remove(item); + } + return (A) this; } public A removeFromCounters(String key) { @@ -129,9 +226,22 @@ public A removeFromCounters(Map map) { return (A) this; } + public A setToCompatibilityGroups(int index,String item) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + this.compatibilityGroups.set(index, item); + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (!(compatibilityGroups == null) && !(compatibilityGroups.isEmpty())) { + sb.append("compatibilityGroups:"); + sb.append(compatibilityGroups); + sb.append(","); + } if (!(counterSet == null)) { sb.append("counterSet:"); sb.append(counterSet); @@ -145,6 +255,31 @@ public String toString() { return sb.toString(); } + public A withCompatibilityGroups(List compatibilityGroups) { + if (compatibilityGroups != null) { + this.compatibilityGroups = new ArrayList<>(); + for (String item : compatibilityGroups) { + this.addToCompatibilityGroups(item); + } + } else { + this.compatibilityGroups = null; + } + return (A) this; + } + + public A withCompatibilityGroups(String... compatibilityGroups) { + if (this.compatibilityGroups != null) { + this.compatibilityGroups.clear(); + _visitables.remove("compatibilityGroups"); + } + if (compatibilityGroups != null) { + for (String item : compatibilityGroups) { + this.addToCompatibilityGroups(item); + } + } + return (A) this; + } + public A withCounterSet(String counterSet) { this.counterSet = counterSet; return (A) this; @@ -154,7 +289,7 @@ public A withCounters(Map counters) { if (counters == null) { this.counters = null; } else { - this.counters = new LinkedHashMap(counters); + this.counters = new LinkedHashMap<>(counters); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceDerivedAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceDerivedAttributeBuilder.java new file mode 100644 index 0000000000..c2e127695d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceDerivedAttributeBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1DeviceDerivedAttributeBuilder extends V1DeviceDerivedAttributeFluent implements VisitableBuilder{ + + V1DeviceDerivedAttributeFluent fluent; + + public V1DeviceDerivedAttributeBuilder() { + this(new V1DeviceDerivedAttribute()); + } + + public V1DeviceDerivedAttributeBuilder(V1DeviceDerivedAttributeFluent fluent) { + this(fluent, new V1DeviceDerivedAttribute()); + } + + public V1DeviceDerivedAttributeBuilder(V1DeviceDerivedAttribute instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceDerivedAttributeBuilder(V1DeviceDerivedAttributeFluent fluent,V1DeviceDerivedAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceDerivedAttribute build() { + V1DeviceDerivedAttribute buildable = new V1DeviceDerivedAttribute(); + buildable.setExpression(fluent.getExpression()); + buildable.setName(fluent.getName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceDerivedAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceDerivedAttributeFluent.java new file mode 100644 index 0000000000..06dbd46796 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceDerivedAttributeFluent.java @@ -0,0 +1,114 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceDerivedAttributeFluent> extends BaseFluent{ + + private String expression; + private String name; + + public V1DeviceDerivedAttributeFluent() { + } + + public V1DeviceDerivedAttributeFluent(V1DeviceDerivedAttribute instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1DeviceDerivedAttribute instance) { + instance = instance != null ? instance : new V1DeviceDerivedAttribute(); + if (instance != null) { + this.withExpression(instance.getExpression()); + this.withName(instance.getName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceDerivedAttributeFluent that = (V1DeviceDerivedAttributeFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public String getExpression() { + return this.expression; + } + + public String getName() { + return this.name; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(expression, name); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java index b421645591..2bdc52be02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java @@ -29,12 +29,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceFluent> extends BaseFluent{ private Boolean allNodes; private Boolean allowMultipleAllocations; @@ -45,7 +47,7 @@ public class V1DeviceFluent capacity; private ArrayList consumesCounters; private String name; - private Map nodeAllocatableResourceMappings; + private Map nodeAllocatableResources; private String nodeName; private V1NodeSelectorBuilder nodeSelector; private ArrayList taints; @@ -59,7 +61,7 @@ public V1DeviceFluent(V1Device instance) { public A addAllToBindingConditions(Collection items) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } for (String item : items) { this.bindingConditions.add(item); @@ -69,7 +71,7 @@ public A addAllToBindingConditions(Collection items) { public A addAllToBindingFailureConditions(Collection items) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } for (String item : items) { this.bindingFailureConditions.add(item); @@ -79,7 +81,7 @@ public A addAllToBindingFailureConditions(Collection items) { public A addAllToConsumesCounters(Collection items) { if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); } for (V1DeviceCounterConsumption item : items) { V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); @@ -91,7 +93,7 @@ public A addAllToConsumesCounters(Collection items) public A addAllToTaints(Collection items) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } for (V1DeviceTaint item : items) { V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); @@ -102,24 +104,24 @@ public A addAllToTaints(Collection items) { } public ConsumesCountersNested addNewConsumesCounter() { - return new ConsumesCountersNested(-1, null); + return new ConsumesCountersNested<>(-1, null); } public ConsumesCountersNested addNewConsumesCounterLike(V1DeviceCounterConsumption item) { - return new ConsumesCountersNested(-1, item); + return new ConsumesCountersNested<>(-1, item); } public TaintsNested addNewTaint() { - return new TaintsNested(-1, null); + return new TaintsNested<>(-1, null); } public TaintsNested addNewTaintLike(V1DeviceTaint item) { - return new TaintsNested(-1, item); + return new TaintsNested<>(-1, item); } public A addToAttributes(Map map) { if (this.attributes == null && map != null) { - this.attributes = new LinkedHashMap(); + this.attributes = new LinkedHashMap<>(); } if (map != null) { this.attributes.putAll(map); @@ -129,7 +131,7 @@ public A addToAttributes(Map map) { public A addToAttributes(String key,V1DeviceAttribute value) { if (this.attributes == null && key != null && value != null) { - this.attributes = new LinkedHashMap(); + this.attributes = new LinkedHashMap<>(); } if (key != null && value != null) { this.attributes.put(key, value); @@ -139,7 +141,7 @@ public A addToAttributes(String key,V1DeviceAttribute value) { public A addToBindingConditions(String... items) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } for (String item : items) { this.bindingConditions.add(item); @@ -149,7 +151,7 @@ public A addToBindingConditions(String... items) { public A addToBindingConditions(int index,String item) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } this.bindingConditions.add(index, item); return (A) this; @@ -157,7 +159,7 @@ public A addToBindingConditions(int index,String item) { public A addToBindingFailureConditions(String... items) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } for (String item : items) { this.bindingFailureConditions.add(item); @@ -167,7 +169,7 @@ public A addToBindingFailureConditions(String... items) { public A addToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } this.bindingFailureConditions.add(index, item); return (A) this; @@ -175,7 +177,7 @@ public A addToBindingFailureConditions(int index,String item) { public A addToCapacity(Map map) { if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); + this.capacity = new LinkedHashMap<>(); } if (map != null) { this.capacity.putAll(map); @@ -185,7 +187,7 @@ public A addToCapacity(Map map) { public A addToCapacity(String key,V1DeviceCapacity value) { if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); + this.capacity = new LinkedHashMap<>(); } if (key != null && value != null) { this.capacity.put(key, value); @@ -195,7 +197,7 @@ public A addToCapacity(String key,V1DeviceCapacity value) { public A addToConsumesCounters(V1DeviceCounterConsumption... items) { if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); } for (V1DeviceCounterConsumption item : items) { V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); @@ -207,7 +209,7 @@ public A addToConsumesCounters(V1DeviceCounterConsumption... items) { public A addToConsumesCounters(int index,V1DeviceCounterConsumption item) { if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); } V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); if (index < 0 || index >= this.consumesCounters.size()) { @@ -220,29 +222,29 @@ public A addToConsumesCounters(int index,V1DeviceCounterConsumption item) { return (A) this; } - public A addToNodeAllocatableResourceMappings(Map map) { - if (this.nodeAllocatableResourceMappings == null && map != null) { - this.nodeAllocatableResourceMappings = new LinkedHashMap(); + public A addToNodeAllocatableResources(Map map) { + if (this.nodeAllocatableResources == null && map != null) { + this.nodeAllocatableResources = new LinkedHashMap<>(); } if (map != null) { - this.nodeAllocatableResourceMappings.putAll(map); + this.nodeAllocatableResources.putAll(map); } return (A) this; } - public A addToNodeAllocatableResourceMappings(String key,V1NodeAllocatableResourceMapping value) { - if (this.nodeAllocatableResourceMappings == null && key != null && value != null) { - this.nodeAllocatableResourceMappings = new LinkedHashMap(); + public A addToNodeAllocatableResources(String key,V1NodeAllocatableResource value) { + if (this.nodeAllocatableResources == null && key != null && value != null) { + this.nodeAllocatableResources = new LinkedHashMap<>(); } if (key != null && value != null) { - this.nodeAllocatableResourceMappings.put(key, value); + this.nodeAllocatableResources.put(key, value); } return (A) this; } public A addToTaints(V1DeviceTaint... items) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } for (V1DeviceTaint item : items) { V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); @@ -254,7 +256,7 @@ public A addToTaints(V1DeviceTaint... items) { public A addToTaints(int index,V1DeviceTaint item) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); if (index < 0 || index >= this.taints.size()) { @@ -333,7 +335,7 @@ protected void copyInstance(V1Device instance) { this.withCapacity(instance.getCapacity()); this.withConsumesCounters(instance.getConsumesCounters()); this.withName(instance.getName()); - this.withNodeAllocatableResourceMappings(instance.getNodeAllocatableResourceMappings()); + this.withNodeAllocatableResources(instance.getNodeAllocatableResources()); this.withNodeName(instance.getNodeName()); this.withNodeSelector(instance.getNodeSelector()); this.withTaints(instance.getTaints()); @@ -434,7 +436,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceFluent that = (V1DeviceFluent) o; + V1DeviceFluent that = (V1DeviceFluent) o; if (!(Objects.equals(allNodes, that.allNodes))) { return false; } @@ -462,7 +464,7 @@ public boolean equals(Object o) { if (!(Objects.equals(name, that.name))) { return false; } - if (!(Objects.equals(nodeAllocatableResourceMappings, that.nodeAllocatableResourceMappings))) { + if (!(Objects.equals(nodeAllocatableResources, that.nodeAllocatableResources))) { return false; } if (!(Objects.equals(nodeName, that.nodeName))) { @@ -551,8 +553,8 @@ public String getName() { return this.name; } - public Map getNodeAllocatableResourceMappings() { - return this.nodeAllocatableResourceMappings; + public Map getNodeAllocatableResources() { + return this.nodeAllocatableResources; } public String getNodeName() { @@ -631,8 +633,8 @@ public boolean hasName() { return this.name != null; } - public boolean hasNodeAllocatableResourceMappings() { - return this.nodeAllocatableResourceMappings != null; + public boolean hasNodeAllocatableResources() { + return this.nodeAllocatableResources != null; } public boolean hasNodeName() { @@ -648,7 +650,7 @@ public boolean hasTaints() { } public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeAllocatableResourceMappings, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeAllocatableResources, nodeName, nodeSelector, taints); } public A removeAllFromBindingConditions(Collection items) { @@ -775,24 +777,24 @@ public A removeFromConsumesCounters(V1DeviceCounterConsumption... items) { return (A) this; } - public A removeFromNodeAllocatableResourceMappings(String key) { - if (this.nodeAllocatableResourceMappings == null) { + public A removeFromNodeAllocatableResources(String key) { + if (this.nodeAllocatableResources == null) { return (A) this; } - if (key != null && this.nodeAllocatableResourceMappings != null) { - this.nodeAllocatableResourceMappings.remove(key); + if (key != null && this.nodeAllocatableResources != null) { + this.nodeAllocatableResources.remove(key); } return (A) this; } - public A removeFromNodeAllocatableResourceMappings(Map map) { - if (this.nodeAllocatableResourceMappings == null) { + public A removeFromNodeAllocatableResources(Map map) { + if (this.nodeAllocatableResources == null) { return (A) this; } if (map != null) { for (Object key : map.keySet()) { - if (this.nodeAllocatableResourceMappings != null) { - this.nodeAllocatableResourceMappings.remove(key); + if (this.nodeAllocatableResources != null) { + this.nodeAllocatableResources.remove(key); } } } @@ -816,6 +818,7 @@ public A removeMatchingFromConsumesCounters(Predicate each = consumesCounters.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("consumesCounters"); while (each.hasNext()) { V1DeviceCounterConsumptionBuilder builder = each.next(); @@ -832,6 +835,7 @@ public A removeMatchingFromTaints(Predicate predicate) { return (A) this; } Iterator each = taints.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("taints"); while (each.hasNext()) { V1DeviceTaintBuilder builder = each.next(); @@ -844,16 +848,16 @@ public A removeMatchingFromTaints(Predicate predicate) { } public ConsumesCountersNested setNewConsumesCounterLike(int index,V1DeviceCounterConsumption item) { - return new ConsumesCountersNested(index, item); + return new ConsumesCountersNested<>(index, item); } public TaintsNested setNewTaintLike(int index,V1DeviceTaint item) { - return new TaintsNested(index, item); + return new TaintsNested<>(index, item); } public A setToBindingConditions(int index,String item) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } this.bindingConditions.set(index, item); return (A) this; @@ -861,7 +865,7 @@ public A setToBindingConditions(int index,String item) { public A setToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } this.bindingFailureConditions.set(index, item); return (A) this; @@ -869,7 +873,7 @@ public A setToBindingFailureConditions(int index,String item) { public A setToConsumesCounters(int index,V1DeviceCounterConsumption item) { if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); } V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); if (index < 0 || index >= this.consumesCounters.size()) { @@ -884,7 +888,7 @@ public A setToConsumesCounters(int index,V1DeviceCounterConsumption item) { public A setToTaints(int index,V1DeviceTaint item) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); if (index < 0 || index >= this.taints.size()) { @@ -945,9 +949,9 @@ public String toString() { sb.append(name); sb.append(","); } - if (!(nodeAllocatableResourceMappings == null) && !(nodeAllocatableResourceMappings.isEmpty())) { - sb.append("nodeAllocatableResourceMappings:"); - sb.append(nodeAllocatableResourceMappings); + if (!(nodeAllocatableResources == null) && !(nodeAllocatableResources.isEmpty())) { + sb.append("nodeAllocatableResources:"); + sb.append(nodeAllocatableResources); sb.append(","); } if (!(nodeName == null)) { @@ -990,14 +994,14 @@ public A withAttributes(Map attributes) { if (attributes == null) { this.attributes = null; } else { - this.attributes = new LinkedHashMap(attributes); + this.attributes = new LinkedHashMap<>(attributes); } return (A) this; } public A withBindingConditions(List bindingConditions) { if (bindingConditions != null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); for (String item : bindingConditions) { this.addToBindingConditions(item); } @@ -1022,7 +1026,7 @@ public A withBindingConditions(String... bindingConditions) { public A withBindingFailureConditions(List bindingFailureConditions) { if (bindingFailureConditions != null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); for (String item : bindingFailureConditions) { this.addToBindingFailureConditions(item); } @@ -1058,7 +1062,7 @@ public A withCapacity(Map capacity) { if (capacity == null) { this.capacity = null; } else { - this.capacity = new LinkedHashMap(capacity); + this.capacity = new LinkedHashMap<>(capacity); } return (A) this; } @@ -1068,7 +1072,7 @@ public A withConsumesCounters(List consumesCounters) this._visitables.get("consumesCounters").clear(); } if (consumesCounters != null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); for (V1DeviceCounterConsumption item : consumesCounters) { this.addToConsumesCounters(item); } @@ -1097,18 +1101,18 @@ public A withName(String name) { } public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + return new NodeSelectorNested<>(null); } public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + return new NodeSelectorNested<>(item); } - public A withNodeAllocatableResourceMappings(Map nodeAllocatableResourceMappings) { - if (nodeAllocatableResourceMappings == null) { - this.nodeAllocatableResourceMappings = null; + public A withNodeAllocatableResources(Map nodeAllocatableResources) { + if (nodeAllocatableResources == null) { + this.nodeAllocatableResources = null; } else { - this.nodeAllocatableResourceMappings = new LinkedHashMap(nodeAllocatableResourceMappings); + this.nodeAllocatableResources = new LinkedHashMap<>(nodeAllocatableResources); } return (A) this; } @@ -1124,8 +1128,8 @@ public A withNodeSelector(V1NodeSelector nodeSelector) { this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); this._visitables.get("nodeSelector").add(this.nodeSelector); } else { - this.nodeSelector = null; this._visitables.get("nodeSelector").remove(this.nodeSelector); + this.nodeSelector = null; } return (A) this; } @@ -1135,7 +1139,7 @@ public A withTaints(List taints) { this._visitables.get("taints").clear(); } if (taints != null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); for (V1DeviceTaint item : taints) { this.addToTaints(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java index 2f394fe243..d5e7e63bd1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceRequestAllocationResultBuilder extends V1DeviceRequestAllocationResultFluent implements VisitableBuilder{ V1DeviceRequestAllocationResultFluent fluent; @@ -47,6 +48,7 @@ public V1DeviceRequestAllocationResult build() { buildable.setPool(fluent.getPool()); buildable.setRequest(fluent.getRequest()); buildable.setShareID(fluent.getShareID()); + buildable.setSkipNodeOperations(fluent.getSkipNodeOperations()); buildable.setTolerations(fluent.buildTolerations()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java index 532c45c46c..f1f571f9ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java @@ -29,12 +29,14 @@ import java.util.Map; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceRequestAllocationResultFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceRequestAllocationResultFluent> extends BaseFluent{ private Boolean adminAccess; private List bindingConditions; @@ -45,6 +47,7 @@ public class V1DeviceRequestAllocationResultFluent skipNodeOperations; private ArrayList tolerations; public V1DeviceRequestAllocationResultFluent() { @@ -56,7 +59,7 @@ public V1DeviceRequestAllocationResultFluent(V1DeviceRequestAllocationResult ins public A addAllToBindingConditions(Collection items) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } for (String item : items) { this.bindingConditions.add(item); @@ -66,7 +69,7 @@ public A addAllToBindingConditions(Collection items) { public A addAllToBindingFailureConditions(Collection items) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } for (String item : items) { this.bindingFailureConditions.add(item); @@ -74,9 +77,19 @@ public A addAllToBindingFailureConditions(Collection items) { return (A) this; } + public A addAllToSkipNodeOperations(Collection items) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + for (String item : items) { + this.skipNodeOperations.add(item); + } + return (A) this; + } + public A addAllToTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1DeviceToleration item : items) { V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); @@ -87,16 +100,16 @@ public A addAllToTolerations(Collection items) { } public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + return new TolerationsNested<>(-1, null); } public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { - return new TolerationsNested(-1, item); + return new TolerationsNested<>(-1, item); } public A addToBindingConditions(String... items) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } for (String item : items) { this.bindingConditions.add(item); @@ -106,7 +119,7 @@ public A addToBindingConditions(String... items) { public A addToBindingConditions(int index,String item) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } this.bindingConditions.add(index, item); return (A) this; @@ -114,7 +127,7 @@ public A addToBindingConditions(int index,String item) { public A addToBindingFailureConditions(String... items) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } for (String item : items) { this.bindingFailureConditions.add(item); @@ -124,7 +137,7 @@ public A addToBindingFailureConditions(String... items) { public A addToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } this.bindingFailureConditions.add(index, item); return (A) this; @@ -132,7 +145,7 @@ public A addToBindingFailureConditions(int index,String item) { public A addToConsumedCapacity(Map map) { if (this.consumedCapacity == null && map != null) { - this.consumedCapacity = new LinkedHashMap(); + this.consumedCapacity = new LinkedHashMap<>(); } if (map != null) { this.consumedCapacity.putAll(map); @@ -142,7 +155,7 @@ public A addToConsumedCapacity(Map map) { public A addToConsumedCapacity(String key,Quantity value) { if (this.consumedCapacity == null && key != null && value != null) { - this.consumedCapacity = new LinkedHashMap(); + this.consumedCapacity = new LinkedHashMap<>(); } if (key != null && value != null) { this.consumedCapacity.put(key, value); @@ -150,9 +163,27 @@ public A addToConsumedCapacity(String key,Quantity value) { return (A) this; } + public A addToSkipNodeOperations(String... items) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + for (String item : items) { + this.skipNodeOperations.add(item); + } + return (A) this; + } + + public A addToSkipNodeOperations(int index,String item) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.add(index, item); + return (A) this; + } + public A addToTolerations(V1DeviceToleration... items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1DeviceToleration item : items) { V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); @@ -164,7 +195,7 @@ public A addToTolerations(V1DeviceToleration... items) { public A addToTolerations(int index,V1DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -214,6 +245,7 @@ protected void copyInstance(V1DeviceRequestAllocationResult instance) { this.withPool(instance.getPool()); this.withRequest(instance.getRequest()); this.withShareID(instance.getShareID()); + this.withSkipNodeOperations(instance.getSkipNodeOperations()); this.withTolerations(instance.getTolerations()); } } @@ -264,7 +296,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceRequestAllocationResultFluent that = (V1DeviceRequestAllocationResultFluent) o; + V1DeviceRequestAllocationResultFluent that = (V1DeviceRequestAllocationResultFluent) o; if (!(Objects.equals(adminAccess, that.adminAccess))) { return false; } @@ -292,6 +324,9 @@ public boolean equals(Object o) { if (!(Objects.equals(shareID, that.shareID))) { return false; } + if (!(Objects.equals(skipNodeOperations, that.skipNodeOperations))) { + return false; + } if (!(Objects.equals(tolerations, that.tolerations))) { return false; } @@ -338,6 +373,10 @@ public String getFirstBindingFailureCondition() { return this.bindingFailureConditions.get(0); } + public String getFirstSkipNodeOperation() { + return this.skipNodeOperations.get(0); + } + public String getLastBindingCondition() { return this.bindingConditions.get(bindingConditions.size() - 1); } @@ -346,6 +385,10 @@ public String getLastBindingFailureCondition() { return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); } + public String getLastSkipNodeOperation() { + return this.skipNodeOperations.get(skipNodeOperations.size() - 1); + } + public String getMatchingBindingCondition(Predicate predicate) { for (String item : bindingConditions) { if (predicate.test(item)) { @@ -364,6 +407,15 @@ public String getMatchingBindingFailureCondition(Predicate predicate) { return null; } + public String getMatchingSkipNodeOperation(Predicate predicate) { + for (String item : skipNodeOperations) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + public String getPool() { return this.pool; } @@ -376,6 +428,14 @@ public String getShareID() { return this.shareID; } + public String getSkipNodeOperation(int index) { + return this.skipNodeOperations.get(index); + } + + public List getSkipNodeOperations() { + return this.skipNodeOperations; + } + public boolean hasAdminAccess() { return this.adminAccess != null; } @@ -418,6 +478,15 @@ public boolean hasMatchingBindingFailureCondition(Predicate predicate) { return false; } + public boolean hasMatchingSkipNodeOperation(Predicate predicate) { + for (String item : skipNodeOperations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingToleration(Predicate predicate) { for (V1DeviceTolerationBuilder item : tolerations) { if (predicate.test(item)) { @@ -439,12 +508,16 @@ public boolean hasShareID() { return this.shareID != null; } + public boolean hasSkipNodeOperations() { + return this.skipNodeOperations != null && !(this.skipNodeOperations.isEmpty()); + } + public boolean hasTolerations() { return this.tolerations != null && !(this.tolerations.isEmpty()); } public int hashCode() { - return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, skipNodeOperations, tolerations); } public A removeAllFromBindingConditions(Collection items) { @@ -467,6 +540,16 @@ public A removeAllFromBindingFailureConditions(Collection items) { return (A) this; } + public A removeAllFromSkipNodeOperations(Collection items) { + if (this.skipNodeOperations == null) { + return (A) this; + } + for (String item : items) { + this.skipNodeOperations.remove(item); + } + return (A) this; + } + public A removeAllFromTolerations(Collection items) { if (this.tolerations == null) { return (A) this; @@ -523,6 +606,16 @@ public A removeFromConsumedCapacity(Map map) { return (A) this; } + public A removeFromSkipNodeOperations(String... items) { + if (this.skipNodeOperations == null) { + return (A) this; + } + for (String item : items) { + this.skipNodeOperations.remove(item); + } + return (A) this; + } + public A removeFromTolerations(V1DeviceToleration... items) { if (this.tolerations == null) { return (A) this; @@ -540,6 +633,7 @@ public A removeMatchingFromTolerations(Predicate pred return (A) this; } Iterator each = tolerations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1DeviceTolerationBuilder builder = each.next(); @@ -552,12 +646,12 @@ public A removeMatchingFromTolerations(Predicate pred } public TolerationsNested setNewTolerationLike(int index,V1DeviceToleration item) { - return new TolerationsNested(index, item); + return new TolerationsNested<>(index, item); } public A setToBindingConditions(int index,String item) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } this.bindingConditions.set(index, item); return (A) this; @@ -565,15 +659,23 @@ public A setToBindingConditions(int index,String item) { public A setToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } this.bindingFailureConditions.set(index, item); return (A) this; } + public A setToSkipNodeOperations(int index,String item) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.set(index, item); + return (A) this; + } + public A setToTolerations(int index,V1DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -634,6 +736,11 @@ public String toString() { sb.append(shareID); sb.append(","); } + if (!(skipNodeOperations == null) && !(skipNodeOperations.isEmpty())) { + sb.append("skipNodeOperations:"); + sb.append(skipNodeOperations); + sb.append(","); + } if (!(tolerations == null) && !(tolerations.isEmpty())) { sb.append("tolerations:"); sb.append(tolerations); @@ -653,7 +760,7 @@ public A withAdminAccess(Boolean adminAccess) { public A withBindingConditions(List bindingConditions) { if (bindingConditions != null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); for (String item : bindingConditions) { this.addToBindingConditions(item); } @@ -678,7 +785,7 @@ public A withBindingConditions(String... bindingConditions) { public A withBindingFailureConditions(List bindingFailureConditions) { if (bindingFailureConditions != null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); for (String item : bindingFailureConditions) { this.addToBindingFailureConditions(item); } @@ -705,7 +812,7 @@ public A withConsumedCapacity(Map consumedCapacity) { if (consumedCapacity == null) { this.consumedCapacity = null; } else { - this.consumedCapacity = new LinkedHashMap(consumedCapacity); + this.consumedCapacity = new LinkedHashMap<>(consumedCapacity); } return (A) this; } @@ -735,12 +842,37 @@ public A withShareID(String shareID) { return (A) this; } + public A withSkipNodeOperations(List skipNodeOperations) { + if (skipNodeOperations != null) { + this.skipNodeOperations = new ArrayList<>(); + for (String item : skipNodeOperations) { + this.addToSkipNodeOperations(item); + } + } else { + this.skipNodeOperations = null; + } + return (A) this; + } + + public A withSkipNodeOperations(String... skipNodeOperations) { + if (this.skipNodeOperations != null) { + this.skipNodeOperations.clear(); + _visitables.remove("skipNodeOperations"); + } + if (skipNodeOperations != null) { + for (String item : skipNodeOperations) { + this.addToSkipNodeOperations(item); + } + } + return (A) this; + } + public A withTolerations(List tolerations) { if (this.tolerations != null) { this._visitables.get("tolerations").clear(); } if (tolerations != null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); for (V1DeviceToleration item : tolerations) { this.addToTolerations(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java index f334beb2a7..2288929290 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceRequestBuilder extends V1DeviceRequestFluent implements VisitableBuilder{ V1DeviceRequestFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java index 82df79d86c..b6f946a858 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceRequestFluent> extends BaseFluent{ private V1ExactDeviceRequestBuilder exactly; private ArrayList firstAvailable; @@ -46,7 +48,7 @@ public V1DeviceRequestFluent(V1DeviceRequest instance) { public A addAllToFirstAvailable(Collection items) { if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); } for (V1DeviceSubRequest item : items) { V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); @@ -57,16 +59,16 @@ public A addAllToFirstAvailable(Collection items) { } public FirstAvailableNested addNewFirstAvailable() { - return new FirstAvailableNested(-1, null); + return new FirstAvailableNested<>(-1, null); } public FirstAvailableNested addNewFirstAvailableLike(V1DeviceSubRequest item) { - return new FirstAvailableNested(-1, item); + return new FirstAvailableNested<>(-1, item); } public A addToFirstAvailable(V1DeviceSubRequest... items) { if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); } for (V1DeviceSubRequest item : items) { V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); @@ -78,7 +80,7 @@ public A addToFirstAvailable(V1DeviceSubRequest... items) { public A addToFirstAvailable(int index,V1DeviceSubRequest item) { if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); } V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); if (index < 0 || index >= this.firstAvailable.size()) { @@ -187,7 +189,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceRequestFluent that = (V1DeviceRequestFluent) o; + V1DeviceRequestFluent that = (V1DeviceRequestFluent) o; if (!(Objects.equals(exactly, that.exactly))) { return false; } @@ -258,6 +260,7 @@ public A removeMatchingFromFirstAvailable(Predicate p return (A) this; } Iterator each = firstAvailable.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("firstAvailable"); while (each.hasNext()) { V1DeviceSubRequestBuilder builder = each.next(); @@ -270,12 +273,12 @@ public A removeMatchingFromFirstAvailable(Predicate p } public FirstAvailableNested setNewFirstAvailableLike(int index,V1DeviceSubRequest item) { - return new FirstAvailableNested(index, item); + return new FirstAvailableNested<>(index, item); } public A setToFirstAvailable(int index,V1DeviceSubRequest item) { if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); } V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); if (index < 0 || index >= this.firstAvailable.size()) { @@ -315,8 +318,8 @@ public A withExactly(V1ExactDeviceRequest exactly) { this.exactly = new V1ExactDeviceRequestBuilder(exactly); this._visitables.get("exactly").add(this.exactly); } else { - this.exactly = null; this._visitables.get("exactly").remove(this.exactly); + this.exactly = null; } return (A) this; } @@ -326,7 +329,7 @@ public A withFirstAvailable(List firstAvailable) { this._visitables.get("firstAvailable").clear(); } if (firstAvailable != null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); for (V1DeviceSubRequest item : firstAvailable) { this.addToFirstAvailable(item); } @@ -355,11 +358,11 @@ public A withName(String name) { } public ExactlyNested withNewExactly() { - return new ExactlyNested(null); + return new ExactlyNested<>(null); } public ExactlyNested withNewExactlyLike(V1ExactDeviceRequest item) { - return new ExactlyNested(item); + return new ExactlyNested<>(item); } public class ExactlyNested extends V1ExactDeviceRequestFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java index 187d3ad8f1..132485a075 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceSelectorBuilder extends V1DeviceSelectorFluent implements VisitableBuilder{ V1DeviceSelectorFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java index f8517ae12b..479b132e04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceSelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceSelectorFluent> extends BaseFluent{ private V1CELDeviceSelectorBuilder cel; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceSelectorFluent that = (V1DeviceSelectorFluent) o; + V1DeviceSelectorFluent that = (V1DeviceSelectorFluent) o; if (!(Objects.equals(cel, that.cel))) { return false; } @@ -101,18 +103,18 @@ public A withCel(V1CELDeviceSelector cel) { this.cel = new V1CELDeviceSelectorBuilder(cel); this._visitables.get("cel").add(this.cel); } else { - this.cel = null; this._visitables.get("cel").remove(this.cel); + this.cel = null; } return (A) this; } public CelNested withNewCel() { - return new CelNested(null); + return new CelNested<>(null); } public CelNested withNewCelLike(V1CELDeviceSelector item) { - return new CelNested(item); + return new CelNested<>(item); } public class CelNested extends V1CELDeviceSelectorFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java index 3c4ddbc169..e630952bf0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceSubRequestBuilder extends V1DeviceSubRequestFluent implements VisitableBuilder{ V1DeviceSubRequestFluent fluent; @@ -41,6 +42,7 @@ public V1DeviceSubRequest build() { buildable.setAllocationMode(fluent.getAllocationMode()); buildable.setCapacity(fluent.buildCapacity()); buildable.setCount(fluent.getCount()); + buildable.setDerivedAttributes(fluent.buildDerivedAttributes()); buildable.setDeviceClassName(fluent.getDeviceClassName()); buildable.setName(fluent.getName()); buildable.setSelectors(fluent.buildSelectors()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java index 2f4a09776d..714ea272c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java @@ -27,16 +27,19 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceSubRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceSubRequestFluent> extends BaseFluent{ private String allocationMode; private V1CapacityRequirementsBuilder capacity; private Long count; + private ArrayList derivedAttributes; private String deviceClassName; private String name; private ArrayList selectors; @@ -49,9 +52,21 @@ public V1DeviceSubRequestFluent(V1DeviceSubRequest instance) { this.copyInstance(instance); } + public A addAllToDerivedAttributes(Collection items) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + for (V1DeviceDerivedAttribute item : items) { + V1DeviceDerivedAttributeBuilder builder = new V1DeviceDerivedAttributeBuilder(item); + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } + return (A) this; + } + public A addAllToSelectors(Collection items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1DeviceSelector item : items) { V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); @@ -63,7 +78,7 @@ public A addAllToSelectors(Collection items) { public A addAllToTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1DeviceToleration item : items) { V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); @@ -73,25 +88,60 @@ public A addAllToTolerations(Collection items) { return (A) this; } + public DerivedAttributesNested addNewDerivedAttribute() { + return new DerivedAttributesNested<>(-1, null); + } + + public DerivedAttributesNested addNewDerivedAttributeLike(V1DeviceDerivedAttribute item) { + return new DerivedAttributesNested<>(-1, item); + } + public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + return new SelectorsNested<>(-1, null); } public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { - return new SelectorsNested(-1, item); + return new SelectorsNested<>(-1, item); } public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + return new TolerationsNested<>(-1, null); } public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { - return new TolerationsNested(-1, item); + return new TolerationsNested<>(-1, item); + } + + public A addToDerivedAttributes(V1DeviceDerivedAttribute... items) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + for (V1DeviceDerivedAttribute item : items) { + V1DeviceDerivedAttributeBuilder builder = new V1DeviceDerivedAttributeBuilder(item); + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } + return (A) this; + } + + public A addToDerivedAttributes(int index,V1DeviceDerivedAttribute item) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + V1DeviceDerivedAttributeBuilder builder = new V1DeviceDerivedAttributeBuilder(item); + if (index < 0 || index >= this.derivedAttributes.size()) { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } else { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(index, builder); + } + return (A) this; } public A addToSelectors(V1DeviceSelector... items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1DeviceSelector item : items) { V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); @@ -103,7 +153,7 @@ public A addToSelectors(V1DeviceSelector... items) { public A addToSelectors(int index,V1DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -118,7 +168,7 @@ public A addToSelectors(int index,V1DeviceSelector item) { public A addToTolerations(V1DeviceToleration... items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1DeviceToleration item : items) { V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); @@ -130,7 +180,7 @@ public A addToTolerations(V1DeviceToleration... items) { public A addToTolerations(int index,V1DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -147,6 +197,18 @@ public V1CapacityRequirements buildCapacity() { return this.capacity != null ? this.capacity.build() : null; } + public V1DeviceDerivedAttribute buildDerivedAttribute(int index) { + return this.derivedAttributes.get(index).build(); + } + + public List buildDerivedAttributes() { + return this.derivedAttributes != null ? build(derivedAttributes) : null; + } + + public V1DeviceDerivedAttribute buildFirstDerivedAttribute() { + return this.derivedAttributes.get(0).build(); + } + public V1DeviceSelector buildFirstSelector() { return this.selectors.get(0).build(); } @@ -155,6 +217,10 @@ public V1DeviceToleration buildFirstToleration() { return this.tolerations.get(0).build(); } + public V1DeviceDerivedAttribute buildLastDerivedAttribute() { + return this.derivedAttributes.get(derivedAttributes.size() - 1).build(); + } + public V1DeviceSelector buildLastSelector() { return this.selectors.get(selectors.size() - 1).build(); } @@ -163,6 +229,15 @@ public V1DeviceToleration buildLastToleration() { return this.tolerations.get(tolerations.size() - 1).build(); } + public V1DeviceDerivedAttribute buildMatchingDerivedAttribute(Predicate predicate) { + for (V1DeviceDerivedAttributeBuilder item : derivedAttributes) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + public V1DeviceSelector buildMatchingSelector(Predicate predicate) { for (V1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -203,6 +278,7 @@ protected void copyInstance(V1DeviceSubRequest instance) { this.withAllocationMode(instance.getAllocationMode()); this.withCapacity(instance.getCapacity()); this.withCount(instance.getCount()); + this.withDerivedAttributes(instance.getDerivedAttributes()); this.withDeviceClassName(instance.getDeviceClassName()); this.withName(instance.getName()); this.withSelectors(instance.getSelectors()); @@ -214,6 +290,20 @@ public CapacityNested editCapacity() { return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); } + public DerivedAttributesNested editDerivedAttribute(int index) { + if (derivedAttributes.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + + public DerivedAttributesNested editFirstDerivedAttribute() { + if (derivedAttributes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(0, this.buildDerivedAttribute(0)); + } + public SelectorsNested editFirstSelector() { if (selectors.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); @@ -228,6 +318,14 @@ public TolerationsNested editFirstToleration() { return this.setNewTolerationLike(0, this.buildToleration(0)); } + public DerivedAttributesNested editLastDerivedAttribute() { + int index = derivedAttributes.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + public SelectorsNested editLastSelector() { int index = selectors.size() - 1; if (index < 0) { @@ -244,6 +342,20 @@ public TolerationsNested editLastToleration() { return this.setNewTolerationLike(index, this.buildToleration(index)); } + public DerivedAttributesNested editMatchingDerivedAttribute(Predicate predicate) { + int index = -1; + for (int i = 0;i < derivedAttributes.size();i++) { + if (predicate.test(derivedAttributes.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; for (int i = 0;i < selectors.size();i++) { @@ -304,7 +416,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceSubRequestFluent that = (V1DeviceSubRequestFluent) o; + V1DeviceSubRequestFluent that = (V1DeviceSubRequestFluent) o; if (!(Objects.equals(allocationMode, that.allocationMode))) { return false; } @@ -314,6 +426,9 @@ public boolean equals(Object o) { if (!(Objects.equals(count, that.count))) { return false; } + if (!(Objects.equals(derivedAttributes, that.derivedAttributes))) { + return false; + } if (!(Objects.equals(deviceClassName, that.deviceClassName))) { return false; } @@ -357,10 +472,23 @@ public boolean hasCount() { return this.count != null; } + public boolean hasDerivedAttributes() { + return this.derivedAttributes != null && !(this.derivedAttributes.isEmpty()); + } + public boolean hasDeviceClassName() { return this.deviceClassName != null; } + public boolean hasMatchingDerivedAttribute(Predicate predicate) { + for (V1DeviceDerivedAttributeBuilder item : derivedAttributes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingSelector(Predicate predicate) { for (V1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -392,7 +520,19 @@ public boolean hasTolerations() { } public int hashCode() { - return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + return Objects.hash(allocationMode, capacity, count, derivedAttributes, deviceClassName, name, selectors, tolerations); + } + + public A removeAllFromDerivedAttributes(Collection items) { + if (this.derivedAttributes == null) { + return (A) this; + } + for (V1DeviceDerivedAttribute item : items) { + V1DeviceDerivedAttributeBuilder builder = new V1DeviceDerivedAttributeBuilder(item); + _visitables.get("derivedAttributes").remove(builder); + this.derivedAttributes.remove(builder); + } + return (A) this; } public A removeAllFromSelectors(Collection items) { @@ -419,6 +559,18 @@ public A removeAllFromTolerations(Collection items) { return (A) this; } + public A removeFromDerivedAttributes(V1DeviceDerivedAttribute... items) { + if (this.derivedAttributes == null) { + return (A) this; + } + for (V1DeviceDerivedAttribute item : items) { + V1DeviceDerivedAttributeBuilder builder = new V1DeviceDerivedAttributeBuilder(item); + _visitables.get("derivedAttributes").remove(builder); + this.derivedAttributes.remove(builder); + } + return (A) this; + } + public A removeFromSelectors(V1DeviceSelector... items) { if (this.selectors == null) { return (A) this; @@ -443,11 +595,29 @@ public A removeFromTolerations(V1DeviceToleration... items) { return (A) this; } + public A removeMatchingFromDerivedAttributes(Predicate predicate) { + if (derivedAttributes == null) { + return (A) this; + } + Iterator each = derivedAttributes.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("derivedAttributes"); + while (each.hasNext()) { + V1DeviceDerivedAttributeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public A removeMatchingFromSelectors(Predicate predicate) { if (selectors == null) { return (A) this; } Iterator each = selectors.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1DeviceSelectorBuilder builder = each.next(); @@ -464,6 +634,7 @@ public A removeMatchingFromTolerations(Predicate pred return (A) this; } Iterator each = tolerations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1DeviceTolerationBuilder builder = each.next(); @@ -475,17 +646,36 @@ public A removeMatchingFromTolerations(Predicate pred return (A) this; } + public DerivedAttributesNested setNewDerivedAttributeLike(int index,V1DeviceDerivedAttribute item) { + return new DerivedAttributesNested<>(index, item); + } + public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { - return new SelectorsNested(index, item); + return new SelectorsNested<>(index, item); } public TolerationsNested setNewTolerationLike(int index,V1DeviceToleration item) { - return new TolerationsNested(index, item); + return new TolerationsNested<>(index, item); + } + + public A setToDerivedAttributes(int index,V1DeviceDerivedAttribute item) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + V1DeviceDerivedAttributeBuilder builder = new V1DeviceDerivedAttributeBuilder(item); + if (index < 0 || index >= this.derivedAttributes.size()) { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } else { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.set(index, builder); + } + return (A) this; } public A setToSelectors(int index,V1DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -500,7 +690,7 @@ public A setToSelectors(int index,V1DeviceSelector item) { public A setToTolerations(int index,V1DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -531,6 +721,11 @@ public String toString() { sb.append(count); sb.append(","); } + if (!(derivedAttributes == null) && !(derivedAttributes.isEmpty())) { + sb.append("derivedAttributes:"); + sb.append(derivedAttributes); + sb.append(","); + } if (!(deviceClassName == null)) { sb.append("deviceClassName:"); sb.append(deviceClassName); @@ -565,8 +760,8 @@ public A withCapacity(V1CapacityRequirements capacity) { this.capacity = new V1CapacityRequirementsBuilder(capacity); this._visitables.get("capacity").add(this.capacity); } else { - this.capacity = null; this._visitables.get("capacity").remove(this.capacity); + this.capacity = null; } return (A) this; } @@ -576,6 +771,34 @@ public A withCount(Long count) { return (A) this; } + public A withDerivedAttributes(List derivedAttributes) { + if (this.derivedAttributes != null) { + this._visitables.get("derivedAttributes").clear(); + } + if (derivedAttributes != null) { + this.derivedAttributes = new ArrayList<>(); + for (V1DeviceDerivedAttribute item : derivedAttributes) { + this.addToDerivedAttributes(item); + } + } else { + this.derivedAttributes = null; + } + return (A) this; + } + + public A withDerivedAttributes(V1DeviceDerivedAttribute... derivedAttributes) { + if (this.derivedAttributes != null) { + this.derivedAttributes.clear(); + _visitables.remove("derivedAttributes"); + } + if (derivedAttributes != null) { + for (V1DeviceDerivedAttribute item : derivedAttributes) { + this.addToDerivedAttributes(item); + } + } + return (A) this; + } + public A withDeviceClassName(String deviceClassName) { this.deviceClassName = deviceClassName; return (A) this; @@ -587,11 +810,11 @@ public A withName(String name) { } public CapacityNested withNewCapacity() { - return new CapacityNested(null); + return new CapacityNested<>(null); } public CapacityNested withNewCapacityLike(V1CapacityRequirements item) { - return new CapacityNested(item); + return new CapacityNested<>(item); } public A withSelectors(List selectors) { @@ -599,7 +822,7 @@ public A withSelectors(List selectors) { this._visitables.get("selectors").clear(); } if (selectors != null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); for (V1DeviceSelector item : selectors) { this.addToSelectors(item); } @@ -627,7 +850,7 @@ public A withTolerations(List tolerations) { this._visitables.get("tolerations").clear(); } if (tolerations != null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); for (V1DeviceToleration item : tolerations) { this.addToTolerations(item); } @@ -665,6 +888,25 @@ public N endCapacity() { return and(); } + } + public class DerivedAttributesNested extends V1DeviceDerivedAttributeFluent> implements Nested{ + + V1DeviceDerivedAttributeBuilder builder; + int index; + + DerivedAttributesNested(int index,V1DeviceDerivedAttribute item) { + this.index = index; + this.builder = new V1DeviceDerivedAttributeBuilder(this, item); + } + + public N and() { + return (N) V1DeviceSubRequestFluent.this.setToDerivedAttributes(index, builder.build()); + } + + public N endDerivedAttribute() { + return and(); + } + } public class SelectorsNested extends V1DeviceSelectorFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java index 56a3aab7f8..f5ac949549 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceTaintBuilder extends V1DeviceTaintFluent implements VisitableBuilder{ V1DeviceTaintFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java index bba2aed590..1a2f4d9941 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceTaintFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceTaintFluent> extends BaseFluent{ private String effect; private String key; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceTaintFluent that = (V1DeviceTaintFluent) o; + V1DeviceTaintFluent that = (V1DeviceTaintFluent) o; if (!(Objects.equals(effect, that.effect))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleBuilder.java new file mode 100644 index 0000000000..cb0d3c5fb5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleBuilder.java @@ -0,0 +1,50 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1DeviceTaintRuleBuilder extends V1DeviceTaintRuleFluent implements VisitableBuilder{ + + V1DeviceTaintRuleFluent fluent; + + public V1DeviceTaintRuleBuilder() { + this(new V1DeviceTaintRule()); + } + + public V1DeviceTaintRuleBuilder(V1DeviceTaintRuleFluent fluent) { + this(fluent, new V1DeviceTaintRule()); + } + + public V1DeviceTaintRuleBuilder(V1DeviceTaintRule instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceTaintRuleBuilder(V1DeviceTaintRuleFluent fluent,V1DeviceTaintRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceTaintRule build() { + V1DeviceTaintRule buildable = new V1DeviceTaintRule(); + 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/V1DeviceTaintRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleFluent.java new file mode 100644 index 0000000000..2d1f799c34 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleFluent.java @@ -0,0 +1,316 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceTaintRuleFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1DeviceTaintRuleSpecBuilder spec; + private V1DeviceTaintRuleStatusBuilder status; + + public V1DeviceTaintRuleFluent() { + } + + public V1DeviceTaintRuleFluent(V1DeviceTaintRule instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1DeviceTaintRuleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1DeviceTaintRuleStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + protected void copyInstance(V1DeviceTaintRule instance) { + instance = instance != null ? instance : new V1DeviceTaintRule(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1DeviceTaintRuleSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1DeviceTaintRuleSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1DeviceTaintRuleStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1DeviceTaintRuleStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceTaintRuleFluent that = (V1DeviceTaintRuleFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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._visitables.get("metadata").remove(this.metadata); + this.metadata = null; + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested<>(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested<>(item); + } + + public SpecNested withNewSpec() { + return new SpecNested<>(null); + } + + public SpecNested withNewSpecLike(V1DeviceTaintRuleSpec item) { + return new SpecNested<>(item); + } + + public StatusNested withNewStatus() { + return new StatusNested<>(null); + } + + public StatusNested withNewStatusLike(V1DeviceTaintRuleStatus item) { + return new StatusNested<>(item); + } + + public A withSpec(V1DeviceTaintRuleSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1DeviceTaintRuleSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this._visitables.get("spec").remove(this.spec); + this.spec = null; + } + return (A) this; + } + + public A withStatus(V1DeviceTaintRuleStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1DeviceTaintRuleStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this._visitables.get("status").remove(this.status); + this.status = null; + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1DeviceTaintRuleFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1DeviceTaintRuleSpecFluent> implements Nested{ + + V1DeviceTaintRuleSpecBuilder builder; + + SpecNested(V1DeviceTaintRuleSpec item) { + this.builder = new V1DeviceTaintRuleSpecBuilder(this, item); + } + + public N and() { + return (N) V1DeviceTaintRuleFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1DeviceTaintRuleStatusFluent> implements Nested{ + + V1DeviceTaintRuleStatusBuilder builder; + + StatusNested(V1DeviceTaintRuleStatus item) { + this.builder = new V1DeviceTaintRuleStatusBuilder(this, item); + } + + public N and() { + return (N) V1DeviceTaintRuleFluent.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/V1DeviceTaintRuleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleListBuilder.java new file mode 100644 index 0000000000..442e521b00 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleListBuilder.java @@ -0,0 +1,49 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1DeviceTaintRuleListBuilder extends V1DeviceTaintRuleListFluent implements VisitableBuilder{ + + V1DeviceTaintRuleListFluent fluent; + + public V1DeviceTaintRuleListBuilder() { + this(new V1DeviceTaintRuleList()); + } + + public V1DeviceTaintRuleListBuilder(V1DeviceTaintRuleListFluent fluent) { + this(fluent, new V1DeviceTaintRuleList()); + } + + public V1DeviceTaintRuleListBuilder(V1DeviceTaintRuleList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceTaintRuleListBuilder(V1DeviceTaintRuleListFluent fluent,V1DeviceTaintRuleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceTaintRuleList build() { + V1DeviceTaintRuleList buildable = new V1DeviceTaintRuleList(); + 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/V1DeviceTaintRuleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleListFluent.java new file mode 100644 index 0000000000..bc509f1568 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleListFluent.java @@ -0,0 +1,426 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceTaintRuleListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1DeviceTaintRuleListFluent() { + } + + public V1DeviceTaintRuleListFluent(V1DeviceTaintRuleList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + for (V1DeviceTaintRule item : items) { + V1DeviceTaintRuleBuilder builder = new V1DeviceTaintRuleBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested<>(-1, null); + } + + public ItemsNested addNewItemLike(V1DeviceTaintRule item) { + return new ItemsNested<>(-1, item); + } + + public A addToItems(V1DeviceTaintRule... items) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + for (V1DeviceTaintRule item : items) { + V1DeviceTaintRuleBuilder builder = new V1DeviceTaintRuleBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1DeviceTaintRule item) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + V1DeviceTaintRuleBuilder builder = new V1DeviceTaintRuleBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.add(index, builder); + } + return (A) this; + } + + public V1DeviceTaintRule buildFirstItem() { + return this.items.get(0).build(); + } + + public V1DeviceTaintRule buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1DeviceTaintRule buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1DeviceTaintRule buildMatchingItem(Predicate predicate) { + for (V1DeviceTaintRuleBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1DeviceTaintRuleList instance) { + instance = instance != null ? instance : new V1DeviceTaintRuleList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceTaintRuleListFluent that = (V1DeviceTaintRuleListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1DeviceTaintRuleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1DeviceTaintRule item : items) { + V1DeviceTaintRuleBuilder builder = new V1DeviceTaintRuleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1DeviceTaintRule... items) { + if (this.items == null) { + return (A) this; + } + for (V1DeviceTaintRule item : items) { + V1DeviceTaintRuleBuilder builder = new V1DeviceTaintRuleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("items"); + while (each.hasNext()) { + V1DeviceTaintRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1DeviceTaintRule item) { + return new ItemsNested<>(index, item); + } + + public A setToItems(int index,V1DeviceTaintRule item) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + V1DeviceTaintRuleBuilder builder = new V1DeviceTaintRuleBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList<>(); + for (V1DeviceTaintRule item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1DeviceTaintRule... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1DeviceTaintRule item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested<>(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested<>(item); + } + public class ItemsNested extends V1DeviceTaintRuleFluent> implements Nested{ + + V1DeviceTaintRuleBuilder builder; + int index; + + ItemsNested(int index,V1DeviceTaintRule item) { + this.index = index; + this.builder = new V1DeviceTaintRuleBuilder(this, item); + } + + public N and() { + return (N) V1DeviceTaintRuleListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1DeviceTaintRuleListFluent.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/V1DeviceTaintRuleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleSpecBuilder.java new file mode 100644 index 0000000000..ac27a53e4c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleSpecBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1DeviceTaintRuleSpecBuilder extends V1DeviceTaintRuleSpecFluent implements VisitableBuilder{ + + V1DeviceTaintRuleSpecFluent fluent; + + public V1DeviceTaintRuleSpecBuilder() { + this(new V1DeviceTaintRuleSpec()); + } + + public V1DeviceTaintRuleSpecBuilder(V1DeviceTaintRuleSpecFluent fluent) { + this(fluent, new V1DeviceTaintRuleSpec()); + } + + public V1DeviceTaintRuleSpecBuilder(V1DeviceTaintRuleSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceTaintRuleSpecBuilder(V1DeviceTaintRuleSpecFluent fluent,V1DeviceTaintRuleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceTaintRuleSpec build() { + V1DeviceTaintRuleSpec buildable = new V1DeviceTaintRuleSpec(); + 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/V1DeviceTaintRuleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleSpecFluent.java new file mode 100644 index 0000000000..c984d7c1e8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleSpecFluent.java @@ -0,0 +1,203 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceTaintRuleSpecFluent> extends BaseFluent{ + + private V1DeviceTaintSelectorBuilder deviceSelector; + private V1DeviceTaintBuilder taint; + + public V1DeviceTaintRuleSpecFluent() { + } + + public V1DeviceTaintRuleSpecFluent(V1DeviceTaintRuleSpec instance) { + this.copyInstance(instance); + } + + public V1DeviceTaintSelector buildDeviceSelector() { + return this.deviceSelector != null ? this.deviceSelector.build() : null; + } + + public V1DeviceTaint buildTaint() { + return this.taint != null ? this.taint.build() : null; + } + + protected void copyInstance(V1DeviceTaintRuleSpec instance) { + instance = instance != null ? instance : new V1DeviceTaintRuleSpec(); + if (instance != null) { + this.withDeviceSelector(instance.getDeviceSelector()); + this.withTaint(instance.getTaint()); + } + } + + public DeviceSelectorNested editDeviceSelector() { + return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(null)); + } + + public DeviceSelectorNested editOrNewDeviceSelector() { + return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(new V1DeviceTaintSelectorBuilder().build())); + } + + public DeviceSelectorNested editOrNewDeviceSelectorLike(V1DeviceTaintSelector item) { + return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(item)); + } + + public TaintNested editOrNewTaint() { + return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(new V1DeviceTaintBuilder().build())); + } + + public TaintNested editOrNewTaintLike(V1DeviceTaint item) { + return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(item)); + } + + public TaintNested editTaint() { + return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceTaintRuleSpecFluent that = (V1DeviceTaintRuleSpecFluent) o; + if (!(Objects.equals(deviceSelector, that.deviceSelector))) { + return false; + } + if (!(Objects.equals(taint, that.taint))) { + return false; + } + return true; + } + + public boolean hasDeviceSelector() { + return this.deviceSelector != null; + } + + public boolean hasTaint() { + return this.taint != null; + } + + public int hashCode() { + return Objects.hash(deviceSelector, taint); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(deviceSelector == null)) { + sb.append("deviceSelector:"); + sb.append(deviceSelector); + sb.append(","); + } + if (!(taint == null)) { + sb.append("taint:"); + sb.append(taint); + } + sb.append("}"); + return sb.toString(); + } + + public A withDeviceSelector(V1DeviceTaintSelector deviceSelector) { + this._visitables.remove("deviceSelector"); + if (deviceSelector != null) { + this.deviceSelector = new V1DeviceTaintSelectorBuilder(deviceSelector); + this._visitables.get("deviceSelector").add(this.deviceSelector); + } else { + this._visitables.get("deviceSelector").remove(this.deviceSelector); + this.deviceSelector = null; + } + return (A) this; + } + + public DeviceSelectorNested withNewDeviceSelector() { + return new DeviceSelectorNested<>(null); + } + + public DeviceSelectorNested withNewDeviceSelectorLike(V1DeviceTaintSelector item) { + return new DeviceSelectorNested<>(item); + } + + public TaintNested withNewTaint() { + return new TaintNested<>(null); + } + + public TaintNested withNewTaintLike(V1DeviceTaint item) { + return new TaintNested<>(item); + } + + public A withTaint(V1DeviceTaint taint) { + this._visitables.remove("taint"); + if (taint != null) { + this.taint = new V1DeviceTaintBuilder(taint); + this._visitables.get("taint").add(this.taint); + } else { + this._visitables.get("taint").remove(this.taint); + this.taint = null; + } + return (A) this; + } + public class DeviceSelectorNested extends V1DeviceTaintSelectorFluent> implements Nested{ + + V1DeviceTaintSelectorBuilder builder; + + DeviceSelectorNested(V1DeviceTaintSelector item) { + this.builder = new V1DeviceTaintSelectorBuilder(this, item); + } + + public N and() { + return (N) V1DeviceTaintRuleSpecFluent.this.withDeviceSelector(builder.build()); + } + + public N endDeviceSelector() { + return and(); + } + + } + public class TaintNested extends V1DeviceTaintFluent> implements Nested{ + + V1DeviceTaintBuilder builder; + + TaintNested(V1DeviceTaint item) { + this.builder = new V1DeviceTaintBuilder(this, item); + } + + public N and() { + return (N) V1DeviceTaintRuleSpecFluent.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/V1beta1ServiceCIDRStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleStatusBuilder.java similarity index 51% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleStatusBuilder.java index 60b8c39df7..d09f7d806b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleStatusBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1beta1ServiceCIDRStatusBuilder extends V1beta1ServiceCIDRStatusFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1DeviceTaintRuleStatusBuilder extends V1DeviceTaintRuleStatusFluent implements VisitableBuilder{ - V1beta1ServiceCIDRStatusFluent fluent; + V1DeviceTaintRuleStatusFluent fluent; - public V1beta1ServiceCIDRStatusBuilder() { - this(new V1beta1ServiceCIDRStatus()); + public V1DeviceTaintRuleStatusBuilder() { + this(new V1DeviceTaintRuleStatus()); } - public V1beta1ServiceCIDRStatusBuilder(V1beta1ServiceCIDRStatusFluent fluent) { - this(fluent, new V1beta1ServiceCIDRStatus()); + public V1DeviceTaintRuleStatusBuilder(V1DeviceTaintRuleStatusFluent fluent) { + this(fluent, new V1DeviceTaintRuleStatus()); } - public V1beta1ServiceCIDRStatusBuilder(V1beta1ServiceCIDRStatus instance) { + public V1DeviceTaintRuleStatusBuilder(V1DeviceTaintRuleStatus instance) { this.fluent = this; this.copyInstance(instance); } - public V1beta1ServiceCIDRStatusBuilder(V1beta1ServiceCIDRStatusFluent fluent,V1beta1ServiceCIDRStatus instance) { + public V1DeviceTaintRuleStatusBuilder(V1DeviceTaintRuleStatusFluent fluent,V1DeviceTaintRuleStatus instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1beta1ServiceCIDRStatus build() { - V1beta1ServiceCIDRStatus buildable = new V1beta1ServiceCIDRStatus(); + public V1DeviceTaintRuleStatus build() { + V1DeviceTaintRuleStatus buildable = new V1DeviceTaintRuleStatus(); buildable.setConditions(fluent.buildConditions()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleStatusFluent.java similarity index 88% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleStatusFluent.java index e96b6b19a9..5f9f66797f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleStatusFluent.java @@ -25,25 +25,27 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ServiceCIDRStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceTaintRuleStatusFluent> extends BaseFluent{ private ArrayList conditions; - public V1beta1ServiceCIDRStatusFluent() { + public V1DeviceTaintRuleStatusFluent() { } - public V1beta1ServiceCIDRStatusFluent(V1beta1ServiceCIDRStatus instance) { + public V1DeviceTaintRuleStatusFluent(V1DeviceTaintRuleStatus instance) { this.copyInstance(instance); } public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -54,16 +56,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -75,7 +77,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -113,8 +115,8 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } - protected void copyInstance(V1beta1ServiceCIDRStatus instance) { - instance = instance != null ? instance : new V1beta1ServiceCIDRStatus(); + protected void copyInstance(V1DeviceTaintRuleStatus instance) { + instance = instance != null ? instance : new V1DeviceTaintRuleStatus(); if (instance != null) { this.withConditions(instance.getConditions()); } @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ServiceCIDRStatusFluent that = (V1beta1ServiceCIDRStatusFluent) o; + V1DeviceTaintRuleStatusFluent that = (V1DeviceTaintRuleStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromConditions(Predicate predicate) { } public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -265,7 +268,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } @@ -298,7 +301,7 @@ public class ConditionsNested extends V1ConditionFluent> } public N and() { - return (N) V1beta1ServiceCIDRStatusFluent.this.setToConditions(index, builder.build()); + return (N) V1DeviceTaintRuleStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintSelectorBuilder.java new file mode 100644 index 0000000000..16bea10861 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintSelectorBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1DeviceTaintSelectorBuilder extends V1DeviceTaintSelectorFluent implements VisitableBuilder{ + + V1DeviceTaintSelectorFluent fluent; + + public V1DeviceTaintSelectorBuilder() { + this(new V1DeviceTaintSelector()); + } + + public V1DeviceTaintSelectorBuilder(V1DeviceTaintSelectorFluent fluent) { + this(fluent, new V1DeviceTaintSelector()); + } + + public V1DeviceTaintSelectorBuilder(V1DeviceTaintSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceTaintSelectorBuilder(V1DeviceTaintSelectorFluent fluent,V1DeviceTaintSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceTaintSelector build() { + V1DeviceTaintSelector buildable = new V1DeviceTaintSelector(); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setPool(fluent.getPool()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintSelectorFluent.java new file mode 100644 index 0000000000..392b4e8c9b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintSelectorFluent.java @@ -0,0 +1,137 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceTaintSelectorFluent> extends BaseFluent{ + + private String device; + private String driver; + private String pool; + + public V1DeviceTaintSelectorFluent() { + } + + public V1DeviceTaintSelectorFluent(V1DeviceTaintSelector instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1DeviceTaintSelector instance) { + instance = instance != null ? instance : new V1DeviceTaintSelector(); + if (instance != null) { + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceTaintSelectorFluent that = (V1DeviceTaintSelectorFluent) o; + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + return true; + } + + public String getDevice() { + return this.device; + } + + public String getDriver() { + return this.driver; + } + + public String getPool() { + return this.pool; + } + + public boolean hasDevice() { + return this.device != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasPool() { + return this.pool != null; + } + + public int hashCode() { + return Objects.hash(device, driver, pool); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(device == null)) { + sb.append("device:"); + sb.append(device); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + } + sb.append("}"); + return sb.toString(); + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java index 3eb689b45b..590aa0c848 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DeviceTolerationBuilder extends V1DeviceTolerationFluent implements VisitableBuilder{ V1DeviceTolerationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java index d14c6fda5c..8f1fb7a19f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DeviceTolerationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DeviceTolerationFluent> extends BaseFluent{ private String effect; private String key; @@ -60,7 +62,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DeviceTolerationFluent that = (V1DeviceTolerationFluent) o; + V1DeviceTolerationFluent that = (V1DeviceTolerationFluent) o; if (!(Objects.equals(effect, that.effect))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java index 56790c61bd..0d0ae7cc2e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DownwardAPIProjectionBuilder extends V1DownwardAPIProjectionFluent implements VisitableBuilder{ V1DownwardAPIProjectionFluent fluent; 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 ae16f5681d..21e19faaf4 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DownwardAPIProjectionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DownwardAPIProjectionFluent> extends BaseFluent{ private ArrayList items; @@ -43,7 +45,7 @@ public V1DownwardAPIProjectionFluent(V1DownwardAPIProjection instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1DownwardAPIVolumeFile item : items) { V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); @@ -54,16 +56,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1DownwardAPIVolumeFile... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1DownwardAPIVolumeFile item : items) { V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); @@ -75,7 +77,7 @@ public A addToItems(V1DownwardAPIVolumeFile... items) { public A addToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DownwardAPIProjectionFluent that = (V1DownwardAPIProjectionFluent) o; + V1DownwardAPIProjectionFluent that = (V1DownwardAPIProjectionFluent) o; if (!(Objects.equals(items, that.items))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1DownwardAPIVolumeFileBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromItems(Predicate predi } public ItemsNested setNewItemLike(int index,V1DownwardAPIVolumeFile item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -265,7 +268,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1DownwardAPIVolumeFile item : items) { this.addToItems(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java index 9d84c0ac05..8b505f295b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DownwardAPIVolumeFileBuilder extends V1DownwardAPIVolumeFileFluent implements VisitableBuilder{ V1DownwardAPIVolumeFileFluent fluent; @@ -42,6 +43,7 @@ public V1DownwardAPIVolumeFile build() { buildable.setMode(fluent.getMode()); buildable.setPath(fluent.getPath()); buildable.setResourceFieldRef(fluent.buildResourceFieldRef()); + buildable.setUser(fluent.getUser()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java index cc260d285b..20dcab1662 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java @@ -15,23 +15,27 @@ import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; import java.lang.Integer; +import java.lang.Long; import java.lang.Object; import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DownwardAPIVolumeFileFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DownwardAPIVolumeFileFluent> extends BaseFluent{ private V1ObjectFieldSelectorBuilder fieldRef; private Integer mode; private String path; private V1ResourceFieldSelectorBuilder resourceFieldRef; + private Long user; public V1DownwardAPIVolumeFileFluent() { } @@ -55,6 +59,7 @@ protected void copyInstance(V1DownwardAPIVolumeFile instance) { this.withMode(instance.getMode()); this.withPath(instance.getPath()); this.withResourceFieldRef(instance.getResourceFieldRef()); + this.withUser(instance.getUser()); } } @@ -92,7 +97,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DownwardAPIVolumeFileFluent that = (V1DownwardAPIVolumeFileFluent) o; + V1DownwardAPIVolumeFileFluent that = (V1DownwardAPIVolumeFileFluent) o; if (!(Objects.equals(fieldRef, that.fieldRef))) { return false; } @@ -105,6 +110,9 @@ public boolean equals(Object o) { if (!(Objects.equals(resourceFieldRef, that.resourceFieldRef))) { return false; } + if (!(Objects.equals(user, that.user))) { + return false; + } return true; } @@ -116,6 +124,10 @@ public String getPath() { return this.path; } + public Long getUser() { + return this.user; + } + public boolean hasFieldRef() { return this.fieldRef != null; } @@ -132,8 +144,12 @@ public boolean hasResourceFieldRef() { return this.resourceFieldRef != null; } + public boolean hasUser() { + return this.user != null; + } + public int hashCode() { - return Objects.hash(fieldRef, mode, path, resourceFieldRef); + return Objects.hash(fieldRef, mode, path, resourceFieldRef, user); } public String toString() { @@ -157,6 +173,11 @@ public String toString() { if (!(resourceFieldRef == null)) { sb.append("resourceFieldRef:"); sb.append(resourceFieldRef); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); } sb.append("}"); return sb.toString(); @@ -168,8 +189,8 @@ public A withFieldRef(V1ObjectFieldSelector fieldRef) { this.fieldRef = new V1ObjectFieldSelectorBuilder(fieldRef); this._visitables.get("fieldRef").add(this.fieldRef); } else { - this.fieldRef = null; this._visitables.get("fieldRef").remove(this.fieldRef); + this.fieldRef = null; } return (A) this; } @@ -180,19 +201,19 @@ public A withMode(Integer mode) { } public FieldRefNested withNewFieldRef() { - return new FieldRefNested(null); + return new FieldRefNested<>(null); } public FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { - return new FieldRefNested(item); + return new FieldRefNested<>(item); } public ResourceFieldRefNested withNewResourceFieldRef() { - return new ResourceFieldRefNested(null); + return new ResourceFieldRefNested<>(null); } public ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item) { - return new ResourceFieldRefNested(item); + return new ResourceFieldRefNested<>(item); } public A withPath(String path) { @@ -206,11 +227,16 @@ public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { this.resourceFieldRef = new V1ResourceFieldSelectorBuilder(resourceFieldRef); this._visitables.get("resourceFieldRef").add(this.resourceFieldRef); } else { - this.resourceFieldRef = null; this._visitables.get("resourceFieldRef").remove(this.resourceFieldRef); + this.resourceFieldRef = null; } return (A) this; } + + public A withUser(Long user) { + this.user = user; + return (A) this; + } public class FieldRefNested extends V1ObjectFieldSelectorFluent> implements Nested{ V1ObjectFieldSelectorBuilder builder; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java index 989932b5b9..da5a91bd3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1DownwardAPIVolumeSourceBuilder extends V1DownwardAPIVolumeSourceFluent implements VisitableBuilder{ V1DownwardAPIVolumeSourceFluent fluent; @@ -39,6 +40,7 @@ public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSourceFluent fluen public V1DownwardAPIVolumeSource build() { V1DownwardAPIVolumeSource buildable = new V1DownwardAPIVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); + buildable.setDefaultUser(fluent.getDefaultUser()); buildable.setItems(fluent.buildItems()); return buildable; } 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 6dfa083007..ca06d525aa 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 @@ -15,6 +15,7 @@ import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; import java.lang.Integer; +import java.lang.Long; import java.lang.Object; import java.lang.RuntimeException; import java.lang.String; @@ -26,14 +27,17 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1DownwardAPIVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1DownwardAPIVolumeSourceFluent> extends BaseFluent{ private Integer defaultMode; + private Long defaultUser; private ArrayList items; public V1DownwardAPIVolumeSourceFluent() { @@ -45,7 +49,7 @@ public V1DownwardAPIVolumeSourceFluent(V1DownwardAPIVolumeSource instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1DownwardAPIVolumeFile item : items) { V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); @@ -56,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1DownwardAPIVolumeFile... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1DownwardAPIVolumeFile item : items) { V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); @@ -77,7 +81,7 @@ public A addToItems(V1DownwardAPIVolumeFile... items) { public A addToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -119,6 +123,7 @@ protected void copyInstance(V1DownwardAPIVolumeSource instance) { instance = instance != null ? instance : new V1DownwardAPIVolumeSource(); if (instance != null) { this.withDefaultMode(instance.getDefaultMode()); + this.withDefaultUser(instance.getDefaultUser()); this.withItems(instance.getItems()); } } @@ -169,10 +174,13 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1DownwardAPIVolumeSourceFluent that = (V1DownwardAPIVolumeSourceFluent) o; + V1DownwardAPIVolumeSourceFluent that = (V1DownwardAPIVolumeSourceFluent) o; if (!(Objects.equals(defaultMode, that.defaultMode))) { return false; } + if (!(Objects.equals(defaultUser, that.defaultUser))) { + return false; + } if (!(Objects.equals(items, that.items))) { return false; } @@ -183,10 +191,18 @@ public Integer getDefaultMode() { return this.defaultMode; } + public Long getDefaultUser() { + return this.defaultUser; + } + public boolean hasDefaultMode() { return this.defaultMode != null; } + public boolean hasDefaultUser() { + return this.defaultUser != null; + } + public boolean hasItems() { return this.items != null && !(this.items.isEmpty()); } @@ -201,7 +217,7 @@ public boolean hasMatchingItem(Predicate predica } public int hashCode() { - return Objects.hash(defaultMode, items); + return Objects.hash(defaultMode, defaultUser, items); } public A removeAllFromItems(Collection items) { @@ -233,6 +249,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1DownwardAPIVolumeFileBuilder builder = each.next(); @@ -245,12 +262,12 @@ public A removeMatchingFromItems(Predicate predi } public ItemsNested setNewItemLike(int index,V1DownwardAPIVolumeFile item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -271,6 +288,11 @@ public String toString() { sb.append(defaultMode); sb.append(","); } + if (!(defaultUser == null)) { + sb.append("defaultUser:"); + sb.append(defaultUser); + sb.append(","); + } if (!(items == null) && !(items.isEmpty())) { sb.append("items:"); sb.append(items); @@ -284,12 +306,17 @@ public A withDefaultMode(Integer defaultMode) { return (A) this; } + public A withDefaultUser(Long defaultUser) { + this.defaultUser = defaultUser; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1DownwardAPIVolumeFile item : items) { this.addToItems(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java index 02ade2206e..c8397984d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EmptyDirVolumeSourceBuilder extends V1EmptyDirVolumeSourceFluent implements VisitableBuilder{ V1EmptyDirVolumeSourceFluent fluent; @@ -39,6 +40,7 @@ public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSourceFluent fluent,V1Em public V1EmptyDirVolumeSource build() { V1EmptyDirVolumeSource buildable = new V1EmptyDirVolumeSource(); buildable.setMedium(fluent.getMedium()); + buildable.setMode(fluent.getMode()); buildable.setSizeLimit(fluent.getSizeLimit()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java index a2fd7ec5c6..7c6b5ef48b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java @@ -14,19 +14,23 @@ import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EmptyDirVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EmptyDirVolumeSourceFluent> extends BaseFluent{ private String medium; + private Integer mode; private Quantity sizeLimit; public V1EmptyDirVolumeSourceFluent() { @@ -40,6 +44,7 @@ protected void copyInstance(V1EmptyDirVolumeSource instance) { instance = instance != null ? instance : new V1EmptyDirVolumeSource(); if (instance != null) { this.withMedium(instance.getMedium()); + this.withMode(instance.getMode()); this.withSizeLimit(instance.getSizeLimit()); } } @@ -54,10 +59,13 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EmptyDirVolumeSourceFluent that = (V1EmptyDirVolumeSourceFluent) o; + V1EmptyDirVolumeSourceFluent that = (V1EmptyDirVolumeSourceFluent) o; if (!(Objects.equals(medium, that.medium))) { return false; } + if (!(Objects.equals(mode, that.mode))) { + return false; + } if (!(Objects.equals(sizeLimit, that.sizeLimit))) { return false; } @@ -68,6 +76,10 @@ public String getMedium() { return this.medium; } + public Integer getMode() { + return this.mode; + } + public Quantity getSizeLimit() { return this.sizeLimit; } @@ -76,12 +88,16 @@ public boolean hasMedium() { return this.medium != null; } + public boolean hasMode() { + return this.mode != null; + } + public boolean hasSizeLimit() { return this.sizeLimit != null; } public int hashCode() { - return Objects.hash(medium, sizeLimit); + return Objects.hash(medium, mode, sizeLimit); } public String toString() { @@ -92,6 +108,11 @@ public String toString() { sb.append(medium); sb.append(","); } + if (!(mode == null)) { + sb.append("mode:"); + sb.append(mode); + sb.append(","); + } if (!(sizeLimit == null)) { sb.append("sizeLimit:"); sb.append(sizeLimit); @@ -105,6 +126,11 @@ public A withMedium(String medium) { return (A) this; } + public A withMode(Integer mode) { + this.mode = mode; + return (A) this; + } + public A withNewSizeLimit(String value) { return (A) this.withSizeLimit(new Quantity(value)); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java index e0bd3317bb..6d0e3c17ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EndpointAddressBuilder extends V1EndpointAddressFluent implements VisitableBuilder{ V1EndpointAddressFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java index 5a341f0114..2236478bb4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EndpointAddressFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EndpointAddressFluent> extends BaseFluent{ private String hostname; private String ip; @@ -75,7 +77,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EndpointAddressFluent that = (V1EndpointAddressFluent) o; + V1EndpointAddressFluent that = (V1EndpointAddressFluent) o; if (!(Objects.equals(hostname, that.hostname))) { return false; } @@ -160,11 +162,11 @@ public A withIp(String ip) { } public TargetRefNested withNewTargetRef() { - return new TargetRefNested(null); + return new TargetRefNested<>(null); } public TargetRefNested withNewTargetRefLike(V1ObjectReference item) { - return new TargetRefNested(item); + return new TargetRefNested<>(item); } public A withNodeName(String nodeName) { @@ -178,8 +180,8 @@ public A withTargetRef(V1ObjectReference targetRef) { this.targetRef = new V1ObjectReferenceBuilder(targetRef); this._visitables.get("targetRef").add(this.targetRef); } else { - this.targetRef = null; this._visitables.get("targetRef").remove(this.targetRef); + this.targetRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java index df84d66702..f630408422 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EndpointBuilder extends V1EndpointFluent implements VisitableBuilder{ V1EndpointFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java index dc8b8afb89..13388c6a7f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EndpointConditionsBuilder extends V1EndpointConditionsFluent implements VisitableBuilder{ V1EndpointConditionsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java index 7f37d7edb8..8fdefdaa32 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EndpointConditionsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EndpointConditionsFluent> extends BaseFluent{ private Boolean ready; private Boolean serving; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EndpointConditionsFluent that = (V1EndpointConditionsFluent) o; + V1EndpointConditionsFluent that = (V1EndpointConditionsFluent) o; if (!(Objects.equals(ready, that.ready))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java index 687b944cdc..3d57f241bf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EndpointFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EndpointFluent> extends BaseFluent{ private List addresses; private V1EndpointConditionsBuilder conditions; @@ -51,7 +53,7 @@ public V1EndpointFluent(V1Endpoint instance) { public A addAllToAddresses(Collection items) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } for (String item : items) { this.addresses.add(item); @@ -61,7 +63,7 @@ public A addAllToAddresses(Collection items) { public A addToAddresses(String... items) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } for (String item : items) { this.addresses.add(item); @@ -71,7 +73,7 @@ public A addToAddresses(String... items) { public A addToAddresses(int index,String item) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } this.addresses.add(index, item); return (A) this; @@ -79,7 +81,7 @@ public A addToAddresses(int index,String item) { public A addToDeprecatedTopology(Map map) { if (this.deprecatedTopology == null && map != null) { - this.deprecatedTopology = new LinkedHashMap(); + this.deprecatedTopology = new LinkedHashMap<>(); } if (map != null) { this.deprecatedTopology.putAll(map); @@ -89,7 +91,7 @@ public A addToDeprecatedTopology(Map map) { public A addToDeprecatedTopology(String key,String value) { if (this.deprecatedTopology == null && key != null && value != null) { - this.deprecatedTopology = new LinkedHashMap(); + this.deprecatedTopology = new LinkedHashMap<>(); } if (key != null && value != null) { this.deprecatedTopology.put(key, value); @@ -169,7 +171,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EndpointFluent that = (V1EndpointFluent) o; + V1EndpointFluent that = (V1EndpointFluent) o; if (!(Objects.equals(addresses, that.addresses))) { return false; } @@ -329,7 +331,7 @@ public A removeFromDeprecatedTopology(Map map) { public A setToAddresses(int index,String item) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } this.addresses.set(index, item); return (A) this; @@ -383,7 +385,7 @@ public String toString() { public A withAddresses(List addresses) { if (addresses != null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); for (String item : addresses) { this.addToAddresses(item); } @@ -412,8 +414,8 @@ public A withConditions(V1EndpointConditions conditions) { this.conditions = new V1EndpointConditionsBuilder(conditions); this._visitables.get("conditions").add(this.conditions); } else { - this.conditions = null; this._visitables.get("conditions").remove(this.conditions); + this.conditions = null; } return (A) this; } @@ -422,7 +424,7 @@ public A withDeprecatedTopology(Map deprecatedTopology) { if (deprecatedTopology == null) { this.deprecatedTopology = null; } else { - this.deprecatedTopology = new LinkedHashMap(deprecatedTopology); + this.deprecatedTopology = new LinkedHashMap<>(deprecatedTopology); } return (A) this; } @@ -433,8 +435,8 @@ public A withHints(V1EndpointHints hints) { this.hints = new V1EndpointHintsBuilder(hints); this._visitables.get("hints").add(this.hints); } else { - this.hints = null; this._visitables.get("hints").remove(this.hints); + this.hints = null; } return (A) this; } @@ -445,27 +447,27 @@ public A withHostname(String hostname) { } public ConditionsNested withNewConditions() { - return new ConditionsNested(null); + return new ConditionsNested<>(null); } public ConditionsNested withNewConditionsLike(V1EndpointConditions item) { - return new ConditionsNested(item); + return new ConditionsNested<>(item); } public HintsNested withNewHints() { - return new HintsNested(null); + return new HintsNested<>(null); } public HintsNested withNewHintsLike(V1EndpointHints item) { - return new HintsNested(item); + return new HintsNested<>(item); } public TargetRefNested withNewTargetRef() { - return new TargetRefNested(null); + return new TargetRefNested<>(null); } public TargetRefNested withNewTargetRefLike(V1ObjectReference item) { - return new TargetRefNested(item); + return new TargetRefNested<>(item); } public A withNodeName(String nodeName) { @@ -479,8 +481,8 @@ public A withTargetRef(V1ObjectReference targetRef) { this.targetRef = new V1ObjectReferenceBuilder(targetRef); this._visitables.get("targetRef").add(this.targetRef); } else { - this.targetRef = null; this._visitables.get("targetRef").remove(this.targetRef); + this.targetRef = null; } 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 7504c46deb..220da941dd 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EndpointHintsBuilder extends V1EndpointHintsFluent implements VisitableBuilder{ V1EndpointHintsFluent fluent; 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 35d8d1820e..f5ecd961ad 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EndpointHintsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EndpointHintsFluent> extends BaseFluent{ private ArrayList forNodes; private ArrayList forZones; @@ -44,7 +46,7 @@ public V1EndpointHintsFluent(V1EndpointHints instance) { public A addAllToForNodes(Collection items) { if (this.forNodes == null) { - this.forNodes = new ArrayList(); + this.forNodes = new ArrayList<>(); } for (V1ForNode item : items) { V1ForNodeBuilder builder = new V1ForNodeBuilder(item); @@ -56,7 +58,7 @@ public A addAllToForNodes(Collection items) { public A addAllToForZones(Collection items) { if (this.forZones == null) { - this.forZones = new ArrayList(); + this.forZones = new ArrayList<>(); } for (V1ForZone item : items) { V1ForZoneBuilder builder = new V1ForZoneBuilder(item); @@ -67,24 +69,24 @@ public A addAllToForZones(Collection items) { } public ForNodesNested addNewForNode() { - return new ForNodesNested(-1, null); + return new ForNodesNested<>(-1, null); } public ForNodesNested addNewForNodeLike(V1ForNode item) { - return new ForNodesNested(-1, item); + return new ForNodesNested<>(-1, item); } public ForZonesNested addNewForZone() { - return new ForZonesNested(-1, null); + return new ForZonesNested<>(-1, null); } public ForZonesNested addNewForZoneLike(V1ForZone item) { - return new ForZonesNested(-1, item); + return new ForZonesNested<>(-1, item); } public A addToForNodes(V1ForNode... items) { if (this.forNodes == null) { - this.forNodes = new ArrayList(); + this.forNodes = new ArrayList<>(); } for (V1ForNode item : items) { V1ForNodeBuilder builder = new V1ForNodeBuilder(item); @@ -96,7 +98,7 @@ public A addToForNodes(V1ForNode... items) { public A addToForNodes(int index,V1ForNode item) { if (this.forNodes == null) { - this.forNodes = new ArrayList(); + this.forNodes = new ArrayList<>(); } V1ForNodeBuilder builder = new V1ForNodeBuilder(item); if (index < 0 || index >= this.forNodes.size()) { @@ -111,7 +113,7 @@ public A addToForNodes(int index,V1ForNode item) { public A addToForZones(V1ForZone... items) { if (this.forZones == null) { - this.forZones = new ArrayList(); + this.forZones = new ArrayList<>(); } for (V1ForZone item : items) { V1ForZoneBuilder builder = new V1ForZoneBuilder(item); @@ -123,7 +125,7 @@ public A addToForZones(V1ForZone... items) { public A addToForZones(int index,V1ForZone item) { if (this.forZones == null) { - this.forZones = new ArrayList(); + this.forZones = new ArrayList<>(); } V1ForZoneBuilder builder = new V1ForZoneBuilder(item); if (index < 0 || index >= this.forZones.size()) { @@ -276,7 +278,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EndpointHintsFluent that = (V1EndpointHintsFluent) o; + V1EndpointHintsFluent that = (V1EndpointHintsFluent) o; if (!(Objects.equals(forNodes, that.forNodes))) { return false; } @@ -369,6 +371,7 @@ public A removeMatchingFromForNodes(Predicate predicate) { return (A) this; } Iterator each = forNodes.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("forNodes"); while (each.hasNext()) { V1ForNodeBuilder builder = each.next(); @@ -385,6 +388,7 @@ public A removeMatchingFromForZones(Predicate predicate) { return (A) this; } Iterator each = forZones.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("forZones"); while (each.hasNext()) { V1ForZoneBuilder builder = each.next(); @@ -397,16 +401,16 @@ public A removeMatchingFromForZones(Predicate predicate) { } public ForNodesNested setNewForNodeLike(int index,V1ForNode item) { - return new ForNodesNested(index, item); + return new ForNodesNested<>(index, item); } public ForZonesNested setNewForZoneLike(int index,V1ForZone item) { - return new ForZonesNested(index, item); + return new ForZonesNested<>(index, item); } public A setToForNodes(int index,V1ForNode item) { if (this.forNodes == null) { - this.forNodes = new ArrayList(); + this.forNodes = new ArrayList<>(); } V1ForNodeBuilder builder = new V1ForNodeBuilder(item); if (index < 0 || index >= this.forNodes.size()) { @@ -421,7 +425,7 @@ public A setToForNodes(int index,V1ForNode item) { public A setToForZones(int index,V1ForZone item) { if (this.forZones == null) { - this.forZones = new ArrayList(); + this.forZones = new ArrayList<>(); } V1ForZoneBuilder builder = new V1ForZoneBuilder(item); if (index < 0 || index >= this.forZones.size()) { @@ -455,7 +459,7 @@ public A withForNodes(List forNodes) { this._visitables.get("forNodes").clear(); } if (forNodes != null) { - this.forNodes = new ArrayList(); + this.forNodes = new ArrayList<>(); for (V1ForNode item : forNodes) { this.addToForNodes(item); } @@ -483,7 +487,7 @@ public A withForZones(List forZones) { this._visitables.get("forZones").clear(); } if (forZones != null) { - this.forZones = new ArrayList(); + this.forZones = new ArrayList<>(); for (V1ForZone item : forZones) { this.addToForZones(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java index b2ce16129d..87f06c1d0b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EndpointSliceBuilder extends V1EndpointSliceFluent implements VisitableBuilder{ V1EndpointSliceFluent fluent; 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 5b773b0776..30497a9abf 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EndpointSliceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EndpointSliceFluent> extends BaseFluent{ private String addressType; private String apiVersion; @@ -49,7 +51,7 @@ public V1EndpointSliceFluent(V1EndpointSlice instance) { public A addAllToEndpoints(Collection items) { if (this.endpoints == null) { - this.endpoints = new ArrayList(); + this.endpoints = new ArrayList<>(); } for (V1Endpoint item : items) { V1EndpointBuilder builder = new V1EndpointBuilder(item); @@ -61,7 +63,7 @@ public A addAllToEndpoints(Collection items) { public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (DiscoveryV1EndpointPort item : items) { DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); @@ -72,24 +74,24 @@ public A addAllToPorts(Collection items) { } public EndpointsNested addNewEndpoint() { - return new EndpointsNested(-1, null); + return new EndpointsNested<>(-1, null); } public EndpointsNested addNewEndpointLike(V1Endpoint item) { - return new EndpointsNested(-1, item); + return new EndpointsNested<>(-1, item); } public PortsNested addNewPort() { - return new PortsNested(-1, null); + return new PortsNested<>(-1, null); } public PortsNested addNewPortLike(DiscoveryV1EndpointPort item) { - return new PortsNested(-1, item); + return new PortsNested<>(-1, item); } public A addToEndpoints(V1Endpoint... items) { if (this.endpoints == null) { - this.endpoints = new ArrayList(); + this.endpoints = new ArrayList<>(); } for (V1Endpoint item : items) { V1EndpointBuilder builder = new V1EndpointBuilder(item); @@ -101,7 +103,7 @@ public A addToEndpoints(V1Endpoint... items) { public A addToEndpoints(int index,V1Endpoint item) { if (this.endpoints == null) { - this.endpoints = new ArrayList(); + this.endpoints = new ArrayList<>(); } V1EndpointBuilder builder = new V1EndpointBuilder(item); if (index < 0 || index >= this.endpoints.size()) { @@ -116,7 +118,7 @@ public A addToEndpoints(int index,V1Endpoint item) { public A addToPorts(DiscoveryV1EndpointPort... items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (DiscoveryV1EndpointPort item : items) { DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); @@ -128,7 +130,7 @@ public A addToPorts(DiscoveryV1EndpointPort... items) { public A addToPorts(int index,DiscoveryV1EndpointPort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -301,7 +303,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EndpointSliceFluent that = (V1EndpointSliceFluent) o; + V1EndpointSliceFluent that = (V1EndpointSliceFluent) o; if (!(Objects.equals(addressType, that.addressType))) { return false; } @@ -434,6 +436,7 @@ public A removeMatchingFromEndpoints(Predicate predicate) { return (A) this; } Iterator each = endpoints.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("endpoints"); while (each.hasNext()) { V1EndpointBuilder builder = each.next(); @@ -450,6 +453,7 @@ public A removeMatchingFromPorts(Predicate predi return (A) this; } Iterator each = ports.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ports"); while (each.hasNext()) { DiscoveryV1EndpointPortBuilder builder = each.next(); @@ -462,16 +466,16 @@ public A removeMatchingFromPorts(Predicate predi } public EndpointsNested setNewEndpointLike(int index,V1Endpoint item) { - return new EndpointsNested(index, item); + return new EndpointsNested<>(index, item); } public PortsNested setNewPortLike(int index,DiscoveryV1EndpointPort item) { - return new PortsNested(index, item); + return new PortsNested<>(index, item); } public A setToEndpoints(int index,V1Endpoint item) { if (this.endpoints == null) { - this.endpoints = new ArrayList(); + this.endpoints = new ArrayList<>(); } V1EndpointBuilder builder = new V1EndpointBuilder(item); if (index < 0 || index >= this.endpoints.size()) { @@ -486,7 +490,7 @@ public A setToEndpoints(int index,V1Endpoint item) { public A setToPorts(int index,DiscoveryV1EndpointPort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -550,7 +554,7 @@ public A withEndpoints(List endpoints) { this._visitables.get("endpoints").clear(); } if (endpoints != null) { - this.endpoints = new ArrayList(); + this.endpoints = new ArrayList<>(); for (V1Endpoint item : endpoints) { this.addToEndpoints(item); } @@ -584,18 +588,18 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withPorts(List ports) { @@ -603,7 +607,7 @@ public A withPorts(List ports) { this._visitables.get("ports").clear(); } if (ports != null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); for (DiscoveryV1EndpointPort item : ports) { this.addToPorts(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java index d4a7bac912..6867754d7e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EndpointSliceListBuilder extends V1EndpointSliceListFluent implements VisitableBuilder{ V1EndpointSliceListFluent fluent; 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 5a2ed328d0..002614abf1 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EndpointSliceListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EndpointSliceListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1EndpointSliceListFluent(V1EndpointSliceList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1EndpointSlice item : items) { V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1EndpointSlice item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1EndpointSlice... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1EndpointSlice item : items) { V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1EndpointSlice... items) { public A addToItems(int index,V1EndpointSlice item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EndpointSliceListFluent that = (V1EndpointSliceListFluent) o; + V1EndpointSliceListFluent that = (V1EndpointSliceListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1EndpointSliceBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1EndpointSlice item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1EndpointSlice item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1EndpointSlice item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1EndpointSliceFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java index 28f4a44578..5b76aa923a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EndpointSubsetBuilder extends V1EndpointSubsetFluent implements VisitableBuilder{ V1EndpointSubsetFluent fluent; 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 e95161d745..74662264f4 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EndpointSubsetFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EndpointSubsetFluent> extends BaseFluent{ private ArrayList addresses; private ArrayList notReadyAddresses; @@ -45,7 +47,7 @@ public V1EndpointSubsetFluent(V1EndpointSubset instance) { public A addAllToAddresses(Collection items) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } for (V1EndpointAddress item : items) { V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); @@ -57,7 +59,7 @@ public A addAllToAddresses(Collection items) { public A addAllToNotReadyAddresses(Collection items) { if (this.notReadyAddresses == null) { - this.notReadyAddresses = new ArrayList(); + this.notReadyAddresses = new ArrayList<>(); } for (V1EndpointAddress item : items) { V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); @@ -69,7 +71,7 @@ public A addAllToNotReadyAddresses(Collection items) { public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (CoreV1EndpointPort item : items) { CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); @@ -80,32 +82,32 @@ public A addAllToPorts(Collection items) { } public AddressesNested addNewAddress() { - return new AddressesNested(-1, null); + return new AddressesNested<>(-1, null); } public AddressesNested addNewAddressLike(V1EndpointAddress item) { - return new AddressesNested(-1, item); + return new AddressesNested<>(-1, item); } public NotReadyAddressesNested addNewNotReadyAddress() { - return new NotReadyAddressesNested(-1, null); + return new NotReadyAddressesNested<>(-1, null); } public NotReadyAddressesNested addNewNotReadyAddressLike(V1EndpointAddress item) { - return new NotReadyAddressesNested(-1, item); + return new NotReadyAddressesNested<>(-1, item); } public PortsNested addNewPort() { - return new PortsNested(-1, null); + return new PortsNested<>(-1, null); } public PortsNested addNewPortLike(CoreV1EndpointPort item) { - return new PortsNested(-1, item); + return new PortsNested<>(-1, item); } public A addToAddresses(V1EndpointAddress... items) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } for (V1EndpointAddress item : items) { V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); @@ -117,7 +119,7 @@ public A addToAddresses(V1EndpointAddress... items) { public A addToAddresses(int index,V1EndpointAddress item) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); if (index < 0 || index >= this.addresses.size()) { @@ -132,7 +134,7 @@ public A addToAddresses(int index,V1EndpointAddress item) { public A addToNotReadyAddresses(V1EndpointAddress... items) { if (this.notReadyAddresses == null) { - this.notReadyAddresses = new ArrayList(); + this.notReadyAddresses = new ArrayList<>(); } for (V1EndpointAddress item : items) { V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); @@ -144,7 +146,7 @@ public A addToNotReadyAddresses(V1EndpointAddress... items) { public A addToNotReadyAddresses(int index,V1EndpointAddress item) { if (this.notReadyAddresses == null) { - this.notReadyAddresses = new ArrayList(); + this.notReadyAddresses = new ArrayList<>(); } V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); if (index < 0 || index >= this.notReadyAddresses.size()) { @@ -159,7 +161,7 @@ public A addToNotReadyAddresses(int index,V1EndpointAddress item) { public A addToPorts(CoreV1EndpointPort... items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (CoreV1EndpointPort item : items) { CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); @@ -171,7 +173,7 @@ public A addToPorts(CoreV1EndpointPort... items) { public A addToPorts(int index,CoreV1EndpointPort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -386,7 +388,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EndpointSubsetFluent that = (V1EndpointSubsetFluent) o; + V1EndpointSubsetFluent that = (V1EndpointSubsetFluent) o; if (!(Objects.equals(addresses, that.addresses))) { return false; } @@ -519,6 +521,7 @@ public A removeMatchingFromAddresses(Predicate predica return (A) this; } Iterator each = addresses.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("addresses"); while (each.hasNext()) { V1EndpointAddressBuilder builder = each.next(); @@ -535,6 +538,7 @@ public A removeMatchingFromNotReadyAddresses(Predicate return (A) this; } Iterator each = notReadyAddresses.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("notReadyAddresses"); while (each.hasNext()) { V1EndpointAddressBuilder builder = each.next(); @@ -551,6 +555,7 @@ public A removeMatchingFromPorts(Predicate predicate) return (A) this; } Iterator each = ports.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ports"); while (each.hasNext()) { CoreV1EndpointPortBuilder builder = each.next(); @@ -563,20 +568,20 @@ public A removeMatchingFromPorts(Predicate predicate) } public AddressesNested setNewAddressLike(int index,V1EndpointAddress item) { - return new AddressesNested(index, item); + return new AddressesNested<>(index, item); } public NotReadyAddressesNested setNewNotReadyAddressLike(int index,V1EndpointAddress item) { - return new NotReadyAddressesNested(index, item); + return new NotReadyAddressesNested<>(index, item); } public PortsNested setNewPortLike(int index,CoreV1EndpointPort item) { - return new PortsNested(index, item); + return new PortsNested<>(index, item); } public A setToAddresses(int index,V1EndpointAddress item) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); if (index < 0 || index >= this.addresses.size()) { @@ -591,7 +596,7 @@ public A setToAddresses(int index,V1EndpointAddress item) { public A setToNotReadyAddresses(int index,V1EndpointAddress item) { if (this.notReadyAddresses == null) { - this.notReadyAddresses = new ArrayList(); + this.notReadyAddresses = new ArrayList<>(); } V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); if (index < 0 || index >= this.notReadyAddresses.size()) { @@ -606,7 +611,7 @@ public A setToNotReadyAddresses(int index,V1EndpointAddress item) { public A setToPorts(int index,CoreV1EndpointPort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -645,7 +650,7 @@ public A withAddresses(List addresses) { this._visitables.get("addresses").clear(); } if (addresses != null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); for (V1EndpointAddress item : addresses) { this.addToAddresses(item); } @@ -673,7 +678,7 @@ public A withNotReadyAddresses(List notReadyAddresses) { this._visitables.get("notReadyAddresses").clear(); } if (notReadyAddresses != null) { - this.notReadyAddresses = new ArrayList(); + this.notReadyAddresses = new ArrayList<>(); for (V1EndpointAddress item : notReadyAddresses) { this.addToNotReadyAddresses(item); } @@ -701,7 +706,7 @@ public A withPorts(List ports) { this._visitables.get("ports").clear(); } if (ports != null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); for (CoreV1EndpointPort item : ports) { this.addToPorts(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java index 1a2560e5eb..e112a68069 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EndpointsBuilder extends V1EndpointsFluent implements VisitableBuilder{ V1EndpointsFluent fluent; 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 1d402ba82e..f338b71876 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EndpointsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EndpointsFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -47,7 +49,7 @@ public V1EndpointsFluent(V1Endpoints instance) { public A addAllToSubsets(Collection items) { if (this.subsets == null) { - this.subsets = new ArrayList(); + this.subsets = new ArrayList<>(); } for (V1EndpointSubset item : items) { V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); @@ -58,16 +60,16 @@ public A addAllToSubsets(Collection items) { } public SubsetsNested addNewSubset() { - return new SubsetsNested(-1, null); + return new SubsetsNested<>(-1, null); } public SubsetsNested addNewSubsetLike(V1EndpointSubset item) { - return new SubsetsNested(-1, item); + return new SubsetsNested<>(-1, item); } public A addToSubsets(V1EndpointSubset... items) { if (this.subsets == null) { - this.subsets = new ArrayList(); + this.subsets = new ArrayList<>(); } for (V1EndpointSubset item : items) { V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); @@ -79,7 +81,7 @@ public A addToSubsets(V1EndpointSubset... items) { public A addToSubsets(int index,V1EndpointSubset item) { if (this.subsets == null) { - this.subsets = new ArrayList(); + this.subsets = new ArrayList<>(); } V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); if (index < 0 || index >= this.subsets.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EndpointsFluent that = (V1EndpointsFluent) o; + V1EndpointsFluent that = (V1EndpointsFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromSubsets(Predicate predicate) return (A) this; } Iterator each = subsets.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("subsets"); while (each.hasNext()) { V1EndpointSubsetBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromSubsets(Predicate predicate) } public SubsetsNested setNewSubsetLike(int index,V1EndpointSubset item) { - return new SubsetsNested(index, item); + return new SubsetsNested<>(index, item); } public A setToSubsets(int index,V1EndpointSubset item) { if (this.subsets == null) { - this.subsets = new ArrayList(); + this.subsets = new ArrayList<>(); } V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); if (index < 0 || index >= this.subsets.size()) { @@ -343,18 +346,18 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withSubsets(List subsets) { @@ -362,7 +365,7 @@ public A withSubsets(List subsets) { this._visitables.get("subsets").clear(); } if (subsets != null) { - this.subsets = new ArrayList(); + this.subsets = new ArrayList<>(); for (V1EndpointSubset item : subsets) { this.addToSubsets(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java index 07b05a257f..7ab631d37f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EndpointsListBuilder extends V1EndpointsListFluent implements VisitableBuilder{ V1EndpointsListFluent fluent; 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 9ca0e2f67b..a23a51d4a4 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EndpointsListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EndpointsListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1EndpointsListFluent(V1EndpointsList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Endpoints item : items) { V1EndpointsBuilder builder = new V1EndpointsBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1Endpoints item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1Endpoints... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Endpoints item : items) { V1EndpointsBuilder builder = new V1EndpointsBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1Endpoints... items) { public A addToItems(int index,V1Endpoints item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1EndpointsBuilder builder = new V1EndpointsBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EndpointsListFluent that = (V1EndpointsListFluent) o; + V1EndpointsListFluent that = (V1EndpointsListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1EndpointsBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1Endpoints item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1Endpoints item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1EndpointsBuilder builder = new V1EndpointsBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1Endpoints item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1EndpointsFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java index 05a45068fc..e352d4fab1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EnvFromSourceBuilder extends V1EnvFromSourceFluent implements VisitableBuilder{ V1EnvFromSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java index 82ba0bef5d..a1b2a35cb7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EnvFromSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EnvFromSourceFluent> extends BaseFluent{ private V1ConfigMapEnvSourceBuilder configMapRef; private String prefix; @@ -89,7 +91,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EnvFromSourceFluent that = (V1EnvFromSourceFluent) o; + V1EnvFromSourceFluent that = (V1EnvFromSourceFluent) o; if (!(Objects.equals(configMapRef, that.configMapRef))) { return false; } @@ -149,26 +151,26 @@ public A withConfigMapRef(V1ConfigMapEnvSource configMapRef) { this.configMapRef = new V1ConfigMapEnvSourceBuilder(configMapRef); this._visitables.get("configMapRef").add(this.configMapRef); } else { - this.configMapRef = null; this._visitables.get("configMapRef").remove(this.configMapRef); + this.configMapRef = null; } return (A) this; } public ConfigMapRefNested withNewConfigMapRef() { - return new ConfigMapRefNested(null); + return new ConfigMapRefNested<>(null); } public ConfigMapRefNested withNewConfigMapRefLike(V1ConfigMapEnvSource item) { - return new ConfigMapRefNested(item); + return new ConfigMapRefNested<>(item); } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1SecretEnvSource item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withPrefix(String prefix) { @@ -182,8 +184,8 @@ public A withSecretRef(V1SecretEnvSource secretRef) { this.secretRef = new V1SecretEnvSourceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java index 13de42cf58..b319ee28fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EnvVarBuilder extends V1EnvVarFluent implements VisitableBuilder{ V1EnvVarFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java index 7c9bd973f2..958f5ed26e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EnvVarFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EnvVarFluent> extends BaseFluent{ private String name; private String value; @@ -73,7 +75,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EnvVarFluent that = (V1EnvVarFluent) o; + V1EnvVarFluent that = (V1EnvVarFluent) o; if (!(Objects.equals(name, that.name))) { return false; } @@ -137,11 +139,11 @@ public A withName(String name) { } public ValueFromNested withNewValueFrom() { - return new ValueFromNested(null); + return new ValueFromNested<>(null); } public ValueFromNested withNewValueFromLike(V1EnvVarSource item) { - return new ValueFromNested(item); + return new ValueFromNested<>(item); } public A withValue(String value) { @@ -155,8 +157,8 @@ public A withValueFrom(V1EnvVarSource valueFrom) { this.valueFrom = new V1EnvVarSourceBuilder(valueFrom); this._visitables.get("valueFrom").add(this.valueFrom); } else { - this.valueFrom = null; this._visitables.get("valueFrom").remove(this.valueFrom); + this.valueFrom = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java index bbf58e1ad8..f07482b745 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EnvVarSourceBuilder extends V1EnvVarSourceFluent implements VisitableBuilder{ V1EnvVarSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java index 77fa362986..3a8f450524 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EnvVarSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EnvVarSourceFluent> extends BaseFluent{ private V1ConfigMapKeySelectorBuilder configMapKeyRef; private V1ObjectFieldSelectorBuilder fieldRef; @@ -141,7 +143,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EnvVarSourceFluent that = (V1EnvVarSourceFluent) o; + V1EnvVarSourceFluent that = (V1EnvVarSourceFluent) o; if (!(Objects.equals(configMapKeyRef, that.configMapKeyRef))) { return false; } @@ -221,8 +223,8 @@ public A withConfigMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { this.configMapKeyRef = new V1ConfigMapKeySelectorBuilder(configMapKeyRef); this._visitables.get("configMapKeyRef").add(this.configMapKeyRef); } else { - this.configMapKeyRef = null; this._visitables.get("configMapKeyRef").remove(this.configMapKeyRef); + this.configMapKeyRef = null; } return (A) this; } @@ -233,8 +235,8 @@ public A withFieldRef(V1ObjectFieldSelector fieldRef) { this.fieldRef = new V1ObjectFieldSelectorBuilder(fieldRef); this._visitables.get("fieldRef").add(this.fieldRef); } else { - this.fieldRef = null; this._visitables.get("fieldRef").remove(this.fieldRef); + this.fieldRef = null; } return (A) this; } @@ -245,50 +247,50 @@ public A withFileKeyRef(V1FileKeySelector fileKeyRef) { this.fileKeyRef = new V1FileKeySelectorBuilder(fileKeyRef); this._visitables.get("fileKeyRef").add(this.fileKeyRef); } else { - this.fileKeyRef = null; this._visitables.get("fileKeyRef").remove(this.fileKeyRef); + this.fileKeyRef = null; } return (A) this; } public ConfigMapKeyRefNested withNewConfigMapKeyRef() { - return new ConfigMapKeyRefNested(null); + return new ConfigMapKeyRefNested<>(null); } public ConfigMapKeyRefNested withNewConfigMapKeyRefLike(V1ConfigMapKeySelector item) { - return new ConfigMapKeyRefNested(item); + return new ConfigMapKeyRefNested<>(item); } public FieldRefNested withNewFieldRef() { - return new FieldRefNested(null); + return new FieldRefNested<>(null); } public FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { - return new FieldRefNested(item); + return new FieldRefNested<>(item); } public FileKeyRefNested withNewFileKeyRef() { - return new FileKeyRefNested(null); + return new FileKeyRefNested<>(null); } public FileKeyRefNested withNewFileKeyRefLike(V1FileKeySelector item) { - return new FileKeyRefNested(item); + return new FileKeyRefNested<>(item); } public ResourceFieldRefNested withNewResourceFieldRef() { - return new ResourceFieldRefNested(null); + return new ResourceFieldRefNested<>(null); } public ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item) { - return new ResourceFieldRefNested(item); + return new ResourceFieldRefNested<>(item); } public SecretKeyRefNested withNewSecretKeyRef() { - return new SecretKeyRefNested(null); + return new SecretKeyRefNested<>(null); } public SecretKeyRefNested withNewSecretKeyRefLike(V1SecretKeySelector item) { - return new SecretKeyRefNested(item); + return new SecretKeyRefNested<>(item); } public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { @@ -297,8 +299,8 @@ public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { this.resourceFieldRef = new V1ResourceFieldSelectorBuilder(resourceFieldRef); this._visitables.get("resourceFieldRef").add(this.resourceFieldRef); } else { - this.resourceFieldRef = null; this._visitables.get("resourceFieldRef").remove(this.resourceFieldRef); + this.resourceFieldRef = null; } return (A) this; } @@ -309,8 +311,8 @@ public A withSecretKeyRef(V1SecretKeySelector secretKeyRef) { this.secretKeyRef = new V1SecretKeySelectorBuilder(secretKeyRef); this._visitables.get("secretKeyRef").add(this.secretKeyRef); } else { - this.secretKeyRef = null; this._visitables.get("secretKeyRef").remove(this.secretKeyRef); + this.secretKeyRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java index caa99210a9..a50d16fcde 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EphemeralContainerBuilder extends V1EphemeralContainerFluent implements VisitableBuilder{ V1EphemeralContainerFluent fluent; 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 444c9768a9..40d6045157 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 @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EphemeralContainerFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EphemeralContainerFluent> extends BaseFluent{ private List args; private List command; @@ -70,7 +72,7 @@ public V1EphemeralContainerFluent(V1EphemeralContainer instance) { public A addAllToArgs(Collection items) { if (this.args == null) { - this.args = new ArrayList(); + this.args = new ArrayList<>(); } for (String item : items) { this.args.add(item); @@ -80,7 +82,7 @@ public A addAllToArgs(Collection items) { public A addAllToCommand(Collection items) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } for (String item : items) { this.command.add(item); @@ -90,7 +92,7 @@ public A addAllToCommand(Collection items) { public A addAllToEnv(Collection items) { if (this.env == null) { - this.env = new ArrayList(); + this.env = new ArrayList<>(); } for (V1EnvVar item : items) { V1EnvVarBuilder builder = new V1EnvVarBuilder(item); @@ -102,7 +104,7 @@ public A addAllToEnv(Collection items) { public A addAllToEnvFrom(Collection items) { if (this.envFrom == null) { - this.envFrom = new ArrayList(); + this.envFrom = new ArrayList<>(); } for (V1EnvFromSource item : items) { V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); @@ -114,7 +116,7 @@ public A addAllToEnvFrom(Collection items) { public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1ContainerPort item : items) { V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); @@ -126,7 +128,7 @@ public A addAllToPorts(Collection items) { public A addAllToResizePolicy(Collection items) { if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); + this.resizePolicy = new ArrayList<>(); } for (V1ContainerResizePolicy item : items) { V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); @@ -138,7 +140,7 @@ public A addAllToResizePolicy(Collection items) { public A addAllToRestartPolicyRules(Collection items) { if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); + this.restartPolicyRules = new ArrayList<>(); } for (V1ContainerRestartRule item : items) { V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); @@ -150,7 +152,7 @@ public A addAllToRestartPolicyRules(Collection items) { public A addAllToVolumeDevices(Collection items) { if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + this.volumeDevices = new ArrayList<>(); } for (V1VolumeDevice item : items) { V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); @@ -162,7 +164,7 @@ public A addAllToVolumeDevices(Collection items) { public A addAllToVolumeMounts(Collection items) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } for (V1VolumeMount item : items) { V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); @@ -173,64 +175,64 @@ public A addAllToVolumeMounts(Collection items) { } public EnvNested addNewEnv() { - return new EnvNested(-1, null); + return new EnvNested<>(-1, null); } public EnvFromNested addNewEnvFrom() { - return new EnvFromNested(-1, null); + return new EnvFromNested<>(-1, null); } public EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { - return new EnvFromNested(-1, item); + return new EnvFromNested<>(-1, item); } public EnvNested addNewEnvLike(V1EnvVar item) { - return new EnvNested(-1, item); + return new EnvNested<>(-1, item); } public PortsNested addNewPort() { - return new PortsNested(-1, null); + return new PortsNested<>(-1, null); } public PortsNested addNewPortLike(V1ContainerPort item) { - return new PortsNested(-1, item); + return new PortsNested<>(-1, item); } public ResizePolicyNested addNewResizePolicy() { - return new ResizePolicyNested(-1, null); + return new ResizePolicyNested<>(-1, null); } public ResizePolicyNested addNewResizePolicyLike(V1ContainerResizePolicy item) { - return new ResizePolicyNested(-1, item); + return new ResizePolicyNested<>(-1, item); } public RestartPolicyRulesNested addNewRestartPolicyRule() { - return new RestartPolicyRulesNested(-1, null); + return new RestartPolicyRulesNested<>(-1, null); } public RestartPolicyRulesNested addNewRestartPolicyRuleLike(V1ContainerRestartRule item) { - return new RestartPolicyRulesNested(-1, item); + return new RestartPolicyRulesNested<>(-1, item); } public VolumeDevicesNested addNewVolumeDevice() { - return new VolumeDevicesNested(-1, null); + return new VolumeDevicesNested<>(-1, null); } public VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) { - return new VolumeDevicesNested(-1, item); + return new VolumeDevicesNested<>(-1, item); } public VolumeMountsNested addNewVolumeMount() { - return new VolumeMountsNested(-1, null); + return new VolumeMountsNested<>(-1, null); } public VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) { - return new VolumeMountsNested(-1, item); + return new VolumeMountsNested<>(-1, item); } public A addToArgs(String... items) { if (this.args == null) { - this.args = new ArrayList(); + this.args = new ArrayList<>(); } for (String item : items) { this.args.add(item); @@ -240,7 +242,7 @@ public A addToArgs(String... items) { public A addToArgs(int index,String item) { if (this.args == null) { - this.args = new ArrayList(); + this.args = new ArrayList<>(); } this.args.add(index, item); return (A) this; @@ -248,7 +250,7 @@ public A addToArgs(int index,String item) { public A addToCommand(String... items) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } for (String item : items) { this.command.add(item); @@ -258,7 +260,7 @@ public A addToCommand(String... items) { public A addToCommand(int index,String item) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } this.command.add(index, item); return (A) this; @@ -266,7 +268,7 @@ public A addToCommand(int index,String item) { public A addToEnv(V1EnvVar... items) { if (this.env == null) { - this.env = new ArrayList(); + this.env = new ArrayList<>(); } for (V1EnvVar item : items) { V1EnvVarBuilder builder = new V1EnvVarBuilder(item); @@ -278,7 +280,7 @@ public A addToEnv(V1EnvVar... items) { public A addToEnv(int index,V1EnvVar item) { if (this.env == null) { - this.env = new ArrayList(); + this.env = new ArrayList<>(); } V1EnvVarBuilder builder = new V1EnvVarBuilder(item); if (index < 0 || index >= this.env.size()) { @@ -293,7 +295,7 @@ public A addToEnv(int index,V1EnvVar item) { public A addToEnvFrom(V1EnvFromSource... items) { if (this.envFrom == null) { - this.envFrom = new ArrayList(); + this.envFrom = new ArrayList<>(); } for (V1EnvFromSource item : items) { V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); @@ -305,7 +307,7 @@ public A addToEnvFrom(V1EnvFromSource... items) { public A addToEnvFrom(int index,V1EnvFromSource item) { if (this.envFrom == null) { - this.envFrom = new ArrayList(); + this.envFrom = new ArrayList<>(); } V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); if (index < 0 || index >= this.envFrom.size()) { @@ -320,7 +322,7 @@ public A addToEnvFrom(int index,V1EnvFromSource item) { public A addToPorts(V1ContainerPort... items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1ContainerPort item : items) { V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); @@ -332,7 +334,7 @@ public A addToPorts(V1ContainerPort... items) { public A addToPorts(int index,V1ContainerPort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -347,7 +349,7 @@ public A addToPorts(int index,V1ContainerPort item) { public A addToResizePolicy(V1ContainerResizePolicy... items) { if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); + this.resizePolicy = new ArrayList<>(); } for (V1ContainerResizePolicy item : items) { V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); @@ -359,7 +361,7 @@ public A addToResizePolicy(V1ContainerResizePolicy... items) { public A addToResizePolicy(int index,V1ContainerResizePolicy item) { if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); + this.resizePolicy = new ArrayList<>(); } V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); if (index < 0 || index >= this.resizePolicy.size()) { @@ -374,7 +376,7 @@ public A addToResizePolicy(int index,V1ContainerResizePolicy item) { public A addToRestartPolicyRules(V1ContainerRestartRule... items) { if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); + this.restartPolicyRules = new ArrayList<>(); } for (V1ContainerRestartRule item : items) { V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); @@ -386,7 +388,7 @@ public A addToRestartPolicyRules(V1ContainerRestartRule... items) { public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); + this.restartPolicyRules = new ArrayList<>(); } V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); if (index < 0 || index >= this.restartPolicyRules.size()) { @@ -401,7 +403,7 @@ public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { public A addToVolumeDevices(V1VolumeDevice... items) { if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + this.volumeDevices = new ArrayList<>(); } for (V1VolumeDevice item : items) { V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); @@ -413,7 +415,7 @@ public A addToVolumeDevices(V1VolumeDevice... items) { public A addToVolumeDevices(int index,V1VolumeDevice item) { if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + this.volumeDevices = new ArrayList<>(); } V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); if (index < 0 || index >= this.volumeDevices.size()) { @@ -428,7 +430,7 @@ public A addToVolumeDevices(int index,V1VolumeDevice item) { public A addToVolumeMounts(V1VolumeMount... items) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } for (V1VolumeMount item : items) { V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); @@ -440,7 +442,7 @@ public A addToVolumeMounts(V1VolumeMount... items) { public A addToVolumeMounts(int index,V1VolumeMount item) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); if (index < 0 || index >= this.volumeMounts.size()) { @@ -1018,7 +1020,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EphemeralContainerFluent that = (V1EphemeralContainerFluent) o; + V1EphemeralContainerFluent that = (V1EphemeralContainerFluent) o; if (!(Objects.equals(args, that.args))) { return false; } @@ -1596,6 +1598,7 @@ public A removeMatchingFromEnv(Predicate predicate) { return (A) this; } Iterator each = env.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("env"); while (each.hasNext()) { V1EnvVarBuilder builder = each.next(); @@ -1612,6 +1615,7 @@ public A removeMatchingFromEnvFrom(Predicate predicate) return (A) this; } Iterator each = envFrom.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("envFrom"); while (each.hasNext()) { V1EnvFromSourceBuilder builder = each.next(); @@ -1628,6 +1632,7 @@ public A removeMatchingFromPorts(Predicate predicate) { return (A) this; } Iterator each = ports.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1ContainerPortBuilder builder = each.next(); @@ -1644,6 +1649,7 @@ public A removeMatchingFromResizePolicy(Predicate each = resizePolicy.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resizePolicy"); while (each.hasNext()) { V1ContainerResizePolicyBuilder builder = each.next(); @@ -1660,6 +1666,7 @@ public A removeMatchingFromRestartPolicyRules(Predicate each = restartPolicyRules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("restartPolicyRules"); while (each.hasNext()) { V1ContainerRestartRuleBuilder builder = each.next(); @@ -1676,6 +1683,7 @@ public A removeMatchingFromVolumeDevices(Predicate predic return (A) this; } Iterator each = volumeDevices.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("volumeDevices"); while (each.hasNext()) { V1VolumeDeviceBuilder builder = each.next(); @@ -1692,6 +1700,7 @@ public A removeMatchingFromVolumeMounts(Predicate predicat return (A) this; } Iterator each = volumeMounts.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("volumeMounts"); while (each.hasNext()) { V1VolumeMountBuilder builder = each.next(); @@ -1704,36 +1713,36 @@ public A removeMatchingFromVolumeMounts(Predicate predicat } public EnvFromNested setNewEnvFromLike(int index,V1EnvFromSource item) { - return new EnvFromNested(index, item); + return new EnvFromNested<>(index, item); } public EnvNested setNewEnvLike(int index,V1EnvVar item) { - return new EnvNested(index, item); + return new EnvNested<>(index, item); } public PortsNested setNewPortLike(int index,V1ContainerPort item) { - return new PortsNested(index, item); + return new PortsNested<>(index, item); } public ResizePolicyNested setNewResizePolicyLike(int index,V1ContainerResizePolicy item) { - return new ResizePolicyNested(index, item); + return new ResizePolicyNested<>(index, item); } public RestartPolicyRulesNested setNewRestartPolicyRuleLike(int index,V1ContainerRestartRule item) { - return new RestartPolicyRulesNested(index, item); + return new RestartPolicyRulesNested<>(index, item); } public VolumeDevicesNested setNewVolumeDeviceLike(int index,V1VolumeDevice item) { - return new VolumeDevicesNested(index, item); + return new VolumeDevicesNested<>(index, item); } public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMount item) { - return new VolumeMountsNested(index, item); + return new VolumeMountsNested<>(index, item); } public A setToArgs(int index,String item) { if (this.args == null) { - this.args = new ArrayList(); + this.args = new ArrayList<>(); } this.args.set(index, item); return (A) this; @@ -1741,7 +1750,7 @@ public A setToArgs(int index,String item) { public A setToCommand(int index,String item) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } this.command.set(index, item); return (A) this; @@ -1749,7 +1758,7 @@ public A setToCommand(int index,String item) { public A setToEnv(int index,V1EnvVar item) { if (this.env == null) { - this.env = new ArrayList(); + this.env = new ArrayList<>(); } V1EnvVarBuilder builder = new V1EnvVarBuilder(item); if (index < 0 || index >= this.env.size()) { @@ -1764,7 +1773,7 @@ public A setToEnv(int index,V1EnvVar item) { public A setToEnvFrom(int index,V1EnvFromSource item) { if (this.envFrom == null) { - this.envFrom = new ArrayList(); + this.envFrom = new ArrayList<>(); } V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); if (index < 0 || index >= this.envFrom.size()) { @@ -1779,7 +1788,7 @@ public A setToEnvFrom(int index,V1EnvFromSource item) { public A setToPorts(int index,V1ContainerPort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -1794,7 +1803,7 @@ public A setToPorts(int index,V1ContainerPort item) { public A setToResizePolicy(int index,V1ContainerResizePolicy item) { if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); + this.resizePolicy = new ArrayList<>(); } V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); if (index < 0 || index >= this.resizePolicy.size()) { @@ -1809,7 +1818,7 @@ public A setToResizePolicy(int index,V1ContainerResizePolicy item) { public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); + this.restartPolicyRules = new ArrayList<>(); } V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); if (index < 0 || index >= this.restartPolicyRules.size()) { @@ -1824,7 +1833,7 @@ public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { public A setToVolumeDevices(int index,V1VolumeDevice item) { if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + this.volumeDevices = new ArrayList<>(); } V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); if (index < 0 || index >= this.volumeDevices.size()) { @@ -1839,7 +1848,7 @@ public A setToVolumeDevices(int index,V1VolumeDevice item) { public A setToVolumeMounts(int index,V1VolumeMount item) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); if (index < 0 || index >= this.volumeMounts.size()) { @@ -1990,7 +1999,7 @@ public String toString() { public A withArgs(List args) { if (args != null) { - this.args = new ArrayList(); + this.args = new ArrayList<>(); for (String item : args) { this.addToArgs(item); } @@ -2015,7 +2024,7 @@ public A withArgs(String... args) { public A withCommand(List command) { if (command != null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); for (String item : command) { this.addToCommand(item); } @@ -2043,7 +2052,7 @@ public A withEnv(List env) { this._visitables.get("env").clear(); } if (env != null) { - this.env = new ArrayList(); + this.env = new ArrayList<>(); for (V1EnvVar item : env) { this.addToEnv(item); } @@ -2071,7 +2080,7 @@ public A withEnvFrom(List envFrom) { this._visitables.get("envFrom").clear(); } if (envFrom != null) { - this.envFrom = new ArrayList(); + this.envFrom = new ArrayList<>(); for (V1EnvFromSource item : envFrom) { this.addToEnvFrom(item); } @@ -2110,8 +2119,8 @@ public A withLifecycle(V1Lifecycle lifecycle) { this.lifecycle = new V1LifecycleBuilder(lifecycle); this._visitables.get("lifecycle").add(this.lifecycle); } else { - this.lifecycle = null; this._visitables.get("lifecycle").remove(this.lifecycle); + this.lifecycle = null; } return (A) this; } @@ -2122,8 +2131,8 @@ public A withLivenessProbe(V1Probe livenessProbe) { this.livenessProbe = new V1ProbeBuilder(livenessProbe); this._visitables.get("livenessProbe").add(this.livenessProbe); } else { - this.livenessProbe = null; this._visitables.get("livenessProbe").remove(this.livenessProbe); + this.livenessProbe = null; } return (A) this; } @@ -2134,51 +2143,51 @@ public A withName(String name) { } public LifecycleNested withNewLifecycle() { - return new LifecycleNested(null); + return new LifecycleNested<>(null); } public LifecycleNested withNewLifecycleLike(V1Lifecycle item) { - return new LifecycleNested(item); + return new LifecycleNested<>(item); } public LivenessProbeNested withNewLivenessProbe() { - return new LivenessProbeNested(null); + return new LivenessProbeNested<>(null); } public LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { - return new LivenessProbeNested(item); + return new LivenessProbeNested<>(item); } public ReadinessProbeNested withNewReadinessProbe() { - return new ReadinessProbeNested(null); + return new ReadinessProbeNested<>(null); } public ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) { - return new ReadinessProbeNested(item); + return new ReadinessProbeNested<>(item); } public ResourcesNested withNewResources() { - return new ResourcesNested(null); + return new ResourcesNested<>(null); } public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { - return new ResourcesNested(item); + return new ResourcesNested<>(item); } public SecurityContextNested withNewSecurityContext() { - return new SecurityContextNested(null); + return new SecurityContextNested<>(null); } public SecurityContextNested withNewSecurityContextLike(V1SecurityContext item) { - return new SecurityContextNested(item); + return new SecurityContextNested<>(item); } public StartupProbeNested withNewStartupProbe() { - return new StartupProbeNested(null); + return new StartupProbeNested<>(null); } public StartupProbeNested withNewStartupProbeLike(V1Probe item) { - return new StartupProbeNested(item); + return new StartupProbeNested<>(item); } public A withPorts(List ports) { @@ -2186,7 +2195,7 @@ public A withPorts(List ports) { this._visitables.get("ports").clear(); } if (ports != null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); for (V1ContainerPort item : ports) { this.addToPorts(item); } @@ -2215,8 +2224,8 @@ public A withReadinessProbe(V1Probe readinessProbe) { this.readinessProbe = new V1ProbeBuilder(readinessProbe); this._visitables.get("readinessProbe").add(this.readinessProbe); } else { - this.readinessProbe = null; this._visitables.get("readinessProbe").remove(this.readinessProbe); + this.readinessProbe = null; } return (A) this; } @@ -2226,7 +2235,7 @@ public A withResizePolicy(List resizePolicy) { this._visitables.get("resizePolicy").clear(); } if (resizePolicy != null) { - this.resizePolicy = new ArrayList(); + this.resizePolicy = new ArrayList<>(); for (V1ContainerResizePolicy item : resizePolicy) { this.addToResizePolicy(item); } @@ -2255,8 +2264,8 @@ public A withResources(V1ResourceRequirements resources) { this.resources = new V1ResourceRequirementsBuilder(resources); this._visitables.get("resources").add(this.resources); } else { - this.resources = null; this._visitables.get("resources").remove(this.resources); + this.resources = null; } return (A) this; } @@ -2271,7 +2280,7 @@ public A withRestartPolicyRules(List restartPolicyRules) this._visitables.get("restartPolicyRules").clear(); } if (restartPolicyRules != null) { - this.restartPolicyRules = new ArrayList(); + this.restartPolicyRules = new ArrayList<>(); for (V1ContainerRestartRule item : restartPolicyRules) { this.addToRestartPolicyRules(item); } @@ -2300,8 +2309,8 @@ public A withSecurityContext(V1SecurityContext securityContext) { this.securityContext = new V1SecurityContextBuilder(securityContext); this._visitables.get("securityContext").add(this.securityContext); } else { - this.securityContext = null; this._visitables.get("securityContext").remove(this.securityContext); + this.securityContext = null; } return (A) this; } @@ -2312,8 +2321,8 @@ public A withStartupProbe(V1Probe startupProbe) { this.startupProbe = new V1ProbeBuilder(startupProbe); this._visitables.get("startupProbe").add(this.startupProbe); } else { - this.startupProbe = null; this._visitables.get("startupProbe").remove(this.startupProbe); + this.startupProbe = null; } return (A) this; } @@ -2365,7 +2374,7 @@ public A withVolumeDevices(List volumeDevices) { this._visitables.get("volumeDevices").clear(); } if (volumeDevices != null) { - this.volumeDevices = new ArrayList(); + this.volumeDevices = new ArrayList<>(); for (V1VolumeDevice item : volumeDevices) { this.addToVolumeDevices(item); } @@ -2393,7 +2402,7 @@ public A withVolumeMounts(List volumeMounts) { this._visitables.get("volumeMounts").clear(); } if (volumeMounts != null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); for (V1VolumeMount item : volumeMounts) { this.addToVolumeMounts(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java index 30f640470f..fa54098ff2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EphemeralVolumeSourceBuilder extends V1EphemeralVolumeSourceFluent implements VisitableBuilder{ V1EphemeralVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java index 1a7f08daa4..c232885926 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EphemeralVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EphemeralVolumeSourceFluent> extends BaseFluent{ private V1PersistentVolumeClaimTemplateBuilder volumeClaimTemplate; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EphemeralVolumeSourceFluent that = (V1EphemeralVolumeSourceFluent) o; + V1EphemeralVolumeSourceFluent that = (V1EphemeralVolumeSourceFluent) o; if (!(Objects.equals(volumeClaimTemplate, that.volumeClaimTemplate))) { return false; } @@ -96,11 +98,11 @@ public String toString() { } public VolumeClaimTemplateNested withNewVolumeClaimTemplate() { - return new VolumeClaimTemplateNested(null); + return new VolumeClaimTemplateNested<>(null); } public VolumeClaimTemplateNested withNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item) { - return new VolumeClaimTemplateNested(item); + return new VolumeClaimTemplateNested<>(item); } public A withVolumeClaimTemplate(V1PersistentVolumeClaimTemplate volumeClaimTemplate) { @@ -109,8 +111,8 @@ public A withVolumeClaimTemplate(V1PersistentVolumeClaimTemplate volumeClaimTemp this.volumeClaimTemplate = new V1PersistentVolumeClaimTemplateBuilder(volumeClaimTemplate); this._visitables.get("volumeClaimTemplate").add(this.volumeClaimTemplate); } else { - this.volumeClaimTemplate = null; this._visitables.get("volumeClaimTemplate").remove(this.volumeClaimTemplate); + this.volumeClaimTemplate = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java index 5cbbe33bb1..eadfdf6840 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EventSourceBuilder extends V1EventSourceFluent implements VisitableBuilder{ V1EventSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java index ae9b12c012..edaf6f749f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EventSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EventSourceFluent> extends BaseFluent{ private String component; private String host; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EventSourceFluent that = (V1EventSourceFluent) o; + V1EventSourceFluent that = (V1EventSourceFluent) o; if (!(Objects.equals(component, that.component))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java index b7c2e8acdf..2300df246a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1EvictionBuilder extends V1EvictionFluent implements VisitableBuilder{ V1EvictionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java index 8e7f687f03..3bdda6a1e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1EvictionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EvictionFluent> extends BaseFluent{ private String apiVersion; private V1DeleteOptionsBuilder deleteOptions; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1EvictionFluent that = (V1EvictionFluent) o; + V1EvictionFluent that = (V1EvictionFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -172,8 +174,8 @@ public A withDeleteOptions(V1DeleteOptions deleteOptions) { this.deleteOptions = new V1DeleteOptionsBuilder(deleteOptions); this._visitables.get("deleteOptions").add(this.deleteOptions); } else { - this.deleteOptions = null; this._visitables.get("deleteOptions").remove(this.deleteOptions); + this.deleteOptions = null; } return (A) this; } @@ -189,26 +191,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public DeleteOptionsNested withNewDeleteOptions() { - return new DeleteOptionsNested(null); + return new DeleteOptionsNested<>(null); } public DeleteOptionsNested withNewDeleteOptionsLike(V1DeleteOptions item) { - return new DeleteOptionsNested(item); + return new DeleteOptionsNested<>(item); } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class DeleteOptionsNested extends V1DeleteOptionsFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionResponderBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionResponderBuilder.java new file mode 100644 index 0000000000..342cd6c55e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionResponderBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1EvictionResponderBuilder extends V1EvictionResponderFluent implements VisitableBuilder{ + + V1EvictionResponderFluent fluent; + + public V1EvictionResponderBuilder() { + this(new V1EvictionResponder()); + } + + public V1EvictionResponderBuilder(V1EvictionResponderFluent fluent) { + this(fluent, new V1EvictionResponder()); + } + + public V1EvictionResponderBuilder(V1EvictionResponder instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1EvictionResponderBuilder(V1EvictionResponderFluent fluent,V1EvictionResponder instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1EvictionResponder build() { + V1EvictionResponder buildable = new V1EvictionResponder(); + buildable.setName(fluent.getName()); + buildable.setPriority(fluent.getPriority()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionResponderFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionResponderFluent.java new file mode 100644 index 0000000000..133e246e34 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionResponderFluent.java @@ -0,0 +1,115 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1EvictionResponderFluent> extends BaseFluent{ + + private String name; + private Integer priority; + + public V1EvictionResponderFluent() { + } + + public V1EvictionResponderFluent(V1EvictionResponder instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1EvictionResponder instance) { + instance = instance != null ? instance : new V1EvictionResponder(); + if (instance != null) { + this.withName(instance.getName()); + this.withPriority(instance.getPriority()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EvictionResponderFluent that = (V1EvictionResponderFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public Integer getPriority() { + return this.priority; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasPriority() { + return this.priority != null; + } + + public int hashCode() { + return Objects.hash(name, priority); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(priority == null)) { + sb.append("priority:"); + sb.append(priority); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withPriority(Integer priority) { + this.priority = priority; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java index 1993b387f0..fbd1fc1cf9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ExactDeviceRequestBuilder extends V1ExactDeviceRequestFluent implements VisitableBuilder{ V1ExactDeviceRequestFluent fluent; @@ -42,6 +43,7 @@ public V1ExactDeviceRequest build() { buildable.setAllocationMode(fluent.getAllocationMode()); buildable.setCapacity(fluent.buildCapacity()); buildable.setCount(fluent.getCount()); + buildable.setDerivedAttributes(fluent.buildDerivedAttributes()); buildable.setDeviceClassName(fluent.getDeviceClassName()); buildable.setSelectors(fluent.buildSelectors()); buildable.setTolerations(fluent.buildTolerations()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java index 73bb522041..fa3c1eebe3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java @@ -28,17 +28,20 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ExactDeviceRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ExactDeviceRequestFluent> extends BaseFluent{ private Boolean adminAccess; private String allocationMode; private V1CapacityRequirementsBuilder capacity; private Long count; + private ArrayList derivedAttributes; private String deviceClassName; private ArrayList selectors; private ArrayList tolerations; @@ -50,9 +53,21 @@ public V1ExactDeviceRequestFluent(V1ExactDeviceRequest instance) { this.copyInstance(instance); } + public A addAllToDerivedAttributes(Collection items) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + for (V1DeviceDerivedAttribute item : items) { + V1DeviceDerivedAttributeBuilder builder = new V1DeviceDerivedAttributeBuilder(item); + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } + return (A) this; + } + public A addAllToSelectors(Collection items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1DeviceSelector item : items) { V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); @@ -64,7 +79,7 @@ public A addAllToSelectors(Collection items) { public A addAllToTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1DeviceToleration item : items) { V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); @@ -74,25 +89,60 @@ public A addAllToTolerations(Collection items) { return (A) this; } + public DerivedAttributesNested addNewDerivedAttribute() { + return new DerivedAttributesNested<>(-1, null); + } + + public DerivedAttributesNested addNewDerivedAttributeLike(V1DeviceDerivedAttribute item) { + return new DerivedAttributesNested<>(-1, item); + } + public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + return new SelectorsNested<>(-1, null); } public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { - return new SelectorsNested(-1, item); + return new SelectorsNested<>(-1, item); } public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + return new TolerationsNested<>(-1, null); } public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { - return new TolerationsNested(-1, item); + return new TolerationsNested<>(-1, item); + } + + public A addToDerivedAttributes(V1DeviceDerivedAttribute... items) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + for (V1DeviceDerivedAttribute item : items) { + V1DeviceDerivedAttributeBuilder builder = new V1DeviceDerivedAttributeBuilder(item); + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } + return (A) this; + } + + public A addToDerivedAttributes(int index,V1DeviceDerivedAttribute item) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + V1DeviceDerivedAttributeBuilder builder = new V1DeviceDerivedAttributeBuilder(item); + if (index < 0 || index >= this.derivedAttributes.size()) { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } else { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(index, builder); + } + return (A) this; } public A addToSelectors(V1DeviceSelector... items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1DeviceSelector item : items) { V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); @@ -104,7 +154,7 @@ public A addToSelectors(V1DeviceSelector... items) { public A addToSelectors(int index,V1DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -119,7 +169,7 @@ public A addToSelectors(int index,V1DeviceSelector item) { public A addToTolerations(V1DeviceToleration... items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1DeviceToleration item : items) { V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); @@ -131,7 +181,7 @@ public A addToTolerations(V1DeviceToleration... items) { public A addToTolerations(int index,V1DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -148,6 +198,18 @@ public V1CapacityRequirements buildCapacity() { return this.capacity != null ? this.capacity.build() : null; } + public V1DeviceDerivedAttribute buildDerivedAttribute(int index) { + return this.derivedAttributes.get(index).build(); + } + + public List buildDerivedAttributes() { + return this.derivedAttributes != null ? build(derivedAttributes) : null; + } + + public V1DeviceDerivedAttribute buildFirstDerivedAttribute() { + return this.derivedAttributes.get(0).build(); + } + public V1DeviceSelector buildFirstSelector() { return this.selectors.get(0).build(); } @@ -156,6 +218,10 @@ public V1DeviceToleration buildFirstToleration() { return this.tolerations.get(0).build(); } + public V1DeviceDerivedAttribute buildLastDerivedAttribute() { + return this.derivedAttributes.get(derivedAttributes.size() - 1).build(); + } + public V1DeviceSelector buildLastSelector() { return this.selectors.get(selectors.size() - 1).build(); } @@ -164,6 +230,15 @@ public V1DeviceToleration buildLastToleration() { return this.tolerations.get(tolerations.size() - 1).build(); } + public V1DeviceDerivedAttribute buildMatchingDerivedAttribute(Predicate predicate) { + for (V1DeviceDerivedAttributeBuilder item : derivedAttributes) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + public V1DeviceSelector buildMatchingSelector(Predicate predicate) { for (V1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -205,6 +280,7 @@ protected void copyInstance(V1ExactDeviceRequest instance) { this.withAllocationMode(instance.getAllocationMode()); this.withCapacity(instance.getCapacity()); this.withCount(instance.getCount()); + this.withDerivedAttributes(instance.getDerivedAttributes()); this.withDeviceClassName(instance.getDeviceClassName()); this.withSelectors(instance.getSelectors()); this.withTolerations(instance.getTolerations()); @@ -215,6 +291,20 @@ public CapacityNested editCapacity() { return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); } + public DerivedAttributesNested editDerivedAttribute(int index) { + if (derivedAttributes.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + + public DerivedAttributesNested editFirstDerivedAttribute() { + if (derivedAttributes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(0, this.buildDerivedAttribute(0)); + } + public SelectorsNested editFirstSelector() { if (selectors.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); @@ -229,6 +319,14 @@ public TolerationsNested editFirstToleration() { return this.setNewTolerationLike(0, this.buildToleration(0)); } + public DerivedAttributesNested editLastDerivedAttribute() { + int index = derivedAttributes.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + public SelectorsNested editLastSelector() { int index = selectors.size() - 1; if (index < 0) { @@ -245,6 +343,20 @@ public TolerationsNested editLastToleration() { return this.setNewTolerationLike(index, this.buildToleration(index)); } + public DerivedAttributesNested editMatchingDerivedAttribute(Predicate predicate) { + int index = -1; + for (int i = 0;i < derivedAttributes.size();i++) { + if (predicate.test(derivedAttributes.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; for (int i = 0;i < selectors.size();i++) { @@ -305,7 +417,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ExactDeviceRequestFluent that = (V1ExactDeviceRequestFluent) o; + V1ExactDeviceRequestFluent that = (V1ExactDeviceRequestFluent) o; if (!(Objects.equals(adminAccess, that.adminAccess))) { return false; } @@ -318,6 +430,9 @@ public boolean equals(Object o) { if (!(Objects.equals(count, that.count))) { return false; } + if (!(Objects.equals(derivedAttributes, that.derivedAttributes))) { + return false; + } if (!(Objects.equals(deviceClassName, that.deviceClassName))) { return false; } @@ -362,10 +477,23 @@ public boolean hasCount() { return this.count != null; } + public boolean hasDerivedAttributes() { + return this.derivedAttributes != null && !(this.derivedAttributes.isEmpty()); + } + public boolean hasDeviceClassName() { return this.deviceClassName != null; } + public boolean hasMatchingDerivedAttribute(Predicate predicate) { + for (V1DeviceDerivedAttributeBuilder item : derivedAttributes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingSelector(Predicate predicate) { for (V1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -393,7 +521,19 @@ public boolean hasTolerations() { } public int hashCode() { - return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, selectors, tolerations); + return Objects.hash(adminAccess, allocationMode, capacity, count, derivedAttributes, deviceClassName, selectors, tolerations); + } + + public A removeAllFromDerivedAttributes(Collection items) { + if (this.derivedAttributes == null) { + return (A) this; + } + for (V1DeviceDerivedAttribute item : items) { + V1DeviceDerivedAttributeBuilder builder = new V1DeviceDerivedAttributeBuilder(item); + _visitables.get("derivedAttributes").remove(builder); + this.derivedAttributes.remove(builder); + } + return (A) this; } public A removeAllFromSelectors(Collection items) { @@ -420,6 +560,18 @@ public A removeAllFromTolerations(Collection items) { return (A) this; } + public A removeFromDerivedAttributes(V1DeviceDerivedAttribute... items) { + if (this.derivedAttributes == null) { + return (A) this; + } + for (V1DeviceDerivedAttribute item : items) { + V1DeviceDerivedAttributeBuilder builder = new V1DeviceDerivedAttributeBuilder(item); + _visitables.get("derivedAttributes").remove(builder); + this.derivedAttributes.remove(builder); + } + return (A) this; + } + public A removeFromSelectors(V1DeviceSelector... items) { if (this.selectors == null) { return (A) this; @@ -444,11 +596,29 @@ public A removeFromTolerations(V1DeviceToleration... items) { return (A) this; } + public A removeMatchingFromDerivedAttributes(Predicate predicate) { + if (derivedAttributes == null) { + return (A) this; + } + Iterator each = derivedAttributes.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("derivedAttributes"); + while (each.hasNext()) { + V1DeviceDerivedAttributeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public A removeMatchingFromSelectors(Predicate predicate) { if (selectors == null) { return (A) this; } Iterator each = selectors.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1DeviceSelectorBuilder builder = each.next(); @@ -465,6 +635,7 @@ public A removeMatchingFromTolerations(Predicate pred return (A) this; } Iterator each = tolerations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1DeviceTolerationBuilder builder = each.next(); @@ -476,17 +647,36 @@ public A removeMatchingFromTolerations(Predicate pred return (A) this; } + public DerivedAttributesNested setNewDerivedAttributeLike(int index,V1DeviceDerivedAttribute item) { + return new DerivedAttributesNested<>(index, item); + } + public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { - return new SelectorsNested(index, item); + return new SelectorsNested<>(index, item); } public TolerationsNested setNewTolerationLike(int index,V1DeviceToleration item) { - return new TolerationsNested(index, item); + return new TolerationsNested<>(index, item); + } + + public A setToDerivedAttributes(int index,V1DeviceDerivedAttribute item) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + V1DeviceDerivedAttributeBuilder builder = new V1DeviceDerivedAttributeBuilder(item); + if (index < 0 || index >= this.derivedAttributes.size()) { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } else { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.set(index, builder); + } + return (A) this; } public A setToSelectors(int index,V1DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -501,7 +691,7 @@ public A setToSelectors(int index,V1DeviceSelector item) { public A setToTolerations(int index,V1DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -537,6 +727,11 @@ public String toString() { sb.append(count); sb.append(","); } + if (!(derivedAttributes == null) && !(derivedAttributes.isEmpty())) { + sb.append("derivedAttributes:"); + sb.append(derivedAttributes); + sb.append(","); + } if (!(deviceClassName == null)) { sb.append("deviceClassName:"); sb.append(deviceClassName); @@ -575,8 +770,8 @@ public A withCapacity(V1CapacityRequirements capacity) { this.capacity = new V1CapacityRequirementsBuilder(capacity); this._visitables.get("capacity").add(this.capacity); } else { - this.capacity = null; this._visitables.get("capacity").remove(this.capacity); + this.capacity = null; } return (A) this; } @@ -586,17 +781,45 @@ public A withCount(Long count) { return (A) this; } + public A withDerivedAttributes(List derivedAttributes) { + if (this.derivedAttributes != null) { + this._visitables.get("derivedAttributes").clear(); + } + if (derivedAttributes != null) { + this.derivedAttributes = new ArrayList<>(); + for (V1DeviceDerivedAttribute item : derivedAttributes) { + this.addToDerivedAttributes(item); + } + } else { + this.derivedAttributes = null; + } + return (A) this; + } + + public A withDerivedAttributes(V1DeviceDerivedAttribute... derivedAttributes) { + if (this.derivedAttributes != null) { + this.derivedAttributes.clear(); + _visitables.remove("derivedAttributes"); + } + if (derivedAttributes != null) { + for (V1DeviceDerivedAttribute item : derivedAttributes) { + this.addToDerivedAttributes(item); + } + } + return (A) this; + } + public A withDeviceClassName(String deviceClassName) { this.deviceClassName = deviceClassName; return (A) this; } public CapacityNested withNewCapacity() { - return new CapacityNested(null); + return new CapacityNested<>(null); } public CapacityNested withNewCapacityLike(V1CapacityRequirements item) { - return new CapacityNested(item); + return new CapacityNested<>(item); } public A withSelectors(List selectors) { @@ -604,7 +827,7 @@ public A withSelectors(List selectors) { this._visitables.get("selectors").clear(); } if (selectors != null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); for (V1DeviceSelector item : selectors) { this.addToSelectors(item); } @@ -632,7 +855,7 @@ public A withTolerations(List tolerations) { this._visitables.get("tolerations").clear(); } if (tolerations != null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); for (V1DeviceToleration item : tolerations) { this.addToTolerations(item); } @@ -670,6 +893,25 @@ public N endCapacity() { return and(); } + } + public class DerivedAttributesNested extends V1DeviceDerivedAttributeFluent> implements Nested{ + + V1DeviceDerivedAttributeBuilder builder; + int index; + + DerivedAttributesNested(int index,V1DeviceDerivedAttribute item) { + this.index = index; + this.builder = new V1DeviceDerivedAttributeBuilder(this, item); + } + + public N and() { + return (N) V1ExactDeviceRequestFluent.this.setToDerivedAttributes(index, builder.build()); + } + + public N endDerivedAttribute() { + return and(); + } + } public class SelectorsNested extends V1DeviceSelectorFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java index ee6a70ff91..18183b818a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ExecActionBuilder extends V1ExecActionFluent implements VisitableBuilder{ V1ExecActionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java index 8c0b80b9a5..8790c90c0b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ExecActionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ExecActionFluent> extends BaseFluent{ private List command; @@ -40,7 +42,7 @@ public V1ExecActionFluent(V1ExecAction instance) { public A addAllToCommand(Collection items) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } for (String item : items) { this.command.add(item); @@ -50,7 +52,7 @@ public A addAllToCommand(Collection items) { public A addToCommand(String... items) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } for (String item : items) { this.command.add(item); @@ -60,7 +62,7 @@ public A addToCommand(String... items) { public A addToCommand(int index,String item) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } this.command.add(index, item); return (A) this; @@ -83,7 +85,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ExecActionFluent that = (V1ExecActionFluent) o; + V1ExecActionFluent that = (V1ExecActionFluent) o; if (!(Objects.equals(command, that.command))) { return false; } @@ -154,7 +156,7 @@ public A removeFromCommand(String... items) { public A setToCommand(int index,String item) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } this.command.set(index, item); return (A) this; @@ -173,7 +175,7 @@ public String toString() { public A withCommand(List command) { if (command != null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); for (String item : command) { this.addToCommand(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java index 3c5c7facab..106ddb946a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ExemptPriorityLevelConfigurationBuilder extends V1ExemptPriorityLevelConfigurationFluent implements VisitableBuilder{ V1ExemptPriorityLevelConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java index 3af563d5a7..7455de7be5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ExemptPriorityLevelConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ExemptPriorityLevelConfigurationFluent> extends BaseFluent{ private Integer lendablePercent; private Integer nominalConcurrencyShares; @@ -54,7 +56,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ExemptPriorityLevelConfigurationFluent that = (V1ExemptPriorityLevelConfigurationFluent) o; + V1ExemptPriorityLevelConfigurationFluent that = (V1ExemptPriorityLevelConfigurationFluent) o; if (!(Objects.equals(lendablePercent, that.lendablePercent))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java index da5e300f7e..a92106a867 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ExpressionWarningBuilder extends V1ExpressionWarningFluent implements VisitableBuilder{ V1ExpressionWarningFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java index 614f183394..3c3c4ce944 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ExpressionWarningFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ExpressionWarningFluent> extends BaseFluent{ private String fieldRef; private String warning; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ExpressionWarningFluent that = (V1ExpressionWarningFluent) o; + V1ExpressionWarningFluent that = (V1ExpressionWarningFluent) o; if (!(Objects.equals(fieldRef, that.fieldRef))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java index eee4a36c3e..032d2e93a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ExternalDocumentationBuilder extends V1ExternalDocumentationFluent implements VisitableBuilder{ V1ExternalDocumentationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java index 3cd9ccf1e1..806a0b2852 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ExternalDocumentationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ExternalDocumentationFluent> extends BaseFluent{ private String description; private String url; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ExternalDocumentationFluent that = (V1ExternalDocumentationFluent) o; + V1ExternalDocumentationFluent that = (V1ExternalDocumentationFluent) o; if (!(Objects.equals(description, that.description))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java index 4230d9ec50..f413bb10a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1FCVolumeSourceBuilder extends V1FCVolumeSourceFluent implements VisitableBuilder{ V1FCVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java index 107104f01c..2be222b5c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java @@ -24,12 +24,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1FCVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1FCVolumeSourceFluent> extends BaseFluent{ private String fsType; private Integer lun; @@ -46,7 +48,7 @@ public V1FCVolumeSourceFluent(V1FCVolumeSource instance) { public A addAllToTargetWWNs(Collection items) { if (this.targetWWNs == null) { - this.targetWWNs = new ArrayList(); + this.targetWWNs = new ArrayList<>(); } for (String item : items) { this.targetWWNs.add(item); @@ -56,7 +58,7 @@ public A addAllToTargetWWNs(Collection items) { public A addAllToWwids(Collection items) { if (this.wwids == null) { - this.wwids = new ArrayList(); + this.wwids = new ArrayList<>(); } for (String item : items) { this.wwids.add(item); @@ -66,7 +68,7 @@ public A addAllToWwids(Collection items) { public A addToTargetWWNs(String... items) { if (this.targetWWNs == null) { - this.targetWWNs = new ArrayList(); + this.targetWWNs = new ArrayList<>(); } for (String item : items) { this.targetWWNs.add(item); @@ -76,7 +78,7 @@ public A addToTargetWWNs(String... items) { public A addToTargetWWNs(int index,String item) { if (this.targetWWNs == null) { - this.targetWWNs = new ArrayList(); + this.targetWWNs = new ArrayList<>(); } this.targetWWNs.add(index, item); return (A) this; @@ -84,7 +86,7 @@ public A addToTargetWWNs(int index,String item) { public A addToWwids(String... items) { if (this.wwids == null) { - this.wwids = new ArrayList(); + this.wwids = new ArrayList<>(); } for (String item : items) { this.wwids.add(item); @@ -94,7 +96,7 @@ public A addToWwids(String... items) { public A addToWwids(int index,String item) { if (this.wwids == null) { - this.wwids = new ArrayList(); + this.wwids = new ArrayList<>(); } this.wwids.add(index, item); return (A) this; @@ -121,7 +123,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1FCVolumeSourceFluent that = (V1FCVolumeSourceFluent) o; + V1FCVolumeSourceFluent that = (V1FCVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } @@ -286,7 +288,7 @@ public A removeFromWwids(String... items) { public A setToTargetWWNs(int index,String item) { if (this.targetWWNs == null) { - this.targetWWNs = new ArrayList(); + this.targetWWNs = new ArrayList<>(); } this.targetWWNs.set(index, item); return (A) this; @@ -294,7 +296,7 @@ public A setToTargetWWNs(int index,String item) { public A setToWwids(int index,String item) { if (this.wwids == null) { - this.wwids = new ArrayList(); + this.wwids = new ArrayList<>(); } this.wwids.set(index, item); return (A) this; @@ -352,7 +354,7 @@ public A withReadOnly(Boolean readOnly) { public A withTargetWWNs(List targetWWNs) { if (targetWWNs != null) { - this.targetWWNs = new ArrayList(); + this.targetWWNs = new ArrayList<>(); for (String item : targetWWNs) { this.addToTargetWWNs(item); } @@ -377,7 +379,7 @@ public A withTargetWWNs(String... targetWWNs) { public A withWwids(List wwids) { if (wwids != null) { - this.wwids = new ArrayList(); + this.wwids = new ArrayList<>(); for (String item : wwids) { this.addToWwids(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java index 1914f56769..9314ad6e27 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1FieldSelectorAttributesBuilder extends V1FieldSelectorAttributesFluent implements VisitableBuilder{ V1FieldSelectorAttributesFluent fluent; 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 21487a978d..7c74d81869 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1FieldSelectorAttributesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1FieldSelectorAttributesFluent> extends BaseFluent{ private String rawSelector; private ArrayList requirements; @@ -44,7 +46,7 @@ public V1FieldSelectorAttributesFluent(V1FieldSelectorAttributes instance) { public A addAllToRequirements(Collection items) { if (this.requirements == null) { - this.requirements = new ArrayList(); + this.requirements = new ArrayList<>(); } for (V1FieldSelectorRequirement item : items) { V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); @@ -55,16 +57,16 @@ public A addAllToRequirements(Collection items) { } public RequirementsNested addNewRequirement() { - return new RequirementsNested(-1, null); + return new RequirementsNested<>(-1, null); } public RequirementsNested addNewRequirementLike(V1FieldSelectorRequirement item) { - return new RequirementsNested(-1, item); + return new RequirementsNested<>(-1, item); } public A addToRequirements(V1FieldSelectorRequirement... items) { if (this.requirements == null) { - this.requirements = new ArrayList(); + this.requirements = new ArrayList<>(); } for (V1FieldSelectorRequirement item : items) { V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); @@ -76,7 +78,7 @@ public A addToRequirements(V1FieldSelectorRequirement... items) { public A addToRequirements(int index,V1FieldSelectorRequirement item) { if (this.requirements == null) { - this.requirements = new ArrayList(); + this.requirements = new ArrayList<>(); } V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); if (index < 0 || index >= this.requirements.size()) { @@ -168,7 +170,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1FieldSelectorAttributesFluent that = (V1FieldSelectorAttributesFluent) o; + V1FieldSelectorAttributesFluent that = (V1FieldSelectorAttributesFluent) o; if (!(Objects.equals(rawSelector, that.rawSelector))) { return false; } @@ -232,6 +234,7 @@ public A removeMatchingFromRequirements(Predicate each = requirements.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("requirements"); while (each.hasNext()) { V1FieldSelectorRequirementBuilder builder = each.next(); @@ -244,12 +247,12 @@ public A removeMatchingFromRequirements(Predicate setNewRequirementLike(int index,V1FieldSelectorRequirement item) { - return new RequirementsNested(index, item); + return new RequirementsNested<>(index, item); } public A setToRequirements(int index,V1FieldSelectorRequirement item) { if (this.requirements == null) { - this.requirements = new ArrayList(); + this.requirements = new ArrayList<>(); } V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); if (index < 0 || index >= this.requirements.size()) { @@ -288,7 +291,7 @@ public A withRequirements(List requirements) { this._visitables.get("requirements").clear(); } if (requirements != null) { - this.requirements = new ArrayList(); + this.requirements = new ArrayList<>(); for (V1FieldSelectorRequirement item : requirements) { this.addToRequirements(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java index defc07c05b..914d64aee3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1FieldSelectorRequirementBuilder extends V1FieldSelectorRequirementFluent implements VisitableBuilder{ V1FieldSelectorRequirementFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java index 7339bcf8b8..bab98e26a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1FieldSelectorRequirementFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1FieldSelectorRequirementFluent> extends BaseFluent{ private String key; private String operator; @@ -42,7 +44,7 @@ public V1FieldSelectorRequirementFluent(V1FieldSelectorRequirement instance) { public A addAllToValues(Collection items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (String item : items) { this.values.add(item); @@ -52,7 +54,7 @@ public A addAllToValues(Collection items) { public A addToValues(String... items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (String item : items) { this.values.add(item); @@ -62,7 +64,7 @@ public A addToValues(String... items) { public A addToValues(int index,String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.add(index, item); return (A) this; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1FieldSelectorRequirementFluent that = (V1FieldSelectorRequirementFluent) o; + V1FieldSelectorRequirementFluent that = (V1FieldSelectorRequirementFluent) o; if (!(Objects.equals(key, that.key))) { return false; } @@ -180,7 +182,7 @@ public A removeFromValues(String... items) { public A setToValues(int index,String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.set(index, item); return (A) this; @@ -219,7 +221,7 @@ public A withOperator(String operator) { public A withValues(List values) { if (values != null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); for (String item : values) { this.addToValues(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java index ee4df9a0e0..e94a61f26a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1FileKeySelectorBuilder extends V1FileKeySelectorFluent implements VisitableBuilder{ V1FileKeySelectorFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java index 8eca1cbbee..d900e4326c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1FileKeySelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1FileKeySelectorFluent> extends BaseFluent{ private String key; private Boolean optional; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1FileKeySelectorFluent that = (V1FileKeySelectorFluent) o; + V1FileKeySelectorFluent that = (V1FileKeySelectorFluent) o; if (!(Objects.equals(key, that.key))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java index 2654a1b8b6..65c18af893 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1FlexPersistentVolumeSourceBuilder extends V1FlexPersistentVolumeSourceFluent implements VisitableBuilder{ V1FlexPersistentVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java index 43a33af077..0564c21b23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java @@ -23,12 +23,14 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1FlexPersistentVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1FlexPersistentVolumeSourceFluent> extends BaseFluent{ private String driver; private String fsType; @@ -45,7 +47,7 @@ public V1FlexPersistentVolumeSourceFluent(V1FlexPersistentVolumeSource instance) public A addToOptions(Map map) { if (this.options == null && map != null) { - this.options = new LinkedHashMap(); + this.options = new LinkedHashMap<>(); } if (map != null) { this.options.putAll(map); @@ -55,7 +57,7 @@ public A addToOptions(Map map) { public A addToOptions(String key,String value) { if (this.options == null && key != null && value != null) { - this.options = new LinkedHashMap(); + this.options = new LinkedHashMap<>(); } if (key != null && value != null) { this.options.put(key, value); @@ -100,7 +102,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1FlexPersistentVolumeSourceFluent that = (V1FlexPersistentVolumeSourceFluent) o; + V1FlexPersistentVolumeSourceFluent that = (V1FlexPersistentVolumeSourceFluent) o; if (!(Objects.equals(driver, that.driver))) { return false; } @@ -225,18 +227,18 @@ public A withFsType(String fsType) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withOptions(Map options) { if (options == null) { this.options = null; } else { - this.options = new LinkedHashMap(options); + this.options = new LinkedHashMap<>(options); } return (A) this; } @@ -256,8 +258,8 @@ public A withSecretRef(V1SecretReference secretRef) { this.secretRef = new V1SecretReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java index 7524699478..a5e731b57c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1FlexVolumeSourceBuilder extends V1FlexVolumeSourceFluent implements VisitableBuilder{ V1FlexVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java index 7460157d00..9f7cf0f9e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java @@ -23,12 +23,14 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1FlexVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1FlexVolumeSourceFluent> extends BaseFluent{ private String driver; private String fsType; @@ -45,7 +47,7 @@ public V1FlexVolumeSourceFluent(V1FlexVolumeSource instance) { public A addToOptions(Map map) { if (this.options == null && map != null) { - this.options = new LinkedHashMap(); + this.options = new LinkedHashMap<>(); } if (map != null) { this.options.putAll(map); @@ -55,7 +57,7 @@ public A addToOptions(Map map) { public A addToOptions(String key,String value) { if (this.options == null && key != null && value != null) { - this.options = new LinkedHashMap(); + this.options = new LinkedHashMap<>(); } if (key != null && value != null) { this.options.put(key, value); @@ -100,7 +102,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1FlexVolumeSourceFluent that = (V1FlexVolumeSourceFluent) o; + V1FlexVolumeSourceFluent that = (V1FlexVolumeSourceFluent) o; if (!(Objects.equals(driver, that.driver))) { return false; } @@ -225,18 +227,18 @@ public A withFsType(String fsType) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withOptions(Map options) { if (options == null) { this.options = null; } else { - this.options = new LinkedHashMap(options); + this.options = new LinkedHashMap<>(options); } return (A) this; } @@ -256,8 +258,8 @@ public A withSecretRef(V1LocalObjectReference secretRef) { this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java index a14969db90..f94526b7d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1FlockerVolumeSourceBuilder extends V1FlockerVolumeSourceFluent implements VisitableBuilder{ V1FlockerVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java index c34e269904..5c8104765e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1FlockerVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1FlockerVolumeSourceFluent> extends BaseFluent{ private String datasetName; private String datasetUUID; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1FlockerVolumeSourceFluent that = (V1FlockerVolumeSourceFluent) o; + V1FlockerVolumeSourceFluent that = (V1FlockerVolumeSourceFluent) o; if (!(Objects.equals(datasetName, that.datasetName))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java index 7f54456944..0532899c1e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1FlowDistinguisherMethodBuilder extends V1FlowDistinguisherMethodFluent implements VisitableBuilder{ V1FlowDistinguisherMethodFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java index 394ceaf710..1d720f2b2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1FlowDistinguisherMethodFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1FlowDistinguisherMethodFluent> extends BaseFluent{ private String type; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1FlowDistinguisherMethodFluent that = (V1FlowDistinguisherMethodFluent) o; + V1FlowDistinguisherMethodFluent that = (V1FlowDistinguisherMethodFluent) o; if (!(Objects.equals(type, that.type))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java index 9f0005aaec..a005db6f05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1FlowSchemaBuilder extends V1FlowSchemaFluent implements VisitableBuilder{ V1FlowSchemaFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java index f5f8e945de..173b7c148d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1FlowSchemaConditionBuilder extends V1FlowSchemaConditionFluent implements VisitableBuilder{ V1FlowSchemaConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java index 1ebb071d98..02c1c880d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1FlowSchemaConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1FlowSchemaConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private String message; @@ -60,7 +62,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1FlowSchemaConditionFluent that = (V1FlowSchemaConditionFluent) o; + V1FlowSchemaConditionFluent that = (V1FlowSchemaConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java index 2a5ee1944d..51037029bc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1FlowSchemaFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1FlowSchemaFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1FlowSchemaFluent that = (V1FlowSchemaFluent) o; + V1FlowSchemaFluent that = (V1FlowSchemaFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1FlowSchemaSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1FlowSchemaStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1FlowSchemaSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1FlowSchemaSpec spec) { this.spec = new V1FlowSchemaSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1FlowSchemaStatus status) { this.status = new V1FlowSchemaStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java index 6ae75db111..8c354566b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1FlowSchemaListBuilder extends V1FlowSchemaListFluent implements VisitableBuilder{ V1FlowSchemaListFluent fluent; 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 08a1d03824..3f88565846 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1FlowSchemaListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1FlowSchemaListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1FlowSchemaListFluent(V1FlowSchemaList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1FlowSchema item : items) { V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1FlowSchema item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1FlowSchema... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1FlowSchema item : items) { V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1FlowSchema... items) { public A addToItems(int index,V1FlowSchema item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1FlowSchemaListFluent that = (V1FlowSchemaListFluent) o; + V1FlowSchemaListFluent that = (V1FlowSchemaListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1FlowSchemaBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1FlowSchema item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1FlowSchema item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1FlowSchema item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1FlowSchemaFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java index 68a177a292..910ee03e90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1FlowSchemaSpecBuilder extends V1FlowSchemaSpecFluent implements VisitableBuilder{ V1FlowSchemaSpecFluent fluent; 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 9713bd0258..b552c451ff 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 @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1FlowSchemaSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1FlowSchemaSpecFluent> extends BaseFluent{ private V1FlowDistinguisherMethodBuilder distinguisherMethod; private Integer matchingPrecedence; @@ -48,7 +50,7 @@ public V1FlowSchemaSpecFluent(V1FlowSchemaSpec instance) { public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1PolicyRulesWithSubjects item : items) { V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); @@ -59,16 +61,16 @@ public A addAllToRules(Collection items) { } public RulesNested addNewRule() { - return new RulesNested(-1, null); + return new RulesNested<>(-1, null); } public RulesNested addNewRuleLike(V1PolicyRulesWithSubjects item) { - return new RulesNested(-1, item); + return new RulesNested<>(-1, item); } public A addToRules(V1PolicyRulesWithSubjects... items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1PolicyRulesWithSubjects item : items) { V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); @@ -80,7 +82,7 @@ public A addToRules(V1PolicyRulesWithSubjects... items) { public A addToRules(int index,V1PolicyRulesWithSubjects item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -206,7 +208,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1FlowSchemaSpecFluent that = (V1FlowSchemaSpecFluent) o; + V1FlowSchemaSpecFluent that = (V1FlowSchemaSpecFluent) o; if (!(Objects.equals(distinguisherMethod, that.distinguisherMethod))) { return false; } @@ -284,6 +286,7 @@ public A removeMatchingFromRules(Predicate pre return (A) this; } Iterator each = rules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1PolicyRulesWithSubjectsBuilder builder = each.next(); @@ -296,12 +299,12 @@ public A removeMatchingFromRules(Predicate pre } public RulesNested setNewRuleLike(int index,V1PolicyRulesWithSubjects item) { - return new RulesNested(index, item); + return new RulesNested<>(index, item); } public A setToRules(int index,V1PolicyRulesWithSubjects item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -346,8 +349,8 @@ public A withDistinguisherMethod(V1FlowDistinguisherMethod distinguisherMethod) this.distinguisherMethod = new V1FlowDistinguisherMethodBuilder(distinguisherMethod); this._visitables.get("distinguisherMethod").add(this.distinguisherMethod); } else { - this.distinguisherMethod = null; this._visitables.get("distinguisherMethod").remove(this.distinguisherMethod); + this.distinguisherMethod = null; } return (A) this; } @@ -358,19 +361,19 @@ public A withMatchingPrecedence(Integer matchingPrecedence) { } public DistinguisherMethodNested withNewDistinguisherMethod() { - return new DistinguisherMethodNested(null); + return new DistinguisherMethodNested<>(null); } public DistinguisherMethodNested withNewDistinguisherMethodLike(V1FlowDistinguisherMethod item) { - return new DistinguisherMethodNested(item); + return new DistinguisherMethodNested<>(item); } public PriorityLevelConfigurationNested withNewPriorityLevelConfiguration() { - return new PriorityLevelConfigurationNested(null); + return new PriorityLevelConfigurationNested<>(null); } public PriorityLevelConfigurationNested withNewPriorityLevelConfigurationLike(V1PriorityLevelConfigurationReference item) { - return new PriorityLevelConfigurationNested(item); + return new PriorityLevelConfigurationNested<>(item); } public A withPriorityLevelConfiguration(V1PriorityLevelConfigurationReference priorityLevelConfiguration) { @@ -379,8 +382,8 @@ public A withPriorityLevelConfiguration(V1PriorityLevelConfigurationReference pr this.priorityLevelConfiguration = new V1PriorityLevelConfigurationReferenceBuilder(priorityLevelConfiguration); this._visitables.get("priorityLevelConfiguration").add(this.priorityLevelConfiguration); } else { - this.priorityLevelConfiguration = null; this._visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); + this.priorityLevelConfiguration = null; } return (A) this; } @@ -390,7 +393,7 @@ public A withRules(List rules) { this._visitables.get("rules").clear(); } if (rules != null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); for (V1PolicyRulesWithSubjects item : rules) { this.addToRules(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java index bb55c25d15..cb5906ef6c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1FlowSchemaStatusBuilder extends V1FlowSchemaStatusFluent implements VisitableBuilder{ V1FlowSchemaStatusFluent fluent; 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 fd210cd1f5..227d2d271e 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1FlowSchemaStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1FlowSchemaStatusFluent> extends BaseFluent{ private ArrayList conditions; @@ -43,7 +45,7 @@ public V1FlowSchemaStatusFluent(V1FlowSchemaStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1FlowSchemaCondition item : items) { V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); @@ -54,16 +56,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1FlowSchemaCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1FlowSchemaCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1FlowSchemaCondition item : items) { V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); @@ -75,7 +77,7 @@ public A addToConditions(V1FlowSchemaCondition... items) { public A addToConditions(int index,V1FlowSchemaCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1FlowSchemaStatusFluent that = (V1FlowSchemaStatusFluent) o; + V1FlowSchemaStatusFluent that = (V1FlowSchemaStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromConditions(Predicate pr return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1FlowSchemaConditionBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromConditions(Predicate pr } public ConditionsNested setNewConditionLike(int index,V1FlowSchemaCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1FlowSchemaCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -265,7 +268,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1FlowSchemaCondition item : conditions) { this.addToConditions(item); } 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 index 67403f4e70..7dc7229f92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ForNodeBuilder extends V1ForNodeFluent implements VisitableBuilder{ V1ForNodeFluent fluent; 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 index 440a5825a7..749a136d91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ForNodeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ForNodeFluent> extends BaseFluent{ private String name; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ForNodeFluent that = (V1ForNodeFluent) o; + V1ForNodeFluent that = (V1ForNodeFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java index def2a46605..b518572989 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ForZoneBuilder extends V1ForZoneFluent implements VisitableBuilder{ V1ForZoneFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java index 4127690af5..9be7401fe7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ForZoneFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ForZoneFluent> extends BaseFluent{ private String name; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ForZoneFluent that = (V1ForZoneFluent) o; + V1ForZoneFluent that = (V1ForZoneFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java index df173e78f0..6fc04c7329 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1GCEPersistentDiskVolumeSourceBuilder extends V1GCEPersistentDiskVolumeSourceFluent implements VisitableBuilder{ V1GCEPersistentDiskVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java index b1f2022310..7de867e47c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java @@ -20,12 +20,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1GCEPersistentDiskVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1GCEPersistentDiskVolumeSourceFluent> extends BaseFluent{ private String fsType; private Integer partition; @@ -59,7 +61,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1GCEPersistentDiskVolumeSourceFluent that = (V1GCEPersistentDiskVolumeSourceFluent) o; + V1GCEPersistentDiskVolumeSourceFluent that = (V1GCEPersistentDiskVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java index 0562fb27eb..a7f0f0391d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1GRPCActionBuilder extends V1GRPCActionFluent implements VisitableBuilder{ V1GRPCActionFluent fluent; @@ -38,6 +39,7 @@ public V1GRPCActionBuilder(V1GRPCActionFluent fluent,V1GRPCAction instance) { public V1GRPCAction build() { V1GRPCAction buildable = new V1GRPCAction(); + buildable.setMode(fluent.getMode()); buildable.setPort(fluent.getPort()); buildable.setService(fluent.getService()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java index e4b19920dc..b17905c235 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java @@ -19,13 +19,16 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1GRPCActionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1GRPCActionFluent> extends BaseFluent{ + private String mode; private Integer port; private String service; @@ -39,6 +42,7 @@ public V1GRPCActionFluent(V1GRPCAction instance) { protected void copyInstance(V1GRPCAction instance) { instance = instance != null ? instance : new V1GRPCAction(); if (instance != null) { + this.withMode(instance.getMode()); this.withPort(instance.getPort()); this.withService(instance.getService()); } @@ -54,7 +58,10 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1GRPCActionFluent that = (V1GRPCActionFluent) o; + V1GRPCActionFluent that = (V1GRPCActionFluent) o; + if (!(Objects.equals(mode, that.mode))) { + return false; + } if (!(Objects.equals(port, that.port))) { return false; } @@ -64,6 +71,10 @@ public boolean equals(Object o) { return true; } + public String getMode() { + return this.mode; + } + public Integer getPort() { return this.port; } @@ -72,6 +83,10 @@ public String getService() { return this.service; } + public boolean hasMode() { + return this.mode != null; + } + public boolean hasPort() { return this.port != null; } @@ -81,12 +96,17 @@ public boolean hasService() { } public int hashCode() { - return Objects.hash(port, service); + return Objects.hash(mode, port, service); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (!(mode == null)) { + sb.append("mode:"); + sb.append(mode); + sb.append(","); + } if (!(port == null)) { sb.append("port:"); sb.append(port); @@ -100,6 +120,11 @@ public String toString() { return sb.toString(); } + public A withMode(String mode) { + this.mode = mode; + return (A) this; + } + public A withPort(Integer port) { this.port = port; return (A) this; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java index 1c0cc66949..dd9c2f417c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1GitRepoVolumeSourceBuilder extends V1GitRepoVolumeSourceFluent implements VisitableBuilder{ V1GitRepoVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java index ef7da79904..e115f57bbd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1GitRepoVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1GitRepoVolumeSourceFluent> extends BaseFluent{ private String directory; private String repository; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1GitRepoVolumeSourceFluent that = (V1GitRepoVolumeSourceFluent) o; + V1GitRepoVolumeSourceFluent that = (V1GitRepoVolumeSourceFluent) o; if (!(Objects.equals(directory, that.directory))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java index eb822f2d95..3315a3d305 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1GlusterfsPersistentVolumeSourceBuilder extends V1GlusterfsPersistentVolumeSourceFluent implements VisitableBuilder{ V1GlusterfsPersistentVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java index e2ba3aef88..678a0113e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1GlusterfsPersistentVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1GlusterfsPersistentVolumeSourceFluent> extends BaseFluent{ private String endpoints; private String endpointsNamespace; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1GlusterfsPersistentVolumeSourceFluent that = (V1GlusterfsPersistentVolumeSourceFluent) o; + V1GlusterfsPersistentVolumeSourceFluent that = (V1GlusterfsPersistentVolumeSourceFluent) o; if (!(Objects.equals(endpoints, that.endpoints))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java index 3fb36180b1..d3b13f9bc7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1GlusterfsVolumeSourceBuilder extends V1GlusterfsVolumeSourceFluent implements VisitableBuilder{ V1GlusterfsVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java index 22402c6979..592f7af487 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1GlusterfsVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1GlusterfsVolumeSourceFluent> extends BaseFluent{ private String endpoints; private String path; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1GlusterfsVolumeSourceFluent that = (V1GlusterfsVolumeSourceFluent) o; + V1GlusterfsVolumeSourceFluent that = (V1GlusterfsVolumeSourceFluent) o; if (!(Objects.equals(endpoints, that.endpoints))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceBuilder.java index 35283ff627..e7ef907044 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1GroupResourceBuilder extends V1GroupResourceFluent implements VisitableBuilder{ V1GroupResourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceFluent.java index c24d645f81..820594c12f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1GroupResourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1GroupResourceFluent> extends BaseFluent{ private String group; private String resource; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1GroupResourceFluent that = (V1GroupResourceFluent) o; + V1GroupResourceFluent that = (V1GroupResourceFluent) o; if (!(Objects.equals(group, that.group))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java index 99ecebb278..55682b5d62 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1GroupSubjectBuilder extends V1GroupSubjectFluent implements VisitableBuilder{ V1GroupSubjectFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java index af2d343b29..18ff0ef754 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1GroupSubjectFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1GroupSubjectFluent> extends BaseFluent{ private String name; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1GroupSubjectFluent that = (V1GroupSubjectFluent) o; + V1GroupSubjectFluent that = (V1GroupSubjectFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java index 79eea64e8d..b917e7e838 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1GroupVersionForDiscoveryBuilder extends V1GroupVersionForDiscoveryFluent implements VisitableBuilder{ V1GroupVersionForDiscoveryFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java index bd810cba35..b1f7534568 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1GroupVersionForDiscoveryFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1GroupVersionForDiscoveryFluent> extends BaseFluent{ private String groupVersion; private String version; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1GroupVersionForDiscoveryFluent that = (V1GroupVersionForDiscoveryFluent) o; + V1GroupVersionForDiscoveryFluent that = (V1GroupVersionForDiscoveryFluent) o; if (!(Objects.equals(groupVersion, that.groupVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindBuilder.java index 102a3a8b5a..6fc02f163f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1GroupVersionKindBuilder extends V1GroupVersionKindFluent implements VisitableBuilder{ V1GroupVersionKindFluent fluent; @@ -39,8 +40,8 @@ public V1GroupVersionKindBuilder(V1GroupVersionKindFluent fluent,V1GroupVersi public V1GroupVersionKind build() { V1GroupVersionKind buildable = new V1GroupVersionKind(); buildable.setGroup(fluent.getGroup()); - buildable.setKind(fluent.getKind()); buildable.setVersion(fluent.getVersion()); + buildable.setKind(fluent.getKind()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindFluent.java index dca3dc50d5..14e8843040 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1GroupVersionKindFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1GroupVersionKindFluent> extends BaseFluent{ private String group; private String kind; @@ -40,8 +42,8 @@ protected void copyInstance(V1GroupVersionKind instance) { instance = instance != null ? instance : new V1GroupVersionKind(); if (instance != null) { this.withGroup(instance.getGroup()); - this.withKind(instance.getKind()); this.withVersion(instance.getVersion()); + this.withKind(instance.getKind()); } } @@ -55,14 +57,14 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1GroupVersionKindFluent that = (V1GroupVersionKindFluent) o; + V1GroupVersionKindFluent that = (V1GroupVersionKindFluent) o; if (!(Objects.equals(group, that.group))) { return false; } - if (!(Objects.equals(kind, that.kind))) { + if (!(Objects.equals(version, that.version))) { return false; } - if (!(Objects.equals(version, that.version))) { + if (!(Objects.equals(kind, that.kind))) { return false; } return true; @@ -93,7 +95,7 @@ public boolean hasVersion() { } public int hashCode() { - return Objects.hash(group, kind, version); + return Objects.hash(group, version, kind); } public String toString() { @@ -104,14 +106,14 @@ public String toString() { sb.append(group); sb.append(","); } - if (!(kind == null)) { - sb.append("kind:"); - sb.append(kind); - sb.append(","); - } if (!(version == null)) { sb.append("version:"); sb.append(version); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); } sb.append("}"); return sb.toString(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java index 0bd5cb8073..dc3130d714 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1HTTPGetActionBuilder extends V1HTTPGetActionFluent implements VisitableBuilder{ V1HTTPGetActionFluent fluent; @@ -42,6 +43,7 @@ public V1HTTPGetAction build() { buildable.setHttpHeaders(fluent.buildHttpHeaders()); buildable.setPath(fluent.getPath()); buildable.setPort(fluent.getPort()); + buildable.setProtocol(fluent.getProtocol()); buildable.setScheme(fluent.getScheme()); return buildable; } 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 80811ec89f..1f28d7b4cd 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 @@ -26,17 +26,20 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1HTTPGetActionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1HTTPGetActionFluent> extends BaseFluent{ private String host; private ArrayList httpHeaders; private String path; private IntOrString port; + private String protocol; private String scheme; public V1HTTPGetActionFluent() { @@ -48,7 +51,7 @@ public V1HTTPGetActionFluent(V1HTTPGetAction instance) { public A addAllToHttpHeaders(Collection items) { if (this.httpHeaders == null) { - this.httpHeaders = new ArrayList(); + this.httpHeaders = new ArrayList<>(); } for (V1HTTPHeader item : items) { V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); @@ -59,16 +62,16 @@ public A addAllToHttpHeaders(Collection items) { } public HttpHeadersNested addNewHttpHeader() { - return new HttpHeadersNested(-1, null); + return new HttpHeadersNested<>(-1, null); } public HttpHeadersNested addNewHttpHeaderLike(V1HTTPHeader item) { - return new HttpHeadersNested(-1, item); + return new HttpHeadersNested<>(-1, item); } public A addToHttpHeaders(V1HTTPHeader... items) { if (this.httpHeaders == null) { - this.httpHeaders = new ArrayList(); + this.httpHeaders = new ArrayList<>(); } for (V1HTTPHeader item : items) { V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); @@ -80,7 +83,7 @@ public A addToHttpHeaders(V1HTTPHeader... items) { public A addToHttpHeaders(int index,V1HTTPHeader item) { if (this.httpHeaders == null) { - this.httpHeaders = new ArrayList(); + this.httpHeaders = new ArrayList<>(); } V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); if (index < 0 || index >= this.httpHeaders.size()) { @@ -125,6 +128,7 @@ protected void copyInstance(V1HTTPGetAction instance) { this.withHttpHeaders(instance.getHttpHeaders()); this.withPath(instance.getPath()); this.withPort(instance.getPort()); + this.withProtocol(instance.getProtocol()); this.withScheme(instance.getScheme()); } } @@ -175,7 +179,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1HTTPGetActionFluent that = (V1HTTPGetActionFluent) o; + V1HTTPGetActionFluent that = (V1HTTPGetActionFluent) o; if (!(Objects.equals(host, that.host))) { return false; } @@ -188,6 +192,9 @@ public boolean equals(Object o) { if (!(Objects.equals(port, that.port))) { return false; } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } if (!(Objects.equals(scheme, that.scheme))) { return false; } @@ -206,6 +213,10 @@ public IntOrString getPort() { return this.port; } + public String getProtocol() { + return this.protocol; + } + public String getScheme() { return this.scheme; } @@ -235,12 +246,16 @@ public boolean hasPort() { return this.port != null; } + public boolean hasProtocol() { + return this.protocol != null; + } + public boolean hasScheme() { return this.scheme != null; } public int hashCode() { - return Objects.hash(host, httpHeaders, path, port, scheme); + return Objects.hash(host, httpHeaders, path, port, protocol, scheme); } public A removeAllFromHttpHeaders(Collection items) { @@ -272,6 +287,7 @@ public A removeMatchingFromHttpHeaders(Predicate predicate) return (A) this; } Iterator each = httpHeaders.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("httpHeaders"); while (each.hasNext()) { V1HTTPHeaderBuilder builder = each.next(); @@ -284,12 +300,12 @@ public A removeMatchingFromHttpHeaders(Predicate predicate) } public HttpHeadersNested setNewHttpHeaderLike(int index,V1HTTPHeader item) { - return new HttpHeadersNested(index, item); + return new HttpHeadersNested<>(index, item); } public A setToHttpHeaders(int index,V1HTTPHeader item) { if (this.httpHeaders == null) { - this.httpHeaders = new ArrayList(); + this.httpHeaders = new ArrayList<>(); } V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); if (index < 0 || index >= this.httpHeaders.size()) { @@ -325,6 +341,11 @@ public String toString() { sb.append(port); sb.append(","); } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + sb.append(","); + } if (!(scheme == null)) { sb.append("scheme:"); sb.append(scheme); @@ -343,7 +364,7 @@ public A withHttpHeaders(List httpHeaders) { this._visitables.get("httpHeaders").clear(); } if (httpHeaders != null) { - this.httpHeaders = new ArrayList(); + this.httpHeaders = new ArrayList<>(); for (V1HTTPHeader item : httpHeaders) { this.addToHttpHeaders(item); } @@ -384,6 +405,11 @@ public A withPort(IntOrString port) { return (A) this; } + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; + } + public A withScheme(String scheme) { this.scheme = scheme; return (A) this; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java index 97896e0ea4..1d3546682e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1HTTPHeaderBuilder extends V1HTTPHeaderFluent implements VisitableBuilder{ V1HTTPHeaderFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java index ab41f08f32..5d21cb6e71 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1HTTPHeaderFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1HTTPHeaderFluent> extends BaseFluent{ private String name; private String value; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1HTTPHeaderFluent that = (V1HTTPHeaderFluent) o; + V1HTTPHeaderFluent that = (V1HTTPHeaderFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java index 36f9b15efb..294217f0db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1HTTPIngressPathBuilder extends V1HTTPIngressPathFluent implements VisitableBuilder{ V1HTTPIngressPathFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java index 0faef26327..05b0e739b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1HTTPIngressPathFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1HTTPIngressPathFluent> extends BaseFluent{ private V1IngressBackendBuilder backend; private String path; @@ -73,7 +75,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1HTTPIngressPathFluent that = (V1HTTPIngressPathFluent) o; + V1HTTPIngressPathFluent that = (V1HTTPIngressPathFluent) o; if (!(Objects.equals(backend, that.backend))) { return false; } @@ -137,18 +139,18 @@ public A withBackend(V1IngressBackend backend) { this.backend = new V1IngressBackendBuilder(backend); this._visitables.get("backend").add(this.backend); } else { - this.backend = null; this._visitables.get("backend").remove(this.backend); + this.backend = null; } return (A) this; } public BackendNested withNewBackend() { - return new BackendNested(null); + return new BackendNested<>(null); } public BackendNested withNewBackendLike(V1IngressBackend item) { - return new BackendNested(item); + return new BackendNested<>(item); } public A withPath(String path) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java index 7239b8d7a1..4d375a469b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1HTTPIngressRuleValueBuilder extends V1HTTPIngressRuleValueFluent implements VisitableBuilder{ V1HTTPIngressRuleValueFluent fluent; 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 43ad8ab936..a7dd4811a2 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1HTTPIngressRuleValueFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1HTTPIngressRuleValueFluent> extends BaseFluent{ private ArrayList paths; @@ -43,7 +45,7 @@ public V1HTTPIngressRuleValueFluent(V1HTTPIngressRuleValue instance) { public A addAllToPaths(Collection items) { if (this.paths == null) { - this.paths = new ArrayList(); + this.paths = new ArrayList<>(); } for (V1HTTPIngressPath item : items) { V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); @@ -54,16 +56,16 @@ public A addAllToPaths(Collection items) { } public PathsNested addNewPath() { - return new PathsNested(-1, null); + return new PathsNested<>(-1, null); } public PathsNested addNewPathLike(V1HTTPIngressPath item) { - return new PathsNested(-1, item); + return new PathsNested<>(-1, item); } public A addToPaths(V1HTTPIngressPath... items) { if (this.paths == null) { - this.paths = new ArrayList(); + this.paths = new ArrayList<>(); } for (V1HTTPIngressPath item : items) { V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); @@ -75,7 +77,7 @@ public A addToPaths(V1HTTPIngressPath... items) { public A addToPaths(int index,V1HTTPIngressPath item) { if (this.paths == null) { - this.paths = new ArrayList(); + this.paths = new ArrayList<>(); } V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); if (index < 0 || index >= this.paths.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1HTTPIngressRuleValueFluent that = (V1HTTPIngressRuleValueFluent) o; + V1HTTPIngressRuleValueFluent that = (V1HTTPIngressRuleValueFluent) o; if (!(Objects.equals(paths, that.paths))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromPaths(Predicate predicate) return (A) this; } Iterator each = paths.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("paths"); while (each.hasNext()) { V1HTTPIngressPathBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromPaths(Predicate predicate) } public PathsNested setNewPathLike(int index,V1HTTPIngressPath item) { - return new PathsNested(index, item); + return new PathsNested<>(index, item); } public A setToPaths(int index,V1HTTPIngressPath item) { if (this.paths == null) { - this.paths = new ArrayList(); + this.paths = new ArrayList<>(); } V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); if (index < 0 || index >= this.paths.size()) { @@ -265,7 +268,7 @@ public A withPaths(List paths) { this._visitables.get("paths").clear(); } if (paths != null) { - this.paths = new ArrayList(); + this.paths = new ArrayList<>(); for (V1HTTPIngressPath item : paths) { this.addToPaths(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java index 6bf9eec270..c436bc5ff4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1HorizontalPodAutoscalerBuilder extends V1HorizontalPodAutoscalerFluent implements VisitableBuilder{ V1HorizontalPodAutoscalerFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java index 08c4b3fdb3..22d89012ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1HorizontalPodAutoscalerFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1HorizontalPodAutoscalerFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1HorizontalPodAutoscalerFluent that = (V1HorizontalPodAutoscalerFluent) o; + V1HorizontalPodAutoscalerFluent that = (V1HorizontalPodAutoscalerFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1HorizontalPodAutoscalerSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1HorizontalPodAutoscalerStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1HorizontalPodAutoscalerSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1HorizontalPodAutoscalerSpec spec) { this.spec = new V1HorizontalPodAutoscalerSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1HorizontalPodAutoscalerStatus status) { this.status = new V1HorizontalPodAutoscalerStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java index 90e6f6dc4c..aaa5d9f104 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1HorizontalPodAutoscalerListBuilder extends V1HorizontalPodAutoscalerListFluent implements VisitableBuilder{ V1HorizontalPodAutoscalerListFluent fluent; 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 323fddc9d2..dc4de5db51 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1HorizontalPodAutoscalerListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1HorizontalPodAutoscalerListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1HorizontalPodAutoscalerListFluent(V1HorizontalPodAutoscalerList instanc public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1HorizontalPodAutoscaler item : items) { V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1HorizontalPodAutoscaler item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1HorizontalPodAutoscaler... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1HorizontalPodAutoscaler item : items) { V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1HorizontalPodAutoscaler... items) { public A addToItems(int index,V1HorizontalPodAutoscaler item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1HorizontalPodAutoscalerListFluent that = (V1HorizontalPodAutoscalerListFluent) o; + V1HorizontalPodAutoscalerListFluent that = (V1HorizontalPodAutoscalerListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate pre return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1HorizontalPodAutoscalerBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate pre } public ItemsNested setNewItemLike(int index,V1HorizontalPodAutoscaler item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1HorizontalPodAutoscaler item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1HorizontalPodAutoscaler item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1HorizontalPodAutoscalerFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java index a829613964..989168d3a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1HorizontalPodAutoscalerSpecBuilder extends V1HorizontalPodAutoscalerSpecFluent implements VisitableBuilder{ V1HorizontalPodAutoscalerSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java index bb3656940c..3c2e48234d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ private Integer maxReplicas; private Integer minReplicas; @@ -76,7 +78,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1HorizontalPodAutoscalerSpecFluent that = (V1HorizontalPodAutoscalerSpecFluent) o; + V1HorizontalPodAutoscalerSpecFluent that = (V1HorizontalPodAutoscalerSpecFluent) o; if (!(Objects.equals(maxReplicas, that.maxReplicas))) { return false; } @@ -161,11 +163,11 @@ public A withMinReplicas(Integer minReplicas) { } public ScaleTargetRefNested withNewScaleTargetRef() { - return new ScaleTargetRefNested(null); + return new ScaleTargetRefNested<>(null); } public ScaleTargetRefNested withNewScaleTargetRefLike(V1CrossVersionObjectReference item) { - return new ScaleTargetRefNested(item); + return new ScaleTargetRefNested<>(item); } public A withScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) { @@ -174,8 +176,8 @@ public A withScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) { this.scaleTargetRef = new V1CrossVersionObjectReferenceBuilder(scaleTargetRef); this._visitables.get("scaleTargetRef").add(this.scaleTargetRef); } else { - this.scaleTargetRef = null; this._visitables.get("scaleTargetRef").remove(this.scaleTargetRef); + this.scaleTargetRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java index 477869b32a..ca617baed0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1HorizontalPodAutoscalerStatusBuilder extends V1HorizontalPodAutoscalerStatusFluent implements VisitableBuilder{ V1HorizontalPodAutoscalerStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java index ec069c5c5a..c7971e6820 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ private Integer currentCPUUtilizationPercentage; private Integer currentReplicas; @@ -62,7 +64,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1HorizontalPodAutoscalerStatusFluent that = (V1HorizontalPodAutoscalerStatusFluent) o; + V1HorizontalPodAutoscalerStatusFluent that = (V1HorizontalPodAutoscalerStatusFluent) o; if (!(Objects.equals(currentCPUUtilizationPercentage, that.currentCPUUtilizationPercentage))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java index 73972ce4b6..046fb2d672 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1HostAliasBuilder extends V1HostAliasFluent implements VisitableBuilder{ V1HostAliasFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java index f7320c9a3d..c63af0c8f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1HostAliasFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1HostAliasFluent> extends BaseFluent{ private List hostnames; private String ip; @@ -41,7 +43,7 @@ public V1HostAliasFluent(V1HostAlias instance) { public A addAllToHostnames(Collection items) { if (this.hostnames == null) { - this.hostnames = new ArrayList(); + this.hostnames = new ArrayList<>(); } for (String item : items) { this.hostnames.add(item); @@ -51,7 +53,7 @@ public A addAllToHostnames(Collection items) { public A addToHostnames(String... items) { if (this.hostnames == null) { - this.hostnames = new ArrayList(); + this.hostnames = new ArrayList<>(); } for (String item : items) { this.hostnames.add(item); @@ -61,7 +63,7 @@ public A addToHostnames(String... items) { public A addToHostnames(int index,String item) { if (this.hostnames == null) { - this.hostnames = new ArrayList(); + this.hostnames = new ArrayList<>(); } this.hostnames.add(index, item); return (A) this; @@ -85,7 +87,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1HostAliasFluent that = (V1HostAliasFluent) o; + V1HostAliasFluent that = (V1HostAliasFluent) o; if (!(Objects.equals(hostnames, that.hostnames))) { return false; } @@ -167,7 +169,7 @@ public A removeFromHostnames(String... items) { public A setToHostnames(int index,String item) { if (this.hostnames == null) { - this.hostnames = new ArrayList(); + this.hostnames = new ArrayList<>(); } this.hostnames.set(index, item); return (A) this; @@ -191,7 +193,7 @@ public String toString() { public A withHostnames(List hostnames) { if (hostnames != null) { - this.hostnames = new ArrayList(); + this.hostnames = new ArrayList<>(); for (String item : hostnames) { this.addToHostnames(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java index ddae31af0c..14c47c4941 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1HostIPBuilder extends V1HostIPFluent implements VisitableBuilder{ V1HostIPFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java index fb46f3dedf..f2cbeb3780 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1HostIPFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1HostIPFluent> extends BaseFluent{ private String ip; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1HostIPFluent that = (V1HostIPFluent) o; + V1HostIPFluent that = (V1HostIPFluent) o; if (!(Objects.equals(ip, that.ip))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java index 80bf0a6b94..c1e053a0fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1HostPathVolumeSourceBuilder extends V1HostPathVolumeSourceFluent implements VisitableBuilder{ V1HostPathVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java index 07f4d27426..23677a0930 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1HostPathVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1HostPathVolumeSourceFluent> extends BaseFluent{ private String path; private String type; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1HostPathVolumeSourceFluent that = (V1HostPathVolumeSourceFluent) o; + V1HostPathVolumeSourceFluent that = (V1HostPathVolumeSourceFluent) o; if (!(Objects.equals(path, that.path))) { return false; } 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 index f4696f47d3..4f6d132b34 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IPAddressBuilder extends V1IPAddressFluent implements VisitableBuilder{ V1IPAddressFluent fluent; 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 index 2882d875f0..2944becfda 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IPAddressFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IPAddressFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IPAddressFluent that = (V1IPAddressFluent) o; + V1IPAddressFluent that = (V1IPAddressFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1IPAddressSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1IPAddressSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1IPAddressSpec spec) { this.spec = new V1IPAddressSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } 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 index cc6bd0b7bd..c06d916c04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IPAddressListBuilder extends V1IPAddressListFluent implements VisitableBuilder{ V1IPAddressListFluent fluent; 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 index a5dba766c4..bd3881574c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IPAddressListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IPAddressListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1IPAddressListFluent(V1IPAddressList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1IPAddress item : items) { V1IPAddressBuilder builder = new V1IPAddressBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1IPAddress item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1IPAddress... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1IPAddress item : items) { V1IPAddressBuilder builder = new V1IPAddressBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1IPAddress... items) { public A addToItems(int index,V1IPAddress item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1IPAddressBuilder builder = new V1IPAddressBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IPAddressListFluent that = (V1IPAddressListFluent) o; + V1IPAddressListFluent that = (V1IPAddressListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1IPAddressBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1IPAddress item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1IPAddress item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1IPAddressBuilder builder = new V1IPAddressBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1IPAddress item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1IPAddressFluent> implements Nested{ 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 index 445924fe91..feb83e046c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IPAddressSpecBuilder extends V1IPAddressSpecFluent implements VisitableBuilder{ V1IPAddressSpecFluent fluent; 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 index bc243239d2..dd850130c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IPAddressSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IPAddressSpecFluent> extends BaseFluent{ private V1ParentReferenceBuilder parentRef; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IPAddressSpecFluent that = (V1IPAddressSpecFluent) o; + V1IPAddressSpecFluent that = (V1IPAddressSpecFluent) o; if (!(Objects.equals(parentRef, that.parentRef))) { return false; } @@ -96,11 +98,11 @@ public String toString() { } public ParentRefNested withNewParentRef() { - return new ParentRefNested(null); + return new ParentRefNested<>(null); } public ParentRefNested withNewParentRefLike(V1ParentReference item) { - return new ParentRefNested(item); + return new ParentRefNested<>(item); } public A withParentRef(V1ParentReference parentRef) { @@ -109,8 +111,8 @@ public A withParentRef(V1ParentReference parentRef) { this.parentRef = new V1ParentReferenceBuilder(parentRef); this._visitables.get("parentRef").add(this.parentRef); } else { - this.parentRef = null; this._visitables.get("parentRef").remove(this.parentRef); + this.parentRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java index 53b13226cc..363c5962de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IPBlockBuilder extends V1IPBlockFluent implements VisitableBuilder{ V1IPBlockFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java index 1ee405a5d8..93aba390ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IPBlockFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IPBlockFluent> extends BaseFluent{ private String cidr; private List except; @@ -41,7 +43,7 @@ public V1IPBlockFluent(V1IPBlock instance) { public A addAllToExcept(Collection items) { if (this.except == null) { - this.except = new ArrayList(); + this.except = new ArrayList<>(); } for (String item : items) { this.except.add(item); @@ -51,7 +53,7 @@ public A addAllToExcept(Collection items) { public A addToExcept(String... items) { if (this.except == null) { - this.except = new ArrayList(); + this.except = new ArrayList<>(); } for (String item : items) { this.except.add(item); @@ -61,7 +63,7 @@ public A addToExcept(String... items) { public A addToExcept(int index,String item) { if (this.except == null) { - this.except = new ArrayList(); + this.except = new ArrayList<>(); } this.except.add(index, item); return (A) this; @@ -85,7 +87,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IPBlockFluent that = (V1IPBlockFluent) o; + V1IPBlockFluent that = (V1IPBlockFluent) o; if (!(Objects.equals(cidr, that.cidr))) { return false; } @@ -167,7 +169,7 @@ public A removeFromExcept(String... items) { public A setToExcept(int index,String item) { if (this.except == null) { - this.except = new ArrayList(); + this.except = new ArrayList<>(); } this.except.set(index, item); return (A) this; @@ -196,7 +198,7 @@ public A withCidr(String cidr) { public A withExcept(List except) { if (except != null) { - this.except = new ArrayList(); + this.except = new ArrayList<>(); for (String item : except) { this.addToExcept(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java index 7e83d4eb56..bc94557f0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ISCSIPersistentVolumeSourceBuilder extends V1ISCSIPersistentVolumeSourceFluent implements VisitableBuilder{ V1ISCSIPersistentVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java index ada2d0831f..d78f999b48 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ISCSIPersistentVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ISCSIPersistentVolumeSourceFluent> extends BaseFluent{ private Boolean chapAuthDiscovery; private Boolean chapAuthSession; @@ -54,7 +56,7 @@ public V1ISCSIPersistentVolumeSourceFluent(V1ISCSIPersistentVolumeSource instanc public A addAllToPortals(Collection items) { if (this.portals == null) { - this.portals = new ArrayList(); + this.portals = new ArrayList<>(); } for (String item : items) { this.portals.add(item); @@ -64,7 +66,7 @@ public A addAllToPortals(Collection items) { public A addToPortals(String... items) { if (this.portals == null) { - this.portals = new ArrayList(); + this.portals = new ArrayList<>(); } for (String item : items) { this.portals.add(item); @@ -74,7 +76,7 @@ public A addToPortals(String... items) { public A addToPortals(int index,String item) { if (this.portals == null) { - this.portals = new ArrayList(); + this.portals = new ArrayList<>(); } this.portals.add(index, item); return (A) this; @@ -123,7 +125,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ISCSIPersistentVolumeSourceFluent that = (V1ISCSIPersistentVolumeSourceFluent) o; + V1ISCSIPersistentVolumeSourceFluent that = (V1ISCSIPersistentVolumeSourceFluent) o; if (!(Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery))) { return false; } @@ -300,7 +302,7 @@ public A removeFromPortals(String... items) { public A setToPortals(int index,String item) { if (this.portals == null) { - this.portals = new ArrayList(); + this.portals = new ArrayList<>(); } this.portals.set(index, item); return (A) this; @@ -411,16 +413,16 @@ public A withLun(Integer lun) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withPortals(List portals) { if (portals != null) { - this.portals = new ArrayList(); + this.portals = new ArrayList<>(); for (String item : portals) { this.addToPortals(item); } @@ -458,8 +460,8 @@ public A withSecretRef(V1SecretReference secretRef) { this.secretRef = new V1SecretReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java index 32fa1fe413..c37ed3a54c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ISCSIVolumeSourceBuilder extends V1ISCSIVolumeSourceFluent implements VisitableBuilder{ V1ISCSIVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java index 5448c22044..3cc5cbb222 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ISCSIVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ISCSIVolumeSourceFluent> extends BaseFluent{ private Boolean chapAuthDiscovery; private Boolean chapAuthSession; @@ -54,7 +56,7 @@ public V1ISCSIVolumeSourceFluent(V1ISCSIVolumeSource instance) { public A addAllToPortals(Collection items) { if (this.portals == null) { - this.portals = new ArrayList(); + this.portals = new ArrayList<>(); } for (String item : items) { this.portals.add(item); @@ -64,7 +66,7 @@ public A addAllToPortals(Collection items) { public A addToPortals(String... items) { if (this.portals == null) { - this.portals = new ArrayList(); + this.portals = new ArrayList<>(); } for (String item : items) { this.portals.add(item); @@ -74,7 +76,7 @@ public A addToPortals(String... items) { public A addToPortals(int index,String item) { if (this.portals == null) { - this.portals = new ArrayList(); + this.portals = new ArrayList<>(); } this.portals.add(index, item); return (A) this; @@ -123,7 +125,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ISCSIVolumeSourceFluent that = (V1ISCSIVolumeSourceFluent) o; + V1ISCSIVolumeSourceFluent that = (V1ISCSIVolumeSourceFluent) o; if (!(Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery))) { return false; } @@ -300,7 +302,7 @@ public A removeFromPortals(String... items) { public A setToPortals(int index,String item) { if (this.portals == null) { - this.portals = new ArrayList(); + this.portals = new ArrayList<>(); } this.portals.set(index, item); return (A) this; @@ -411,16 +413,16 @@ public A withLun(Integer lun) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withPortals(List portals) { if (portals != null) { - this.portals = new ArrayList(); + this.portals = new ArrayList<>(); for (String item : portals) { this.addToPortals(item); } @@ -458,8 +460,8 @@ public A withSecretRef(V1LocalObjectReference secretRef) { this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java index dfa7b3ad1d..d69fcb34d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ImageVolumeSourceBuilder extends V1ImageVolumeSourceFluent implements VisitableBuilder{ V1ImageVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java index ac9385b9a4..35dd0f9922 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ImageVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ImageVolumeSourceFluent> extends BaseFluent{ private String pullPolicy; private String reference; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ImageVolumeSourceFluent that = (V1ImageVolumeSourceFluent) o; + V1ImageVolumeSourceFluent that = (V1ImageVolumeSourceFluent) o; if (!(Objects.equals(pullPolicy, that.pullPolicy))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusBuilder.java index 892dcacbdf..78f7a1edc2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ImageVolumeStatusBuilder extends V1ImageVolumeStatusFluent implements VisitableBuilder{ V1ImageVolumeStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusFluent.java index f155c00a16..07ff364cf2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ImageVolumeStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ImageVolumeStatusFluent> extends BaseFluent{ private String imageRef; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ImageVolumeStatusFluent that = (V1ImageVolumeStatusFluent) o; + V1ImageVolumeStatusFluent that = (V1ImageVolumeStatusFluent) o; if (!(Objects.equals(imageRef, that.imageRef))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java index 8652512c57..bed935d4b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressBackendBuilder extends V1IngressBackendFluent implements VisitableBuilder{ V1IngressBackendFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java index 910ca1bd37..6618b417d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressBackendFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressBackendFluent> extends BaseFluent{ private V1TypedLocalObjectReferenceBuilder resource; private V1IngressServiceBackendBuilder service; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressBackendFluent that = (V1IngressBackendFluent) o; + V1IngressBackendFluent that = (V1IngressBackendFluent) o; if (!(Objects.equals(resource, that.resource))) { return false; } @@ -126,19 +128,19 @@ public String toString() { } public ResourceNested withNewResource() { - return new ResourceNested(null); + return new ResourceNested<>(null); } public ResourceNested withNewResourceLike(V1TypedLocalObjectReference item) { - return new ResourceNested(item); + return new ResourceNested<>(item); } public ServiceNested withNewService() { - return new ServiceNested(null); + return new ServiceNested<>(null); } public ServiceNested withNewServiceLike(V1IngressServiceBackend item) { - return new ServiceNested(item); + return new ServiceNested<>(item); } public A withResource(V1TypedLocalObjectReference resource) { @@ -147,8 +149,8 @@ public A withResource(V1TypedLocalObjectReference resource) { this.resource = new V1TypedLocalObjectReferenceBuilder(resource); this._visitables.get("resource").add(this.resource); } else { - this.resource = null; this._visitables.get("resource").remove(this.resource); + this.resource = null; } return (A) this; } @@ -159,8 +161,8 @@ public A withService(V1IngressServiceBackend service) { this.service = new V1IngressServiceBackendBuilder(service); this._visitables.get("service").add(this.service); } else { - this.service = null; this._visitables.get("service").remove(this.service); + this.service = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java index 1a75baa532..b4756a25e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressBuilder extends V1IngressFluent implements VisitableBuilder{ V1IngressFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java index 222c27c972..ed2b858e75 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressClassBuilder extends V1IngressClassFluent implements VisitableBuilder{ V1IngressClassFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java index b1f8d55efc..ebaf536a12 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressClassFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressClassFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressClassFluent that = (V1IngressClassFluent) o; + V1IngressClassFluent that = (V1IngressClassFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1IngressClassSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1IngressClassSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1IngressClassSpec spec) { this.spec = new V1IngressClassSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java index 70f00679f7..00c9f3abec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressClassListBuilder extends V1IngressClassListFluent implements VisitableBuilder{ V1IngressClassListFluent fluent; 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 03488e4801..53b652da92 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressClassListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressClassListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1IngressClassListFluent(V1IngressClassList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1IngressClass item : items) { V1IngressClassBuilder builder = new V1IngressClassBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1IngressClass item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1IngressClass... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1IngressClass item : items) { V1IngressClassBuilder builder = new V1IngressClassBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1IngressClass... items) { public A addToItems(int index,V1IngressClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1IngressClassBuilder builder = new V1IngressClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressClassListFluent that = (V1IngressClassListFluent) o; + V1IngressClassListFluent that = (V1IngressClassListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1IngressClassBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1IngressClass item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1IngressClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1IngressClassBuilder builder = new V1IngressClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1IngressClass item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1IngressClassFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java index c1fcc3283a..b289a4a507 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressClassParametersReferenceBuilder extends V1IngressClassParametersReferenceFluent implements VisitableBuilder{ V1IngressClassParametersReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java index 738f970c14..0418b9b591 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressClassParametersReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressClassParametersReferenceFluent> extends BaseFluent{ private String apiGroup; private String kind; @@ -59,7 +61,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressClassParametersReferenceFluent that = (V1IngressClassParametersReferenceFluent) o; + V1IngressClassParametersReferenceFluent that = (V1IngressClassParametersReferenceFluent) o; if (!(Objects.equals(apiGroup, that.apiGroup))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java index 2d4965e7e7..e6af23d720 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressClassSpecBuilder extends V1IngressClassSpecFluent implements VisitableBuilder{ V1IngressClassSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java index d8339e8732..86c4598fb1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressClassSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressClassSpecFluent> extends BaseFluent{ private String controller; private V1IngressClassParametersReferenceBuilder parameters; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressClassSpecFluent that = (V1IngressClassSpecFluent) o; + V1IngressClassSpecFluent that = (V1IngressClassSpecFluent) o; if (!(Objects.equals(controller, that.controller))) { return false; } @@ -119,11 +121,11 @@ public A withController(String controller) { } public ParametersNested withNewParameters() { - return new ParametersNested(null); + return new ParametersNested<>(null); } public ParametersNested withNewParametersLike(V1IngressClassParametersReference item) { - return new ParametersNested(item); + return new ParametersNested<>(item); } public A withParameters(V1IngressClassParametersReference parameters) { @@ -132,8 +134,8 @@ public A withParameters(V1IngressClassParametersReference parameters) { this.parameters = new V1IngressClassParametersReferenceBuilder(parameters); this._visitables.get("parameters").add(this.parameters); } else { - this.parameters = null; this._visitables.get("parameters").remove(this.parameters); + this.parameters = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java index f5f390df9c..b01e929bbb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressFluent that = (V1IngressFluent) o; + V1IngressFluent that = (V1IngressFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1IngressSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1IngressStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1IngressSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1IngressSpec spec) { this.spec = new V1IngressSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1IngressStatus status) { this.status = new V1IngressStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java index 20025d4e04..8c674ede8f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressListBuilder extends V1IngressListFluent implements VisitableBuilder{ V1IngressListFluent fluent; 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 552b152ad5..8c7a06dee5 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1IngressListFluent(V1IngressList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Ingress item : items) { V1IngressBuilder builder = new V1IngressBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1Ingress item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1Ingress... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Ingress item : items) { V1IngressBuilder builder = new V1IngressBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1Ingress... items) { public A addToItems(int index,V1Ingress item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1IngressBuilder builder = new V1IngressBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressListFluent that = (V1IngressListFluent) o; + V1IngressListFluent that = (V1IngressListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1IngressBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1Ingress item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1Ingress item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1IngressBuilder builder = new V1IngressBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1Ingress item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1IngressFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java index 54d30ff2a5..cba72d211d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressLoadBalancerIngressBuilder extends V1IngressLoadBalancerIngressFluent implements VisitableBuilder{ V1IngressLoadBalancerIngressFluent fluent; 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 eed727d7e9..bd7ff7a93b 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressLoadBalancerIngressFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressLoadBalancerIngressFluent> extends BaseFluent{ private String hostname; private String ip; @@ -45,7 +47,7 @@ public V1IngressLoadBalancerIngressFluent(V1IngressLoadBalancerIngress instance) public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1IngressPortStatus item : items) { V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); @@ -56,16 +58,16 @@ public A addAllToPorts(Collection items) { } public PortsNested addNewPort() { - return new PortsNested(-1, null); + return new PortsNested<>(-1, null); } public PortsNested addNewPortLike(V1IngressPortStatus item) { - return new PortsNested(-1, item); + return new PortsNested<>(-1, item); } public A addToPorts(V1IngressPortStatus... items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1IngressPortStatus item : items) { V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); @@ -77,7 +79,7 @@ public A addToPorts(V1IngressPortStatus... items) { public A addToPorts(int index,V1IngressPortStatus item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -170,7 +172,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressLoadBalancerIngressFluent that = (V1IngressLoadBalancerIngressFluent) o; + V1IngressLoadBalancerIngressFluent that = (V1IngressLoadBalancerIngressFluent) o; if (!(Objects.equals(hostname, that.hostname))) { return false; } @@ -245,6 +247,7 @@ public A removeMatchingFromPorts(Predicate predicate return (A) this; } Iterator each = ports.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1IngressPortStatusBuilder builder = each.next(); @@ -257,12 +260,12 @@ public A removeMatchingFromPorts(Predicate predicate } public PortsNested setNewPortLike(int index,V1IngressPortStatus item) { - return new PortsNested(index, item); + return new PortsNested<>(index, item); } public A setToPorts(int index,V1IngressPortStatus item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -311,7 +314,7 @@ public A withPorts(List ports) { this._visitables.get("ports").clear(); } if (ports != null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); for (V1IngressPortStatus item : ports) { this.addToPorts(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java index 3d80de2e74..c98c0a3cd6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressLoadBalancerStatusBuilder extends V1IngressLoadBalancerStatusFluent implements VisitableBuilder{ V1IngressLoadBalancerStatusFluent fluent; 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 3072350515..c3c1ad3261 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressLoadBalancerStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressLoadBalancerStatusFluent> extends BaseFluent{ private ArrayList ingress; @@ -43,7 +45,7 @@ public V1IngressLoadBalancerStatusFluent(V1IngressLoadBalancerStatus instance) { public A addAllToIngress(Collection items) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } for (V1IngressLoadBalancerIngress item : items) { V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); @@ -54,16 +56,16 @@ public A addAllToIngress(Collection items) { } public IngressNested addNewIngress() { - return new IngressNested(-1, null); + return new IngressNested<>(-1, null); } public IngressNested addNewIngressLike(V1IngressLoadBalancerIngress item) { - return new IngressNested(-1, item); + return new IngressNested<>(-1, item); } public A addToIngress(V1IngressLoadBalancerIngress... items) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } for (V1IngressLoadBalancerIngress item : items) { V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); @@ -75,7 +77,7 @@ public A addToIngress(V1IngressLoadBalancerIngress... items) { public A addToIngress(int index,V1IngressLoadBalancerIngress item) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); if (index < 0 || index >= this.ingress.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressLoadBalancerStatusFluent that = (V1IngressLoadBalancerStatusFluent) o; + V1IngressLoadBalancerStatusFluent that = (V1IngressLoadBalancerStatusFluent) o; if (!(Objects.equals(ingress, that.ingress))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromIngress(Predicate each = ingress.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ingress"); while (each.hasNext()) { V1IngressLoadBalancerIngressBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromIngress(Predicate setNewIngressLike(int index,V1IngressLoadBalancerIngress item) { - return new IngressNested(index, item); + return new IngressNested<>(index, item); } public A setToIngress(int index,V1IngressLoadBalancerIngress item) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); if (index < 0 || index >= this.ingress.size()) { @@ -265,7 +268,7 @@ public A withIngress(List ingress) { this._visitables.get("ingress").clear(); } if (ingress != null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); for (V1IngressLoadBalancerIngress item : ingress) { this.addToIngress(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java index 14dbe0e34d..0b8c028a13 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressPortStatusBuilder extends V1IngressPortStatusFluent implements VisitableBuilder{ V1IngressPortStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java index dbc42dbe4a..1351587507 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressPortStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressPortStatusFluent> extends BaseFluent{ private String error; private Integer port; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressPortStatusFluent that = (V1IngressPortStatusFluent) o; + V1IngressPortStatusFluent that = (V1IngressPortStatusFluent) o; if (!(Objects.equals(error, that.error))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java index 63ab9805a2..cea36f6fff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressRuleBuilder extends V1IngressRuleFluent implements VisitableBuilder{ V1IngressRuleFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java index fba4e12d9c..779d0a0916 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressRuleFluent> extends BaseFluent{ private String host; private V1HTTPIngressRuleValueBuilder http; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressRuleFluent that = (V1IngressRuleFluent) o; + V1IngressRuleFluent that = (V1IngressRuleFluent) o; if (!(Objects.equals(host, that.host))) { return false; } @@ -124,18 +126,18 @@ public A withHttp(V1HTTPIngressRuleValue http) { this.http = new V1HTTPIngressRuleValueBuilder(http); this._visitables.get("http").add(this.http); } else { - this.http = null; this._visitables.get("http").remove(this.http); + this.http = null; } return (A) this; } public HttpNested withNewHttp() { - return new HttpNested(null); + return new HttpNested<>(null); } public HttpNested withNewHttpLike(V1HTTPIngressRuleValue item) { - return new HttpNested(item); + return new HttpNested<>(item); } public class HttpNested extends V1HTTPIngressRuleValueFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java index 87ab90fdee..f6d0456ef0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressServiceBackendBuilder extends V1IngressServiceBackendFluent implements VisitableBuilder{ V1IngressServiceBackendFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java index 5e74ec6768..a4a3ba74cb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressServiceBackendFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressServiceBackendFluent> extends BaseFluent{ private String name; private V1ServiceBackendPortBuilder port; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressServiceBackendFluent that = (V1IngressServiceBackendFluent) o; + V1IngressServiceBackendFluent that = (V1IngressServiceBackendFluent) o; if (!(Objects.equals(name, that.name))) { return false; } @@ -119,11 +121,11 @@ public A withName(String name) { } public PortNested withNewPort() { - return new PortNested(null); + return new PortNested<>(null); } public PortNested withNewPortLike(V1ServiceBackendPort item) { - return new PortNested(item); + return new PortNested<>(item); } public A withPort(V1ServiceBackendPort port) { @@ -132,8 +134,8 @@ public A withPort(V1ServiceBackendPort port) { this.port = new V1ServiceBackendPortBuilder(port); this._visitables.get("port").add(this.port); } else { - this.port = null; this._visitables.get("port").remove(this.port); + this.port = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java index 14d2e91c61..d4e9300d03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressSpecBuilder extends V1IngressSpecFluent implements VisitableBuilder{ V1IngressSpecFluent fluent; 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 6a22d26e6a..042075798c 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressSpecFluent> extends BaseFluent{ private V1IngressBackendBuilder defaultBackend; private String ingressClassName; @@ -47,7 +49,7 @@ public V1IngressSpecFluent(V1IngressSpec instance) { public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1IngressRule item : items) { V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); @@ -59,7 +61,7 @@ public A addAllToRules(Collection items) { public A addAllToTls(Collection items) { if (this.tls == null) { - this.tls = new ArrayList(); + this.tls = new ArrayList<>(); } for (V1IngressTLS item : items) { V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); @@ -70,24 +72,24 @@ public A addAllToTls(Collection items) { } public RulesNested addNewRule() { - return new RulesNested(-1, null); + return new RulesNested<>(-1, null); } public RulesNested addNewRuleLike(V1IngressRule item) { - return new RulesNested(-1, item); + return new RulesNested<>(-1, item); } public TlsNested addNewTl() { - return new TlsNested(-1, null); + return new TlsNested<>(-1, null); } public TlsNested addNewTlLike(V1IngressTLS item) { - return new TlsNested(-1, item); + return new TlsNested<>(-1, item); } public A addToRules(V1IngressRule... items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1IngressRule item : items) { V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); @@ -99,7 +101,7 @@ public A addToRules(V1IngressRule... items) { public A addToRules(int index,V1IngressRule item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -114,7 +116,7 @@ public A addToRules(int index,V1IngressRule item) { public A addToTls(V1IngressTLS... items) { if (this.tls == null) { - this.tls = new ArrayList(); + this.tls = new ArrayList<>(); } for (V1IngressTLS item : items) { V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); @@ -126,7 +128,7 @@ public A addToTls(V1IngressTLS... items) { public A addToTls(int index,V1IngressTLS item) { if (this.tls == null) { - this.tls = new ArrayList(); + this.tls = new ArrayList<>(); } V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); if (index < 0 || index >= this.tls.size()) { @@ -297,7 +299,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressSpecFluent that = (V1IngressSpecFluent) o; + V1IngressSpecFluent that = (V1IngressSpecFluent) o; if (!(Objects.equals(defaultBackend, that.defaultBackend))) { return false; } @@ -408,6 +410,7 @@ public A removeMatchingFromRules(Predicate predicate) { return (A) this; } Iterator each = rules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1IngressRuleBuilder builder = each.next(); @@ -424,6 +427,7 @@ public A removeMatchingFromTls(Predicate predicate) { return (A) this; } Iterator each = tls.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("tls"); while (each.hasNext()) { V1IngressTLSBuilder builder = each.next(); @@ -436,16 +440,16 @@ public A removeMatchingFromTls(Predicate predicate) { } public RulesNested setNewRuleLike(int index,V1IngressRule item) { - return new RulesNested(index, item); + return new RulesNested<>(index, item); } public TlsNested setNewTlLike(int index,V1IngressTLS item) { - return new TlsNested(index, item); + return new TlsNested<>(index, item); } public A setToRules(int index,V1IngressRule item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -460,7 +464,7 @@ public A setToRules(int index,V1IngressRule item) { public A setToTls(int index,V1IngressTLS item) { if (this.tls == null) { - this.tls = new ArrayList(); + this.tls = new ArrayList<>(); } V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); if (index < 0 || index >= this.tls.size()) { @@ -505,8 +509,8 @@ public A withDefaultBackend(V1IngressBackend defaultBackend) { this.defaultBackend = new V1IngressBackendBuilder(defaultBackend); this._visitables.get("defaultBackend").add(this.defaultBackend); } else { - this.defaultBackend = null; this._visitables.get("defaultBackend").remove(this.defaultBackend); + this.defaultBackend = null; } return (A) this; } @@ -517,11 +521,11 @@ public A withIngressClassName(String ingressClassName) { } public DefaultBackendNested withNewDefaultBackend() { - return new DefaultBackendNested(null); + return new DefaultBackendNested<>(null); } public DefaultBackendNested withNewDefaultBackendLike(V1IngressBackend item) { - return new DefaultBackendNested(item); + return new DefaultBackendNested<>(item); } public A withRules(List rules) { @@ -529,7 +533,7 @@ public A withRules(List rules) { this._visitables.get("rules").clear(); } if (rules != null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); for (V1IngressRule item : rules) { this.addToRules(item); } @@ -557,7 +561,7 @@ public A withTls(List tls) { this._visitables.get("tls").clear(); } if (tls != null) { - this.tls = new ArrayList(); + this.tls = new ArrayList<>(); for (V1IngressTLS item : tls) { this.addToTls(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java index 87f2d19268..0a95832468 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressStatusBuilder extends V1IngressStatusFluent implements VisitableBuilder{ V1IngressStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java index 37c844b139..13426d3e9f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressStatusFluent> extends BaseFluent{ private V1IngressLoadBalancerStatusBuilder loadBalancer; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressStatusFluent that = (V1IngressStatusFluent) o; + V1IngressStatusFluent that = (V1IngressStatusFluent) o; if (!(Objects.equals(loadBalancer, that.loadBalancer))) { return false; } @@ -101,18 +103,18 @@ public A withLoadBalancer(V1IngressLoadBalancerStatus loadBalancer) { this.loadBalancer = new V1IngressLoadBalancerStatusBuilder(loadBalancer); this._visitables.get("loadBalancer").add(this.loadBalancer); } else { - this.loadBalancer = null; this._visitables.get("loadBalancer").remove(this.loadBalancer); + this.loadBalancer = null; } return (A) this; } public LoadBalancerNested withNewLoadBalancer() { - return new LoadBalancerNested(null); + return new LoadBalancerNested<>(null); } public LoadBalancerNested withNewLoadBalancerLike(V1IngressLoadBalancerStatus item) { - return new LoadBalancerNested(item); + return new LoadBalancerNested<>(item); } public class LoadBalancerNested extends V1IngressLoadBalancerStatusFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java index 86b116b493..8cb4052f09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1IngressTLSBuilder extends V1IngressTLSFluent implements VisitableBuilder{ V1IngressTLSFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java index a669d4f60d..979f306afa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1IngressTLSFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1IngressTLSFluent> extends BaseFluent{ private List hosts; private String secretName; @@ -41,7 +43,7 @@ public V1IngressTLSFluent(V1IngressTLS instance) { public A addAllToHosts(Collection items) { if (this.hosts == null) { - this.hosts = new ArrayList(); + this.hosts = new ArrayList<>(); } for (String item : items) { this.hosts.add(item); @@ -51,7 +53,7 @@ public A addAllToHosts(Collection items) { public A addToHosts(String... items) { if (this.hosts == null) { - this.hosts = new ArrayList(); + this.hosts = new ArrayList<>(); } for (String item : items) { this.hosts.add(item); @@ -61,7 +63,7 @@ public A addToHosts(String... items) { public A addToHosts(int index,String item) { if (this.hosts == null) { - this.hosts = new ArrayList(); + this.hosts = new ArrayList<>(); } this.hosts.add(index, item); return (A) this; @@ -85,7 +87,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1IngressTLSFluent that = (V1IngressTLSFluent) o; + V1IngressTLSFluent that = (V1IngressTLSFluent) o; if (!(Objects.equals(hosts, that.hosts))) { return false; } @@ -167,7 +169,7 @@ public A removeFromHosts(String... items) { public A setToHosts(int index,String item) { if (this.hosts == null) { - this.hosts = new ArrayList(); + this.hosts = new ArrayList<>(); } this.hosts.set(index, item); return (A) this; @@ -191,7 +193,7 @@ public String toString() { public A withHosts(List hosts) { if (hosts != null) { - this.hosts = new ArrayList(); + this.hosts = new ArrayList<>(); for (String item : hosts) { this.addToHosts(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchBuilder.java index f17fa84b8d..1794333b01 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1JSONPatchBuilder extends V1JSONPatchFluent implements VisitableBuilder{ V1JSONPatchFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchFluent.java index a1870c6d90..dc51cd6aae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1JSONPatchFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1JSONPatchFluent> extends BaseFluent{ private String expression; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1JSONPatchFluent that = (V1JSONPatchFluent) o; + V1JSONPatchFluent that = (V1JSONPatchFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java index 6b3c14ea07..9643bd819f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1JSONSchemaPropsBuilder extends V1JSONSchemaPropsFluent implements VisitableBuilder{ V1JSONSchemaPropsFluent fluent; 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 44ec6c275e..7eee419efc 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 @@ -31,12 +31,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1JSONSchemaPropsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1JSONSchemaPropsFluent> extends BaseFluent{ private String $ref; private String $schema; @@ -85,7 +87,7 @@ public V1JSONSchemaPropsFluent(V1JSONSchemaProps instance) { public A addAllToAllOf(Collection items) { if (this.allOf == null) { - this.allOf = new ArrayList(); + this.allOf = new ArrayList<>(); } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); @@ -97,7 +99,7 @@ public A addAllToAllOf(Collection items) { public A addAllToAnyOf(Collection items) { if (this.anyOf == null) { - this.anyOf = new ArrayList(); + this.anyOf = new ArrayList<>(); } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); @@ -109,7 +111,7 @@ public A addAllToAnyOf(Collection items) { public A addAllToEnum(Collection items) { if (this._enum == null) { - this._enum = new ArrayList(); + this._enum = new ArrayList<>(); } for (Object item : items) { this._enum.add(item); @@ -119,7 +121,7 @@ public A addAllToEnum(Collection items) { public A addAllToOneOf(Collection items) { if (this.oneOf == null) { - this.oneOf = new ArrayList(); + this.oneOf = new ArrayList<>(); } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); @@ -131,7 +133,7 @@ public A addAllToOneOf(Collection items) { public A addAllToRequired(Collection items) { if (this.required == null) { - this.required = new ArrayList(); + this.required = new ArrayList<>(); } for (String item : items) { this.required.add(item); @@ -140,32 +142,32 @@ public A addAllToRequired(Collection items) { } public AllOfNested addNewAllOf() { - return new AllOfNested(-1, null); + return new AllOfNested<>(-1, null); } public AllOfNested addNewAllOfLike(V1JSONSchemaProps item) { - return new AllOfNested(-1, item); + return new AllOfNested<>(-1, item); } public AnyOfNested addNewAnyOf() { - return new AnyOfNested(-1, null); + return new AnyOfNested<>(-1, null); } public AnyOfNested addNewAnyOfLike(V1JSONSchemaProps item) { - return new AnyOfNested(-1, item); + return new AnyOfNested<>(-1, item); } public OneOfNested addNewOneOf() { - return new OneOfNested(-1, null); + return new OneOfNested<>(-1, null); } public OneOfNested addNewOneOfLike(V1JSONSchemaProps item) { - return new OneOfNested(-1, item); + return new OneOfNested<>(-1, item); } public A addToAllOf(V1JSONSchemaProps... items) { if (this.allOf == null) { - this.allOf = new ArrayList(); + this.allOf = new ArrayList<>(); } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); @@ -177,7 +179,7 @@ public A addToAllOf(V1JSONSchemaProps... items) { public A addToAllOf(int index,V1JSONSchemaProps item) { if (this.allOf == null) { - this.allOf = new ArrayList(); + this.allOf = new ArrayList<>(); } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= this.allOf.size()) { @@ -192,7 +194,7 @@ public A addToAllOf(int index,V1JSONSchemaProps item) { public A addToAnyOf(V1JSONSchemaProps... items) { if (this.anyOf == null) { - this.anyOf = new ArrayList(); + this.anyOf = new ArrayList<>(); } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); @@ -204,7 +206,7 @@ public A addToAnyOf(V1JSONSchemaProps... items) { public A addToAnyOf(int index,V1JSONSchemaProps item) { if (this.anyOf == null) { - this.anyOf = new ArrayList(); + this.anyOf = new ArrayList<>(); } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= this.anyOf.size()) { @@ -219,7 +221,7 @@ public A addToAnyOf(int index,V1JSONSchemaProps item) { public A addToDefinitions(Map map) { if (this.definitions == null && map != null) { - this.definitions = new LinkedHashMap(); + this.definitions = new LinkedHashMap<>(); } if (map != null) { this.definitions.putAll(map); @@ -229,7 +231,7 @@ public A addToDefinitions(Map map) { public A addToDefinitions(String key,V1JSONSchemaProps value) { if (this.definitions == null && key != null && value != null) { - this.definitions = new LinkedHashMap(); + this.definitions = new LinkedHashMap<>(); } if (key != null && value != null) { this.definitions.put(key, value); @@ -239,7 +241,7 @@ public A addToDefinitions(String key,V1JSONSchemaProps value) { public A addToDependencies(Map map) { if (this.dependencies == null && map != null) { - this.dependencies = new LinkedHashMap(); + this.dependencies = new LinkedHashMap<>(); } if (map != null) { this.dependencies.putAll(map); @@ -249,7 +251,7 @@ public A addToDependencies(Map map) { public A addToDependencies(String key,Object value) { if (this.dependencies == null && key != null && value != null) { - this.dependencies = new LinkedHashMap(); + this.dependencies = new LinkedHashMap<>(); } if (key != null && value != null) { this.dependencies.put(key, value); @@ -259,7 +261,7 @@ public A addToDependencies(String key,Object value) { public A addToEnum(Object... items) { if (this._enum == null) { - this._enum = new ArrayList(); + this._enum = new ArrayList<>(); } for (Object item : items) { this._enum.add(item); @@ -269,7 +271,7 @@ public A addToEnum(Object... items) { public A addToEnum(int index,Object item) { if (this._enum == null) { - this._enum = new ArrayList(); + this._enum = new ArrayList<>(); } this._enum.add(index, item); return (A) this; @@ -277,7 +279,7 @@ public A addToEnum(int index,Object item) { public A addToOneOf(V1JSONSchemaProps... items) { if (this.oneOf == null) { - this.oneOf = new ArrayList(); + this.oneOf = new ArrayList<>(); } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); @@ -289,7 +291,7 @@ public A addToOneOf(V1JSONSchemaProps... items) { public A addToOneOf(int index,V1JSONSchemaProps item) { if (this.oneOf == null) { - this.oneOf = new ArrayList(); + this.oneOf = new ArrayList<>(); } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= this.oneOf.size()) { @@ -304,7 +306,7 @@ public A addToOneOf(int index,V1JSONSchemaProps item) { public A addToPatternProperties(Map map) { if (this.patternProperties == null && map != null) { - this.patternProperties = new LinkedHashMap(); + this.patternProperties = new LinkedHashMap<>(); } if (map != null) { this.patternProperties.putAll(map); @@ -314,7 +316,7 @@ public A addToPatternProperties(Map map) { public A addToPatternProperties(String key,V1JSONSchemaProps value) { if (this.patternProperties == null && key != null && value != null) { - this.patternProperties = new LinkedHashMap(); + this.patternProperties = new LinkedHashMap<>(); } if (key != null && value != null) { this.patternProperties.put(key, value); @@ -324,7 +326,7 @@ public A addToPatternProperties(String key,V1JSONSchemaProps value) { public A addToProperties(Map map) { if (this.properties == null && map != null) { - this.properties = new LinkedHashMap(); + this.properties = new LinkedHashMap<>(); } if (map != null) { this.properties.putAll(map); @@ -334,7 +336,7 @@ public A addToProperties(Map map) { public A addToProperties(String key,V1JSONSchemaProps value) { if (this.properties == null && key != null && value != null) { - this.properties = new LinkedHashMap(); + this.properties = new LinkedHashMap<>(); } if (key != null && value != null) { this.properties.put(key, value); @@ -344,7 +346,7 @@ public A addToProperties(String key,V1JSONSchemaProps value) { public A addToRequired(String... items) { if (this.required == null) { - this.required = new ArrayList(); + this.required = new ArrayList<>(); } for (String item : items) { this.required.add(item); @@ -354,7 +356,7 @@ public A addToRequired(String... items) { public A addToRequired(int index,String item) { if (this.required == null) { - this.required = new ArrayList(); + this.required = new ArrayList<>(); } this.required.add(index, item); return (A) this; @@ -626,7 +628,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1JSONSchemaPropsFluent that = (V1JSONSchemaPropsFluent) o; + V1JSONSchemaPropsFluent that = (V1JSONSchemaPropsFluent) o; if (!(Objects.equals($ref, that.$ref))) { return false; } @@ -1321,6 +1323,7 @@ public A removeMatchingFromAllOf(Predicate predicate) return (A) this; } Iterator each = allOf.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("allOf"); while (each.hasNext()) { V1JSONSchemaPropsBuilder builder = each.next(); @@ -1337,6 +1340,7 @@ public A removeMatchingFromAnyOf(Predicate predicate) return (A) this; } Iterator each = anyOf.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("anyOf"); while (each.hasNext()) { V1JSONSchemaPropsBuilder builder = each.next(); @@ -1353,6 +1357,7 @@ public A removeMatchingFromOneOf(Predicate predicate) return (A) this; } Iterator each = oneOf.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("oneOf"); while (each.hasNext()) { V1JSONSchemaPropsBuilder builder = each.next(); @@ -1365,20 +1370,20 @@ public A removeMatchingFromOneOf(Predicate predicate) } public AllOfNested setNewAllOfLike(int index,V1JSONSchemaProps item) { - return new AllOfNested(index, item); + return new AllOfNested<>(index, item); } public AnyOfNested setNewAnyOfLike(int index,V1JSONSchemaProps item) { - return new AnyOfNested(index, item); + return new AnyOfNested<>(index, item); } public OneOfNested setNewOneOfLike(int index,V1JSONSchemaProps item) { - return new OneOfNested(index, item); + return new OneOfNested<>(index, item); } public A setToAllOf(int index,V1JSONSchemaProps item) { if (this.allOf == null) { - this.allOf = new ArrayList(); + this.allOf = new ArrayList<>(); } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= this.allOf.size()) { @@ -1393,7 +1398,7 @@ public A setToAllOf(int index,V1JSONSchemaProps item) { public A setToAnyOf(int index,V1JSONSchemaProps item) { if (this.anyOf == null) { - this.anyOf = new ArrayList(); + this.anyOf = new ArrayList<>(); } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= this.anyOf.size()) { @@ -1408,7 +1413,7 @@ public A setToAnyOf(int index,V1JSONSchemaProps item) { public A setToEnum(int index,Object item) { if (this._enum == null) { - this._enum = new ArrayList(); + this._enum = new ArrayList<>(); } this._enum.set(index, item); return (A) this; @@ -1416,7 +1421,7 @@ public A setToEnum(int index,Object item) { public A setToOneOf(int index,V1JSONSchemaProps item) { if (this.oneOf == null) { - this.oneOf = new ArrayList(); + this.oneOf = new ArrayList<>(); } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= this.oneOf.size()) { @@ -1431,7 +1436,7 @@ public A setToOneOf(int index,V1JSONSchemaProps item) { public A setToRequired(int index,String item) { if (this.required == null) { - this.required = new ArrayList(); + this.required = new ArrayList<>(); } this.required.set(index, item); return (A) this; @@ -1643,7 +1648,7 @@ public A withAllOf(List allOf) { this._visitables.get("allOf").clear(); } if (allOf != null) { - this.allOf = new ArrayList(); + this.allOf = new ArrayList<>(); for (V1JSONSchemaProps item : allOf) { this.addToAllOf(item); } @@ -1671,7 +1676,7 @@ public A withAnyOf(List anyOf) { this._visitables.get("anyOf").clear(); } if (anyOf != null) { - this.anyOf = new ArrayList(); + this.anyOf = new ArrayList<>(); for (V1JSONSchemaProps item : anyOf) { this.addToAnyOf(item); } @@ -1703,7 +1708,7 @@ public A withDefinitions(Map definitions) { if (definitions == null) { this.definitions = null; } else { - this.definitions = new LinkedHashMap(definitions); + this.definitions = new LinkedHashMap<>(definitions); } return (A) this; } @@ -1712,7 +1717,7 @@ public A withDependencies(Map dependencies) { if (dependencies == null) { this.dependencies = null; } else { - this.dependencies = new LinkedHashMap(dependencies); + this.dependencies = new LinkedHashMap<>(dependencies); } return (A) this; } @@ -1724,7 +1729,7 @@ public A withDescription(String description) { public A withEnum(List _enum) { if (_enum != null) { - this._enum = new ArrayList(); + this._enum = new ArrayList<>(); for (Object item : _enum) { this.addToEnum(item); } @@ -1776,8 +1781,8 @@ public A withExternalDocs(V1ExternalDocumentation externalDocs) { this.externalDocs = new V1ExternalDocumentationBuilder(externalDocs); this._visitables.get("externalDocs").add(this.externalDocs); } else { - this.externalDocs = null; this._visitables.get("externalDocs").remove(this.externalDocs); + this.externalDocs = null; } return (A) this; } @@ -1843,19 +1848,19 @@ public A withMultipleOf(Double multipleOf) { } public ExternalDocsNested withNewExternalDocs() { - return new ExternalDocsNested(null); + return new ExternalDocsNested<>(null); } public ExternalDocsNested withNewExternalDocsLike(V1ExternalDocumentation item) { - return new ExternalDocsNested(item); + return new ExternalDocsNested<>(item); } public NotNested withNewNot() { - return new NotNested(null); + return new NotNested<>(null); } public NotNested withNewNotLike(V1JSONSchemaProps item) { - return new NotNested(item); + return new NotNested<>(item); } public A withNot(V1JSONSchemaProps not) { @@ -1864,8 +1869,8 @@ public A withNot(V1JSONSchemaProps not) { this.not = new V1JSONSchemaPropsBuilder(not); this._visitables.get("not").add(this.not); } else { - this.not = null; this._visitables.get("not").remove(this.not); + this.not = null; } return (A) this; } @@ -1884,7 +1889,7 @@ public A withOneOf(List oneOf) { this._visitables.get("oneOf").clear(); } if (oneOf != null) { - this.oneOf = new ArrayList(); + this.oneOf = new ArrayList<>(); for (V1JSONSchemaProps item : oneOf) { this.addToOneOf(item); } @@ -1916,7 +1921,7 @@ public A withPatternProperties(Map patternPropert if (patternProperties == null) { this.patternProperties = null; } else { - this.patternProperties = new LinkedHashMap(patternProperties); + this.patternProperties = new LinkedHashMap<>(patternProperties); } return (A) this; } @@ -1925,7 +1930,7 @@ public A withProperties(Map properties) { if (properties == null) { this.properties = null; } else { - this.properties = new LinkedHashMap(properties); + this.properties = new LinkedHashMap<>(properties); } return (A) this; } @@ -1937,7 +1942,7 @@ public A withRef(String $ref) { public A withRequired(List required) { if (required != null) { - this.required = new ArrayList(); + this.required = new ArrayList<>(); for (String item : required) { this.addToRequired(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java index 4b7775f57f..e2d8300bfe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1JobBuilder extends V1JobFluent implements VisitableBuilder{ V1JobFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java index 73e713e853..e5e89a3084 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1JobConditionBuilder extends V1JobConditionFluent implements VisitableBuilder{ V1JobConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java index 847807af4c..4d0bfa34ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1JobConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1JobConditionFluent> extends BaseFluent{ private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; @@ -62,7 +64,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1JobConditionFluent that = (V1JobConditionFluent) o; + V1JobConditionFluent that = (V1JobConditionFluent) o; if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java index 1f6931c75b..9a3728106b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1JobFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1JobFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1JobFluent that = (V1JobFluent) o; + V1JobFluent that = (V1JobFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1JobSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1JobStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1JobSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1JobSpec spec) { this.spec = new V1JobSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1JobStatus status) { this.status = new V1JobStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java index c04a697f7a..bfed12d4d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1JobListBuilder extends V1JobListFluent implements VisitableBuilder{ V1JobListFluent fluent; 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 a6d94cf59f..d34d72e67d 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1JobListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1JobListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1JobListFluent(V1JobList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Job item : items) { V1JobBuilder builder = new V1JobBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1Job item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1Job... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Job item : items) { V1JobBuilder builder = new V1JobBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1Job... items) { public A addToItems(int index,V1Job item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1JobBuilder builder = new V1JobBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1JobListFluent that = (V1JobListFluent) o; + V1JobListFluent that = (V1JobListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1JobBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1Job item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1Job item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1JobBuilder builder = new V1JobBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1Job item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1JobFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSchedulingConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSchedulingConfigurationBuilder.java new file mode 100644 index 0000000000..86e39a8ec6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSchedulingConfigurationBuilder.java @@ -0,0 +1,49 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1JobSchedulingConfigurationBuilder extends V1JobSchedulingConfigurationFluent implements VisitableBuilder{ + + V1JobSchedulingConfigurationFluent fluent; + + public V1JobSchedulingConfigurationBuilder() { + this(new V1JobSchedulingConfiguration()); + } + + public V1JobSchedulingConfigurationBuilder(V1JobSchedulingConfigurationFluent fluent) { + this(fluent, new V1JobSchedulingConfiguration()); + } + + public V1JobSchedulingConfigurationBuilder(V1JobSchedulingConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1JobSchedulingConfigurationBuilder(V1JobSchedulingConfigurationFluent fluent,V1JobSchedulingConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1JobSchedulingConfiguration build() { + V1JobSchedulingConfiguration buildable = new V1JobSchedulingConfiguration(); + buildable.setDisruptionMode(fluent.buildDisruptionMode()); + buildable.setResourceClaims(fluent.buildResourceClaims()); + buildable.setSchedulingConstraints(fluent.buildSchedulingConstraints()); + buildable.setSchedulingPolicy(fluent.buildSchedulingPolicy()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSchedulingConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSchedulingConfigurationFluent.java new file mode 100644 index 0000000000..34c2858648 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSchedulingConfigurationFluent.java @@ -0,0 +1,514 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1JobSchedulingConfigurationFluent> extends BaseFluent{ + + private V1alpha3WorkloadPodGroupDisruptionModeBuilder disruptionMode; + private ArrayList resourceClaims; + private V1alpha3WorkloadPodGroupSchedulingConstraintsBuilder schedulingConstraints; + private V1alpha3WorkloadPodGroupSchedulingPolicyBuilder schedulingPolicy; + + public V1JobSchedulingConfigurationFluent() { + } + + public V1JobSchedulingConfigurationFluent(V1JobSchedulingConfiguration instance) { + this.copyInstance(instance); + } + + public A addAllToResourceClaims(Collection items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + for (V1alpha3WorkloadPodGroupResourceClaim item : items) { + V1alpha3WorkloadPodGroupResourceClaimBuilder builder = new V1alpha3WorkloadPodGroupResourceClaimBuilder(item); + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; + } + + public ResourceClaimsNested addNewResourceClaim() { + return new ResourceClaimsNested<>(-1, null); + } + + public ResourceClaimsNested addNewResourceClaimLike(V1alpha3WorkloadPodGroupResourceClaim item) { + return new ResourceClaimsNested<>(-1, item); + } + + public A addToResourceClaims(V1alpha3WorkloadPodGroupResourceClaim... items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + for (V1alpha3WorkloadPodGroupResourceClaim item : items) { + V1alpha3WorkloadPodGroupResourceClaimBuilder builder = new V1alpha3WorkloadPodGroupResourceClaimBuilder(item); + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; + } + + public A addToResourceClaims(int index,V1alpha3WorkloadPodGroupResourceClaim item) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + V1alpha3WorkloadPodGroupResourceClaimBuilder builder = new V1alpha3WorkloadPodGroupResourceClaimBuilder(item); + if (index < 0 || index >= this.resourceClaims.size()) { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } else { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(index, builder); + } + return (A) this; + } + + public V1alpha3WorkloadPodGroupDisruptionMode buildDisruptionMode() { + return this.disruptionMode != null ? this.disruptionMode.build() : null; + } + + public V1alpha3WorkloadPodGroupResourceClaim buildFirstResourceClaim() { + return this.resourceClaims.get(0).build(); + } + + public V1alpha3WorkloadPodGroupResourceClaim buildLastResourceClaim() { + return this.resourceClaims.get(resourceClaims.size() - 1).build(); + } + + public V1alpha3WorkloadPodGroupResourceClaim buildMatchingResourceClaim(Predicate predicate) { + for (V1alpha3WorkloadPodGroupResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha3WorkloadPodGroupResourceClaim buildResourceClaim(int index) { + return this.resourceClaims.get(index).build(); + } + + public List buildResourceClaims() { + return this.resourceClaims != null ? build(resourceClaims) : null; + } + + public V1alpha3WorkloadPodGroupSchedulingConstraints buildSchedulingConstraints() { + return this.schedulingConstraints != null ? this.schedulingConstraints.build() : null; + } + + public V1alpha3WorkloadPodGroupSchedulingPolicy buildSchedulingPolicy() { + return this.schedulingPolicy != null ? this.schedulingPolicy.build() : null; + } + + protected void copyInstance(V1JobSchedulingConfiguration instance) { + instance = instance != null ? instance : new V1JobSchedulingConfiguration(); + if (instance != null) { + this.withDisruptionMode(instance.getDisruptionMode()); + this.withResourceClaims(instance.getResourceClaims()); + this.withSchedulingConstraints(instance.getSchedulingConstraints()); + this.withSchedulingPolicy(instance.getSchedulingPolicy()); + } + } + + public DisruptionModeNested editDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(null)); + } + + public ResourceClaimsNested editFirstResourceClaim() { + if (resourceClaims.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaims")); + } + return this.setNewResourceClaimLike(0, this.buildResourceClaim(0)); + } + + public ResourceClaimsNested editLastResourceClaim() { + int index = resourceClaims.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceClaims.size();i++) { + if (predicate.test(resourceClaims.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public DisruptionModeNested editOrNewDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(new V1alpha3WorkloadPodGroupDisruptionModeBuilder().build())); + } + + public DisruptionModeNested editOrNewDisruptionModeLike(V1alpha3WorkloadPodGroupDisruptionMode item) { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(item)); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(new V1alpha3WorkloadPodGroupSchedulingConstraintsBuilder().build())); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraintsLike(V1alpha3WorkloadPodGroupSchedulingConstraints item) { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(item)); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(new V1alpha3WorkloadPodGroupSchedulingPolicyBuilder().build())); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicyLike(V1alpha3WorkloadPodGroupSchedulingPolicy item) { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(item)); + } + + public ResourceClaimsNested editResourceClaim(int index) { + if (resourceClaims.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public SchedulingConstraintsNested editSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(null)); + } + + public SchedulingPolicyNested editSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1JobSchedulingConfigurationFluent that = (V1JobSchedulingConfigurationFluent) o; + if (!(Objects.equals(disruptionMode, that.disruptionMode))) { + return false; + } + if (!(Objects.equals(resourceClaims, that.resourceClaims))) { + return false; + } + if (!(Objects.equals(schedulingConstraints, that.schedulingConstraints))) { + return false; + } + if (!(Objects.equals(schedulingPolicy, that.schedulingPolicy))) { + return false; + } + return true; + } + + public boolean hasDisruptionMode() { + return this.disruptionMode != null; + } + + public boolean hasMatchingResourceClaim(Predicate predicate) { + for (V1alpha3WorkloadPodGroupResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResourceClaims() { + return this.resourceClaims != null && !(this.resourceClaims.isEmpty()); + } + + public boolean hasSchedulingConstraints() { + return this.schedulingConstraints != null; + } + + public boolean hasSchedulingPolicy() { + return this.schedulingPolicy != null; + } + + public int hashCode() { + return Objects.hash(disruptionMode, resourceClaims, schedulingConstraints, schedulingPolicy); + } + + public A removeAllFromResourceClaims(Collection items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1alpha3WorkloadPodGroupResourceClaim item : items) { + V1alpha3WorkloadPodGroupResourceClaimBuilder builder = new V1alpha3WorkloadPodGroupResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; + } + + public A removeFromResourceClaims(V1alpha3WorkloadPodGroupResourceClaim... items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1alpha3WorkloadPodGroupResourceClaim item : items) { + V1alpha3WorkloadPodGroupResourceClaimBuilder builder = new V1alpha3WorkloadPodGroupResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromResourceClaims(Predicate predicate) { + if (resourceClaims == null) { + return (A) this; + } + Iterator each = resourceClaims.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("resourceClaims"); + while (each.hasNext()) { + V1alpha3WorkloadPodGroupResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ResourceClaimsNested setNewResourceClaimLike(int index,V1alpha3WorkloadPodGroupResourceClaim item) { + return new ResourceClaimsNested<>(index, item); + } + + public A setToResourceClaims(int index,V1alpha3WorkloadPodGroupResourceClaim item) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + V1alpha3WorkloadPodGroupResourceClaimBuilder builder = new V1alpha3WorkloadPodGroupResourceClaimBuilder(item); + if (index < 0 || index >= this.resourceClaims.size()) { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } else { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(disruptionMode == null)) { + sb.append("disruptionMode:"); + sb.append(disruptionMode); + sb.append(","); + } + if (!(resourceClaims == null) && !(resourceClaims.isEmpty())) { + sb.append("resourceClaims:"); + sb.append(resourceClaims); + sb.append(","); + } + if (!(schedulingConstraints == null)) { + sb.append("schedulingConstraints:"); + sb.append(schedulingConstraints); + sb.append(","); + } + if (!(schedulingPolicy == null)) { + sb.append("schedulingPolicy:"); + sb.append(schedulingPolicy); + } + sb.append("}"); + return sb.toString(); + } + + public A withDisruptionMode(V1alpha3WorkloadPodGroupDisruptionMode disruptionMode) { + this._visitables.remove("disruptionMode"); + if (disruptionMode != null) { + this.disruptionMode = new V1alpha3WorkloadPodGroupDisruptionModeBuilder(disruptionMode); + this._visitables.get("disruptionMode").add(this.disruptionMode); + } else { + this._visitables.get("disruptionMode").remove(this.disruptionMode); + this.disruptionMode = null; + } + return (A) this; + } + + public DisruptionModeNested withNewDisruptionMode() { + return new DisruptionModeNested<>(null); + } + + public DisruptionModeNested withNewDisruptionModeLike(V1alpha3WorkloadPodGroupDisruptionMode item) { + return new DisruptionModeNested<>(item); + } + + public SchedulingConstraintsNested withNewSchedulingConstraints() { + return new SchedulingConstraintsNested<>(null); + } + + public SchedulingConstraintsNested withNewSchedulingConstraintsLike(V1alpha3WorkloadPodGroupSchedulingConstraints item) { + return new SchedulingConstraintsNested<>(item); + } + + public SchedulingPolicyNested withNewSchedulingPolicy() { + return new SchedulingPolicyNested<>(null); + } + + public SchedulingPolicyNested withNewSchedulingPolicyLike(V1alpha3WorkloadPodGroupSchedulingPolicy item) { + return new SchedulingPolicyNested<>(item); + } + + public A withResourceClaims(List resourceClaims) { + if (this.resourceClaims != null) { + this._visitables.get("resourceClaims").clear(); + } + if (resourceClaims != null) { + this.resourceClaims = new ArrayList<>(); + for (V1alpha3WorkloadPodGroupResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); + } + } else { + this.resourceClaims = null; + } + return (A) this; + } + + public A withResourceClaims(V1alpha3WorkloadPodGroupResourceClaim... resourceClaims) { + if (this.resourceClaims != null) { + this.resourceClaims.clear(); + _visitables.remove("resourceClaims"); + } + if (resourceClaims != null) { + for (V1alpha3WorkloadPodGroupResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); + } + } + return (A) this; + } + + public A withSchedulingConstraints(V1alpha3WorkloadPodGroupSchedulingConstraints schedulingConstraints) { + this._visitables.remove("schedulingConstraints"); + if (schedulingConstraints != null) { + this.schedulingConstraints = new V1alpha3WorkloadPodGroupSchedulingConstraintsBuilder(schedulingConstraints); + this._visitables.get("schedulingConstraints").add(this.schedulingConstraints); + } else { + this._visitables.get("schedulingConstraints").remove(this.schedulingConstraints); + this.schedulingConstraints = null; + } + return (A) this; + } + + public A withSchedulingPolicy(V1alpha3WorkloadPodGroupSchedulingPolicy schedulingPolicy) { + this._visitables.remove("schedulingPolicy"); + if (schedulingPolicy != null) { + this.schedulingPolicy = new V1alpha3WorkloadPodGroupSchedulingPolicyBuilder(schedulingPolicy); + this._visitables.get("schedulingPolicy").add(this.schedulingPolicy); + } else { + this._visitables.get("schedulingPolicy").remove(this.schedulingPolicy); + this.schedulingPolicy = null; + } + return (A) this; + } + public class DisruptionModeNested extends V1alpha3WorkloadPodGroupDisruptionModeFluent> implements Nested{ + + V1alpha3WorkloadPodGroupDisruptionModeBuilder builder; + + DisruptionModeNested(V1alpha3WorkloadPodGroupDisruptionMode item) { + this.builder = new V1alpha3WorkloadPodGroupDisruptionModeBuilder(this, item); + } + + public N and() { + return (N) V1JobSchedulingConfigurationFluent.this.withDisruptionMode(builder.build()); + } + + public N endDisruptionMode() { + return and(); + } + + } + public class ResourceClaimsNested extends V1alpha3WorkloadPodGroupResourceClaimFluent> implements Nested{ + + V1alpha3WorkloadPodGroupResourceClaimBuilder builder; + int index; + + ResourceClaimsNested(int index,V1alpha3WorkloadPodGroupResourceClaim item) { + this.index = index; + this.builder = new V1alpha3WorkloadPodGroupResourceClaimBuilder(this, item); + } + + public N and() { + return (N) V1JobSchedulingConfigurationFluent.this.setToResourceClaims(index, builder.build()); + } + + public N endResourceClaim() { + return and(); + } + + } + public class SchedulingConstraintsNested extends V1alpha3WorkloadPodGroupSchedulingConstraintsFluent> implements Nested{ + + V1alpha3WorkloadPodGroupSchedulingConstraintsBuilder builder; + + SchedulingConstraintsNested(V1alpha3WorkloadPodGroupSchedulingConstraints item) { + this.builder = new V1alpha3WorkloadPodGroupSchedulingConstraintsBuilder(this, item); + } + + public N and() { + return (N) V1JobSchedulingConfigurationFluent.this.withSchedulingConstraints(builder.build()); + } + + public N endSchedulingConstraints() { + return and(); + } + + } + public class SchedulingPolicyNested extends V1alpha3WorkloadPodGroupSchedulingPolicyFluent> implements Nested{ + + V1alpha3WorkloadPodGroupSchedulingPolicyBuilder builder; + + SchedulingPolicyNested(V1alpha3WorkloadPodGroupSchedulingPolicy item) { + this.builder = new V1alpha3WorkloadPodGroupSchedulingPolicyBuilder(this, item); + } + + public N and() { + return (N) V1JobSchedulingConfigurationFluent.this.withSchedulingPolicy(builder.build()); + } + + public N endSchedulingPolicy() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java index 467b204605..08e6b7c06b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1JobSpecBuilder extends V1JobSpecFluent implements VisitableBuilder{ V1JobSpecFluent fluent; @@ -49,6 +50,7 @@ public V1JobSpec build() { buildable.setParallelism(fluent.getParallelism()); buildable.setPodFailurePolicy(fluent.buildPodFailurePolicy()); buildable.setPodReplacementPolicy(fluent.getPodReplacementPolicy()); + buildable.setScheduling(fluent.buildScheduling()); buildable.setSelector(fluent.buildSelector()); buildable.setSuccessPolicy(fluent.buildSuccessPolicy()); buildable.setSuspend(fluent.getSuspend()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java index 9e086934b8..5d96818ac4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java @@ -23,12 +23,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1JobSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1JobSpecFluent> extends BaseFluent{ private Long activeDeadlineSeconds; private Integer backoffLimit; @@ -41,6 +43,7 @@ public class V1JobSpecFluent editOrNewPodFailurePolicyLike(V1PodFailurePolic return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(item)); } + public SchedulingNested editOrNewScheduling() { + return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(new V1JobSchedulingConfigurationBuilder().build())); + } + + public SchedulingNested editOrNewSchedulingLike(V1JobSchedulingConfiguration item) { + return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(item)); + } + public SelectorNested editOrNewSelector() { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } @@ -128,6 +144,10 @@ public PodFailurePolicyNested editPodFailurePolicy() { return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(null)); } + public SchedulingNested editScheduling() { + return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(null)); + } + public SelectorNested editSelector() { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } @@ -150,7 +170,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1JobSpecFluent that = (V1JobSpecFluent) o; + V1JobSpecFluent that = (V1JobSpecFluent) o; if (!(Objects.equals(activeDeadlineSeconds, that.activeDeadlineSeconds))) { return false; } @@ -184,6 +204,9 @@ public boolean equals(Object o) { if (!(Objects.equals(podReplacementPolicy, that.podReplacementPolicy))) { return false; } + if (!(Objects.equals(scheduling, that.scheduling))) { + return false; + } if (!(Objects.equals(selector, that.selector))) { return false; } @@ -294,6 +317,10 @@ public boolean hasPodReplacementPolicy() { return this.podReplacementPolicy != null; } + public boolean hasScheduling() { + return this.scheduling != null; + } + public boolean hasSelector() { return this.selector != null; } @@ -315,7 +342,7 @@ public boolean hasTtlSecondsAfterFinished() { } public int hashCode() { - return Objects.hash(activeDeadlineSeconds, backoffLimit, backoffLimitPerIndex, completionMode, completions, managedBy, manualSelector, maxFailedIndexes, parallelism, podFailurePolicy, podReplacementPolicy, selector, successPolicy, suspend, template, ttlSecondsAfterFinished); + return Objects.hash(activeDeadlineSeconds, backoffLimit, backoffLimitPerIndex, completionMode, completions, managedBy, manualSelector, maxFailedIndexes, parallelism, podFailurePolicy, podReplacementPolicy, scheduling, selector, successPolicy, suspend, template, ttlSecondsAfterFinished); } public String toString() { @@ -376,6 +403,11 @@ public String toString() { sb.append(podReplacementPolicy); sb.append(","); } + if (!(scheduling == null)) { + sb.append("scheduling:"); + sb.append(scheduling); + sb.append(","); + } if (!(selector == null)) { sb.append("selector:"); sb.append(selector); @@ -449,35 +481,43 @@ public A withMaxFailedIndexes(Integer maxFailedIndexes) { } public PodFailurePolicyNested withNewPodFailurePolicy() { - return new PodFailurePolicyNested(null); + return new PodFailurePolicyNested<>(null); } public PodFailurePolicyNested withNewPodFailurePolicyLike(V1PodFailurePolicy item) { - return new PodFailurePolicyNested(item); + return new PodFailurePolicyNested<>(item); + } + + public SchedulingNested withNewScheduling() { + return new SchedulingNested<>(null); + } + + public SchedulingNested withNewSchedulingLike(V1JobSchedulingConfiguration item) { + return new SchedulingNested<>(item); } public SelectorNested withNewSelector() { - return new SelectorNested(null); + return new SelectorNested<>(null); } public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + return new SelectorNested<>(item); } public SuccessPolicyNested withNewSuccessPolicy() { - return new SuccessPolicyNested(null); + return new SuccessPolicyNested<>(null); } public SuccessPolicyNested withNewSuccessPolicyLike(V1SuccessPolicy item) { - return new SuccessPolicyNested(item); + return new SuccessPolicyNested<>(item); } public TemplateNested withNewTemplate() { - return new TemplateNested(null); + return new TemplateNested<>(null); } public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); + return new TemplateNested<>(item); } public A withParallelism(Integer parallelism) { @@ -491,8 +531,8 @@ public A withPodFailurePolicy(V1PodFailurePolicy podFailurePolicy) { this.podFailurePolicy = new V1PodFailurePolicyBuilder(podFailurePolicy); this._visitables.get("podFailurePolicy").add(this.podFailurePolicy); } else { - this.podFailurePolicy = null; this._visitables.get("podFailurePolicy").remove(this.podFailurePolicy); + this.podFailurePolicy = null; } return (A) this; } @@ -502,14 +542,26 @@ public A withPodReplacementPolicy(String podReplacementPolicy) { return (A) this; } + public A withScheduling(V1JobSchedulingConfiguration scheduling) { + this._visitables.remove("scheduling"); + if (scheduling != null) { + this.scheduling = new V1JobSchedulingConfigurationBuilder(scheduling); + this._visitables.get("scheduling").add(this.scheduling); + } else { + this._visitables.get("scheduling").remove(this.scheduling); + this.scheduling = null; + } + return (A) this; + } + public A withSelector(V1LabelSelector selector) { this._visitables.remove("selector"); if (selector != null) { this.selector = new V1LabelSelectorBuilder(selector); this._visitables.get("selector").add(this.selector); } else { - this.selector = null; this._visitables.get("selector").remove(this.selector); + this.selector = null; } return (A) this; } @@ -520,8 +572,8 @@ public A withSuccessPolicy(V1SuccessPolicy successPolicy) { this.successPolicy = new V1SuccessPolicyBuilder(successPolicy); this._visitables.get("successPolicy").add(this.successPolicy); } else { - this.successPolicy = null; this._visitables.get("successPolicy").remove(this.successPolicy); + this.successPolicy = null; } return (A) this; } @@ -541,8 +593,8 @@ public A withTemplate(V1PodTemplateSpec template) { this.template = new V1PodTemplateSpecBuilder(template); this._visitables.get("template").add(this.template); } else { - this.template = null; this._visitables.get("template").remove(this.template); + this.template = null; } return (A) this; } @@ -567,6 +619,23 @@ public N endPodFailurePolicy() { return and(); } + } + public class SchedulingNested extends V1JobSchedulingConfigurationFluent> implements Nested{ + + V1JobSchedulingConfigurationBuilder builder; + + SchedulingNested(V1JobSchedulingConfiguration item) { + this.builder = new V1JobSchedulingConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1JobSpecFluent.this.withScheduling(builder.build()); + } + + public N endScheduling() { + return and(); + } + } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java index 424ebaf77d..bc9e876758 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1JobStatusBuilder extends V1JobStatusFluent implements VisitableBuilder{ V1JobStatusFluent fluent; 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 1dcf3433ee..b69d96ce5e 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 @@ -28,12 +28,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1JobStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1JobStatusFluent> extends BaseFluent{ private Integer active; private String completedIndexes; @@ -56,7 +58,7 @@ public V1JobStatusFluent(V1JobStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1JobCondition item : items) { V1JobConditionBuilder builder = new V1JobConditionBuilder(item); @@ -67,16 +69,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1JobCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1JobCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1JobCondition item : items) { V1JobConditionBuilder builder = new V1JobConditionBuilder(item); @@ -88,7 +90,7 @@ public A addToConditions(V1JobCondition... items) { public A addToConditions(int index,V1JobCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1JobConditionBuilder builder = new V1JobConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -205,7 +207,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1JobStatusFluent that = (V1JobStatusFluent) o; + V1JobStatusFluent that = (V1JobStatusFluent) o; if (!(Objects.equals(active, that.active))) { return false; } @@ -364,6 +366,7 @@ public A removeMatchingFromConditions(Predicate predicate return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1JobConditionBuilder builder = each.next(); @@ -376,12 +379,12 @@ public A removeMatchingFromConditions(Predicate predicate } public ConditionsNested setNewConditionLike(int index,V1JobCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1JobCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1JobConditionBuilder builder = new V1JobConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -475,7 +478,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1JobCondition item : conditions) { this.addToConditions(item); } @@ -509,11 +512,11 @@ public A withFailedIndexes(String failedIndexes) { } public UncountedTerminatedPodsNested withNewUncountedTerminatedPods() { - return new UncountedTerminatedPodsNested(null); + return new UncountedTerminatedPodsNested<>(null); } public UncountedTerminatedPodsNested withNewUncountedTerminatedPodsLike(V1UncountedTerminatedPods item) { - return new UncountedTerminatedPodsNested(item); + return new UncountedTerminatedPodsNested<>(item); } public A withReady(Integer ready) { @@ -542,8 +545,8 @@ public A withUncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminat this.uncountedTerminatedPods = new V1UncountedTerminatedPodsBuilder(uncountedTerminatedPods); this._visitables.get("uncountedTerminatedPods").add(this.uncountedTerminatedPods); } else { - this.uncountedTerminatedPods = null; this._visitables.get("uncountedTerminatedPods").remove(this.uncountedTerminatedPods); + this.uncountedTerminatedPods = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java index a0b18f6282..aa4da42499 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1JobTemplateSpecBuilder extends V1JobTemplateSpecFluent implements VisitableBuilder{ V1JobTemplateSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java index 49614f3b49..38924f9323 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1JobTemplateSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1JobTemplateSpecFluent> extends BaseFluent{ private V1ObjectMetaBuilder metadata; private V1JobSpecBuilder spec; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1JobTemplateSpecFluent that = (V1JobTemplateSpecFluent) o; + V1JobTemplateSpecFluent that = (V1JobTemplateSpecFluent) o; if (!(Objects.equals(metadata, that.metadata))) { return false; } @@ -131,26 +133,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1JobSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1JobSpec spec) { @@ -159,8 +161,8 @@ public A withSpec(V1JobSpec spec) { this.spec = new V1JobSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java index df0305ca82..916279d24b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1KeyToPathBuilder extends V1KeyToPathFluent implements VisitableBuilder{ V1KeyToPathFluent fluent; @@ -41,6 +42,7 @@ public V1KeyToPath build() { buildable.setKey(fluent.getKey()); buildable.setMode(fluent.getMode()); buildable.setPath(fluent.getPath()); + buildable.setUser(fluent.getUser()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java index 2c789a13d1..999331477e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java @@ -14,21 +14,25 @@ import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Long; import java.lang.Object; import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1KeyToPathFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1KeyToPathFluent> extends BaseFluent{ private String key; private Integer mode; private String path; + private Long user; public V1KeyToPathFluent() { } @@ -43,6 +47,7 @@ protected void copyInstance(V1KeyToPath instance) { this.withKey(instance.getKey()); this.withMode(instance.getMode()); this.withPath(instance.getPath()); + this.withUser(instance.getUser()); } } @@ -56,7 +61,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1KeyToPathFluent that = (V1KeyToPathFluent) o; + V1KeyToPathFluent that = (V1KeyToPathFluent) o; if (!(Objects.equals(key, that.key))) { return false; } @@ -66,6 +71,9 @@ public boolean equals(Object o) { if (!(Objects.equals(path, that.path))) { return false; } + if (!(Objects.equals(user, that.user))) { + return false; + } return true; } @@ -81,6 +89,10 @@ public String getPath() { return this.path; } + public Long getUser() { + return this.user; + } + public boolean hasKey() { return this.key != null; } @@ -93,8 +105,12 @@ public boolean hasPath() { return this.path != null; } + public boolean hasUser() { + return this.user != null; + } + public int hashCode() { - return Objects.hash(key, mode, path); + return Objects.hash(key, mode, path, user); } public String toString() { @@ -113,6 +129,11 @@ public String toString() { if (!(path == null)) { sb.append("path:"); sb.append(path); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); } sb.append("}"); return sb.toString(); @@ -133,4 +154,9 @@ public A withPath(String path) { return (A) this; } + public A withUser(Long user) { + this.user = user; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java index 45020858e5..f8ef12e601 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LabelSelectorAttributesBuilder extends V1LabelSelectorAttributesFluent implements VisitableBuilder{ V1LabelSelectorAttributesFluent fluent; 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 20b81958f3..97be000173 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LabelSelectorAttributesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LabelSelectorAttributesFluent> extends BaseFluent{ private String rawSelector; private ArrayList requirements; @@ -44,7 +46,7 @@ public V1LabelSelectorAttributesFluent(V1LabelSelectorAttributes instance) { public A addAllToRequirements(Collection items) { if (this.requirements == null) { - this.requirements = new ArrayList(); + this.requirements = new ArrayList<>(); } for (V1LabelSelectorRequirement item : items) { V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); @@ -55,16 +57,16 @@ public A addAllToRequirements(Collection items) { } public RequirementsNested addNewRequirement() { - return new RequirementsNested(-1, null); + return new RequirementsNested<>(-1, null); } public RequirementsNested addNewRequirementLike(V1LabelSelectorRequirement item) { - return new RequirementsNested(-1, item); + return new RequirementsNested<>(-1, item); } public A addToRequirements(V1LabelSelectorRequirement... items) { if (this.requirements == null) { - this.requirements = new ArrayList(); + this.requirements = new ArrayList<>(); } for (V1LabelSelectorRequirement item : items) { V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); @@ -76,7 +78,7 @@ public A addToRequirements(V1LabelSelectorRequirement... items) { public A addToRequirements(int index,V1LabelSelectorRequirement item) { if (this.requirements == null) { - this.requirements = new ArrayList(); + this.requirements = new ArrayList<>(); } V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); if (index < 0 || index >= this.requirements.size()) { @@ -168,7 +170,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LabelSelectorAttributesFluent that = (V1LabelSelectorAttributesFluent) o; + V1LabelSelectorAttributesFluent that = (V1LabelSelectorAttributesFluent) o; if (!(Objects.equals(rawSelector, that.rawSelector))) { return false; } @@ -232,6 +234,7 @@ public A removeMatchingFromRequirements(Predicate each = requirements.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("requirements"); while (each.hasNext()) { V1LabelSelectorRequirementBuilder builder = each.next(); @@ -244,12 +247,12 @@ public A removeMatchingFromRequirements(Predicate setNewRequirementLike(int index,V1LabelSelectorRequirement item) { - return new RequirementsNested(index, item); + return new RequirementsNested<>(index, item); } public A setToRequirements(int index,V1LabelSelectorRequirement item) { if (this.requirements == null) { - this.requirements = new ArrayList(); + this.requirements = new ArrayList<>(); } V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); if (index < 0 || index >= this.requirements.size()) { @@ -288,7 +291,7 @@ public A withRequirements(List requirements) { this._visitables.get("requirements").clear(); } if (requirements != null) { - this.requirements = new ArrayList(); + this.requirements = new ArrayList<>(); for (V1LabelSelectorRequirement item : requirements) { this.addToRequirements(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java index b6cabd8792..8bd7097749 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LabelSelectorBuilder extends V1LabelSelectorFluent implements VisitableBuilder{ V1LabelSelectorFluent fluent; 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 5a6b33b6df..9a13353b81 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 @@ -27,12 +27,14 @@ import java.util.Map; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LabelSelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LabelSelectorFluent> extends BaseFluent{ private ArrayList matchExpressions; private Map matchLabels; @@ -46,7 +48,7 @@ public V1LabelSelectorFluent(V1LabelSelector instance) { public A addAllToMatchExpressions(Collection items) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } for (V1LabelSelectorRequirement item : items) { V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); @@ -57,16 +59,16 @@ public A addAllToMatchExpressions(Collection items) } public MatchExpressionsNested addNewMatchExpression() { - return new MatchExpressionsNested(-1, null); + return new MatchExpressionsNested<>(-1, null); } public MatchExpressionsNested addNewMatchExpressionLike(V1LabelSelectorRequirement item) { - return new MatchExpressionsNested(-1, item); + return new MatchExpressionsNested<>(-1, item); } public A addToMatchExpressions(V1LabelSelectorRequirement... items) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } for (V1LabelSelectorRequirement item : items) { V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); @@ -78,7 +80,7 @@ public A addToMatchExpressions(V1LabelSelectorRequirement... items) { public A addToMatchExpressions(int index,V1LabelSelectorRequirement item) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); if (index < 0 || index >= this.matchExpressions.size()) { @@ -93,7 +95,7 @@ public A addToMatchExpressions(int index,V1LabelSelectorRequirement item) { public A addToMatchLabels(Map map) { if (this.matchLabels == null && map != null) { - this.matchLabels = new LinkedHashMap(); + this.matchLabels = new LinkedHashMap<>(); } if (map != null) { this.matchLabels.putAll(map); @@ -103,7 +105,7 @@ public A addToMatchLabels(Map map) { public A addToMatchLabels(String key,String value) { if (this.matchLabels == null && key != null && value != null) { - this.matchLabels = new LinkedHashMap(); + this.matchLabels = new LinkedHashMap<>(); } if (key != null && value != null) { this.matchLabels.put(key, value); @@ -190,7 +192,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LabelSelectorFluent that = (V1LabelSelectorFluent) o; + V1LabelSelectorFluent that = (V1LabelSelectorFluent) o; if (!(Objects.equals(matchExpressions, that.matchExpressions))) { return false; } @@ -278,6 +280,7 @@ public A removeMatchingFromMatchExpressions(Predicate each = matchExpressions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("matchExpressions"); while (each.hasNext()) { V1LabelSelectorRequirementBuilder builder = each.next(); @@ -290,12 +293,12 @@ public A removeMatchingFromMatchExpressions(Predicate setNewMatchExpressionLike(int index,V1LabelSelectorRequirement item) { - return new MatchExpressionsNested(index, item); + return new MatchExpressionsNested<>(index, item); } public A setToMatchExpressions(int index,V1LabelSelectorRequirement item) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); if (index < 0 || index >= this.matchExpressions.size()) { @@ -329,7 +332,7 @@ public A withMatchExpressions(List matchExpressions) this._visitables.get("matchExpressions").clear(); } if (matchExpressions != null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); for (V1LabelSelectorRequirement item : matchExpressions) { this.addToMatchExpressions(item); } @@ -356,7 +359,7 @@ public A withMatchLabels(Map matchLabels) { if (matchLabels == null) { this.matchLabels = null; } else { - this.matchLabels = new LinkedHashMap(matchLabels); + this.matchLabels = new LinkedHashMap<>(matchLabels); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java index 16cab9bb65..5c8052221e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LabelSelectorRequirementBuilder extends V1LabelSelectorRequirementFluent implements VisitableBuilder{ V1LabelSelectorRequirementFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java index 6bff4aa706..cf2eaec03b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LabelSelectorRequirementFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LabelSelectorRequirementFluent> extends BaseFluent{ private String key; private String operator; @@ -42,7 +44,7 @@ public V1LabelSelectorRequirementFluent(V1LabelSelectorRequirement instance) { public A addAllToValues(Collection items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (String item : items) { this.values.add(item); @@ -52,7 +54,7 @@ public A addAllToValues(Collection items) { public A addToValues(String... items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (String item : items) { this.values.add(item); @@ -62,7 +64,7 @@ public A addToValues(String... items) { public A addToValues(int index,String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.add(index, item); return (A) this; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LabelSelectorRequirementFluent that = (V1LabelSelectorRequirementFluent) o; + V1LabelSelectorRequirementFluent that = (V1LabelSelectorRequirementFluent) o; if (!(Objects.equals(key, that.key))) { return false; } @@ -180,7 +182,7 @@ public A removeFromValues(String... items) { public A setToValues(int index,String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.set(index, item); return (A) this; @@ -219,7 +221,7 @@ public A withOperator(String operator) { public A withValues(List values) { if (values != null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); for (String item : values) { this.addToValues(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java index 0c1c5cf510..345b05f699 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LeaseBuilder extends V1LeaseFluent implements VisitableBuilder{ V1LeaseFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java index df89b4eb95..621f553fc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LeaseFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LeaseFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LeaseFluent that = (V1LeaseFluent) o; + V1LeaseFluent that = (V1LeaseFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1LeaseSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1LeaseSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1LeaseSpec spec) { this.spec = new V1LeaseSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java index ba6c1bde8a..0abcda1a98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LeaseListBuilder extends V1LeaseListFluent implements VisitableBuilder{ V1LeaseListFluent fluent; 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 b749c488e2..3cf24b8f54 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LeaseListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LeaseListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1LeaseListFluent(V1LeaseList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Lease item : items) { V1LeaseBuilder builder = new V1LeaseBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1Lease item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1Lease... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Lease item : items) { V1LeaseBuilder builder = new V1LeaseBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1Lease... items) { public A addToItems(int index,V1Lease item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1LeaseBuilder builder = new V1LeaseBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LeaseListFluent that = (V1LeaseListFluent) o; + V1LeaseListFluent that = (V1LeaseListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1LeaseBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1Lease item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1Lease item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1LeaseBuilder builder = new V1LeaseBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1Lease item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1LeaseFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java index 1ed685814e..956d7f9249 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LeaseSpecBuilder extends V1LeaseSpecFluent implements VisitableBuilder{ V1LeaseSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java index 099d7a689d..29ce152dec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LeaseSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LeaseSpecFluent> extends BaseFluent{ private OffsetDateTime acquireTime; private String holderIdentity; @@ -65,7 +67,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LeaseSpecFluent that = (V1LeaseSpecFluent) o; + V1LeaseSpecFluent that = (V1LeaseSpecFluent) o; if (!(Objects.equals(acquireTime, that.acquireTime))) { return false; } 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 5f8de1f2a2..4520ed5c27 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LifecycleBuilder extends V1LifecycleFluent implements VisitableBuilder{ V1LifecycleFluent fluent; 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 2e89597ba0..b25c76257a 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 @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LifecycleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LifecycleFluent> extends BaseFluent{ private V1LifecycleHandlerBuilder postStart; private V1LifecycleHandlerBuilder preStop; @@ -89,7 +91,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LifecycleFluent that = (V1LifecycleFluent) o; + V1LifecycleFluent that = (V1LifecycleFluent) o; if (!(Objects.equals(postStart, that.postStart))) { return false; } @@ -144,19 +146,19 @@ public String toString() { } public PostStartNested withNewPostStart() { - return new PostStartNested(null); + return new PostStartNested<>(null); } public PostStartNested withNewPostStartLike(V1LifecycleHandler item) { - return new PostStartNested(item); + return new PostStartNested<>(item); } public PreStopNested withNewPreStop() { - return new PreStopNested(null); + return new PreStopNested<>(null); } public PreStopNested withNewPreStopLike(V1LifecycleHandler item) { - return new PreStopNested(item); + return new PreStopNested<>(item); } public A withPostStart(V1LifecycleHandler postStart) { @@ -165,8 +167,8 @@ public A withPostStart(V1LifecycleHandler postStart) { this.postStart = new V1LifecycleHandlerBuilder(postStart); this._visitables.get("postStart").add(this.postStart); } else { - this.postStart = null; this._visitables.get("postStart").remove(this.postStart); + this.postStart = null; } return (A) this; } @@ -177,8 +179,8 @@ public A withPreStop(V1LifecycleHandler preStop) { this.preStop = new V1LifecycleHandlerBuilder(preStop); this._visitables.get("preStop").add(this.preStop); } else { - this.preStop = null; this._visitables.get("preStop").remove(this.preStop); + this.preStop = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java index 365df21d49..4769850d01 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LifecycleHandlerBuilder extends V1LifecycleHandlerFluent implements VisitableBuilder{ V1LifecycleHandlerFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java index 055c9193fd..adef8fdcb4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LifecycleHandlerFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LifecycleHandlerFluent> extends BaseFluent{ private V1ExecActionBuilder exec; private V1HTTPGetActionBuilder httpGet; @@ -123,7 +125,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LifecycleHandlerFluent that = (V1LifecycleHandlerFluent) o; + V1LifecycleHandlerFluent that = (V1LifecycleHandlerFluent) o; if (!(Objects.equals(exec, that.exec))) { return false; } @@ -191,8 +193,8 @@ public A withExec(V1ExecAction exec) { this.exec = new V1ExecActionBuilder(exec); this._visitables.get("exec").add(this.exec); } else { - this.exec = null; this._visitables.get("exec").remove(this.exec); + this.exec = null; } return (A) this; } @@ -203,42 +205,42 @@ public A withHttpGet(V1HTTPGetAction httpGet) { this.httpGet = new V1HTTPGetActionBuilder(httpGet); this._visitables.get("httpGet").add(this.httpGet); } else { - this.httpGet = null; this._visitables.get("httpGet").remove(this.httpGet); + this.httpGet = null; } return (A) this; } public ExecNested withNewExec() { - return new ExecNested(null); + return new ExecNested<>(null); } public ExecNested withNewExecLike(V1ExecAction item) { - return new ExecNested(item); + return new ExecNested<>(item); } public HttpGetNested withNewHttpGet() { - return new HttpGetNested(null); + return new HttpGetNested<>(null); } public HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { - return new HttpGetNested(item); + return new HttpGetNested<>(item); } public SleepNested withNewSleep() { - return new SleepNested(null); + return new SleepNested<>(null); } public SleepNested withNewSleepLike(V1SleepAction item) { - return new SleepNested(item); + return new SleepNested<>(item); } public TcpSocketNested withNewTcpSocket() { - return new TcpSocketNested(null); + return new TcpSocketNested<>(null); } public TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { - return new TcpSocketNested(item); + return new TcpSocketNested<>(item); } public A withSleep(V1SleepAction sleep) { @@ -247,8 +249,8 @@ public A withSleep(V1SleepAction sleep) { this.sleep = new V1SleepActionBuilder(sleep); this._visitables.get("sleep").add(this.sleep); } else { - this.sleep = null; this._visitables.get("sleep").remove(this.sleep); + this.sleep = null; } return (A) this; } @@ -259,8 +261,8 @@ public A withTcpSocket(V1TCPSocketAction tcpSocket) { this.tcpSocket = new V1TCPSocketActionBuilder(tcpSocket); this._visitables.get("tcpSocket").add(this.tcpSocket); } else { - this.tcpSocket = null; this._visitables.get("tcpSocket").remove(this.tcpSocket); + this.tcpSocket = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java index 9ee5ae6aa5..f2887b2c80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LimitRangeBuilder extends V1LimitRangeFluent implements VisitableBuilder{ V1LimitRangeFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java index fcb98d3181..422166bc4c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LimitRangeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LimitRangeFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LimitRangeFluent that = (V1LimitRangeFluent) o; + V1LimitRangeFluent that = (V1LimitRangeFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1LimitRangeSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1LimitRangeSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1LimitRangeSpec spec) { this.spec = new V1LimitRangeSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java index 708ce09e1e..5e36a69688 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LimitRangeItemBuilder extends V1LimitRangeItemFluent implements VisitableBuilder{ V1LimitRangeItemFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java index 8017f1777f..b34fa88638 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java @@ -21,12 +21,14 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LimitRangeItemFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LimitRangeItemFluent> extends BaseFluent{ private Map _default; private Map defaultRequest; @@ -44,7 +46,7 @@ public V1LimitRangeItemFluent(V1LimitRangeItem instance) { public A addToDefault(Map map) { if (this._default == null && map != null) { - this._default = new LinkedHashMap(); + this._default = new LinkedHashMap<>(); } if (map != null) { this._default.putAll(map); @@ -54,7 +56,7 @@ public A addToDefault(Map map) { public A addToDefault(String key,Quantity value) { if (this._default == null && key != null && value != null) { - this._default = new LinkedHashMap(); + this._default = new LinkedHashMap<>(); } if (key != null && value != null) { this._default.put(key, value); @@ -64,7 +66,7 @@ public A addToDefault(String key,Quantity value) { public A addToDefaultRequest(Map map) { if (this.defaultRequest == null && map != null) { - this.defaultRequest = new LinkedHashMap(); + this.defaultRequest = new LinkedHashMap<>(); } if (map != null) { this.defaultRequest.putAll(map); @@ -74,7 +76,7 @@ public A addToDefaultRequest(Map map) { public A addToDefaultRequest(String key,Quantity value) { if (this.defaultRequest == null && key != null && value != null) { - this.defaultRequest = new LinkedHashMap(); + this.defaultRequest = new LinkedHashMap<>(); } if (key != null && value != null) { this.defaultRequest.put(key, value); @@ -84,7 +86,7 @@ public A addToDefaultRequest(String key,Quantity value) { public A addToMax(Map map) { if (this.max == null && map != null) { - this.max = new LinkedHashMap(); + this.max = new LinkedHashMap<>(); } if (map != null) { this.max.putAll(map); @@ -94,7 +96,7 @@ public A addToMax(Map map) { public A addToMax(String key,Quantity value) { if (this.max == null && key != null && value != null) { - this.max = new LinkedHashMap(); + this.max = new LinkedHashMap<>(); } if (key != null && value != null) { this.max.put(key, value); @@ -104,7 +106,7 @@ public A addToMax(String key,Quantity value) { public A addToMaxLimitRequestRatio(Map map) { if (this.maxLimitRequestRatio == null && map != null) { - this.maxLimitRequestRatio = new LinkedHashMap(); + this.maxLimitRequestRatio = new LinkedHashMap<>(); } if (map != null) { this.maxLimitRequestRatio.putAll(map); @@ -114,7 +116,7 @@ public A addToMaxLimitRequestRatio(Map map) { public A addToMaxLimitRequestRatio(String key,Quantity value) { if (this.maxLimitRequestRatio == null && key != null && value != null) { - this.maxLimitRequestRatio = new LinkedHashMap(); + this.maxLimitRequestRatio = new LinkedHashMap<>(); } if (key != null && value != null) { this.maxLimitRequestRatio.put(key, value); @@ -124,7 +126,7 @@ public A addToMaxLimitRequestRatio(String key,Quantity value) { public A addToMin(Map map) { if (this.min == null && map != null) { - this.min = new LinkedHashMap(); + this.min = new LinkedHashMap<>(); } if (map != null) { this.min.putAll(map); @@ -134,7 +136,7 @@ public A addToMin(Map map) { public A addToMin(String key,Quantity value) { if (this.min == null && key != null && value != null) { - this.min = new LinkedHashMap(); + this.min = new LinkedHashMap<>(); } if (key != null && value != null) { this.min.put(key, value); @@ -163,7 +165,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LimitRangeItemFluent that = (V1LimitRangeItemFluent) o; + V1LimitRangeItemFluent that = (V1LimitRangeItemFluent) o; if (!(Objects.equals(_default, that._default))) { return false; } @@ -397,7 +399,7 @@ public A withDefault(Map _default) { if (_default == null) { this._default = null; } else { - this._default = new LinkedHashMap(_default); + this._default = new LinkedHashMap<>(_default); } return (A) this; } @@ -406,7 +408,7 @@ public A withDefaultRequest(Map defaultRequest) { if (defaultRequest == null) { this.defaultRequest = null; } else { - this.defaultRequest = new LinkedHashMap(defaultRequest); + this.defaultRequest = new LinkedHashMap<>(defaultRequest); } return (A) this; } @@ -415,7 +417,7 @@ public A withMax(Map max) { if (max == null) { this.max = null; } else { - this.max = new LinkedHashMap(max); + this.max = new LinkedHashMap<>(max); } return (A) this; } @@ -424,7 +426,7 @@ public A withMaxLimitRequestRatio(Map maxLimitRequestRatio if (maxLimitRequestRatio == null) { this.maxLimitRequestRatio = null; } else { - this.maxLimitRequestRatio = new LinkedHashMap(maxLimitRequestRatio); + this.maxLimitRequestRatio = new LinkedHashMap<>(maxLimitRequestRatio); } return (A) this; } @@ -433,7 +435,7 @@ public A withMin(Map min) { if (min == null) { this.min = null; } else { - this.min = new LinkedHashMap(min); + this.min = new LinkedHashMap<>(min); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java index cd05e8f99a..3767f9d8cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LimitRangeListBuilder extends V1LimitRangeListFluent implements VisitableBuilder{ V1LimitRangeListFluent fluent; 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 3f8d1be214..3f0def1a4c 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LimitRangeListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LimitRangeListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1LimitRangeListFluent(V1LimitRangeList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1LimitRange item : items) { V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1LimitRange item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1LimitRange... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1LimitRange item : items) { V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1LimitRange... items) { public A addToItems(int index,V1LimitRange item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LimitRangeListFluent that = (V1LimitRangeListFluent) o; + V1LimitRangeListFluent that = (V1LimitRangeListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1LimitRangeBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1LimitRange item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1LimitRange item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1LimitRange item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1LimitRangeFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java index f13ed12df3..fe31c281fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LimitRangeSpecBuilder extends V1LimitRangeSpecFluent implements VisitableBuilder{ V1LimitRangeSpecFluent fluent; 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 b27feb42e4..0849a41571 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LimitRangeSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LimitRangeSpecFluent> extends BaseFluent{ private ArrayList limits; @@ -43,7 +45,7 @@ public V1LimitRangeSpecFluent(V1LimitRangeSpec instance) { public A addAllToLimits(Collection items) { if (this.limits == null) { - this.limits = new ArrayList(); + this.limits = new ArrayList<>(); } for (V1LimitRangeItem item : items) { V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); @@ -54,16 +56,16 @@ public A addAllToLimits(Collection items) { } public LimitsNested addNewLimit() { - return new LimitsNested(-1, null); + return new LimitsNested<>(-1, null); } public LimitsNested addNewLimitLike(V1LimitRangeItem item) { - return new LimitsNested(-1, item); + return new LimitsNested<>(-1, item); } public A addToLimits(V1LimitRangeItem... items) { if (this.limits == null) { - this.limits = new ArrayList(); + this.limits = new ArrayList<>(); } for (V1LimitRangeItem item : items) { V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); @@ -75,7 +77,7 @@ public A addToLimits(V1LimitRangeItem... items) { public A addToLimits(int index,V1LimitRangeItem item) { if (this.limits == null) { - this.limits = new ArrayList(); + this.limits = new ArrayList<>(); } V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); if (index < 0 || index >= this.limits.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LimitRangeSpecFluent that = (V1LimitRangeSpecFluent) o; + V1LimitRangeSpecFluent that = (V1LimitRangeSpecFluent) o; if (!(Objects.equals(limits, that.limits))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromLimits(Predicate predicate) return (A) this; } Iterator each = limits.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("limits"); while (each.hasNext()) { V1LimitRangeItemBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromLimits(Predicate predicate) } public LimitsNested setNewLimitLike(int index,V1LimitRangeItem item) { - return new LimitsNested(index, item); + return new LimitsNested<>(index, item); } public A setToLimits(int index,V1LimitRangeItem item) { if (this.limits == null) { - this.limits = new ArrayList(); + this.limits = new ArrayList<>(); } V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); if (index < 0 || index >= this.limits.size()) { @@ -265,7 +268,7 @@ public A withLimits(List limits) { this._visitables.get("limits").clear(); } if (limits != null) { - this.limits = new ArrayList(); + this.limits = new ArrayList<>(); for (V1LimitRangeItem item : limits) { this.addToLimits(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java index 12d1b2bc59..1a74608296 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LimitResponseBuilder extends V1LimitResponseFluent implements VisitableBuilder{ V1LimitResponseFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java index 57d32e9de8..dc01ff3f8f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LimitResponseFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LimitResponseFluent> extends BaseFluent{ private V1QueuingConfigurationBuilder queuing; private String type; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LimitResponseFluent that = (V1LimitResponseFluent) o; + V1LimitResponseFluent that = (V1LimitResponseFluent) o; if (!(Objects.equals(queuing, that.queuing))) { return false; } @@ -114,11 +116,11 @@ public String toString() { } public QueuingNested withNewQueuing() { - return new QueuingNested(null); + return new QueuingNested<>(null); } public QueuingNested withNewQueuingLike(V1QueuingConfiguration item) { - return new QueuingNested(item); + return new QueuingNested<>(item); } public A withQueuing(V1QueuingConfiguration queuing) { @@ -127,8 +129,8 @@ public A withQueuing(V1QueuingConfiguration queuing) { this.queuing = new V1QueuingConfigurationBuilder(queuing); this._visitables.get("queuing").add(this.queuing); } else { - this.queuing = null; this._visitables.get("queuing").remove(this.queuing); + this.queuing = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java index d6e994e7e8..536506bfb4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LimitedPriorityLevelConfigurationBuilder extends V1LimitedPriorityLevelConfigurationFluent implements VisitableBuilder{ V1LimitedPriorityLevelConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java index ad6169666b..fc0ea5eb41 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LimitedPriorityLevelConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LimitedPriorityLevelConfigurationFluent> extends BaseFluent{ private Integer borrowingLimitPercent; private Integer lendablePercent; @@ -76,7 +78,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LimitedPriorityLevelConfigurationFluent that = (V1LimitedPriorityLevelConfigurationFluent) o; + V1LimitedPriorityLevelConfigurationFluent that = (V1LimitedPriorityLevelConfigurationFluent) o; if (!(Objects.equals(borrowingLimitPercent, that.borrowingLimitPercent))) { return false; } @@ -166,18 +168,18 @@ public A withLimitResponse(V1LimitResponse limitResponse) { this.limitResponse = new V1LimitResponseBuilder(limitResponse); this._visitables.get("limitResponse").add(this.limitResponse); } else { - this.limitResponse = null; this._visitables.get("limitResponse").remove(this.limitResponse); + this.limitResponse = null; } return (A) this; } public LimitResponseNested withNewLimitResponse() { - return new LimitResponseNested(null); + return new LimitResponseNested<>(null); } public LimitResponseNested withNewLimitResponseLike(V1LimitResponse item) { - return new LimitResponseNested(item); + return new LimitResponseNested<>(item); } public A withNominalConcurrencyShares(Integer nominalConcurrencyShares) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java index 6a15537827..35b88ed64d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LinuxContainerUserBuilder extends V1LinuxContainerUserFluent implements VisitableBuilder{ V1LinuxContainerUserFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java index 9a8dd83145..cc81f4641c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java @@ -23,12 +23,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LinuxContainerUserFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LinuxContainerUserFluent> extends BaseFluent{ private Long gid; private List supplementalGroups; @@ -43,7 +45,7 @@ public V1LinuxContainerUserFluent(V1LinuxContainerUser instance) { public A addAllToSupplementalGroups(Collection items) { if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); + this.supplementalGroups = new ArrayList<>(); } for (Long item : items) { this.supplementalGroups.add(item); @@ -53,7 +55,7 @@ public A addAllToSupplementalGroups(Collection items) { public A addToSupplementalGroups(Long... items) { if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); + this.supplementalGroups = new ArrayList<>(); } for (Long item : items) { this.supplementalGroups.add(item); @@ -63,7 +65,7 @@ public A addToSupplementalGroups(Long... items) { public A addToSupplementalGroups(int index,Long item) { if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); + this.supplementalGroups = new ArrayList<>(); } this.supplementalGroups.add(index, item); return (A) this; @@ -88,7 +90,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LinuxContainerUserFluent that = (V1LinuxContainerUserFluent) o; + V1LinuxContainerUserFluent that = (V1LinuxContainerUserFluent) o; if (!(Objects.equals(gid, that.gid))) { return false; } @@ -181,7 +183,7 @@ public A removeFromSupplementalGroups(Long... items) { public A setToSupplementalGroups(int index,Long item) { if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); + this.supplementalGroups = new ArrayList<>(); } this.supplementalGroups.set(index, item); return (A) this; @@ -215,7 +217,7 @@ public A withGid(Long gid) { public A withSupplementalGroups(List supplementalGroups) { if (supplementalGroups != null) { - this.supplementalGroups = new ArrayList(); + this.supplementalGroups = new ArrayList<>(); for (Long item : supplementalGroups) { this.addToSupplementalGroups(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java index 1fd1d7b88d..157d4f15e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ListMetaBuilder extends V1ListMetaFluent implements VisitableBuilder{ V1ListMetaFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java index 72746f68ab..8d134442bf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ListMetaFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ListMetaFluent> extends BaseFluent{ private String _continue; private Long remainingItemCount; @@ -77,7 +79,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ListMetaFluent that = (V1ListMetaFluent) o; + V1ListMetaFluent that = (V1ListMetaFluent) o; if (!(Objects.equals(_continue, that._continue))) { return false; } @@ -173,11 +175,11 @@ public A withContinue(String _continue) { } public ShardInfoNested withNewShardInfo() { - return new ShardInfoNested(null); + return new ShardInfoNested<>(null); } public ShardInfoNested withNewShardInfoLike(V1ShardInfo item) { - return new ShardInfoNested(item); + return new ShardInfoNested<>(item); } public A withRemainingItemCount(Long remainingItemCount) { @@ -201,8 +203,8 @@ public A withShardInfo(V1ShardInfo shardInfo) { this.shardInfo = new V1ShardInfoBuilder(shardInfo); this._visitables.get("shardInfo").add(this.shardInfo); } else { - this.shardInfo = null; this._visitables.get("shardInfo").remove(this.shardInfo); + this.shardInfo = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java index a196a7594c..d9dac5a24f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LoadBalancerIngressBuilder extends V1LoadBalancerIngressFluent implements VisitableBuilder{ V1LoadBalancerIngressFluent fluent; 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 c981448257..bba0437bc5 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LoadBalancerIngressFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LoadBalancerIngressFluent> extends BaseFluent{ private String hostname; private String ip; @@ -46,7 +48,7 @@ public V1LoadBalancerIngressFluent(V1LoadBalancerIngress instance) { public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1PortStatus item : items) { V1PortStatusBuilder builder = new V1PortStatusBuilder(item); @@ -57,16 +59,16 @@ public A addAllToPorts(Collection items) { } public PortsNested addNewPort() { - return new PortsNested(-1, null); + return new PortsNested<>(-1, null); } public PortsNested addNewPortLike(V1PortStatus item) { - return new PortsNested(-1, item); + return new PortsNested<>(-1, item); } public A addToPorts(V1PortStatus... items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1PortStatus item : items) { V1PortStatusBuilder builder = new V1PortStatusBuilder(item); @@ -78,7 +80,7 @@ public A addToPorts(V1PortStatus... items) { public A addToPorts(int index,V1PortStatus item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1PortStatusBuilder builder = new V1PortStatusBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -172,7 +174,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LoadBalancerIngressFluent that = (V1LoadBalancerIngressFluent) o; + V1LoadBalancerIngressFluent that = (V1LoadBalancerIngressFluent) o; if (!(Objects.equals(hostname, that.hostname))) { return false; } @@ -258,6 +260,7 @@ public A removeMatchingFromPorts(Predicate predicate) { return (A) this; } Iterator each = ports.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1PortStatusBuilder builder = each.next(); @@ -270,12 +273,12 @@ public A removeMatchingFromPorts(Predicate predicate) { } public PortsNested setNewPortLike(int index,V1PortStatus item) { - return new PortsNested(index, item); + return new PortsNested<>(index, item); } public A setToPorts(int index,V1PortStatus item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1PortStatusBuilder builder = new V1PortStatusBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -334,7 +337,7 @@ public A withPorts(List ports) { this._visitables.get("ports").clear(); } if (ports != null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); for (V1PortStatus item : ports) { this.addToPorts(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java index e656c512b1..6c4cec3436 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LoadBalancerStatusBuilder extends V1LoadBalancerStatusFluent implements VisitableBuilder{ V1LoadBalancerStatusFluent fluent; 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 7f74108efe..5f4ec56c63 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LoadBalancerStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LoadBalancerStatusFluent> extends BaseFluent{ private ArrayList ingress; @@ -43,7 +45,7 @@ public V1LoadBalancerStatusFluent(V1LoadBalancerStatus instance) { public A addAllToIngress(Collection items) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } for (V1LoadBalancerIngress item : items) { V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); @@ -54,16 +56,16 @@ public A addAllToIngress(Collection items) { } public IngressNested addNewIngress() { - return new IngressNested(-1, null); + return new IngressNested<>(-1, null); } public IngressNested addNewIngressLike(V1LoadBalancerIngress item) { - return new IngressNested(-1, item); + return new IngressNested<>(-1, item); } public A addToIngress(V1LoadBalancerIngress... items) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } for (V1LoadBalancerIngress item : items) { V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); @@ -75,7 +77,7 @@ public A addToIngress(V1LoadBalancerIngress... items) { public A addToIngress(int index,V1LoadBalancerIngress item) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); if (index < 0 || index >= this.ingress.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LoadBalancerStatusFluent that = (V1LoadBalancerStatusFluent) o; + V1LoadBalancerStatusFluent that = (V1LoadBalancerStatusFluent) o; if (!(Objects.equals(ingress, that.ingress))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromIngress(Predicate predi return (A) this; } Iterator each = ingress.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ingress"); while (each.hasNext()) { V1LoadBalancerIngressBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromIngress(Predicate predi } public IngressNested setNewIngressLike(int index,V1LoadBalancerIngress item) { - return new IngressNested(index, item); + return new IngressNested<>(index, item); } public A setToIngress(int index,V1LoadBalancerIngress item) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); if (index < 0 || index >= this.ingress.size()) { @@ -265,7 +268,7 @@ public A withIngress(List ingress) { this._visitables.get("ingress").clear(); } if (ingress != null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); for (V1LoadBalancerIngress item : ingress) { this.addToIngress(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java index 3259973d5b..cb7f899546 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LocalObjectReferenceBuilder extends V1LocalObjectReferenceFluent implements VisitableBuilder{ V1LocalObjectReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java index 1275373b33..be51c95bc4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LocalObjectReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LocalObjectReferenceFluent> extends BaseFluent{ private String name; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LocalObjectReferenceFluent that = (V1LocalObjectReferenceFluent) o; + V1LocalObjectReferenceFluent that = (V1LocalObjectReferenceFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java index 8ae07e493d..e55a2658df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LocalSubjectAccessReviewBuilder extends V1LocalSubjectAccessReviewFluent implements VisitableBuilder{ V1LocalSubjectAccessReviewFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java index 2e01562bcf..a02b24c0eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LocalSubjectAccessReviewFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LocalSubjectAccessReviewFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LocalSubjectAccessReviewFluent that = (V1LocalSubjectAccessReviewFluent) o; + V1LocalSubjectAccessReviewFluent that = (V1LocalSubjectAccessReviewFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1SubjectAccessReviewSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1SubjectAccessReviewSpec spec) { this.spec = new V1SubjectAccessReviewSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1SubjectAccessReviewStatus status) { this.status = new V1SubjectAccessReviewStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java index b2b17a07eb..7ee6ce565f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1LocalVolumeSourceBuilder extends V1LocalVolumeSourceFluent implements VisitableBuilder{ V1LocalVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java index 9eed49b5a5..67e7a21fe6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1LocalVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1LocalVolumeSourceFluent> extends BaseFluent{ private String fsType; private String path; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1LocalVolumeSourceFluent that = (V1LocalVolumeSourceFluent) o; + V1LocalVolumeSourceFluent that = (V1LocalVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java index 38de47872e..798de37e82 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ManagedFieldsEntryBuilder extends V1ManagedFieldsEntryFluent implements VisitableBuilder{ V1ManagedFieldsEntryFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java index 98a88da776..9954469769 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ManagedFieldsEntryFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ManagedFieldsEntryFluent> extends BaseFluent{ private String apiVersion; private String fieldsType; @@ -64,7 +66,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ManagedFieldsEntryFluent that = (V1ManagedFieldsEntryFluent) o; + V1ManagedFieldsEntryFluent that = (V1ManagedFieldsEntryFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java index f09cb89417..03c039c5ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1MatchConditionBuilder extends V1MatchConditionFluent implements VisitableBuilder{ V1MatchConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java index a9217a60aa..d0675f2fc7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1MatchConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1MatchConditionFluent> extends BaseFluent{ private String expression; private String name; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1MatchConditionFluent that = (V1MatchConditionFluent) o; + V1MatchConditionFluent that = (V1MatchConditionFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java index d6ed9df96a..24a1440079 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1MatchResourcesBuilder extends V1MatchResourcesFluent implements VisitableBuilder{ V1MatchResourcesFluent fluent; 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 7dfcb86327..19ea5f4f5c 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1MatchResourcesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1MatchResourcesFluent> extends BaseFluent{ private ArrayList excludeResourceRules; private String matchPolicy; @@ -48,7 +50,7 @@ public V1MatchResourcesFluent(V1MatchResources instance) { public A addAllToExcludeResourceRules(Collection items) { if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); } for (V1NamedRuleWithOperations item : items) { V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); @@ -60,7 +62,7 @@ public A addAllToExcludeResourceRules(Collection item public A addAllToResourceRules(Collection items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } for (V1NamedRuleWithOperations item : items) { V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); @@ -71,24 +73,24 @@ public A addAllToResourceRules(Collection items) { } public ExcludeResourceRulesNested addNewExcludeResourceRule() { - return new ExcludeResourceRulesNested(-1, null); + return new ExcludeResourceRulesNested<>(-1, null); } public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(-1, item); + return new ExcludeResourceRulesNested<>(-1, item); } public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); + return new ResourceRulesNested<>(-1, null); } public ResourceRulesNested addNewResourceRuleLike(V1NamedRuleWithOperations item) { - return new ResourceRulesNested(-1, item); + return new ResourceRulesNested<>(-1, item); } public A addToExcludeResourceRules(V1NamedRuleWithOperations... items) { if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); } for (V1NamedRuleWithOperations item : items) { V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); @@ -100,7 +102,7 @@ public A addToExcludeResourceRules(V1NamedRuleWithOperations... items) { public A addToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); } V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= this.excludeResourceRules.size()) { @@ -115,7 +117,7 @@ public A addToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { public A addToResourceRules(V1NamedRuleWithOperations... items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } for (V1NamedRuleWithOperations item : items) { V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); @@ -127,7 +129,7 @@ public A addToResourceRules(V1NamedRuleWithOperations... items) { public A addToResourceRules(int index,V1NamedRuleWithOperations item) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= this.resourceRules.size()) { @@ -315,7 +317,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1MatchResourcesFluent that = (V1MatchResourcesFluent) o; + V1MatchResourcesFluent that = (V1MatchResourcesFluent) o; if (!(Objects.equals(excludeResourceRules, that.excludeResourceRules))) { return false; } @@ -433,6 +435,7 @@ public A removeMatchingFromExcludeResourceRules(Predicate each = excludeResourceRules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("excludeResourceRules"); while (each.hasNext()) { V1NamedRuleWithOperationsBuilder builder = each.next(); @@ -449,6 +452,7 @@ public A removeMatchingFromResourceRules(Predicate each = resourceRules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resourceRules"); while (each.hasNext()) { V1NamedRuleWithOperationsBuilder builder = each.next(); @@ -461,16 +465,16 @@ public A removeMatchingFromResourceRules(Predicate setNewExcludeResourceRuleLike(int index,V1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(index, item); + return new ExcludeResourceRulesNested<>(index, item); } public ResourceRulesNested setNewResourceRuleLike(int index,V1NamedRuleWithOperations item) { - return new ResourceRulesNested(index, item); + return new ResourceRulesNested<>(index, item); } public A setToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); } V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= this.excludeResourceRules.size()) { @@ -485,7 +489,7 @@ public A setToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { public A setToResourceRules(int index,V1NamedRuleWithOperations item) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= this.resourceRules.size()) { @@ -534,7 +538,7 @@ public A withExcludeResourceRules(List excludeResourc this._visitables.get("excludeResourceRules").clear(); } if (excludeResourceRules != null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); for (V1NamedRuleWithOperations item : excludeResourceRules) { this.addToExcludeResourceRules(item); } @@ -568,26 +572,26 @@ public A withNamespaceSelector(V1LabelSelector namespaceSelector) { this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); this._visitables.get("namespaceSelector").add(this.namespaceSelector); } else { - this.namespaceSelector = null; this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + this.namespaceSelector = null; } return (A) this; } public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); + return new NamespaceSelectorNested<>(null); } public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); + return new NamespaceSelectorNested<>(item); } public ObjectSelectorNested withNewObjectSelector() { - return new ObjectSelectorNested(null); + return new ObjectSelectorNested<>(null); } public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { - return new ObjectSelectorNested(item); + return new ObjectSelectorNested<>(item); } public A withObjectSelector(V1LabelSelector objectSelector) { @@ -596,8 +600,8 @@ public A withObjectSelector(V1LabelSelector objectSelector) { this.objectSelector = new V1LabelSelectorBuilder(objectSelector); this._visitables.get("objectSelector").add(this.objectSelector); } else { - this.objectSelector = null; this._visitables.get("objectSelector").remove(this.objectSelector); + this.objectSelector = null; } return (A) this; } @@ -607,7 +611,7 @@ public A withResourceRules(List resourceRules) { this._visitables.get("resourceRules").clear(); } if (resourceRules != null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); for (V1NamedRuleWithOperations item : resourceRules) { this.addToResourceRules(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java index 5c37dd8203..48e869d603 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ModifyVolumeStatusBuilder extends V1ModifyVolumeStatusFluent implements VisitableBuilder{ V1ModifyVolumeStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java index ddef4c7fd5..fd57599a5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ModifyVolumeStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ModifyVolumeStatusFluent> extends BaseFluent{ private String status; private String targetVolumeAttributesClassName; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ModifyVolumeStatusFluent that = (V1ModifyVolumeStatusFluent) o; + V1ModifyVolumeStatusFluent that = (V1ModifyVolumeStatusFluent) o; if (!(Objects.equals(status, that.status))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingBuilder.java index 6132bc2f3c..3addf6ee49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1MutatingAdmissionPolicyBindingBuilder extends V1MutatingAdmissionPolicyBindingFluent implements VisitableBuilder{ V1MutatingAdmissionPolicyBindingFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingFluent.java index 7573dd6f37..e5c9aa95a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1MutatingAdmissionPolicyBindingFluent that = (V1MutatingAdmissionPolicyBindingFluent) o; + V1MutatingAdmissionPolicyBindingFluent that = (V1MutatingAdmissionPolicyBindingFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1MutatingAdmissionPolicyBindingSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1MutatingAdmissionPolicyBindingSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1MutatingAdmissionPolicyBindingSpec spec) { this.spec = new V1MutatingAdmissionPolicyBindingSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListBuilder.java index 003927dead..73b2bd4613 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1MutatingAdmissionPolicyBindingListBuilder extends V1MutatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ V1MutatingAdmissionPolicyBindingListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListFluent.java index 479df26c2f..9eee1fd0c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1MutatingAdmissionPolicyBindingListFluent(V1MutatingAdmissionPolicyBindi public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1MutatingAdmissionPolicyBinding item : items) { V1MutatingAdmissionPolicyBindingBuilder builder = new V1MutatingAdmissionPolicyBindingBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1MutatingAdmissionPolicyBinding item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1MutatingAdmissionPolicyBinding... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1MutatingAdmissionPolicyBinding item : items) { V1MutatingAdmissionPolicyBindingBuilder builder = new V1MutatingAdmissionPolicyBindingBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1MutatingAdmissionPolicyBinding... items) { public A addToItems(int index,V1MutatingAdmissionPolicyBinding item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1MutatingAdmissionPolicyBindingBuilder builder = new V1MutatingAdmissionPolicyBindingBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1MutatingAdmissionPolicyBindingListFluent that = (V1MutatingAdmissionPolicyBindingListFluent) o; + V1MutatingAdmissionPolicyBindingListFluent that = (V1MutatingAdmissionPolicyBindingListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1MutatingAdmissionPolicyBindingBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate setNewItemLike(int index,V1MutatingAdmissionPolicyBinding item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1MutatingAdmissionPolicyBinding item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1MutatingAdmissionPolicyBindingBuilder builder = new V1MutatingAdmissionPolicyBindingBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1MutatingAdmissionPolicyBinding item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1MutatingAdmissionPolicyBindingFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecBuilder.java index bd6ede320c..f49640fa1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1MutatingAdmissionPolicyBindingSpecBuilder extends V1MutatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ V1MutatingAdmissionPolicyBindingSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecFluent.java index 5a765bfc1f..3abc8ff07f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ private V1MatchResourcesBuilder matchResources; private V1ParamRefBuilder paramRef; @@ -89,7 +91,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1MutatingAdmissionPolicyBindingSpecFluent that = (V1MutatingAdmissionPolicyBindingSpecFluent) o; + V1MutatingAdmissionPolicyBindingSpecFluent that = (V1MutatingAdmissionPolicyBindingSpecFluent) o; if (!(Objects.equals(matchResources, that.matchResources))) { return false; } @@ -149,26 +151,26 @@ public A withMatchResources(V1MatchResources matchResources) { this.matchResources = new V1MatchResourcesBuilder(matchResources); this._visitables.get("matchResources").add(this.matchResources); } else { - this.matchResources = null; this._visitables.get("matchResources").remove(this.matchResources); + this.matchResources = null; } return (A) this; } public MatchResourcesNested withNewMatchResources() { - return new MatchResourcesNested(null); + return new MatchResourcesNested<>(null); } public MatchResourcesNested withNewMatchResourcesLike(V1MatchResources item) { - return new MatchResourcesNested(item); + return new MatchResourcesNested<>(item); } public ParamRefNested withNewParamRef() { - return new ParamRefNested(null); + return new ParamRefNested<>(null); } public ParamRefNested withNewParamRefLike(V1ParamRef item) { - return new ParamRefNested(item); + return new ParamRefNested<>(item); } public A withParamRef(V1ParamRef paramRef) { @@ -177,8 +179,8 @@ public A withParamRef(V1ParamRef paramRef) { this.paramRef = new V1ParamRefBuilder(paramRef); this._visitables.get("paramRef").add(this.paramRef); } else { - this.paramRef = null; this._visitables.get("paramRef").remove(this.paramRef); + this.paramRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBuilder.java index a5345248a4..49abe2c91d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1MutatingAdmissionPolicyBuilder extends V1MutatingAdmissionPolicyFluent implements VisitableBuilder{ V1MutatingAdmissionPolicyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyFluent.java index 62704f52fc..d38f58731a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1MutatingAdmissionPolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1MutatingAdmissionPolicyFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1MutatingAdmissionPolicyFluent that = (V1MutatingAdmissionPolicyFluent) o; + V1MutatingAdmissionPolicyFluent that = (V1MutatingAdmissionPolicyFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1MutatingAdmissionPolicySpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1MutatingAdmissionPolicySpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1MutatingAdmissionPolicySpec spec) { this.spec = new V1MutatingAdmissionPolicySpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListBuilder.java index cdc048d019..c3c6e3e955 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1MutatingAdmissionPolicyListBuilder extends V1MutatingAdmissionPolicyListFluent implements VisitableBuilder{ V1MutatingAdmissionPolicyListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListFluent.java index 67b95ef88a..a17ba53dda 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1MutatingAdmissionPolicyListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1MutatingAdmissionPolicyListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1MutatingAdmissionPolicyListFluent(V1MutatingAdmissionPolicyList instanc public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1MutatingAdmissionPolicy item : items) { V1MutatingAdmissionPolicyBuilder builder = new V1MutatingAdmissionPolicyBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1MutatingAdmissionPolicy item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1MutatingAdmissionPolicy... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1MutatingAdmissionPolicy item : items) { V1MutatingAdmissionPolicyBuilder builder = new V1MutatingAdmissionPolicyBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1MutatingAdmissionPolicy... items) { public A addToItems(int index,V1MutatingAdmissionPolicy item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1MutatingAdmissionPolicyBuilder builder = new V1MutatingAdmissionPolicyBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1MutatingAdmissionPolicyListFluent that = (V1MutatingAdmissionPolicyListFluent) o; + V1MutatingAdmissionPolicyListFluent that = (V1MutatingAdmissionPolicyListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate pre return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1MutatingAdmissionPolicyBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate pre } public ItemsNested setNewItemLike(int index,V1MutatingAdmissionPolicy item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1MutatingAdmissionPolicy item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1MutatingAdmissionPolicyBuilder builder = new V1MutatingAdmissionPolicyBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1MutatingAdmissionPolicy item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1MutatingAdmissionPolicyFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecBuilder.java index 42e70b458b..67d898336e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1MutatingAdmissionPolicySpecBuilder extends V1MutatingAdmissionPolicySpecFluent implements VisitableBuilder{ V1MutatingAdmissionPolicySpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecFluent.java index 978b8ad529..03199b11ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ private String failurePolicy; private ArrayList matchConditions; @@ -50,7 +52,7 @@ public V1MutatingAdmissionPolicySpecFluent(V1MutatingAdmissionPolicySpec instanc public A addAllToMatchConditions(Collection items) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); @@ -62,7 +64,7 @@ public A addAllToMatchConditions(Collection items) { public A addAllToMutations(Collection items) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); } for (V1Mutation item : items) { V1MutationBuilder builder = new V1MutationBuilder(item); @@ -74,7 +76,7 @@ public A addAllToMutations(Collection items) { public A addAllToVariables(Collection items) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } for (V1Variable item : items) { V1VariableBuilder builder = new V1VariableBuilder(item); @@ -85,32 +87,32 @@ public A addAllToVariables(Collection items) { } public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); + return new MatchConditionsNested<>(-1, null); } public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { - return new MatchConditionsNested(-1, item); + return new MatchConditionsNested<>(-1, item); } public MutationsNested addNewMutation() { - return new MutationsNested(-1, null); + return new MutationsNested<>(-1, null); } public MutationsNested addNewMutationLike(V1Mutation item) { - return new MutationsNested(-1, item); + return new MutationsNested<>(-1, item); } public VariablesNested addNewVariable() { - return new VariablesNested(-1, null); + return new VariablesNested<>(-1, null); } public VariablesNested addNewVariableLike(V1Variable item) { - return new VariablesNested(-1, item); + return new VariablesNested<>(-1, item); } public A addToMatchConditions(V1MatchCondition... items) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); @@ -122,7 +124,7 @@ public A addToMatchConditions(V1MatchCondition... items) { public A addToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= this.matchConditions.size()) { @@ -137,7 +139,7 @@ public A addToMatchConditions(int index,V1MatchCondition item) { public A addToMutations(V1Mutation... items) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); } for (V1Mutation item : items) { V1MutationBuilder builder = new V1MutationBuilder(item); @@ -149,7 +151,7 @@ public A addToMutations(V1Mutation... items) { public A addToMutations(int index,V1Mutation item) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); } V1MutationBuilder builder = new V1MutationBuilder(item); if (index < 0 || index >= this.mutations.size()) { @@ -164,7 +166,7 @@ public A addToMutations(int index,V1Mutation item) { public A addToVariables(V1Variable... items) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } for (V1Variable item : items) { V1VariableBuilder builder = new V1VariableBuilder(item); @@ -176,7 +178,7 @@ public A addToVariables(V1Variable... items) { public A addToVariables(int index,V1Variable item) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } V1VariableBuilder builder = new V1VariableBuilder(item); if (index < 0 || index >= this.variables.size()) { @@ -427,7 +429,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1MutatingAdmissionPolicySpecFluent that = (V1MutatingAdmissionPolicySpecFluent) o; + V1MutatingAdmissionPolicySpecFluent that = (V1MutatingAdmissionPolicySpecFluent) o; if (!(Objects.equals(failurePolicy, that.failurePolicy))) { return false; } @@ -596,6 +598,7 @@ public A removeMatchingFromMatchConditions(Predicate pr return (A) this; } Iterator each = matchConditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("matchConditions"); while (each.hasNext()) { V1MatchConditionBuilder builder = each.next(); @@ -612,6 +615,7 @@ public A removeMatchingFromMutations(Predicate predicate) { return (A) this; } Iterator each = mutations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("mutations"); while (each.hasNext()) { V1MutationBuilder builder = each.next(); @@ -628,6 +632,7 @@ public A removeMatchingFromVariables(Predicate predicate) { return (A) this; } Iterator each = variables.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("variables"); while (each.hasNext()) { V1VariableBuilder builder = each.next(); @@ -640,20 +645,20 @@ public A removeMatchingFromVariables(Predicate predicate) { } public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { - return new MatchConditionsNested(index, item); + return new MatchConditionsNested<>(index, item); } public MutationsNested setNewMutationLike(int index,V1Mutation item) { - return new MutationsNested(index, item); + return new MutationsNested<>(index, item); } public VariablesNested setNewVariableLike(int index,V1Variable item) { - return new VariablesNested(index, item); + return new VariablesNested<>(index, item); } public A setToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= this.matchConditions.size()) { @@ -668,7 +673,7 @@ public A setToMatchConditions(int index,V1MatchCondition item) { public A setToMutations(int index,V1Mutation item) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); } V1MutationBuilder builder = new V1MutationBuilder(item); if (index < 0 || index >= this.mutations.size()) { @@ -683,7 +688,7 @@ public A setToMutations(int index,V1Mutation item) { public A setToVariables(int index,V1Variable item) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } V1VariableBuilder builder = new V1VariableBuilder(item); if (index < 0 || index >= this.variables.size()) { @@ -747,7 +752,7 @@ public A withMatchConditions(List matchConditions) { this._visitables.get("matchConditions").clear(); } if (matchConditions != null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); for (V1MatchCondition item : matchConditions) { this.addToMatchConditions(item); } @@ -776,8 +781,8 @@ public A withMatchConstraints(V1MatchResources matchConstraints) { this.matchConstraints = new V1MatchResourcesBuilder(matchConstraints); this._visitables.get("matchConstraints").add(this.matchConstraints); } else { - this.matchConstraints = null; this._visitables.get("matchConstraints").remove(this.matchConstraints); + this.matchConstraints = null; } return (A) this; } @@ -787,7 +792,7 @@ public A withMutations(List mutations) { this._visitables.get("mutations").clear(); } if (mutations != null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); for (V1Mutation item : mutations) { this.addToMutations(item); } @@ -811,19 +816,19 @@ public A withMutations(V1Mutation... mutations) { } public MatchConstraintsNested withNewMatchConstraints() { - return new MatchConstraintsNested(null); + return new MatchConstraintsNested<>(null); } public MatchConstraintsNested withNewMatchConstraintsLike(V1MatchResources item) { - return new MatchConstraintsNested(item); + return new MatchConstraintsNested<>(item); } public ParamKindNested withNewParamKind() { - return new ParamKindNested(null); + return new ParamKindNested<>(null); } public ParamKindNested withNewParamKindLike(V1ParamKind item) { - return new ParamKindNested(item); + return new ParamKindNested<>(item); } public A withParamKind(V1ParamKind paramKind) { @@ -832,8 +837,8 @@ public A withParamKind(V1ParamKind paramKind) { this.paramKind = new V1ParamKindBuilder(paramKind); this._visitables.get("paramKind").add(this.paramKind); } else { - this.paramKind = null; this._visitables.get("paramKind").remove(this.paramKind); + this.paramKind = null; } return (A) this; } @@ -848,7 +853,7 @@ public A withVariables(List variables) { this._visitables.get("variables").clear(); } if (variables != null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); for (V1Variable item : variables) { this.addToVariables(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java index 253d128652..7ac3c313de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1MutatingWebhookBuilder extends V1MutatingWebhookFluent implements VisitableBuilder{ V1MutatingWebhookFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java index f205827ec5..21c3d7ba87 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1MutatingWebhookConfigurationBuilder extends V1MutatingWebhookConfigurationFluent implements VisitableBuilder{ V1MutatingWebhookConfigurationFluent fluent; 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 ca683e6cc2..38b27bc952 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1MutatingWebhookConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1MutatingWebhookConfigurationFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -47,7 +49,7 @@ public V1MutatingWebhookConfigurationFluent(V1MutatingWebhookConfiguration insta public A addAllToWebhooks(Collection items) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList<>(); } for (V1MutatingWebhook item : items) { V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); @@ -58,16 +60,16 @@ public A addAllToWebhooks(Collection items) { } public WebhooksNested addNewWebhook() { - return new WebhooksNested(-1, null); + return new WebhooksNested<>(-1, null); } public WebhooksNested addNewWebhookLike(V1MutatingWebhook item) { - return new WebhooksNested(-1, item); + return new WebhooksNested<>(-1, item); } public A addToWebhooks(V1MutatingWebhook... items) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList<>(); } for (V1MutatingWebhook item : items) { V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); @@ -79,7 +81,7 @@ public A addToWebhooks(V1MutatingWebhook... items) { public A addToWebhooks(int index,V1MutatingWebhook item) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList<>(); } V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); if (index < 0 || index >= this.webhooks.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1MutatingWebhookConfigurationFluent that = (V1MutatingWebhookConfigurationFluent) o; + V1MutatingWebhookConfigurationFluent that = (V1MutatingWebhookConfigurationFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromWebhooks(Predicate predicat return (A) this; } Iterator each = webhooks.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("webhooks"); while (each.hasNext()) { V1MutatingWebhookBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromWebhooks(Predicate predicat } public WebhooksNested setNewWebhookLike(int index,V1MutatingWebhook item) { - return new WebhooksNested(index, item); + return new WebhooksNested<>(index, item); } public A setToWebhooks(int index,V1MutatingWebhook item) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList<>(); } V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); if (index < 0 || index >= this.webhooks.size()) { @@ -343,18 +346,18 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withWebhooks(List webhooks) { @@ -362,7 +365,7 @@ public A withWebhooks(List webhooks) { this._visitables.get("webhooks").clear(); } if (webhooks != null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList<>(); for (V1MutatingWebhook item : webhooks) { this.addToWebhooks(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java index f8b881b649..55b688672c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1MutatingWebhookConfigurationListBuilder extends V1MutatingWebhookConfigurationListFluent implements VisitableBuilder{ V1MutatingWebhookConfigurationListFluent fluent; 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 19869e8f96..ba2af5c7b3 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1MutatingWebhookConfigurationListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1MutatingWebhookConfigurationListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1MutatingWebhookConfigurationListFluent(V1MutatingWebhookConfigurationLi public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1MutatingWebhookConfiguration item : items) { V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1MutatingWebhookConfiguration item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1MutatingWebhookConfiguration... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1MutatingWebhookConfiguration item : items) { V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1MutatingWebhookConfiguration... items) { public A addToItems(int index,V1MutatingWebhookConfiguration item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1MutatingWebhookConfigurationListFluent that = (V1MutatingWebhookConfigurationListFluent) o; + V1MutatingWebhookConfigurationListFluent that = (V1MutatingWebhookConfigurationListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1MutatingWebhookConfigurationBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate setNewItemLike(int index,V1MutatingWebhookConfiguration item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1MutatingWebhookConfiguration item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1MutatingWebhookConfiguration item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1MutatingWebhookConfigurationFluent> implements Nested{ 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 bc3c99a25a..8fa0fafeb0 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 @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1MutatingWebhookFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1MutatingWebhookFluent> extends BaseFluent{ private List admissionReviewVersions; private AdmissionregistrationV1WebhookClientConfigBuilder clientConfig; @@ -56,7 +58,7 @@ public V1MutatingWebhookFluent(V1MutatingWebhook instance) { public A addAllToAdmissionReviewVersions(Collection items) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); + this.admissionReviewVersions = new ArrayList<>(); } for (String item : items) { this.admissionReviewVersions.add(item); @@ -66,7 +68,7 @@ public A addAllToAdmissionReviewVersions(Collection items) { public A addAllToMatchConditions(Collection items) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); @@ -78,7 +80,7 @@ public A addAllToMatchConditions(Collection items) { public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1RuleWithOperations item : items) { V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); @@ -89,24 +91,24 @@ public A addAllToRules(Collection items) { } public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); + return new MatchConditionsNested<>(-1, null); } public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { - return new MatchConditionsNested(-1, item); + return new MatchConditionsNested<>(-1, item); } public RulesNested addNewRule() { - return new RulesNested(-1, null); + return new RulesNested<>(-1, null); } public RulesNested addNewRuleLike(V1RuleWithOperations item) { - return new RulesNested(-1, item); + return new RulesNested<>(-1, item); } public A addToAdmissionReviewVersions(String... items) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); + this.admissionReviewVersions = new ArrayList<>(); } for (String item : items) { this.admissionReviewVersions.add(item); @@ -116,7 +118,7 @@ public A addToAdmissionReviewVersions(String... items) { public A addToAdmissionReviewVersions(int index,String item) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); + this.admissionReviewVersions = new ArrayList<>(); } this.admissionReviewVersions.add(index, item); return (A) this; @@ -124,7 +126,7 @@ public A addToAdmissionReviewVersions(int index,String item) { public A addToMatchConditions(V1MatchCondition... items) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); @@ -136,7 +138,7 @@ public A addToMatchConditions(V1MatchCondition... items) { public A addToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= this.matchConditions.size()) { @@ -151,7 +153,7 @@ public A addToMatchConditions(int index,V1MatchCondition item) { public A addToRules(V1RuleWithOperations... items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1RuleWithOperations item : items) { V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); @@ -163,7 +165,7 @@ public A addToRules(V1RuleWithOperations... items) { public A addToRules(int index,V1RuleWithOperations item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -374,7 +376,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1MutatingWebhookFluent that = (V1MutatingWebhookFluent) o; + V1MutatingWebhookFluent that = (V1MutatingWebhookFluent) o; if (!(Objects.equals(admissionReviewVersions, that.admissionReviewVersions))) { return false; } @@ -615,6 +617,7 @@ public A removeMatchingFromMatchConditions(Predicate pr return (A) this; } Iterator each = matchConditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("matchConditions"); while (each.hasNext()) { V1MatchConditionBuilder builder = each.next(); @@ -631,6 +634,7 @@ public A removeMatchingFromRules(Predicate predicat return (A) this; } Iterator each = rules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1RuleWithOperationsBuilder builder = each.next(); @@ -643,16 +647,16 @@ public A removeMatchingFromRules(Predicate predicat } public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { - return new MatchConditionsNested(index, item); + return new MatchConditionsNested<>(index, item); } public RulesNested setNewRuleLike(int index,V1RuleWithOperations item) { - return new RulesNested(index, item); + return new RulesNested<>(index, item); } public A setToAdmissionReviewVersions(int index,String item) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); + this.admissionReviewVersions = new ArrayList<>(); } this.admissionReviewVersions.set(index, item); return (A) this; @@ -660,7 +664,7 @@ public A setToAdmissionReviewVersions(int index,String item) { public A setToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= this.matchConditions.size()) { @@ -675,7 +679,7 @@ public A setToMatchConditions(int index,V1MatchCondition item) { public A setToRules(int index,V1RuleWithOperations item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -756,7 +760,7 @@ public String toString() { public A withAdmissionReviewVersions(List admissionReviewVersions) { if (admissionReviewVersions != null) { - this.admissionReviewVersions = new ArrayList(); + this.admissionReviewVersions = new ArrayList<>(); for (String item : admissionReviewVersions) { this.addToAdmissionReviewVersions(item); } @@ -785,8 +789,8 @@ public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfi this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); this._visitables.get("clientConfig").add(this.clientConfig); } else { - this.clientConfig = null; this._visitables.get("clientConfig").remove(this.clientConfig); + this.clientConfig = null; } return (A) this; } @@ -801,7 +805,7 @@ public A withMatchConditions(List matchConditions) { this._visitables.get("matchConditions").clear(); } if (matchConditions != null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); for (V1MatchCondition item : matchConditions) { this.addToMatchConditions(item); } @@ -840,34 +844,34 @@ public A withNamespaceSelector(V1LabelSelector namespaceSelector) { this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); this._visitables.get("namespaceSelector").add(this.namespaceSelector); } else { - this.namespaceSelector = null; this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + this.namespaceSelector = null; } return (A) this; } public ClientConfigNested withNewClientConfig() { - return new ClientConfigNested(null); + return new ClientConfigNested<>(null); } public ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { - return new ClientConfigNested(item); + return new ClientConfigNested<>(item); } public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); + return new NamespaceSelectorNested<>(null); } public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); + return new NamespaceSelectorNested<>(item); } public ObjectSelectorNested withNewObjectSelector() { - return new ObjectSelectorNested(null); + return new ObjectSelectorNested<>(null); } public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { - return new ObjectSelectorNested(item); + return new ObjectSelectorNested<>(item); } public A withObjectSelector(V1LabelSelector objectSelector) { @@ -876,8 +880,8 @@ public A withObjectSelector(V1LabelSelector objectSelector) { this.objectSelector = new V1LabelSelectorBuilder(objectSelector); this._visitables.get("objectSelector").add(this.objectSelector); } else { - this.objectSelector = null; this._visitables.get("objectSelector").remove(this.objectSelector); + this.objectSelector = null; } return (A) this; } @@ -892,7 +896,7 @@ public A withRules(List rules) { this._visitables.get("rules").clear(); } if (rules != null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); for (V1RuleWithOperations item : rules) { this.addToRules(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationBuilder.java index e62035a318..2f933affe3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1MutationBuilder extends V1MutationFluent implements VisitableBuilder{ V1MutationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationFluent.java index c768f7cd94..f6f476b7ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1MutationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1MutationFluent> extends BaseFluent{ private V1ApplyConfigurationBuilder applyConfiguration; private V1JSONPatchBuilder jsonPatch; @@ -89,7 +91,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1MutationFluent that = (V1MutationFluent) o; + V1MutationFluent that = (V1MutationFluent) o; if (!(Objects.equals(applyConfiguration, that.applyConfiguration))) { return false; } @@ -149,8 +151,8 @@ public A withApplyConfiguration(V1ApplyConfiguration applyConfiguration) { this.applyConfiguration = new V1ApplyConfigurationBuilder(applyConfiguration); this._visitables.get("applyConfiguration").add(this.applyConfiguration); } else { - this.applyConfiguration = null; this._visitables.get("applyConfiguration").remove(this.applyConfiguration); + this.applyConfiguration = null; } return (A) this; } @@ -161,26 +163,26 @@ public A withJsonPatch(V1JSONPatch jsonPatch) { this.jsonPatch = new V1JSONPatchBuilder(jsonPatch); this._visitables.get("jsonPatch").add(this.jsonPatch); } else { - this.jsonPatch = null; this._visitables.get("jsonPatch").remove(this.jsonPatch); + this.jsonPatch = null; } return (A) this; } public ApplyConfigurationNested withNewApplyConfiguration() { - return new ApplyConfigurationNested(null); + return new ApplyConfigurationNested<>(null); } public ApplyConfigurationNested withNewApplyConfigurationLike(V1ApplyConfiguration item) { - return new ApplyConfigurationNested(item); + return new ApplyConfigurationNested<>(item); } public JsonPatchNested withNewJsonPatch() { - return new JsonPatchNested(null); + return new JsonPatchNested<>(null); } public JsonPatchNested withNewJsonPatchLike(V1JSONPatch item) { - return new JsonPatchNested(item); + return new JsonPatchNested<>(item); } public A withPatchType(String patchType) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java index 84e5119de0..9a283ffb42 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NFSVolumeSourceBuilder extends V1NFSVolumeSourceFluent implements VisitableBuilder{ V1NFSVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java index 132b3bc13a..b778ccbdd7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NFSVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NFSVolumeSourceFluent> extends BaseFluent{ private String path; private Boolean readOnly; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NFSVolumeSourceFluent that = (V1NFSVolumeSourceFluent) o; + V1NFSVolumeSourceFluent that = (V1NFSVolumeSourceFluent) o; if (!(Objects.equals(path, that.path))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java index a2b14f6956..367799ddbe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NamedRuleWithOperationsBuilder extends V1NamedRuleWithOperationsFluent implements VisitableBuilder{ V1NamedRuleWithOperationsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java index 60713285d8..e23b577557 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NamedRuleWithOperationsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NamedRuleWithOperationsFluent> extends BaseFluent{ private List apiGroups; private List apiVersions; @@ -45,7 +47,7 @@ public V1NamedRuleWithOperationsFluent(V1NamedRuleWithOperations instance) { public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -55,7 +57,7 @@ public A addAllToApiGroups(Collection items) { public A addAllToApiVersions(Collection items) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } for (String item : items) { this.apiVersions.add(item); @@ -65,7 +67,7 @@ public A addAllToApiVersions(Collection items) { public A addAllToOperations(Collection items) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } for (String item : items) { this.operations.add(item); @@ -75,7 +77,7 @@ public A addAllToOperations(Collection items) { public A addAllToResourceNames(Collection items) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } for (String item : items) { this.resourceNames.add(item); @@ -85,7 +87,7 @@ public A addAllToResourceNames(Collection items) { public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -95,7 +97,7 @@ public A addAllToResources(Collection items) { public A addToApiGroups(String... items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -105,7 +107,7 @@ public A addToApiGroups(String... items) { public A addToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(index, item); return (A) this; @@ -113,7 +115,7 @@ public A addToApiGroups(int index,String item) { public A addToApiVersions(String... items) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } for (String item : items) { this.apiVersions.add(item); @@ -123,7 +125,7 @@ public A addToApiVersions(String... items) { public A addToApiVersions(int index,String item) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } this.apiVersions.add(index, item); return (A) this; @@ -131,7 +133,7 @@ public A addToApiVersions(int index,String item) { public A addToOperations(String... items) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } for (String item : items) { this.operations.add(item); @@ -141,7 +143,7 @@ public A addToOperations(String... items) { public A addToOperations(int index,String item) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } this.operations.add(index, item); return (A) this; @@ -149,7 +151,7 @@ public A addToOperations(int index,String item) { public A addToResourceNames(String... items) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } for (String item : items) { this.resourceNames.add(item); @@ -159,7 +161,7 @@ public A addToResourceNames(String... items) { public A addToResourceNames(int index,String item) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.add(index, item); return (A) this; @@ -167,7 +169,7 @@ public A addToResourceNames(int index,String item) { public A addToResources(String... items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -177,7 +179,7 @@ public A addToResources(String... items) { public A addToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(index, item); return (A) this; @@ -205,7 +207,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NamedRuleWithOperationsFluent that = (V1NamedRuleWithOperationsFluent) o; + V1NamedRuleWithOperationsFluent that = (V1NamedRuleWithOperationsFluent) o; if (!(Objects.equals(apiGroups, that.apiGroups))) { return false; } @@ -531,7 +533,7 @@ public A removeFromResources(String... items) { public A setToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.set(index, item); return (A) this; @@ -539,7 +541,7 @@ public A setToApiGroups(int index,String item) { public A setToApiVersions(int index,String item) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } this.apiVersions.set(index, item); return (A) this; @@ -547,7 +549,7 @@ public A setToApiVersions(int index,String item) { public A setToOperations(int index,String item) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } this.operations.set(index, item); return (A) this; @@ -555,7 +557,7 @@ public A setToOperations(int index,String item) { public A setToResourceNames(int index,String item) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.set(index, item); return (A) this; @@ -563,7 +565,7 @@ public A setToResourceNames(int index,String item) { public A setToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.set(index, item); return (A) this; @@ -607,7 +609,7 @@ public String toString() { public A withApiGroups(List apiGroups) { if (apiGroups != null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); for (String item : apiGroups) { this.addToApiGroups(item); } @@ -632,7 +634,7 @@ public A withApiGroups(String... apiGroups) { public A withApiVersions(List apiVersions) { if (apiVersions != null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); for (String item : apiVersions) { this.addToApiVersions(item); } @@ -657,7 +659,7 @@ public A withApiVersions(String... apiVersions) { public A withOperations(List operations) { if (operations != null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); for (String item : operations) { this.addToOperations(item); } @@ -682,7 +684,7 @@ public A withOperations(String... operations) { public A withResourceNames(List resourceNames) { if (resourceNames != null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); for (String item : resourceNames) { this.addToResourceNames(item); } @@ -707,7 +709,7 @@ public A withResourceNames(String... resourceNames) { public A withResources(List resources) { if (resources != null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); for (String item : resources) { this.addToResources(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java index 58942f2d01..6d038d3d51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NamespaceBuilder extends V1NamespaceFluent implements VisitableBuilder{ V1NamespaceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java index ad0b5f33de..59880a8a58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NamespaceConditionBuilder extends V1NamespaceConditionFluent implements VisitableBuilder{ V1NamespaceConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java index 259aef0e22..fcca14a8bf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NamespaceConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NamespaceConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private String message; @@ -60,7 +62,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NamespaceConditionFluent that = (V1NamespaceConditionFluent) o; + V1NamespaceConditionFluent that = (V1NamespaceConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java index 18dd46e0d4..65a3a0c6b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NamespaceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NamespaceFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NamespaceFluent that = (V1NamespaceFluent) o; + V1NamespaceFluent that = (V1NamespaceFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1NamespaceSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1NamespaceStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1NamespaceSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1NamespaceSpec spec) { this.spec = new V1NamespaceSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1NamespaceStatus status) { this.status = new V1NamespaceStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java index b922f889b6..ad00b29f1d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NamespaceListBuilder extends V1NamespaceListFluent implements VisitableBuilder{ V1NamespaceListFluent fluent; 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 663c02d855..1080412004 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NamespaceListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NamespaceListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1NamespaceListFluent(V1NamespaceList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Namespace item : items) { V1NamespaceBuilder builder = new V1NamespaceBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1Namespace item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1Namespace... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Namespace item : items) { V1NamespaceBuilder builder = new V1NamespaceBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1Namespace... items) { public A addToItems(int index,V1Namespace item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1NamespaceBuilder builder = new V1NamespaceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NamespaceListFluent that = (V1NamespaceListFluent) o; + V1NamespaceListFluent that = (V1NamespaceListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1NamespaceBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1Namespace item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1Namespace item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1NamespaceBuilder builder = new V1NamespaceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1Namespace item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1NamespaceFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java index da6c532cef..955da34e84 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NamespaceSpecBuilder extends V1NamespaceSpecFluent implements VisitableBuilder{ V1NamespaceSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java index fb8a7aec61..708e49ebfa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NamespaceSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NamespaceSpecFluent> extends BaseFluent{ private List finalizers; @@ -40,7 +42,7 @@ public V1NamespaceSpecFluent(V1NamespaceSpec instance) { public A addAllToFinalizers(Collection items) { if (this.finalizers == null) { - this.finalizers = new ArrayList(); + this.finalizers = new ArrayList<>(); } for (String item : items) { this.finalizers.add(item); @@ -50,7 +52,7 @@ public A addAllToFinalizers(Collection items) { public A addToFinalizers(String... items) { if (this.finalizers == null) { - this.finalizers = new ArrayList(); + this.finalizers = new ArrayList<>(); } for (String item : items) { this.finalizers.add(item); @@ -60,7 +62,7 @@ public A addToFinalizers(String... items) { public A addToFinalizers(int index,String item) { if (this.finalizers == null) { - this.finalizers = new ArrayList(); + this.finalizers = new ArrayList<>(); } this.finalizers.add(index, item); return (A) this; @@ -83,7 +85,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NamespaceSpecFluent that = (V1NamespaceSpecFluent) o; + V1NamespaceSpecFluent that = (V1NamespaceSpecFluent) o; if (!(Objects.equals(finalizers, that.finalizers))) { return false; } @@ -154,7 +156,7 @@ public A removeFromFinalizers(String... items) { public A setToFinalizers(int index,String item) { if (this.finalizers == null) { - this.finalizers = new ArrayList(); + this.finalizers = new ArrayList<>(); } this.finalizers.set(index, item); return (A) this; @@ -173,7 +175,7 @@ public String toString() { public A withFinalizers(List finalizers) { if (finalizers != null) { - this.finalizers = new ArrayList(); + this.finalizers = new ArrayList<>(); for (String item : finalizers) { this.addToFinalizers(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java index 11147cd090..04ebd3c941 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NamespaceStatusBuilder extends V1NamespaceStatusFluent implements VisitableBuilder{ V1NamespaceStatusFluent fluent; 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 fe39e0f665..f2bee5e52c 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NamespaceStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NamespaceStatusFluent> extends BaseFluent{ private ArrayList conditions; private String phase; @@ -44,7 +46,7 @@ public V1NamespaceStatusFluent(V1NamespaceStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1NamespaceCondition item : items) { V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); @@ -55,16 +57,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1NamespaceCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1NamespaceCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1NamespaceCondition item : items) { V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); @@ -76,7 +78,7 @@ public A addToConditions(V1NamespaceCondition... items) { public A addToConditions(int index,V1NamespaceCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -168,7 +170,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NamespaceStatusFluent that = (V1NamespaceStatusFluent) o; + V1NamespaceStatusFluent that = (V1NamespaceStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -232,6 +234,7 @@ public A removeMatchingFromConditions(Predicate pre return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1NamespaceConditionBuilder builder = each.next(); @@ -244,12 +247,12 @@ public A removeMatchingFromConditions(Predicate pre } public ConditionsNested setNewConditionLike(int index,V1NamespaceCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1NamespaceCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -283,7 +286,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1NamespaceCondition item : conditions) { this.addToConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java index f90f73b178..13ae55b42c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NetworkDeviceDataBuilder extends V1NetworkDeviceDataFluent implements VisitableBuilder{ V1NetworkDeviceDataFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java index c1aa723361..4794d21658 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NetworkDeviceDataFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NetworkDeviceDataFluent> extends BaseFluent{ private String hardwareAddress; private String interfaceName; @@ -42,7 +44,7 @@ public V1NetworkDeviceDataFluent(V1NetworkDeviceData instance) { public A addAllToIps(Collection items) { if (this.ips == null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); } for (String item : items) { this.ips.add(item); @@ -52,7 +54,7 @@ public A addAllToIps(Collection items) { public A addToIps(String... items) { if (this.ips == null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); } for (String item : items) { this.ips.add(item); @@ -62,7 +64,7 @@ public A addToIps(String... items) { public A addToIps(int index,String item) { if (this.ips == null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); } this.ips.add(index, item); return (A) this; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NetworkDeviceDataFluent that = (V1NetworkDeviceDataFluent) o; + V1NetworkDeviceDataFluent that = (V1NetworkDeviceDataFluent) o; if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { return false; } @@ -180,7 +182,7 @@ public A removeFromIps(String... items) { public A setToIps(int index,String item) { if (this.ips == null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); } this.ips.set(index, item); return (A) this; @@ -219,7 +221,7 @@ public A withInterfaceName(String interfaceName) { public A withIps(List ips) { if (ips != null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); for (String item : ips) { this.addToIps(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java index 1ad1615f6c..83f7c039da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NetworkPolicyBuilder extends V1NetworkPolicyFluent implements VisitableBuilder{ V1NetworkPolicyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java index 132df36dfc..53eecc0467 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NetworkPolicyEgressRuleBuilder extends V1NetworkPolicyEgressRuleFluent implements VisitableBuilder{ V1NetworkPolicyEgressRuleFluent fluent; 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 69b73daae1..39f1b6d20c 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NetworkPolicyEgressRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NetworkPolicyEgressRuleFluent> extends BaseFluent{ private ArrayList ports; private ArrayList to; @@ -44,7 +46,7 @@ public V1NetworkPolicyEgressRuleFluent(V1NetworkPolicyEgressRule instance) { public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1NetworkPolicyPort item : items) { V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); @@ -56,7 +58,7 @@ public A addAllToPorts(Collection items) { public A addAllToTo(Collection items) { if (this.to == null) { - this.to = new ArrayList(); + this.to = new ArrayList<>(); } for (V1NetworkPolicyPeer item : items) { V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); @@ -67,24 +69,24 @@ public A addAllToTo(Collection items) { } public PortsNested addNewPort() { - return new PortsNested(-1, null); + return new PortsNested<>(-1, null); } public PortsNested addNewPortLike(V1NetworkPolicyPort item) { - return new PortsNested(-1, item); + return new PortsNested<>(-1, item); } public ToNested addNewTo() { - return new ToNested(-1, null); + return new ToNested<>(-1, null); } public ToNested addNewToLike(V1NetworkPolicyPeer item) { - return new ToNested(-1, item); + return new ToNested<>(-1, item); } public A addToPorts(V1NetworkPolicyPort... items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1NetworkPolicyPort item : items) { V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); @@ -96,7 +98,7 @@ public A addToPorts(V1NetworkPolicyPort... items) { public A addToPorts(int index,V1NetworkPolicyPort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -111,7 +113,7 @@ public A addToPorts(int index,V1NetworkPolicyPort item) { public A addToTo(V1NetworkPolicyPeer... items) { if (this.to == null) { - this.to = new ArrayList(); + this.to = new ArrayList<>(); } for (V1NetworkPolicyPeer item : items) { V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); @@ -123,7 +125,7 @@ public A addToTo(V1NetworkPolicyPeer... items) { public A addToTo(int index,V1NetworkPolicyPeer item) { if (this.to == null) { - this.to = new ArrayList(); + this.to = new ArrayList<>(); } V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); if (index < 0 || index >= this.to.size()) { @@ -276,7 +278,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NetworkPolicyEgressRuleFluent that = (V1NetworkPolicyEgressRuleFluent) o; + V1NetworkPolicyEgressRuleFluent that = (V1NetworkPolicyEgressRuleFluent) o; if (!(Objects.equals(ports, that.ports))) { return false; } @@ -369,6 +371,7 @@ public A removeMatchingFromPorts(Predicate predicate return (A) this; } Iterator each = ports.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1NetworkPolicyPortBuilder builder = each.next(); @@ -385,6 +388,7 @@ public A removeMatchingFromTo(Predicate predicate) { return (A) this; } Iterator each = to.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("to"); while (each.hasNext()) { V1NetworkPolicyPeerBuilder builder = each.next(); @@ -397,16 +401,16 @@ public A removeMatchingFromTo(Predicate predicate) { } public PortsNested setNewPortLike(int index,V1NetworkPolicyPort item) { - return new PortsNested(index, item); + return new PortsNested<>(index, item); } public ToNested setNewToLike(int index,V1NetworkPolicyPeer item) { - return new ToNested(index, item); + return new ToNested<>(index, item); } public A setToPorts(int index,V1NetworkPolicyPort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -421,7 +425,7 @@ public A setToPorts(int index,V1NetworkPolicyPort item) { public A setToTo(int index,V1NetworkPolicyPeer item) { if (this.to == null) { - this.to = new ArrayList(); + this.to = new ArrayList<>(); } V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); if (index < 0 || index >= this.to.size()) { @@ -455,7 +459,7 @@ public A withPorts(List ports) { this._visitables.get("ports").clear(); } if (ports != null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); for (V1NetworkPolicyPort item : ports) { this.addToPorts(item); } @@ -483,7 +487,7 @@ public A withTo(List to) { this._visitables.get("to").clear(); } if (to != null) { - this.to = new ArrayList(); + this.to = new ArrayList<>(); for (V1NetworkPolicyPeer item : to) { this.addToTo(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java index 76e95f5183..12bc7d97c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NetworkPolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NetworkPolicyFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NetworkPolicyFluent that = (V1NetworkPolicyFluent) o; + V1NetworkPolicyFluent that = (V1NetworkPolicyFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1NetworkPolicySpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1NetworkPolicySpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1NetworkPolicySpec spec) { this.spec = new V1NetworkPolicySpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java index 90e117d66c..2b110143fd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NetworkPolicyIngressRuleBuilder extends V1NetworkPolicyIngressRuleFluent implements VisitableBuilder{ V1NetworkPolicyIngressRuleFluent fluent; 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 a08a384a7d..301fc93992 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NetworkPolicyIngressRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NetworkPolicyIngressRuleFluent> extends BaseFluent{ private ArrayList from; private ArrayList ports; @@ -44,7 +46,7 @@ public V1NetworkPolicyIngressRuleFluent(V1NetworkPolicyIngressRule instance) { public A addAllToFrom(Collection items) { if (this.from == null) { - this.from = new ArrayList(); + this.from = new ArrayList<>(); } for (V1NetworkPolicyPeer item : items) { V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); @@ -56,7 +58,7 @@ public A addAllToFrom(Collection items) { public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1NetworkPolicyPort item : items) { V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); @@ -67,24 +69,24 @@ public A addAllToPorts(Collection items) { } public FromNested addNewFrom() { - return new FromNested(-1, null); + return new FromNested<>(-1, null); } public FromNested addNewFromLike(V1NetworkPolicyPeer item) { - return new FromNested(-1, item); + return new FromNested<>(-1, item); } public PortsNested addNewPort() { - return new PortsNested(-1, null); + return new PortsNested<>(-1, null); } public PortsNested addNewPortLike(V1NetworkPolicyPort item) { - return new PortsNested(-1, item); + return new PortsNested<>(-1, item); } public A addToFrom(V1NetworkPolicyPeer... items) { if (this.from == null) { - this.from = new ArrayList(); + this.from = new ArrayList<>(); } for (V1NetworkPolicyPeer item : items) { V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); @@ -96,7 +98,7 @@ public A addToFrom(V1NetworkPolicyPeer... items) { public A addToFrom(int index,V1NetworkPolicyPeer item) { if (this.from == null) { - this.from = new ArrayList(); + this.from = new ArrayList<>(); } V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); if (index < 0 || index >= this.from.size()) { @@ -111,7 +113,7 @@ public A addToFrom(int index,V1NetworkPolicyPeer item) { public A addToPorts(V1NetworkPolicyPort... items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1NetworkPolicyPort item : items) { V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); @@ -123,7 +125,7 @@ public A addToPorts(V1NetworkPolicyPort... items) { public A addToPorts(int index,V1NetworkPolicyPort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -276,7 +278,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NetworkPolicyIngressRuleFluent that = (V1NetworkPolicyIngressRuleFluent) o; + V1NetworkPolicyIngressRuleFluent that = (V1NetworkPolicyIngressRuleFluent) o; if (!(Objects.equals(from, that.from))) { return false; } @@ -369,6 +371,7 @@ public A removeMatchingFromFrom(Predicate predicate) return (A) this; } Iterator each = from.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("from"); while (each.hasNext()) { V1NetworkPolicyPeerBuilder builder = each.next(); @@ -385,6 +388,7 @@ public A removeMatchingFromPorts(Predicate predicate return (A) this; } Iterator each = ports.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1NetworkPolicyPortBuilder builder = each.next(); @@ -397,16 +401,16 @@ public A removeMatchingFromPorts(Predicate predicate } public FromNested setNewFromLike(int index,V1NetworkPolicyPeer item) { - return new FromNested(index, item); + return new FromNested<>(index, item); } public PortsNested setNewPortLike(int index,V1NetworkPolicyPort item) { - return new PortsNested(index, item); + return new PortsNested<>(index, item); } public A setToFrom(int index,V1NetworkPolicyPeer item) { if (this.from == null) { - this.from = new ArrayList(); + this.from = new ArrayList<>(); } V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); if (index < 0 || index >= this.from.size()) { @@ -421,7 +425,7 @@ public A setToFrom(int index,V1NetworkPolicyPeer item) { public A setToPorts(int index,V1NetworkPolicyPort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -455,7 +459,7 @@ public A withFrom(List from) { this._visitables.get("from").clear(); } if (from != null) { - this.from = new ArrayList(); + this.from = new ArrayList<>(); for (V1NetworkPolicyPeer item : from) { this.addToFrom(item); } @@ -483,7 +487,7 @@ public A withPorts(List ports) { this._visitables.get("ports").clear(); } if (ports != null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); for (V1NetworkPolicyPort item : ports) { this.addToPorts(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java index 7bf51154b3..ceee49cc07 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NetworkPolicyListBuilder extends V1NetworkPolicyListFluent implements VisitableBuilder{ V1NetworkPolicyListFluent fluent; 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 cc848f3f0c..a73c6ddb4a 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NetworkPolicyListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NetworkPolicyListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1NetworkPolicyListFluent(V1NetworkPolicyList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1NetworkPolicy item : items) { V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1NetworkPolicy item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1NetworkPolicy... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1NetworkPolicy item : items) { V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1NetworkPolicy... items) { public A addToItems(int index,V1NetworkPolicy item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NetworkPolicyListFluent that = (V1NetworkPolicyListFluent) o; + V1NetworkPolicyListFluent that = (V1NetworkPolicyListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1NetworkPolicyBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1NetworkPolicy item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1NetworkPolicy item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1NetworkPolicy item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1NetworkPolicyFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java index 0175f709d8..ec289d8f6a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NetworkPolicyPeerBuilder extends V1NetworkPolicyPeerFluent implements VisitableBuilder{ V1NetworkPolicyPeerFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java index f447219755..795a46569c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NetworkPolicyPeerFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NetworkPolicyPeerFluent> extends BaseFluent{ private V1IPBlockBuilder ipBlock; private V1LabelSelectorBuilder namespaceSelector; @@ -105,7 +107,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NetworkPolicyPeerFluent that = (V1NetworkPolicyPeerFluent) o; + V1NetworkPolicyPeerFluent that = (V1NetworkPolicyPeerFluent) o; if (!(Objects.equals(ipBlock, that.ipBlock))) { return false; } @@ -161,8 +163,8 @@ public A withIpBlock(V1IPBlock ipBlock) { this.ipBlock = new V1IPBlockBuilder(ipBlock); this._visitables.get("ipBlock").add(this.ipBlock); } else { - this.ipBlock = null; this._visitables.get("ipBlock").remove(this.ipBlock); + this.ipBlock = null; } return (A) this; } @@ -173,34 +175,34 @@ public A withNamespaceSelector(V1LabelSelector namespaceSelector) { this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); this._visitables.get("namespaceSelector").add(this.namespaceSelector); } else { - this.namespaceSelector = null; this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + this.namespaceSelector = null; } return (A) this; } public IpBlockNested withNewIpBlock() { - return new IpBlockNested(null); + return new IpBlockNested<>(null); } public IpBlockNested withNewIpBlockLike(V1IPBlock item) { - return new IpBlockNested(item); + return new IpBlockNested<>(item); } public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); + return new NamespaceSelectorNested<>(null); } public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); + return new NamespaceSelectorNested<>(item); } public PodSelectorNested withNewPodSelector() { - return new PodSelectorNested(null); + return new PodSelectorNested<>(null); } public PodSelectorNested withNewPodSelectorLike(V1LabelSelector item) { - return new PodSelectorNested(item); + return new PodSelectorNested<>(item); } public A withPodSelector(V1LabelSelector podSelector) { @@ -209,8 +211,8 @@ public A withPodSelector(V1LabelSelector podSelector) { this.podSelector = new V1LabelSelectorBuilder(podSelector); this._visitables.get("podSelector").add(this.podSelector); } else { - this.podSelector = null; this._visitables.get("podSelector").remove(this.podSelector); + this.podSelector = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java index a2fba72723..0ed6ca7375 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NetworkPolicyPortBuilder extends V1NetworkPolicyPortFluent implements VisitableBuilder{ V1NetworkPolicyPortFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java index 374e39150b..00a8ab19b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java @@ -20,12 +20,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NetworkPolicyPortFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NetworkPolicyPortFluent> extends BaseFluent{ private Integer endPort; private IntOrString port; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NetworkPolicyPortFluent that = (V1NetworkPolicyPortFluent) o; + V1NetworkPolicyPortFluent that = (V1NetworkPolicyPortFluent) o; if (!(Objects.equals(endPort, that.endPort))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java index 855c403ac5..e62689ffa5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NetworkPolicySpecBuilder extends V1NetworkPolicySpecFluent implements VisitableBuilder{ V1NetworkPolicySpecFluent fluent; 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 4d99138430..19d0da6c7f 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NetworkPolicySpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NetworkPolicySpecFluent> extends BaseFluent{ private ArrayList egress; private ArrayList ingress; @@ -47,7 +49,7 @@ public V1NetworkPolicySpecFluent(V1NetworkPolicySpec instance) { public A addAllToEgress(Collection items) { if (this.egress == null) { - this.egress = new ArrayList(); + this.egress = new ArrayList<>(); } for (V1NetworkPolicyEgressRule item : items) { V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); @@ -59,7 +61,7 @@ public A addAllToEgress(Collection items) { public A addAllToIngress(Collection items) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } for (V1NetworkPolicyIngressRule item : items) { V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); @@ -71,7 +73,7 @@ public A addAllToIngress(Collection items) { public A addAllToPolicyTypes(Collection items) { if (this.policyTypes == null) { - this.policyTypes = new ArrayList(); + this.policyTypes = new ArrayList<>(); } for (String item : items) { this.policyTypes.add(item); @@ -80,24 +82,24 @@ public A addAllToPolicyTypes(Collection items) { } public EgressNested addNewEgress() { - return new EgressNested(-1, null); + return new EgressNested<>(-1, null); } public EgressNested addNewEgressLike(V1NetworkPolicyEgressRule item) { - return new EgressNested(-1, item); + return new EgressNested<>(-1, item); } public IngressNested addNewIngress() { - return new IngressNested(-1, null); + return new IngressNested<>(-1, null); } public IngressNested addNewIngressLike(V1NetworkPolicyIngressRule item) { - return new IngressNested(-1, item); + return new IngressNested<>(-1, item); } public A addToEgress(V1NetworkPolicyEgressRule... items) { if (this.egress == null) { - this.egress = new ArrayList(); + this.egress = new ArrayList<>(); } for (V1NetworkPolicyEgressRule item : items) { V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); @@ -109,7 +111,7 @@ public A addToEgress(V1NetworkPolicyEgressRule... items) { public A addToEgress(int index,V1NetworkPolicyEgressRule item) { if (this.egress == null) { - this.egress = new ArrayList(); + this.egress = new ArrayList<>(); } V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); if (index < 0 || index >= this.egress.size()) { @@ -124,7 +126,7 @@ public A addToEgress(int index,V1NetworkPolicyEgressRule item) { public A addToIngress(V1NetworkPolicyIngressRule... items) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } for (V1NetworkPolicyIngressRule item : items) { V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); @@ -136,7 +138,7 @@ public A addToIngress(V1NetworkPolicyIngressRule... items) { public A addToIngress(int index,V1NetworkPolicyIngressRule item) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); if (index < 0 || index >= this.ingress.size()) { @@ -151,7 +153,7 @@ public A addToIngress(int index,V1NetworkPolicyIngressRule item) { public A addToPolicyTypes(String... items) { if (this.policyTypes == null) { - this.policyTypes = new ArrayList(); + this.policyTypes = new ArrayList<>(); } for (String item : items) { this.policyTypes.add(item); @@ -161,7 +163,7 @@ public A addToPolicyTypes(String... items) { public A addToPolicyTypes(int index,String item) { if (this.policyTypes == null) { - this.policyTypes = new ArrayList(); + this.policyTypes = new ArrayList<>(); } this.policyTypes.add(index, item); return (A) this; @@ -325,7 +327,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NetworkPolicySpecFluent that = (V1NetworkPolicySpecFluent) o; + V1NetworkPolicySpecFluent that = (V1NetworkPolicySpecFluent) o; if (!(Objects.equals(egress, that.egress))) { return false; } @@ -486,6 +488,7 @@ public A removeMatchingFromEgress(Predicate pr return (A) this; } Iterator each = egress.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("egress"); while (each.hasNext()) { V1NetworkPolicyEgressRuleBuilder builder = each.next(); @@ -502,6 +505,7 @@ public A removeMatchingFromIngress(Predicate return (A) this; } Iterator each = ingress.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ingress"); while (each.hasNext()) { V1NetworkPolicyIngressRuleBuilder builder = each.next(); @@ -514,16 +518,16 @@ public A removeMatchingFromIngress(Predicate } public EgressNested setNewEgressLike(int index,V1NetworkPolicyEgressRule item) { - return new EgressNested(index, item); + return new EgressNested<>(index, item); } public IngressNested setNewIngressLike(int index,V1NetworkPolicyIngressRule item) { - return new IngressNested(index, item); + return new IngressNested<>(index, item); } public A setToEgress(int index,V1NetworkPolicyEgressRule item) { if (this.egress == null) { - this.egress = new ArrayList(); + this.egress = new ArrayList<>(); } V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); if (index < 0 || index >= this.egress.size()) { @@ -538,7 +542,7 @@ public A setToEgress(int index,V1NetworkPolicyEgressRule item) { public A setToIngress(int index,V1NetworkPolicyIngressRule item) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); if (index < 0 || index >= this.ingress.size()) { @@ -553,7 +557,7 @@ public A setToIngress(int index,V1NetworkPolicyIngressRule item) { public A setToPolicyTypes(int index,String item) { if (this.policyTypes == null) { - this.policyTypes = new ArrayList(); + this.policyTypes = new ArrayList<>(); } this.policyTypes.set(index, item); return (A) this; @@ -590,7 +594,7 @@ public A withEgress(List egress) { this._visitables.get("egress").clear(); } if (egress != null) { - this.egress = new ArrayList(); + this.egress = new ArrayList<>(); for (V1NetworkPolicyEgressRule item : egress) { this.addToEgress(item); } @@ -618,7 +622,7 @@ public A withIngress(List ingress) { this._visitables.get("ingress").clear(); } if (ingress != null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); for (V1NetworkPolicyIngressRule item : ingress) { this.addToIngress(item); } @@ -642,11 +646,11 @@ public A withIngress(V1NetworkPolicyIngressRule... ingress) { } public PodSelectorNested withNewPodSelector() { - return new PodSelectorNested(null); + return new PodSelectorNested<>(null); } public PodSelectorNested withNewPodSelectorLike(V1LabelSelector item) { - return new PodSelectorNested(item); + return new PodSelectorNested<>(item); } public A withPodSelector(V1LabelSelector podSelector) { @@ -655,15 +659,15 @@ public A withPodSelector(V1LabelSelector podSelector) { this.podSelector = new V1LabelSelectorBuilder(podSelector); this._visitables.get("podSelector").add(this.podSelector); } else { - this.podSelector = null; this._visitables.get("podSelector").remove(this.podSelector); + this.podSelector = null; } return (A) this; } public A withPolicyTypes(List policyTypes) { if (policyTypes != null) { - this.policyTypes = new ArrayList(); + this.policyTypes = new ArrayList<>(); for (String item : policyTypes) { this.addToPolicyTypes(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java index 07387af961..d627db84f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeAddressBuilder extends V1NodeAddressFluent implements VisitableBuilder{ V1NodeAddressFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java index bac57f59ec..a23dae0e26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeAddressFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeAddressFluent> extends BaseFluent{ private String address; private String type; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeAddressFluent that = (V1NodeAddressFluent) o; + V1NodeAddressFluent that = (V1NodeAddressFluent) o; if (!(Objects.equals(address, that.address))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java index ed36339c53..de9d28f52e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeAffinityBuilder extends V1NodeAffinityFluent implements VisitableBuilder{ V1NodeAffinityFluent fluent; 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 a5521705ed..4933e0f0df 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeAffinityFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeAffinityFluent> extends BaseFluent{ private ArrayList preferredDuringSchedulingIgnoredDuringExecution; private V1NodeSelectorBuilder requiredDuringSchedulingIgnoredDuringExecution; @@ -45,7 +47,7 @@ public V1NodeAffinityFluent(V1NodeAffinity instance) { public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } for (V1PreferredSchedulingTerm item : items) { V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); @@ -56,16 +58,16 @@ public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection addNewPreferredDuringSchedulingIgnoredDuringExecution() { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + return new PreferredDuringSchedulingIgnoredDuringExecutionNested<>(-1, null); } public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1PreferredSchedulingTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + return new PreferredDuringSchedulingIgnoredDuringExecutionNested<>(-1, item); } public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1PreferredSchedulingTerm... items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } for (V1PreferredSchedulingTerm item : items) { V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); @@ -77,7 +79,7 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1PreferredSchedul public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1PreferredSchedulingTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); if (index < 0 || index >= this.preferredDuringSchedulingIgnoredDuringExecution.size()) { @@ -185,7 +187,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeAffinityFluent that = (V1NodeAffinityFluent) o; + V1NodeAffinityFluent that = (V1NodeAffinityFluent) o; if (!(Objects.equals(preferredDuringSchedulingIgnoredDuringExecution, that.preferredDuringSchedulingIgnoredDuringExecution))) { return false; } @@ -245,6 +247,7 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predi return (A) this; } Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1PreferredSchedulingTermBuilder builder = each.next(); @@ -257,12 +260,12 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predi } public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PreferredSchedulingTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); + return new PreferredDuringSchedulingIgnoredDuringExecutionNested<>(index, item); } public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1PreferredSchedulingTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); if (index < 0 || index >= this.preferredDuringSchedulingIgnoredDuringExecution.size()) { @@ -292,11 +295,11 @@ public String toString() { } public RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecution() { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(null); + return new RequiredDuringSchedulingIgnoredDuringExecutionNested<>(null); } public RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(item); + return new RequiredDuringSchedulingIgnoredDuringExecutionNested<>(item); } public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { @@ -304,7 +307,7 @@ public A withPreferredDuringSchedulingIgnoredDuringExecution(List(); for (V1PreferredSchedulingTerm item : preferredDuringSchedulingIgnoredDuringExecution) { this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } @@ -333,8 +336,8 @@ public A withRequiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector requi this.requiredDuringSchedulingIgnoredDuringExecution = new V1NodeSelectorBuilder(requiredDuringSchedulingIgnoredDuringExecution); this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(this.requiredDuringSchedulingIgnoredDuringExecution); } else { - this.requiredDuringSchedulingIgnoredDuringExecution = null; this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(this.requiredDuringSchedulingIgnoredDuringExecution); + this.requiredDuringSchedulingIgnoredDuringExecution = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappedResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappedResourcesBuilder.java new file mode 100644 index 0000000000..c3630b324f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappedResourcesBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1NodeAllocatableMappedResourcesBuilder extends V1NodeAllocatableMappedResourcesFluent implements VisitableBuilder{ + + V1NodeAllocatableMappedResourcesFluent fluent; + + public V1NodeAllocatableMappedResourcesBuilder() { + this(new V1NodeAllocatableMappedResources()); + } + + public V1NodeAllocatableMappedResourcesBuilder(V1NodeAllocatableMappedResourcesFluent fluent) { + this(fluent, new V1NodeAllocatableMappedResources()); + } + + public V1NodeAllocatableMappedResourcesBuilder(V1NodeAllocatableMappedResources instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1NodeAllocatableMappedResourcesBuilder(V1NodeAllocatableMappedResourcesFluent fluent,V1NodeAllocatableMappedResources instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NodeAllocatableMappedResources build() { + V1NodeAllocatableMappedResources buildable = new V1NodeAllocatableMappedResources(); + buildable.setName(fluent.getName()); + buildable.setQuantity(fluent.getQuantity()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappedResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappedResourcesFluent.java new file mode 100644 index 0000000000..06d846880f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappedResourcesFluent.java @@ -0,0 +1,119 @@ +/* +Copyright 2026 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 io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeAllocatableMappedResourcesFluent> extends BaseFluent{ + + private String name; + private Quantity quantity; + + public V1NodeAllocatableMappedResourcesFluent() { + } + + public V1NodeAllocatableMappedResourcesFluent(V1NodeAllocatableMappedResources instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1NodeAllocatableMappedResources instance) { + instance = instance != null ? instance : new V1NodeAllocatableMappedResources(); + if (instance != null) { + this.withName(instance.getName()); + this.withQuantity(instance.getQuantity()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeAllocatableMappedResourcesFluent that = (V1NodeAllocatableMappedResourcesFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(quantity, that.quantity))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public Quantity getQuantity() { + return this.quantity; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasQuantity() { + return this.quantity != null; + } + + public int hashCode() { + return Objects.hash(name, quantity); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(quantity == null)) { + sb.append("quantity:"); + sb.append(quantity); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNewQuantity(String value) { + return (A) this.withQuantity(new Quantity(value)); + } + + public A withQuantity(Quantity quantity) { + this.quantity = quantity; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappingBuilder.java new file mode 100644 index 0000000000..998c590d87 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappingBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1NodeAllocatableMappingBuilder extends V1NodeAllocatableMappingFluent implements VisitableBuilder{ + + V1NodeAllocatableMappingFluent fluent; + + public V1NodeAllocatableMappingBuilder() { + this(new V1NodeAllocatableMapping()); + } + + public V1NodeAllocatableMappingBuilder(V1NodeAllocatableMappingFluent fluent) { + this(fluent, new V1NodeAllocatableMapping()); + } + + public V1NodeAllocatableMappingBuilder(V1NodeAllocatableMapping instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1NodeAllocatableMappingBuilder(V1NodeAllocatableMappingFluent fluent,V1NodeAllocatableMapping instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NodeAllocatableMapping build() { + V1NodeAllocatableMapping buildable = new V1NodeAllocatableMapping(); + buildable.setCapacityKey(fluent.getCapacityKey()); + buildable.setCapacityMultiplier(fluent.getCapacityMultiplier()); + buildable.setDeviceMultiplier(fluent.getDeviceMultiplier()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMappingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappingFluent.java similarity index 50% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMappingFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappingFluent.java index 2dfd254fc6..4022183835 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMappingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappingFluent.java @@ -19,28 +19,32 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeAllocatableResourceMappingFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeAllocatableMappingFluent> extends BaseFluent{ - private Quantity allocationMultiplier; private String capacityKey; + private Quantity capacityMultiplier; + private Quantity deviceMultiplier; - public V1NodeAllocatableResourceMappingFluent() { + public V1NodeAllocatableMappingFluent() { } - public V1NodeAllocatableResourceMappingFluent(V1NodeAllocatableResourceMapping instance) { + public V1NodeAllocatableMappingFluent(V1NodeAllocatableMapping instance) { this.copyInstance(instance); } - protected void copyInstance(V1NodeAllocatableResourceMapping instance) { - instance = instance != null ? instance : new V1NodeAllocatableResourceMapping(); + protected void copyInstance(V1NodeAllocatableMapping instance) { + instance = instance != null ? instance : new V1NodeAllocatableMapping(); if (instance != null) { - this.withAllocationMultiplier(instance.getAllocationMultiplier()); this.withCapacityKey(instance.getCapacityKey()); + this.withCapacityMultiplier(instance.getCapacityMultiplier()); + this.withDeviceMultiplier(instance.getDeviceMultiplier()); } } @@ -54,64 +58,89 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeAllocatableResourceMappingFluent that = (V1NodeAllocatableResourceMappingFluent) o; - if (!(Objects.equals(allocationMultiplier, that.allocationMultiplier))) { + V1NodeAllocatableMappingFluent that = (V1NodeAllocatableMappingFluent) o; + if (!(Objects.equals(capacityKey, that.capacityKey))) { return false; } - if (!(Objects.equals(capacityKey, that.capacityKey))) { + if (!(Objects.equals(capacityMultiplier, that.capacityMultiplier))) { + return false; + } + if (!(Objects.equals(deviceMultiplier, that.deviceMultiplier))) { return false; } return true; } - public Quantity getAllocationMultiplier() { - return this.allocationMultiplier; - } - public String getCapacityKey() { return this.capacityKey; } - public boolean hasAllocationMultiplier() { - return this.allocationMultiplier != null; + public Quantity getCapacityMultiplier() { + return this.capacityMultiplier; + } + + public Quantity getDeviceMultiplier() { + return this.deviceMultiplier; } public boolean hasCapacityKey() { return this.capacityKey != null; } + public boolean hasCapacityMultiplier() { + return this.capacityMultiplier != null; + } + + public boolean hasDeviceMultiplier() { + return this.deviceMultiplier != null; + } + public int hashCode() { - return Objects.hash(allocationMultiplier, capacityKey); + return Objects.hash(capacityKey, capacityMultiplier, deviceMultiplier); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (!(allocationMultiplier == null)) { - sb.append("allocationMultiplier:"); - sb.append(allocationMultiplier); - sb.append(","); - } if (!(capacityKey == null)) { sb.append("capacityKey:"); sb.append(capacityKey); + sb.append(","); + } + if (!(capacityMultiplier == null)) { + sb.append("capacityMultiplier:"); + sb.append(capacityMultiplier); + sb.append(","); + } + if (!(deviceMultiplier == null)) { + sb.append("deviceMultiplier:"); + sb.append(deviceMultiplier); } sb.append("}"); return sb.toString(); } - public A withAllocationMultiplier(Quantity allocationMultiplier) { - this.allocationMultiplier = allocationMultiplier; + public A withCapacityKey(String capacityKey) { + this.capacityKey = capacityKey; return (A) this; } - public A withCapacityKey(String capacityKey) { - this.capacityKey = capacityKey; + public A withCapacityMultiplier(Quantity capacityMultiplier) { + this.capacityMultiplier = capacityMultiplier; + return (A) this; + } + + public A withDeviceMultiplier(Quantity deviceMultiplier) { + this.deviceMultiplier = deviceMultiplier; return (A) this; } - public A withNewAllocationMultiplier(String value) { - return (A) this.withAllocationMultiplier(new Quantity(value)); + public A withNewCapacityMultiplier(String value) { + return (A) this.withCapacityMultiplier(new Quantity(value)); + } + + public A withNewDeviceMultiplier(String value) { + return (A) this.withDeviceMultiplier(new Quantity(value)); } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadBuilder.java new file mode 100644 index 0000000000..c283d91ae0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1NodeAllocatableOverheadBuilder extends V1NodeAllocatableOverheadFluent implements VisitableBuilder{ + + V1NodeAllocatableOverheadFluent fluent; + + public V1NodeAllocatableOverheadBuilder() { + this(new V1NodeAllocatableOverhead()); + } + + public V1NodeAllocatableOverheadBuilder(V1NodeAllocatableOverheadFluent fluent) { + this(fluent, new V1NodeAllocatableOverhead()); + } + + public V1NodeAllocatableOverheadBuilder(V1NodeAllocatableOverhead instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1NodeAllocatableOverheadBuilder(V1NodeAllocatableOverheadFluent fluent,V1NodeAllocatableOverhead instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NodeAllocatableOverhead build() { + V1NodeAllocatableOverhead buildable = new V1NodeAllocatableOverhead(); + buildable.setPerContainer(fluent.getPerContainer()); + buildable.setPerPod(fluent.getPerPod()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadFluent.java new file mode 100644 index 0000000000..5ed07304ef --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadFluent.java @@ -0,0 +1,123 @@ +/* +Copyright 2026 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 io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeAllocatableOverheadFluent> extends BaseFluent{ + + private Quantity perContainer; + private Quantity perPod; + + public V1NodeAllocatableOverheadFluent() { + } + + public V1NodeAllocatableOverheadFluent(V1NodeAllocatableOverhead instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1NodeAllocatableOverhead instance) { + instance = instance != null ? instance : new V1NodeAllocatableOverhead(); + if (instance != null) { + this.withPerContainer(instance.getPerContainer()); + this.withPerPod(instance.getPerPod()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeAllocatableOverheadFluent that = (V1NodeAllocatableOverheadFluent) o; + if (!(Objects.equals(perContainer, that.perContainer))) { + return false; + } + if (!(Objects.equals(perPod, that.perPod))) { + return false; + } + return true; + } + + public Quantity getPerContainer() { + return this.perContainer; + } + + public Quantity getPerPod() { + return this.perPod; + } + + public boolean hasPerContainer() { + return this.perContainer != null; + } + + public boolean hasPerPod() { + return this.perPod != null; + } + + public int hashCode() { + return Objects.hash(perContainer, perPod); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(perContainer == null)) { + sb.append("perContainer:"); + sb.append(perContainer); + sb.append(","); + } + if (!(perPod == null)) { + sb.append("perPod:"); + sb.append(perPod); + } + sb.append("}"); + return sb.toString(); + } + + public A withNewPerContainer(String value) { + return (A) this.withPerContainer(new Quantity(value)); + } + + public A withNewPerPod(String value) { + return (A) this.withPerPod(new Quantity(value)); + } + + public A withPerContainer(Quantity perContainer) { + this.perContainer = perContainer; + return (A) this; + } + + public A withPerPod(Quantity perPod) { + this.perPod = perPod; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadResourcesBuilder.java new file mode 100644 index 0000000000..c07ae4fe18 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadResourcesBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1NodeAllocatableOverheadResourcesBuilder extends V1NodeAllocatableOverheadResourcesFluent implements VisitableBuilder{ + + V1NodeAllocatableOverheadResourcesFluent fluent; + + public V1NodeAllocatableOverheadResourcesBuilder() { + this(new V1NodeAllocatableOverheadResources()); + } + + public V1NodeAllocatableOverheadResourcesBuilder(V1NodeAllocatableOverheadResourcesFluent fluent) { + this(fluent, new V1NodeAllocatableOverheadResources()); + } + + public V1NodeAllocatableOverheadResourcesBuilder(V1NodeAllocatableOverheadResources instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1NodeAllocatableOverheadResourcesBuilder(V1NodeAllocatableOverheadResourcesFluent fluent,V1NodeAllocatableOverheadResources instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NodeAllocatableOverheadResources build() { + V1NodeAllocatableOverheadResources buildable = new V1NodeAllocatableOverheadResources(); + buildable.setName(fluent.getName()); + buildable.setPerContainer(fluent.getPerContainer()); + buildable.setPerPod(fluent.getPerPod()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadResourcesFluent.java similarity index 51% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadResourcesFluent.java index d48bc7baef..f0433ba13a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadResourcesFluent.java @@ -12,38 +12,39 @@ */ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ParentReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeAllocatableOverheadResourcesFluent> extends BaseFluent{ - private String group; private String name; - private String namespace; - private String resource; + private Quantity perContainer; + private Quantity perPod; - public V1beta1ParentReferenceFluent() { + public V1NodeAllocatableOverheadResourcesFluent() { } - public V1beta1ParentReferenceFluent(V1beta1ParentReference instance) { + public V1NodeAllocatableOverheadResourcesFluent(V1NodeAllocatableOverheadResources instance) { this.copyInstance(instance); } - protected void copyInstance(V1beta1ParentReference instance) { - instance = instance != null ? instance : new V1beta1ParentReference(); + protected void copyInstance(V1NodeAllocatableOverheadResources instance) { + instance = instance != null ? instance : new V1NodeAllocatableOverheadResources(); if (instance != null) { - this.withGroup(instance.getGroup()); this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withResource(instance.getResource()); + this.withPerContainer(instance.getPerContainer()); + this.withPerPod(instance.getPerPod()); } } @@ -57,101 +58,88 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ParentReferenceFluent that = (V1beta1ParentReferenceFluent) o; - if (!(Objects.equals(group, that.group))) { - return false; - } + V1NodeAllocatableOverheadResourcesFluent that = (V1NodeAllocatableOverheadResourcesFluent) o; if (!(Objects.equals(name, that.name))) { return false; } - if (!(Objects.equals(namespace, that.namespace))) { + if (!(Objects.equals(perContainer, that.perContainer))) { return false; } - if (!(Objects.equals(resource, that.resource))) { + if (!(Objects.equals(perPod, that.perPod))) { return false; } return true; } - public String getGroup() { - return this.group; - } - public String getName() { return this.name; } - public String getNamespace() { - return this.namespace; + public Quantity getPerContainer() { + return this.perContainer; } - public String getResource() { - return this.resource; - } - - public boolean hasGroup() { - return this.group != null; + public Quantity getPerPod() { + return this.perPod; } public boolean hasName() { return this.name != null; } - public boolean hasNamespace() { - return this.namespace != null; + public boolean hasPerContainer() { + return this.perContainer != null; } - public boolean hasResource() { - return this.resource != null; + public boolean hasPerPod() { + return this.perPod != null; } public int hashCode() { - return Objects.hash(group, name, namespace, resource); + return Objects.hash(name, perContainer, perPod); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (!(group == null)) { - sb.append("group:"); - sb.append(group); - sb.append(","); - } if (!(name == null)) { sb.append("name:"); sb.append(name); sb.append(","); } - if (!(namespace == null)) { - sb.append("namespace:"); - sb.append(namespace); + if (!(perContainer == null)) { + sb.append("perContainer:"); + sb.append(perContainer); sb.append(","); } - if (!(resource == null)) { - sb.append("resource:"); - sb.append(resource); + if (!(perPod == null)) { + sb.append("perPod:"); + sb.append(perPod); } sb.append("}"); return sb.toString(); } - public A withGroup(String group) { - this.group = group; - return (A) this; - } - public A withName(String name) { this.name = name; return (A) this; } - public A withNamespace(String namespace) { - this.namespace = namespace; + public A withNewPerContainer(String value) { + return (A) this.withPerContainer(new Quantity(value)); + } + + public A withNewPerPod(String value) { + return (A) this.withPerPod(new Quantity(value)); + } + + public A withPerContainer(Quantity perContainer) { + this.perContainer = perContainer; return (A) this; } - public A withResource(String resource) { - this.resource = resource; + public A withPerPod(Quantity perPod) { + this.perPod = perPod; return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceBuilder.java new file mode 100644 index 0000000000..850af18120 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1NodeAllocatableResourceBuilder extends V1NodeAllocatableResourceFluent implements VisitableBuilder{ + + V1NodeAllocatableResourceFluent fluent; + + public V1NodeAllocatableResourceBuilder() { + this(new V1NodeAllocatableResource()); + } + + public V1NodeAllocatableResourceBuilder(V1NodeAllocatableResourceFluent fluent) { + this(fluent, new V1NodeAllocatableResource()); + } + + public V1NodeAllocatableResourceBuilder(V1NodeAllocatableResource instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1NodeAllocatableResourceBuilder(V1NodeAllocatableResourceFluent fluent,V1NodeAllocatableResource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NodeAllocatableResource build() { + V1NodeAllocatableResource buildable = new V1NodeAllocatableResource(); + buildable.setMapping(fluent.buildMapping()); + buildable.setOverhead(fluent.buildOverhead()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusBuilder.java index 6a9c0498e7..584c0a3492 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeAllocatableResourceClaimStatusBuilder extends V1NodeAllocatableResourceClaimStatusFluent implements VisitableBuilder{ V1NodeAllocatableResourceClaimStatusFluent fluent; @@ -39,8 +40,9 @@ public V1NodeAllocatableResourceClaimStatusBuilder(V1NodeAllocatableResourceClai public V1NodeAllocatableResourceClaimStatus build() { V1NodeAllocatableResourceClaimStatus buildable = new V1NodeAllocatableResourceClaimStatus(); buildable.setContainers(fluent.getContainers()); + buildable.setMapping(fluent.buildMapping()); + buildable.setOverhead(fluent.buildOverhead()); buildable.setResourceClaimName(fluent.getResourceClaimName()); - buildable.setResources(fluent.getResources()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusFluent.java index 92fa6e7f06..8d9420bf55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusFluent.java @@ -12,29 +12,32 @@ */ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.util.LinkedHashMap; +import java.util.Iterator; import java.util.List; -import java.util.Map; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeAllocatableResourceClaimStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeAllocatableResourceClaimStatusFluent> extends BaseFluent{ private List containers; + private ArrayList mapping; + private ArrayList overhead; private String resourceClaimName; - private Map resources; public V1NodeAllocatableResourceClaimStatusFluent() { } @@ -45,7 +48,7 @@ public V1NodeAllocatableResourceClaimStatusFluent(V1NodeAllocatableResourceClaim public A addAllToContainers(Collection items) { if (this.containers == null) { - this.containers = new ArrayList(); + this.containers = new ArrayList<>(); } for (String item : items) { this.containers.add(item); @@ -53,9 +56,49 @@ public A addAllToContainers(Collection items) { return (A) this; } + public A addAllToMapping(Collection items) { + if (this.mapping == null) { + this.mapping = new ArrayList<>(); + } + for (V1NodeAllocatableMappedResources item : items) { + V1NodeAllocatableMappedResourcesBuilder builder = new V1NodeAllocatableMappedResourcesBuilder(item); + this._visitables.get("mapping").add(builder); + this.mapping.add(builder); + } + return (A) this; + } + + public A addAllToOverhead(Collection items) { + if (this.overhead == null) { + this.overhead = new ArrayList<>(); + } + for (V1NodeAllocatableOverheadResources item : items) { + V1NodeAllocatableOverheadResourcesBuilder builder = new V1NodeAllocatableOverheadResourcesBuilder(item); + this._visitables.get("overhead").add(builder); + this.overhead.add(builder); + } + return (A) this; + } + + public MappingNested addNewMapping() { + return new MappingNested<>(-1, null); + } + + public MappingNested addNewMappingLike(V1NodeAllocatableMappedResources item) { + return new MappingNested<>(-1, item); + } + + public OverheadNested addNewOverhead() { + return new OverheadNested<>(-1, null); + } + + public OverheadNested addNewOverheadLike(V1NodeAllocatableOverheadResources item) { + return new OverheadNested<>(-1, item); + } + public A addToContainers(String... items) { if (this.containers == null) { - this.containers = new ArrayList(); + this.containers = new ArrayList<>(); } for (String item : items) { this.containers.add(item); @@ -65,41 +108,198 @@ public A addToContainers(String... items) { public A addToContainers(int index,String item) { if (this.containers == null) { - this.containers = new ArrayList(); + this.containers = new ArrayList<>(); } this.containers.add(index, item); return (A) this; } - public A addToResources(Map map) { - if (this.resources == null && map != null) { - this.resources = new LinkedHashMap(); + public A addToMapping(V1NodeAllocatableMappedResources... items) { + if (this.mapping == null) { + this.mapping = new ArrayList<>(); } - if (map != null) { - this.resources.putAll(map); + for (V1NodeAllocatableMappedResources item : items) { + V1NodeAllocatableMappedResourcesBuilder builder = new V1NodeAllocatableMappedResourcesBuilder(item); + this._visitables.get("mapping").add(builder); + this.mapping.add(builder); } return (A) this; } - public A addToResources(String key,Quantity value) { - if (this.resources == null && key != null && value != null) { - this.resources = new LinkedHashMap(); + public A addToMapping(int index,V1NodeAllocatableMappedResources item) { + if (this.mapping == null) { + this.mapping = new ArrayList<>(); + } + V1NodeAllocatableMappedResourcesBuilder builder = new V1NodeAllocatableMappedResourcesBuilder(item); + if (index < 0 || index >= this.mapping.size()) { + this._visitables.get("mapping").add(builder); + this.mapping.add(builder); + } else { + this._visitables.get("mapping").add(builder); + this.mapping.add(index, builder); + } + return (A) this; + } + + public A addToOverhead(V1NodeAllocatableOverheadResources... items) { + if (this.overhead == null) { + this.overhead = new ArrayList<>(); + } + for (V1NodeAllocatableOverheadResources item : items) { + V1NodeAllocatableOverheadResourcesBuilder builder = new V1NodeAllocatableOverheadResourcesBuilder(item); + this._visitables.get("overhead").add(builder); + this.overhead.add(builder); } - if (key != null && value != null) { - this.resources.put(key, value); + return (A) this; + } + + public A addToOverhead(int index,V1NodeAllocatableOverheadResources item) { + if (this.overhead == null) { + this.overhead = new ArrayList<>(); + } + V1NodeAllocatableOverheadResourcesBuilder builder = new V1NodeAllocatableOverheadResourcesBuilder(item); + if (index < 0 || index >= this.overhead.size()) { + this._visitables.get("overhead").add(builder); + this.overhead.add(builder); + } else { + this._visitables.get("overhead").add(builder); + this.overhead.add(index, builder); } return (A) this; } + public V1NodeAllocatableMappedResources buildFirstMapping() { + return this.mapping.get(0).build(); + } + + public V1NodeAllocatableOverheadResources buildFirstOverhead() { + return this.overhead.get(0).build(); + } + + public V1NodeAllocatableMappedResources buildLastMapping() { + return this.mapping.get(mapping.size() - 1).build(); + } + + public V1NodeAllocatableOverheadResources buildLastOverhead() { + return this.overhead.get(overhead.size() - 1).build(); + } + + public List buildMapping() { + return this.mapping != null ? build(mapping) : null; + } + + public V1NodeAllocatableMappedResources buildMapping(int index) { + return this.mapping.get(index).build(); + } + + public V1NodeAllocatableMappedResources buildMatchingMapping(Predicate predicate) { + for (V1NodeAllocatableMappedResourcesBuilder item : mapping) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1NodeAllocatableOverheadResources buildMatchingOverhead(Predicate predicate) { + for (V1NodeAllocatableOverheadResourcesBuilder item : overhead) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public List buildOverhead() { + return this.overhead != null ? build(overhead) : null; + } + + public V1NodeAllocatableOverheadResources buildOverhead(int index) { + return this.overhead.get(index).build(); + } + protected void copyInstance(V1NodeAllocatableResourceClaimStatus instance) { instance = instance != null ? instance : new V1NodeAllocatableResourceClaimStatus(); if (instance != null) { this.withContainers(instance.getContainers()); + this.withMapping(instance.getMapping()); + this.withOverhead(instance.getOverhead()); this.withResourceClaimName(instance.getResourceClaimName()); - this.withResources(instance.getResources()); } } + public MappingNested editFirstMapping() { + if (mapping.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "mapping")); + } + return this.setNewMappingLike(0, this.buildMapping(0)); + } + + public OverheadNested editFirstOverhead() { + if (overhead.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "overhead")); + } + return this.setNewOverheadLike(0, this.buildOverhead(0)); + } + + public MappingNested editLastMapping() { + int index = mapping.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "mapping")); + } + return this.setNewMappingLike(index, this.buildMapping(index)); + } + + public OverheadNested editLastOverhead() { + int index = overhead.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "overhead")); + } + return this.setNewOverheadLike(index, this.buildOverhead(index)); + } + + public MappingNested editMapping(int index) { + if (mapping.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "mapping")); + } + return this.setNewMappingLike(index, this.buildMapping(index)); + } + + public MappingNested editMatchingMapping(Predicate predicate) { + int index = -1; + for (int i = 0;i < mapping.size();i++) { + if (predicate.test(mapping.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "mapping")); + } + return this.setNewMappingLike(index, this.buildMapping(index)); + } + + public OverheadNested editMatchingOverhead(Predicate predicate) { + int index = -1; + for (int i = 0;i < overhead.size();i++) { + if (predicate.test(overhead.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "overhead")); + } + return this.setNewOverheadLike(index, this.buildOverhead(index)); + } + + public OverheadNested editOverhead(int index) { + if (overhead.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "overhead")); + } + return this.setNewOverheadLike(index, this.buildOverhead(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -110,14 +310,17 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeAllocatableResourceClaimStatusFluent that = (V1NodeAllocatableResourceClaimStatusFluent) o; + V1NodeAllocatableResourceClaimStatusFluent that = (V1NodeAllocatableResourceClaimStatusFluent) o; if (!(Objects.equals(containers, that.containers))) { return false; } - if (!(Objects.equals(resourceClaimName, that.resourceClaimName))) { + if (!(Objects.equals(mapping, that.mapping))) { + return false; + } + if (!(Objects.equals(overhead, that.overhead))) { return false; } - if (!(Objects.equals(resources, that.resources))) { + if (!(Objects.equals(resourceClaimName, that.resourceClaimName))) { return false; } return true; @@ -152,14 +355,14 @@ public String getResourceClaimName() { return this.resourceClaimName; } - public Map getResources() { - return this.resources; - } - public boolean hasContainers() { return this.containers != null && !(this.containers.isEmpty()); } + public boolean hasMapping() { + return this.mapping != null && !(this.mapping.isEmpty()); + } + public boolean hasMatchingContainer(Predicate predicate) { for (String item : containers) { if (predicate.test(item)) { @@ -169,16 +372,34 @@ public boolean hasMatchingContainer(Predicate predicate) { return false; } - public boolean hasResourceClaimName() { - return this.resourceClaimName != null; + public boolean hasMatchingMapping(Predicate predicate) { + for (V1NodeAllocatableMappedResourcesBuilder item : mapping) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingOverhead(Predicate predicate) { + for (V1NodeAllocatableOverheadResourcesBuilder item : overhead) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOverhead() { + return this.overhead != null && !(this.overhead.isEmpty()); } - public boolean hasResources() { - return this.resources != null; + public boolean hasResourceClaimName() { + return this.resourceClaimName != null; } public int hashCode() { - return Objects.hash(containers, resourceClaimName, resources); + return Objects.hash(containers, mapping, overhead, resourceClaimName); } public A removeAllFromContainers(Collection items) { @@ -191,6 +412,30 @@ public A removeAllFromContainers(Collection items) { return (A) this; } + public A removeAllFromMapping(Collection items) { + if (this.mapping == null) { + return (A) this; + } + for (V1NodeAllocatableMappedResources item : items) { + V1NodeAllocatableMappedResourcesBuilder builder = new V1NodeAllocatableMappedResourcesBuilder(item); + _visitables.get("mapping").remove(builder); + this.mapping.remove(builder); + } + return (A) this; + } + + public A removeAllFromOverhead(Collection items) { + if (this.overhead == null) { + return (A) this; + } + for (V1NodeAllocatableOverheadResources item : items) { + V1NodeAllocatableOverheadResourcesBuilder builder = new V1NodeAllocatableOverheadResourcesBuilder(item); + _visitables.get("overhead").remove(builder); + this.overhead.remove(builder); + } + return (A) this; + } + public A removeFromContainers(String... items) { if (this.containers == null) { return (A) this; @@ -201,38 +446,110 @@ public A removeFromContainers(String... items) { return (A) this; } - public A removeFromResources(String key) { - if (this.resources == null) { + public A removeFromMapping(V1NodeAllocatableMappedResources... items) { + if (this.mapping == null) { + return (A) this; + } + for (V1NodeAllocatableMappedResources item : items) { + V1NodeAllocatableMappedResourcesBuilder builder = new V1NodeAllocatableMappedResourcesBuilder(item); + _visitables.get("mapping").remove(builder); + this.mapping.remove(builder); + } + return (A) this; + } + + public A removeFromOverhead(V1NodeAllocatableOverheadResources... items) { + if (this.overhead == null) { return (A) this; } - if (key != null && this.resources != null) { - this.resources.remove(key); + for (V1NodeAllocatableOverheadResources item : items) { + V1NodeAllocatableOverheadResourcesBuilder builder = new V1NodeAllocatableOverheadResourcesBuilder(item); + _visitables.get("overhead").remove(builder); + this.overhead.remove(builder); } return (A) this; } - public A removeFromResources(Map map) { - if (this.resources == null) { + public A removeMatchingFromMapping(Predicate predicate) { + if (mapping == null) { return (A) this; } - if (map != null) { - for (Object key : map.keySet()) { - if (this.resources != null) { - this.resources.remove(key); + Iterator each = mapping.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("mapping"); + while (each.hasNext()) { + V1NodeAllocatableMappedResourcesBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } } return (A) this; } + public A removeMatchingFromOverhead(Predicate predicate) { + if (overhead == null) { + return (A) this; + } + Iterator each = overhead.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("overhead"); + while (each.hasNext()) { + V1NodeAllocatableOverheadResourcesBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public MappingNested setNewMappingLike(int index,V1NodeAllocatableMappedResources item) { + return new MappingNested<>(index, item); + } + + public OverheadNested setNewOverheadLike(int index,V1NodeAllocatableOverheadResources item) { + return new OverheadNested<>(index, item); + } + public A setToContainers(int index,String item) { if (this.containers == null) { - this.containers = new ArrayList(); + this.containers = new ArrayList<>(); } this.containers.set(index, item); return (A) this; } + public A setToMapping(int index,V1NodeAllocatableMappedResources item) { + if (this.mapping == null) { + this.mapping = new ArrayList<>(); + } + V1NodeAllocatableMappedResourcesBuilder builder = new V1NodeAllocatableMappedResourcesBuilder(item); + if (index < 0 || index >= this.mapping.size()) { + this._visitables.get("mapping").add(builder); + this.mapping.add(builder); + } else { + this._visitables.get("mapping").add(builder); + this.mapping.set(index, builder); + } + return (A) this; + } + + public A setToOverhead(int index,V1NodeAllocatableOverheadResources item) { + if (this.overhead == null) { + this.overhead = new ArrayList<>(); + } + V1NodeAllocatableOverheadResourcesBuilder builder = new V1NodeAllocatableOverheadResourcesBuilder(item); + if (index < 0 || index >= this.overhead.size()) { + this._visitables.get("overhead").add(builder); + this.overhead.add(builder); + } else { + this._visitables.get("overhead").add(builder); + this.overhead.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -241,14 +558,19 @@ public String toString() { sb.append(containers); sb.append(","); } + if (!(mapping == null) && !(mapping.isEmpty())) { + sb.append("mapping:"); + sb.append(mapping); + sb.append(","); + } + if (!(overhead == null) && !(overhead.isEmpty())) { + sb.append("overhead:"); + sb.append(overhead); + sb.append(","); + } if (!(resourceClaimName == null)) { sb.append("resourceClaimName:"); sb.append(resourceClaimName); - sb.append(","); - } - if (!(resources == null) && !(resources.isEmpty())) { - sb.append("resources:"); - sb.append(resources); } sb.append("}"); return sb.toString(); @@ -256,7 +578,7 @@ public String toString() { public A withContainers(List containers) { if (containers != null) { - this.containers = new ArrayList(); + this.containers = new ArrayList<>(); for (String item : containers) { this.addToContainers(item); } @@ -279,18 +601,102 @@ public A withContainers(String... containers) { return (A) this; } - public A withResourceClaimName(String resourceClaimName) { - this.resourceClaimName = resourceClaimName; + public A withMapping(List mapping) { + if (this.mapping != null) { + this._visitables.get("mapping").clear(); + } + if (mapping != null) { + this.mapping = new ArrayList<>(); + for (V1NodeAllocatableMappedResources item : mapping) { + this.addToMapping(item); + } + } else { + this.mapping = null; + } return (A) this; } - public A withResources(Map resources) { - if (resources == null) { - this.resources = null; + public A withMapping(V1NodeAllocatableMappedResources... mapping) { + if (this.mapping != null) { + this.mapping.clear(); + _visitables.remove("mapping"); + } + if (mapping != null) { + for (V1NodeAllocatableMappedResources item : mapping) { + this.addToMapping(item); + } + } + return (A) this; + } + + public A withOverhead(List overhead) { + if (this.overhead != null) { + this._visitables.get("overhead").clear(); + } + if (overhead != null) { + this.overhead = new ArrayList<>(); + for (V1NodeAllocatableOverheadResources item : overhead) { + this.addToOverhead(item); + } } else { - this.resources = new LinkedHashMap(resources); + this.overhead = null; } return (A) this; } + public A withOverhead(V1NodeAllocatableOverheadResources... overhead) { + if (this.overhead != null) { + this.overhead.clear(); + _visitables.remove("overhead"); + } + if (overhead != null) { + for (V1NodeAllocatableOverheadResources item : overhead) { + this.addToOverhead(item); + } + } + return (A) this; + } + + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return (A) this; + } + public class MappingNested extends V1NodeAllocatableMappedResourcesFluent> implements Nested{ + + V1NodeAllocatableMappedResourcesBuilder builder; + int index; + + MappingNested(int index,V1NodeAllocatableMappedResources item) { + this.index = index; + this.builder = new V1NodeAllocatableMappedResourcesBuilder(this, item); + } + + public N and() { + return (N) V1NodeAllocatableResourceClaimStatusFluent.this.setToMapping(index, builder.build()); + } + + public N endMapping() { + return and(); + } + + } + public class OverheadNested extends V1NodeAllocatableOverheadResourcesFluent> implements Nested{ + + V1NodeAllocatableOverheadResourcesBuilder builder; + int index; + + OverheadNested(int index,V1NodeAllocatableOverheadResources item) { + this.index = index; + this.builder = new V1NodeAllocatableOverheadResourcesBuilder(this, item); + } + + public N and() { + return (N) V1NodeAllocatableResourceClaimStatusFluent.this.setToOverhead(index, builder.build()); + } + + public N endOverhead() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceFluent.java new file mode 100644 index 0000000000..2ce9be698c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceFluent.java @@ -0,0 +1,203 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeAllocatableResourceFluent> extends BaseFluent{ + + private V1NodeAllocatableMappingBuilder mapping; + private V1NodeAllocatableOverheadBuilder overhead; + + public V1NodeAllocatableResourceFluent() { + } + + public V1NodeAllocatableResourceFluent(V1NodeAllocatableResource instance) { + this.copyInstance(instance); + } + + public V1NodeAllocatableMapping buildMapping() { + return this.mapping != null ? this.mapping.build() : null; + } + + public V1NodeAllocatableOverhead buildOverhead() { + return this.overhead != null ? this.overhead.build() : null; + } + + protected void copyInstance(V1NodeAllocatableResource instance) { + instance = instance != null ? instance : new V1NodeAllocatableResource(); + if (instance != null) { + this.withMapping(instance.getMapping()); + this.withOverhead(instance.getOverhead()); + } + } + + public MappingNested editMapping() { + return this.withNewMappingLike(Optional.ofNullable(this.buildMapping()).orElse(null)); + } + + public MappingNested editOrNewMapping() { + return this.withNewMappingLike(Optional.ofNullable(this.buildMapping()).orElse(new V1NodeAllocatableMappingBuilder().build())); + } + + public MappingNested editOrNewMappingLike(V1NodeAllocatableMapping item) { + return this.withNewMappingLike(Optional.ofNullable(this.buildMapping()).orElse(item)); + } + + public OverheadNested editOrNewOverhead() { + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(new V1NodeAllocatableOverheadBuilder().build())); + } + + public OverheadNested editOrNewOverheadLike(V1NodeAllocatableOverhead item) { + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(item)); + } + + public OverheadNested editOverhead() { + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeAllocatableResourceFluent that = (V1NodeAllocatableResourceFluent) o; + if (!(Objects.equals(mapping, that.mapping))) { + return false; + } + if (!(Objects.equals(overhead, that.overhead))) { + return false; + } + return true; + } + + public boolean hasMapping() { + return this.mapping != null; + } + + public boolean hasOverhead() { + return this.overhead != null; + } + + public int hashCode() { + return Objects.hash(mapping, overhead); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(mapping == null)) { + sb.append("mapping:"); + sb.append(mapping); + sb.append(","); + } + if (!(overhead == null)) { + sb.append("overhead:"); + sb.append(overhead); + } + sb.append("}"); + return sb.toString(); + } + + public A withMapping(V1NodeAllocatableMapping mapping) { + this._visitables.remove("mapping"); + if (mapping != null) { + this.mapping = new V1NodeAllocatableMappingBuilder(mapping); + this._visitables.get("mapping").add(this.mapping); + } else { + this._visitables.get("mapping").remove(this.mapping); + this.mapping = null; + } + return (A) this; + } + + public MappingNested withNewMapping() { + return new MappingNested<>(null); + } + + public MappingNested withNewMappingLike(V1NodeAllocatableMapping item) { + return new MappingNested<>(item); + } + + public OverheadNested withNewOverhead() { + return new OverheadNested<>(null); + } + + public OverheadNested withNewOverheadLike(V1NodeAllocatableOverhead item) { + return new OverheadNested<>(item); + } + + public A withOverhead(V1NodeAllocatableOverhead overhead) { + this._visitables.remove("overhead"); + if (overhead != null) { + this.overhead = new V1NodeAllocatableOverheadBuilder(overhead); + this._visitables.get("overhead").add(this.overhead); + } else { + this._visitables.get("overhead").remove(this.overhead); + this.overhead = null; + } + return (A) this; + } + public class MappingNested extends V1NodeAllocatableMappingFluent> implements Nested{ + + V1NodeAllocatableMappingBuilder builder; + + MappingNested(V1NodeAllocatableMapping item) { + this.builder = new V1NodeAllocatableMappingBuilder(this, item); + } + + public N and() { + return (N) V1NodeAllocatableResourceFluent.this.withMapping(builder.build()); + } + + public N endMapping() { + return and(); + } + + } + public class OverheadNested extends V1NodeAllocatableOverheadFluent> implements Nested{ + + V1NodeAllocatableOverheadBuilder builder; + + OverheadNested(V1NodeAllocatableOverhead item) { + this.builder = new V1NodeAllocatableOverheadBuilder(this, item); + } + + public N and() { + return (N) V1NodeAllocatableResourceFluent.this.withOverhead(builder.build()); + } + + public N endOverhead() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMappingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMappingBuilder.java deleted file mode 100644 index 3787054cdb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMappingBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1NodeAllocatableResourceMappingBuilder extends V1NodeAllocatableResourceMappingFluent implements VisitableBuilder{ - - V1NodeAllocatableResourceMappingFluent fluent; - - public V1NodeAllocatableResourceMappingBuilder() { - this(new V1NodeAllocatableResourceMapping()); - } - - public V1NodeAllocatableResourceMappingBuilder(V1NodeAllocatableResourceMappingFluent fluent) { - this(fluent, new V1NodeAllocatableResourceMapping()); - } - - public V1NodeAllocatableResourceMappingBuilder(V1NodeAllocatableResourceMapping instance) { - this.fluent = this; - this.copyInstance(instance); - } - - public V1NodeAllocatableResourceMappingBuilder(V1NodeAllocatableResourceMappingFluent fluent,V1NodeAllocatableResourceMapping instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1NodeAllocatableResourceMapping build() { - V1NodeAllocatableResourceMapping buildable = new V1NodeAllocatableResourceMapping(); - buildable.setAllocationMultiplier(fluent.getAllocationMultiplier()); - buildable.setCapacityKey(fluent.getCapacityKey()); - return buildable; - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java index e8f0c59416..bee5c9a943 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeBuilder extends V1NodeFluent implements VisitableBuilder{ V1NodeFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java index 94cab6c97c..061308761a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeConditionBuilder extends V1NodeConditionFluent implements VisitableBuilder{ V1NodeConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java index a68f4726be..655f60d8c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeConditionFluent> extends BaseFluent{ private OffsetDateTime lastHeartbeatTime; private OffsetDateTime lastTransitionTime; @@ -62,7 +64,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeConditionFluent that = (V1NodeConditionFluent) o; + V1NodeConditionFluent that = (V1NodeConditionFluent) o; if (!(Objects.equals(lastHeartbeatTime, that.lastHeartbeatTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java index ea7613fba5..1d6fba11ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeConfigSourceBuilder extends V1NodeConfigSourceFluent implements VisitableBuilder{ V1NodeConfigSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java index 3b667949a8..faf80c8fb0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeConfigSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeConfigSourceFluent> extends BaseFluent{ private V1ConfigMapNodeConfigSourceBuilder configMap; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeConfigSourceFluent that = (V1NodeConfigSourceFluent) o; + V1NodeConfigSourceFluent that = (V1NodeConfigSourceFluent) o; if (!(Objects.equals(configMap, that.configMap))) { return false; } @@ -101,18 +103,18 @@ public A withConfigMap(V1ConfigMapNodeConfigSource configMap) { this.configMap = new V1ConfigMapNodeConfigSourceBuilder(configMap); this._visitables.get("configMap").add(this.configMap); } else { - this.configMap = null; this._visitables.get("configMap").remove(this.configMap); + this.configMap = null; } return (A) this; } public ConfigMapNested withNewConfigMap() { - return new ConfigMapNested(null); + return new ConfigMapNested<>(null); } public ConfigMapNested withNewConfigMapLike(V1ConfigMapNodeConfigSource item) { - return new ConfigMapNested(item); + return new ConfigMapNested<>(item); } public class ConfigMapNested extends V1ConfigMapNodeConfigSourceFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java index a84c08968b..dbd5eb9ef1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeConfigStatusBuilder extends V1NodeConfigStatusFluent implements VisitableBuilder{ V1NodeConfigStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java index 071087f10f..b09c43bbb0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeConfigStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeConfigStatusFluent> extends BaseFluent{ private V1NodeConfigSourceBuilder active; private V1NodeConfigSourceBuilder assigned; @@ -107,7 +109,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeConfigStatusFluent that = (V1NodeConfigStatusFluent) o; + V1NodeConfigStatusFluent that = (V1NodeConfigStatusFluent) o; if (!(Objects.equals(active, that.active))) { return false; } @@ -179,8 +181,8 @@ public A withActive(V1NodeConfigSource active) { this.active = new V1NodeConfigSourceBuilder(active); this._visitables.get("active").add(this.active); } else { - this.active = null; this._visitables.get("active").remove(this.active); + this.active = null; } return (A) this; } @@ -191,8 +193,8 @@ public A withAssigned(V1NodeConfigSource assigned) { this.assigned = new V1NodeConfigSourceBuilder(assigned); this._visitables.get("assigned").add(this.assigned); } else { - this.assigned = null; this._visitables.get("assigned").remove(this.assigned); + this.assigned = null; } return (A) this; } @@ -208,34 +210,34 @@ public A withLastKnownGood(V1NodeConfigSource lastKnownGood) { this.lastKnownGood = new V1NodeConfigSourceBuilder(lastKnownGood); this._visitables.get("lastKnownGood").add(this.lastKnownGood); } else { - this.lastKnownGood = null; this._visitables.get("lastKnownGood").remove(this.lastKnownGood); + this.lastKnownGood = null; } return (A) this; } public ActiveNested withNewActive() { - return new ActiveNested(null); + return new ActiveNested<>(null); } public ActiveNested withNewActiveLike(V1NodeConfigSource item) { - return new ActiveNested(item); + return new ActiveNested<>(item); } public AssignedNested withNewAssigned() { - return new AssignedNested(null); + return new AssignedNested<>(null); } public AssignedNested withNewAssignedLike(V1NodeConfigSource item) { - return new AssignedNested(item); + return new AssignedNested<>(item); } public LastKnownGoodNested withNewLastKnownGood() { - return new LastKnownGoodNested(null); + return new LastKnownGoodNested<>(null); } public LastKnownGoodNested withNewLastKnownGoodLike(V1NodeConfigSource item) { - return new LastKnownGoodNested(item); + return new LastKnownGoodNested<>(item); } public class ActiveNested extends V1NodeConfigSourceFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java index cd79349a6b..9b65f150bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeDaemonEndpointsBuilder extends V1NodeDaemonEndpointsFluent implements VisitableBuilder{ V1NodeDaemonEndpointsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java index 5a658c3ce7..a28dbb5dd1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeDaemonEndpointsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeDaemonEndpointsFluent> extends BaseFluent{ private V1DaemonEndpointBuilder kubeletEndpoint; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeDaemonEndpointsFluent that = (V1NodeDaemonEndpointsFluent) o; + V1NodeDaemonEndpointsFluent that = (V1NodeDaemonEndpointsFluent) o; if (!(Objects.equals(kubeletEndpoint, that.kubeletEndpoint))) { return false; } @@ -101,18 +103,18 @@ public A withKubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { this.kubeletEndpoint = new V1DaemonEndpointBuilder(kubeletEndpoint); this._visitables.get("kubeletEndpoint").add(this.kubeletEndpoint); } else { - this.kubeletEndpoint = null; this._visitables.get("kubeletEndpoint").remove(this.kubeletEndpoint); + this.kubeletEndpoint = null; } return (A) this; } public KubeletEndpointNested withNewKubeletEndpoint() { - return new KubeletEndpointNested(null); + return new KubeletEndpointNested<>(null); } public KubeletEndpointNested withNewKubeletEndpointLike(V1DaemonEndpoint item) { - return new KubeletEndpointNested(item); + return new KubeletEndpointNested<>(item); } public class KubeletEndpointNested extends V1DaemonEndpointFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java index 02f725cdd3..1a6b130a51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeFeaturesBuilder extends V1NodeFeaturesFluent implements VisitableBuilder{ V1NodeFeaturesFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java index 1232e77d8e..98a0f4bd13 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeFeaturesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeFeaturesFluent> extends BaseFluent{ private Boolean supplementalGroupsPolicy; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeFeaturesFluent that = (V1NodeFeaturesFluent) o; + V1NodeFeaturesFluent that = (V1NodeFeaturesFluent) o; if (!(Objects.equals(supplementalGroupsPolicy, that.supplementalGroupsPolicy))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java index 3a74d1f145..818cee03ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeFluent that = (V1NodeFluent) o; + V1NodeFluent that = (V1NodeFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1NodeSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1NodeStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1NodeSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1NodeSpec spec) { this.spec = new V1NodeSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1NodeStatus status) { this.status = new V1NodeStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java index 686163cb21..55ce6d2fdd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeListBuilder extends V1NodeListFluent implements VisitableBuilder{ V1NodeListFluent fluent; 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 94ee0bb222..7c60816545 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1NodeListFluent(V1NodeList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Node item : items) { V1NodeBuilder builder = new V1NodeBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1Node item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1Node... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Node item : items) { V1NodeBuilder builder = new V1NodeBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1Node... items) { public A addToItems(int index,V1Node item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1NodeBuilder builder = new V1NodeBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeListFluent that = (V1NodeListFluent) o; + V1NodeListFluent that = (V1NodeListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1NodeBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1Node item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1Node item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1NodeBuilder builder = new V1NodeBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1Node item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1NodeFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodePodPreemptionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodePodPreemptionPolicyBuilder.java new file mode 100644 index 0000000000..33b85340a0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodePodPreemptionPolicyBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1NodePodPreemptionPolicyBuilder extends V1NodePodPreemptionPolicyFluent implements VisitableBuilder{ + + V1NodePodPreemptionPolicyFluent fluent; + + public V1NodePodPreemptionPolicyBuilder() { + this(new V1NodePodPreemptionPolicy()); + } + + public V1NodePodPreemptionPolicyBuilder(V1NodePodPreemptionPolicyFluent fluent) { + this(fluent, new V1NodePodPreemptionPolicy()); + } + + public V1NodePodPreemptionPolicyBuilder(V1NodePodPreemptionPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1NodePodPreemptionPolicyBuilder(V1NodePodPreemptionPolicyFluent fluent,V1NodePodPreemptionPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NodePodPreemptionPolicy build() { + V1NodePodPreemptionPolicy buildable = new V1NodePodPreemptionPolicy(); + buildable.setDisableResizePreemption(fluent.getDisableResizePreemption()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodePodPreemptionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodePodPreemptionPolicyFluent.java new file mode 100644 index 0000000000..712dab6b6e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodePodPreemptionPolicyFluent.java @@ -0,0 +1,201 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodePodPreemptionPolicyFluent> extends BaseFluent{ + + private List disableResizePreemption; + + public V1NodePodPreemptionPolicyFluent() { + } + + public V1NodePodPreemptionPolicyFluent(V1NodePodPreemptionPolicy instance) { + this.copyInstance(instance); + } + + public A addAllToDisableResizePreemption(Collection items) { + if (this.disableResizePreemption == null) { + this.disableResizePreemption = new ArrayList<>(); + } + for (String item : items) { + this.disableResizePreemption.add(item); + } + return (A) this; + } + + public A addToDisableResizePreemption(String... items) { + if (this.disableResizePreemption == null) { + this.disableResizePreemption = new ArrayList<>(); + } + for (String item : items) { + this.disableResizePreemption.add(item); + } + return (A) this; + } + + public A addToDisableResizePreemption(int index,String item) { + if (this.disableResizePreemption == null) { + this.disableResizePreemption = new ArrayList<>(); + } + this.disableResizePreemption.add(index, item); + return (A) this; + } + + protected void copyInstance(V1NodePodPreemptionPolicy instance) { + instance = instance != null ? instance : new V1NodePodPreemptionPolicy(); + if (instance != null) { + this.withDisableResizePreemption(instance.getDisableResizePreemption()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodePodPreemptionPolicyFluent that = (V1NodePodPreemptionPolicyFluent) o; + if (!(Objects.equals(disableResizePreemption, that.disableResizePreemption))) { + return false; + } + return true; + } + + public List getDisableResizePreemption() { + return this.disableResizePreemption; + } + + public String getDisableResizePreemption(int index) { + return this.disableResizePreemption.get(index); + } + + public String getFirstDisableResizePreemption() { + return this.disableResizePreemption.get(0); + } + + public String getLastDisableResizePreemption() { + return this.disableResizePreemption.get(disableResizePreemption.size() - 1); + } + + public String getMatchingDisableResizePreemption(Predicate predicate) { + for (String item : disableResizePreemption) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasDisableResizePreemption() { + return this.disableResizePreemption != null && !(this.disableResizePreemption.isEmpty()); + } + + public boolean hasMatchingDisableResizePreemption(Predicate predicate) { + for (String item : disableResizePreemption) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(disableResizePreemption); + } + + public A removeAllFromDisableResizePreemption(Collection items) { + if (this.disableResizePreemption == null) { + return (A) this; + } + for (String item : items) { + this.disableResizePreemption.remove(item); + } + return (A) this; + } + + public A removeFromDisableResizePreemption(String... items) { + if (this.disableResizePreemption == null) { + return (A) this; + } + for (String item : items) { + this.disableResizePreemption.remove(item); + } + return (A) this; + } + + public A setToDisableResizePreemption(int index,String item) { + if (this.disableResizePreemption == null) { + this.disableResizePreemption = new ArrayList<>(); + } + this.disableResizePreemption.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(disableResizePreemption == null) && !(disableResizePreemption.isEmpty())) { + sb.append("disableResizePreemption:"); + sb.append(disableResizePreemption); + } + sb.append("}"); + return sb.toString(); + } + + public A withDisableResizePreemption(List disableResizePreemption) { + if (disableResizePreemption != null) { + this.disableResizePreemption = new ArrayList<>(); + for (String item : disableResizePreemption) { + this.addToDisableResizePreemption(item); + } + } else { + this.disableResizePreemption = null; + } + return (A) this; + } + + public A withDisableResizePreemption(String... disableResizePreemption) { + if (this.disableResizePreemption != null) { + this.disableResizePreemption.clear(); + _visitables.remove("disableResizePreemption"); + } + if (disableResizePreemption != null) { + for (String item : disableResizePreemption) { + this.addToDisableResizePreemption(item); + } + } + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java index 5ecd960d4b..2ad569b31d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeRuntimeHandlerBuilder extends V1NodeRuntimeHandlerFluent implements VisitableBuilder{ V1NodeRuntimeHandlerFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java index 9fa51c70c2..44b5e8306f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeRuntimeHandlerFeaturesBuilder extends V1NodeRuntimeHandlerFeaturesFluent implements VisitableBuilder{ V1NodeRuntimeHandlerFeaturesFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java index 9f464442ee..2d68b908b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeRuntimeHandlerFeaturesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeRuntimeHandlerFeaturesFluent> extends BaseFluent{ private Boolean recursiveReadOnlyMounts; private Boolean userNamespaces; @@ -54,7 +56,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeRuntimeHandlerFeaturesFluent that = (V1NodeRuntimeHandlerFeaturesFluent) o; + V1NodeRuntimeHandlerFeaturesFluent that = (V1NodeRuntimeHandlerFeaturesFluent) o; if (!(Objects.equals(recursiveReadOnlyMounts, that.recursiveReadOnlyMounts))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java index b1c4a1b96a..6dbd015c58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeRuntimeHandlerFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeRuntimeHandlerFluent> extends BaseFluent{ private V1NodeRuntimeHandlerFeaturesBuilder features; private String name; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeRuntimeHandlerFluent that = (V1NodeRuntimeHandlerFluent) o; + V1NodeRuntimeHandlerFluent that = (V1NodeRuntimeHandlerFluent) o; if (!(Objects.equals(features, that.features))) { return false; } @@ -119,8 +121,8 @@ public A withFeatures(V1NodeRuntimeHandlerFeatures features) { this.features = new V1NodeRuntimeHandlerFeaturesBuilder(features); this._visitables.get("features").add(this.features); } else { - this.features = null; this._visitables.get("features").remove(this.features); + this.features = null; } return (A) this; } @@ -131,11 +133,11 @@ public A withName(String name) { } public FeaturesNested withNewFeatures() { - return new FeaturesNested(null); + return new FeaturesNested<>(null); } public FeaturesNested withNewFeaturesLike(V1NodeRuntimeHandlerFeatures item) { - return new FeaturesNested(item); + return new FeaturesNested<>(item); } public class FeaturesNested extends V1NodeRuntimeHandlerFeaturesFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java index 4c82cafa60..7b08296b56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeSelectorBuilder extends V1NodeSelectorFluent implements VisitableBuilder{ V1NodeSelectorFluent fluent; 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 75e166fd3d..d0ada0f8fb 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeSelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeSelectorFluent> extends BaseFluent{ private ArrayList nodeSelectorTerms; @@ -43,7 +45,7 @@ public V1NodeSelectorFluent(V1NodeSelector instance) { public A addAllToNodeSelectorTerms(Collection items) { if (this.nodeSelectorTerms == null) { - this.nodeSelectorTerms = new ArrayList(); + this.nodeSelectorTerms = new ArrayList<>(); } for (V1NodeSelectorTerm item : items) { V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); @@ -54,16 +56,16 @@ public A addAllToNodeSelectorTerms(Collection items) { } public NodeSelectorTermsNested addNewNodeSelectorTerm() { - return new NodeSelectorTermsNested(-1, null); + return new NodeSelectorTermsNested<>(-1, null); } public NodeSelectorTermsNested addNewNodeSelectorTermLike(V1NodeSelectorTerm item) { - return new NodeSelectorTermsNested(-1, item); + return new NodeSelectorTermsNested<>(-1, item); } public A addToNodeSelectorTerms(V1NodeSelectorTerm... items) { if (this.nodeSelectorTerms == null) { - this.nodeSelectorTerms = new ArrayList(); + this.nodeSelectorTerms = new ArrayList<>(); } for (V1NodeSelectorTerm item : items) { V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); @@ -75,7 +77,7 @@ public A addToNodeSelectorTerms(V1NodeSelectorTerm... items) { public A addToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { if (this.nodeSelectorTerms == null) { - this.nodeSelectorTerms = new ArrayList(); + this.nodeSelectorTerms = new ArrayList<>(); } V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); if (index < 0 || index >= this.nodeSelectorTerms.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeSelectorFluent that = (V1NodeSelectorFluent) o; + V1NodeSelectorFluent that = (V1NodeSelectorFluent) o; if (!(Objects.equals(nodeSelectorTerms, that.nodeSelectorTerms))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromNodeSelectorTerms(Predicate each = nodeSelectorTerms.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("nodeSelectorTerms"); while (each.hasNext()) { V1NodeSelectorTermBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromNodeSelectorTerms(Predicate setNewNodeSelectorTermLike(int index,V1NodeSelectorTerm item) { - return new NodeSelectorTermsNested(index, item); + return new NodeSelectorTermsNested<>(index, item); } public A setToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { if (this.nodeSelectorTerms == null) { - this.nodeSelectorTerms = new ArrayList(); + this.nodeSelectorTerms = new ArrayList<>(); } V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); if (index < 0 || index >= this.nodeSelectorTerms.size()) { @@ -265,7 +268,7 @@ public A withNodeSelectorTerms(List nodeSelectorTerms) { this._visitables.get("nodeSelectorTerms").clear(); } if (nodeSelectorTerms != null) { - this.nodeSelectorTerms = new ArrayList(); + this.nodeSelectorTerms = new ArrayList<>(); for (V1NodeSelectorTerm item : nodeSelectorTerms) { this.addToNodeSelectorTerms(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java index da4c63a758..fa161d7de0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeSelectorRequirementBuilder extends V1NodeSelectorRequirementFluent implements VisitableBuilder{ V1NodeSelectorRequirementFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java index 2dc0a0f8f3..ea6bdcbea0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeSelectorRequirementFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeSelectorRequirementFluent> extends BaseFluent{ private String key; private String operator; @@ -42,7 +44,7 @@ public V1NodeSelectorRequirementFluent(V1NodeSelectorRequirement instance) { public A addAllToValues(Collection items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (String item : items) { this.values.add(item); @@ -52,7 +54,7 @@ public A addAllToValues(Collection items) { public A addToValues(String... items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (String item : items) { this.values.add(item); @@ -62,7 +64,7 @@ public A addToValues(String... items) { public A addToValues(int index,String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.add(index, item); return (A) this; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeSelectorRequirementFluent that = (V1NodeSelectorRequirementFluent) o; + V1NodeSelectorRequirementFluent that = (V1NodeSelectorRequirementFluent) o; if (!(Objects.equals(key, that.key))) { return false; } @@ -180,7 +182,7 @@ public A removeFromValues(String... items) { public A setToValues(int index,String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.set(index, item); return (A) this; @@ -219,7 +221,7 @@ public A withOperator(String operator) { public A withValues(List values) { if (values != null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); for (String item : values) { this.addToValues(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java index c4397581a0..db840f1472 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeSelectorTermBuilder extends V1NodeSelectorTermFluent implements VisitableBuilder{ V1NodeSelectorTermFluent fluent; 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 70c90e57d8..391dc5ab19 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeSelectorTermFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeSelectorTermFluent> extends BaseFluent{ private ArrayList matchExpressions; private ArrayList matchFields; @@ -44,7 +46,7 @@ public V1NodeSelectorTermFluent(V1NodeSelectorTerm instance) { public A addAllToMatchExpressions(Collection items) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } for (V1NodeSelectorRequirement item : items) { V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); @@ -56,7 +58,7 @@ public A addAllToMatchExpressions(Collection items) { public A addAllToMatchFields(Collection items) { if (this.matchFields == null) { - this.matchFields = new ArrayList(); + this.matchFields = new ArrayList<>(); } for (V1NodeSelectorRequirement item : items) { V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); @@ -67,24 +69,24 @@ public A addAllToMatchFields(Collection items) { } public MatchExpressionsNested addNewMatchExpression() { - return new MatchExpressionsNested(-1, null); + return new MatchExpressionsNested<>(-1, null); } public MatchExpressionsNested addNewMatchExpressionLike(V1NodeSelectorRequirement item) { - return new MatchExpressionsNested(-1, item); + return new MatchExpressionsNested<>(-1, item); } public MatchFieldsNested addNewMatchField() { - return new MatchFieldsNested(-1, null); + return new MatchFieldsNested<>(-1, null); } public MatchFieldsNested addNewMatchFieldLike(V1NodeSelectorRequirement item) { - return new MatchFieldsNested(-1, item); + return new MatchFieldsNested<>(-1, item); } public A addToMatchExpressions(V1NodeSelectorRequirement... items) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } for (V1NodeSelectorRequirement item : items) { V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); @@ -96,7 +98,7 @@ public A addToMatchExpressions(V1NodeSelectorRequirement... items) { public A addToMatchExpressions(int index,V1NodeSelectorRequirement item) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); if (index < 0 || index >= this.matchExpressions.size()) { @@ -111,7 +113,7 @@ public A addToMatchExpressions(int index,V1NodeSelectorRequirement item) { public A addToMatchFields(V1NodeSelectorRequirement... items) { if (this.matchFields == null) { - this.matchFields = new ArrayList(); + this.matchFields = new ArrayList<>(); } for (V1NodeSelectorRequirement item : items) { V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); @@ -123,7 +125,7 @@ public A addToMatchFields(V1NodeSelectorRequirement... items) { public A addToMatchFields(int index,V1NodeSelectorRequirement item) { if (this.matchFields == null) { - this.matchFields = new ArrayList(); + this.matchFields = new ArrayList<>(); } V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); if (index < 0 || index >= this.matchFields.size()) { @@ -276,7 +278,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeSelectorTermFluent that = (V1NodeSelectorTermFluent) o; + V1NodeSelectorTermFluent that = (V1NodeSelectorTermFluent) o; if (!(Objects.equals(matchExpressions, that.matchExpressions))) { return false; } @@ -369,6 +371,7 @@ public A removeMatchingFromMatchExpressions(Predicate each = matchExpressions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("matchExpressions"); while (each.hasNext()) { V1NodeSelectorRequirementBuilder builder = each.next(); @@ -385,6 +388,7 @@ public A removeMatchingFromMatchFields(Predicate each = matchFields.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("matchFields"); while (each.hasNext()) { V1NodeSelectorRequirementBuilder builder = each.next(); @@ -397,16 +401,16 @@ public A removeMatchingFromMatchFields(Predicate setNewMatchExpressionLike(int index,V1NodeSelectorRequirement item) { - return new MatchExpressionsNested(index, item); + return new MatchExpressionsNested<>(index, item); } public MatchFieldsNested setNewMatchFieldLike(int index,V1NodeSelectorRequirement item) { - return new MatchFieldsNested(index, item); + return new MatchFieldsNested<>(index, item); } public A setToMatchExpressions(int index,V1NodeSelectorRequirement item) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); if (index < 0 || index >= this.matchExpressions.size()) { @@ -421,7 +425,7 @@ public A setToMatchExpressions(int index,V1NodeSelectorRequirement item) { public A setToMatchFields(int index,V1NodeSelectorRequirement item) { if (this.matchFields == null) { - this.matchFields = new ArrayList(); + this.matchFields = new ArrayList<>(); } V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); if (index < 0 || index >= this.matchFields.size()) { @@ -455,7 +459,7 @@ public A withMatchExpressions(List matchExpressions) this._visitables.get("matchExpressions").clear(); } if (matchExpressions != null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); for (V1NodeSelectorRequirement item : matchExpressions) { this.addToMatchExpressions(item); } @@ -483,7 +487,7 @@ public A withMatchFields(List matchFields) { this._visitables.get("matchFields").clear(); } if (matchFields != null) { - this.matchFields = new ArrayList(); + this.matchFields = new ArrayList<>(); for (V1NodeSelectorRequirement item : matchFields) { this.addToMatchFields(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java index 272639d8ad..7d6f2993da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeSpecBuilder extends V1NodeSpecFluent implements VisitableBuilder{ V1NodeSpecFluent fluent; @@ -42,6 +43,7 @@ public V1NodeSpec build() { buildable.setExternalID(fluent.getExternalID()); buildable.setPodCIDR(fluent.getPodCIDR()); buildable.setPodCIDRs(fluent.getPodCIDRs()); + buildable.setPodPreemptionPolicy(fluent.buildPodPreemptionPolicy()); buildable.setProviderID(fluent.getProviderID()); buildable.setTaints(fluent.buildTaints()); buildable.setUnschedulable(fluent.getUnschedulable()); 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 e21d84683d..925fcf6331 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 @@ -27,17 +27,20 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeSpecFluent> extends BaseFluent{ private V1NodeConfigSourceBuilder configSource; private String externalID; private String podCIDR; private List podCIDRs; + private V1NodePodPreemptionPolicyBuilder podPreemptionPolicy; private String providerID; private ArrayList taints; private Boolean unschedulable; @@ -51,7 +54,7 @@ public V1NodeSpecFluent(V1NodeSpec instance) { public A addAllToPodCIDRs(Collection items) { if (this.podCIDRs == null) { - this.podCIDRs = new ArrayList(); + this.podCIDRs = new ArrayList<>(); } for (String item : items) { this.podCIDRs.add(item); @@ -61,7 +64,7 @@ public A addAllToPodCIDRs(Collection items) { public A addAllToTaints(Collection items) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } for (V1Taint item : items) { V1TaintBuilder builder = new V1TaintBuilder(item); @@ -72,16 +75,16 @@ public A addAllToTaints(Collection items) { } public TaintsNested addNewTaint() { - return new TaintsNested(-1, null); + return new TaintsNested<>(-1, null); } public TaintsNested addNewTaintLike(V1Taint item) { - return new TaintsNested(-1, item); + return new TaintsNested<>(-1, item); } public A addToPodCIDRs(String... items) { if (this.podCIDRs == null) { - this.podCIDRs = new ArrayList(); + this.podCIDRs = new ArrayList<>(); } for (String item : items) { this.podCIDRs.add(item); @@ -91,7 +94,7 @@ public A addToPodCIDRs(String... items) { public A addToPodCIDRs(int index,String item) { if (this.podCIDRs == null) { - this.podCIDRs = new ArrayList(); + this.podCIDRs = new ArrayList<>(); } this.podCIDRs.add(index, item); return (A) this; @@ -99,7 +102,7 @@ public A addToPodCIDRs(int index,String item) { public A addToTaints(V1Taint... items) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } for (V1Taint item : items) { V1TaintBuilder builder = new V1TaintBuilder(item); @@ -111,7 +114,7 @@ public A addToTaints(V1Taint... items) { public A addToTaints(int index,V1Taint item) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } V1TaintBuilder builder = new V1TaintBuilder(item); if (index < 0 || index >= this.taints.size()) { @@ -145,6 +148,10 @@ public V1Taint buildMatchingTaint(Predicate predicate) { return null; } + public V1NodePodPreemptionPolicy buildPodPreemptionPolicy() { + return this.podPreemptionPolicy != null ? this.podPreemptionPolicy.build() : null; + } + public V1Taint buildTaint(int index) { return this.taints.get(index).build(); } @@ -160,6 +167,7 @@ protected void copyInstance(V1NodeSpec instance) { this.withExternalID(instance.getExternalID()); this.withPodCIDR(instance.getPodCIDR()); this.withPodCIDRs(instance.getPodCIDRs()); + this.withPodPreemptionPolicy(instance.getPodPreemptionPolicy()); this.withProviderID(instance.getProviderID()); this.withTaints(instance.getTaints()); this.withUnschedulable(instance.getUnschedulable()); @@ -207,6 +215,18 @@ public ConfigSourceNested editOrNewConfigSourceLike(V1NodeConfigSource item) return this.withNewConfigSourceLike(Optional.ofNullable(this.buildConfigSource()).orElse(item)); } + public PodPreemptionPolicyNested editOrNewPodPreemptionPolicy() { + return this.withNewPodPreemptionPolicyLike(Optional.ofNullable(this.buildPodPreemptionPolicy()).orElse(new V1NodePodPreemptionPolicyBuilder().build())); + } + + public PodPreemptionPolicyNested editOrNewPodPreemptionPolicyLike(V1NodePodPreemptionPolicy item) { + return this.withNewPodPreemptionPolicyLike(Optional.ofNullable(this.buildPodPreemptionPolicy()).orElse(item)); + } + + public PodPreemptionPolicyNested editPodPreemptionPolicy() { + return this.withNewPodPreemptionPolicyLike(Optional.ofNullable(this.buildPodPreemptionPolicy()).orElse(null)); + } + public TaintsNested editTaint(int index) { if (taints.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); @@ -224,7 +244,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeSpecFluent that = (V1NodeSpecFluent) o; + V1NodeSpecFluent that = (V1NodeSpecFluent) o; if (!(Objects.equals(configSource, that.configSource))) { return false; } @@ -237,6 +257,9 @@ public boolean equals(Object o) { if (!(Objects.equals(podCIDRs, that.podCIDRs))) { return false; } + if (!(Objects.equals(podPreemptionPolicy, that.podPreemptionPolicy))) { + return false; + } if (!(Objects.equals(providerID, that.providerID))) { return false; } @@ -324,6 +347,10 @@ public boolean hasPodCIDRs() { return this.podCIDRs != null && !(this.podCIDRs.isEmpty()); } + public boolean hasPodPreemptionPolicy() { + return this.podPreemptionPolicy != null; + } + public boolean hasProviderID() { return this.providerID != null; } @@ -337,7 +364,7 @@ public boolean hasUnschedulable() { } public int hashCode() { - return Objects.hash(configSource, externalID, podCIDR, podCIDRs, providerID, taints, unschedulable); + return Objects.hash(configSource, externalID, podCIDR, podCIDRs, podPreemptionPolicy, providerID, taints, unschedulable); } public A removeAllFromPodCIDRs(Collection items) { @@ -389,6 +416,7 @@ public A removeMatchingFromTaints(Predicate predicate) { return (A) this; } Iterator each = taints.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("taints"); while (each.hasNext()) { V1TaintBuilder builder = each.next(); @@ -401,12 +429,12 @@ public A removeMatchingFromTaints(Predicate predicate) { } public TaintsNested setNewTaintLike(int index,V1Taint item) { - return new TaintsNested(index, item); + return new TaintsNested<>(index, item); } public A setToPodCIDRs(int index,String item) { if (this.podCIDRs == null) { - this.podCIDRs = new ArrayList(); + this.podCIDRs = new ArrayList<>(); } this.podCIDRs.set(index, item); return (A) this; @@ -414,7 +442,7 @@ public A setToPodCIDRs(int index,String item) { public A setToTaints(int index,V1Taint item) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } V1TaintBuilder builder = new V1TaintBuilder(item); if (index < 0 || index >= this.taints.size()) { @@ -450,6 +478,11 @@ public String toString() { sb.append(podCIDRs); sb.append(","); } + if (!(podPreemptionPolicy == null)) { + sb.append("podPreemptionPolicy:"); + sb.append(podPreemptionPolicy); + sb.append(","); + } if (!(providerID == null)) { sb.append("providerID:"); sb.append(providerID); @@ -474,8 +507,8 @@ public A withConfigSource(V1NodeConfigSource configSource) { this.configSource = new V1NodeConfigSourceBuilder(configSource); this._visitables.get("configSource").add(this.configSource); } else { - this.configSource = null; this._visitables.get("configSource").remove(this.configSource); + this.configSource = null; } return (A) this; } @@ -486,11 +519,19 @@ public A withExternalID(String externalID) { } public ConfigSourceNested withNewConfigSource() { - return new ConfigSourceNested(null); + return new ConfigSourceNested<>(null); } public ConfigSourceNested withNewConfigSourceLike(V1NodeConfigSource item) { - return new ConfigSourceNested(item); + return new ConfigSourceNested<>(item); + } + + public PodPreemptionPolicyNested withNewPodPreemptionPolicy() { + return new PodPreemptionPolicyNested<>(null); + } + + public PodPreemptionPolicyNested withNewPodPreemptionPolicyLike(V1NodePodPreemptionPolicy item) { + return new PodPreemptionPolicyNested<>(item); } public A withPodCIDR(String podCIDR) { @@ -500,7 +541,7 @@ public A withPodCIDR(String podCIDR) { public A withPodCIDRs(List podCIDRs) { if (podCIDRs != null) { - this.podCIDRs = new ArrayList(); + this.podCIDRs = new ArrayList<>(); for (String item : podCIDRs) { this.addToPodCIDRs(item); } @@ -523,6 +564,18 @@ public A withPodCIDRs(String... podCIDRs) { return (A) this; } + public A withPodPreemptionPolicy(V1NodePodPreemptionPolicy podPreemptionPolicy) { + this._visitables.remove("podPreemptionPolicy"); + if (podPreemptionPolicy != null) { + this.podPreemptionPolicy = new V1NodePodPreemptionPolicyBuilder(podPreemptionPolicy); + this._visitables.get("podPreemptionPolicy").add(this.podPreemptionPolicy); + } else { + this._visitables.get("podPreemptionPolicy").remove(this.podPreemptionPolicy); + this.podPreemptionPolicy = null; + } + return (A) this; + } + public A withProviderID(String providerID) { this.providerID = providerID; return (A) this; @@ -533,7 +586,7 @@ public A withTaints(List taints) { this._visitables.get("taints").clear(); } if (taints != null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); for (V1Taint item : taints) { this.addToTaints(item); } @@ -580,6 +633,23 @@ public N endConfigSource() { return and(); } + } + public class PodPreemptionPolicyNested extends V1NodePodPreemptionPolicyFluent> implements Nested{ + + V1NodePodPreemptionPolicyBuilder builder; + + PodPreemptionPolicyNested(V1NodePodPreemptionPolicy item) { + this.builder = new V1NodePodPreemptionPolicyBuilder(this, item); + } + + public N and() { + return (N) V1NodeSpecFluent.this.withPodPreemptionPolicy(builder.build()); + } + + public N endPodPreemptionPolicy() { + return and(); + } + } public class TaintsNested extends V1TaintFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java index 7fbdfecb89..77792a4864 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeStatusBuilder extends V1NodeStatusFluent implements VisitableBuilder{ V1NodeStatusFluent fluent; 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 de1db5025e..fc843fc11a 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 @@ -29,12 +29,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeStatusFluent> extends BaseFluent{ private ArrayList addresses; private Map allocatable; @@ -60,7 +62,7 @@ public V1NodeStatusFluent(V1NodeStatus instance) { public A addAllToAddresses(Collection items) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } for (V1NodeAddress item : items) { V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); @@ -72,7 +74,7 @@ public A addAllToAddresses(Collection items) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1NodeCondition item : items) { V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); @@ -84,7 +86,7 @@ public A addAllToConditions(Collection items) { public A addAllToDeclaredFeatures(Collection items) { if (this.declaredFeatures == null) { - this.declaredFeatures = new ArrayList(); + this.declaredFeatures = new ArrayList<>(); } for (String item : items) { this.declaredFeatures.add(item); @@ -94,7 +96,7 @@ public A addAllToDeclaredFeatures(Collection items) { public A addAllToImages(Collection items) { if (this.images == null) { - this.images = new ArrayList(); + this.images = new ArrayList<>(); } for (V1ContainerImage item : items) { V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); @@ -106,7 +108,7 @@ public A addAllToImages(Collection items) { public A addAllToRuntimeHandlers(Collection items) { if (this.runtimeHandlers == null) { - this.runtimeHandlers = new ArrayList(); + this.runtimeHandlers = new ArrayList<>(); } for (V1NodeRuntimeHandler item : items) { V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); @@ -118,7 +120,7 @@ public A addAllToRuntimeHandlers(Collection items) { public A addAllToVolumesAttached(Collection items) { if (this.volumesAttached == null) { - this.volumesAttached = new ArrayList(); + this.volumesAttached = new ArrayList<>(); } for (V1AttachedVolume item : items) { V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); @@ -130,7 +132,7 @@ public A addAllToVolumesAttached(Collection items) { public A addAllToVolumesInUse(Collection items) { if (this.volumesInUse == null) { - this.volumesInUse = new ArrayList(); + this.volumesInUse = new ArrayList<>(); } for (String item : items) { this.volumesInUse.add(item); @@ -139,48 +141,48 @@ public A addAllToVolumesInUse(Collection items) { } public AddressesNested addNewAddress() { - return new AddressesNested(-1, null); + return new AddressesNested<>(-1, null); } public AddressesNested addNewAddressLike(V1NodeAddress item) { - return new AddressesNested(-1, item); + return new AddressesNested<>(-1, item); } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1NodeCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public ImagesNested addNewImage() { - return new ImagesNested(-1, null); + return new ImagesNested<>(-1, null); } public ImagesNested addNewImageLike(V1ContainerImage item) { - return new ImagesNested(-1, item); + return new ImagesNested<>(-1, item); } public RuntimeHandlersNested addNewRuntimeHandler() { - return new RuntimeHandlersNested(-1, null); + return new RuntimeHandlersNested<>(-1, null); } public RuntimeHandlersNested addNewRuntimeHandlerLike(V1NodeRuntimeHandler item) { - return new RuntimeHandlersNested(-1, item); + return new RuntimeHandlersNested<>(-1, item); } public VolumesAttachedNested addNewVolumesAttached() { - return new VolumesAttachedNested(-1, null); + return new VolumesAttachedNested<>(-1, null); } public VolumesAttachedNested addNewVolumesAttachedLike(V1AttachedVolume item) { - return new VolumesAttachedNested(-1, item); + return new VolumesAttachedNested<>(-1, item); } public A addToAddresses(V1NodeAddress... items) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } for (V1NodeAddress item : items) { V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); @@ -192,7 +194,7 @@ public A addToAddresses(V1NodeAddress... items) { public A addToAddresses(int index,V1NodeAddress item) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); if (index < 0 || index >= this.addresses.size()) { @@ -207,7 +209,7 @@ public A addToAddresses(int index,V1NodeAddress item) { public A addToAllocatable(Map map) { if (this.allocatable == null && map != null) { - this.allocatable = new LinkedHashMap(); + this.allocatable = new LinkedHashMap<>(); } if (map != null) { this.allocatable.putAll(map); @@ -217,7 +219,7 @@ public A addToAllocatable(Map map) { public A addToAllocatable(String key,Quantity value) { if (this.allocatable == null && key != null && value != null) { - this.allocatable = new LinkedHashMap(); + this.allocatable = new LinkedHashMap<>(); } if (key != null && value != null) { this.allocatable.put(key, value); @@ -227,7 +229,7 @@ public A addToAllocatable(String key,Quantity value) { public A addToCapacity(Map map) { if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); + this.capacity = new LinkedHashMap<>(); } if (map != null) { this.capacity.putAll(map); @@ -237,7 +239,7 @@ public A addToCapacity(Map map) { public A addToCapacity(String key,Quantity value) { if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); + this.capacity = new LinkedHashMap<>(); } if (key != null && value != null) { this.capacity.put(key, value); @@ -247,7 +249,7 @@ public A addToCapacity(String key,Quantity value) { public A addToConditions(V1NodeCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1NodeCondition item : items) { V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); @@ -259,7 +261,7 @@ public A addToConditions(V1NodeCondition... items) { public A addToConditions(int index,V1NodeCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -274,7 +276,7 @@ public A addToConditions(int index,V1NodeCondition item) { public A addToDeclaredFeatures(String... items) { if (this.declaredFeatures == null) { - this.declaredFeatures = new ArrayList(); + this.declaredFeatures = new ArrayList<>(); } for (String item : items) { this.declaredFeatures.add(item); @@ -284,7 +286,7 @@ public A addToDeclaredFeatures(String... items) { public A addToDeclaredFeatures(int index,String item) { if (this.declaredFeatures == null) { - this.declaredFeatures = new ArrayList(); + this.declaredFeatures = new ArrayList<>(); } this.declaredFeatures.add(index, item); return (A) this; @@ -292,7 +294,7 @@ public A addToDeclaredFeatures(int index,String item) { public A addToImages(V1ContainerImage... items) { if (this.images == null) { - this.images = new ArrayList(); + this.images = new ArrayList<>(); } for (V1ContainerImage item : items) { V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); @@ -304,7 +306,7 @@ public A addToImages(V1ContainerImage... items) { public A addToImages(int index,V1ContainerImage item) { if (this.images == null) { - this.images = new ArrayList(); + this.images = new ArrayList<>(); } V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); if (index < 0 || index >= this.images.size()) { @@ -319,7 +321,7 @@ public A addToImages(int index,V1ContainerImage item) { public A addToRuntimeHandlers(V1NodeRuntimeHandler... items) { if (this.runtimeHandlers == null) { - this.runtimeHandlers = new ArrayList(); + this.runtimeHandlers = new ArrayList<>(); } for (V1NodeRuntimeHandler item : items) { V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); @@ -331,7 +333,7 @@ public A addToRuntimeHandlers(V1NodeRuntimeHandler... items) { public A addToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { if (this.runtimeHandlers == null) { - this.runtimeHandlers = new ArrayList(); + this.runtimeHandlers = new ArrayList<>(); } V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); if (index < 0 || index >= this.runtimeHandlers.size()) { @@ -346,7 +348,7 @@ public A addToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { public A addToVolumesAttached(V1AttachedVolume... items) { if (this.volumesAttached == null) { - this.volumesAttached = new ArrayList(); + this.volumesAttached = new ArrayList<>(); } for (V1AttachedVolume item : items) { V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); @@ -358,7 +360,7 @@ public A addToVolumesAttached(V1AttachedVolume... items) { public A addToVolumesAttached(int index,V1AttachedVolume item) { if (this.volumesAttached == null) { - this.volumesAttached = new ArrayList(); + this.volumesAttached = new ArrayList<>(); } V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); if (index < 0 || index >= this.volumesAttached.size()) { @@ -373,7 +375,7 @@ public A addToVolumesAttached(int index,V1AttachedVolume item) { public A addToVolumesInUse(String... items) { if (this.volumesInUse == null) { - this.volumesInUse = new ArrayList(); + this.volumesInUse = new ArrayList<>(); } for (String item : items) { this.volumesInUse.add(item); @@ -383,7 +385,7 @@ public A addToVolumesInUse(String... items) { public A addToVolumesInUse(int index,String item) { if (this.volumesInUse == null) { - this.volumesInUse = new ArrayList(); + this.volumesInUse = new ArrayList<>(); } this.volumesInUse.add(index, item); return (A) this; @@ -788,7 +790,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeStatusFluent that = (V1NodeStatusFluent) o; + V1NodeStatusFluent that = (V1NodeStatusFluent) o; if (!(Objects.equals(addresses, that.addresses))) { return false; } @@ -1232,6 +1234,7 @@ public A removeMatchingFromAddresses(Predicate predicate) return (A) this; } Iterator each = addresses.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("addresses"); while (each.hasNext()) { V1NodeAddressBuilder builder = each.next(); @@ -1248,6 +1251,7 @@ public A removeMatchingFromConditions(Predicate predicat return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1NodeConditionBuilder builder = each.next(); @@ -1264,6 +1268,7 @@ public A removeMatchingFromImages(Predicate predicate) return (A) this; } Iterator each = images.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("images"); while (each.hasNext()) { V1ContainerImageBuilder builder = each.next(); @@ -1280,6 +1285,7 @@ public A removeMatchingFromRuntimeHandlers(Predicate each = runtimeHandlers.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("runtimeHandlers"); while (each.hasNext()) { V1NodeRuntimeHandlerBuilder builder = each.next(); @@ -1296,6 +1302,7 @@ public A removeMatchingFromVolumesAttached(Predicate pr return (A) this; } Iterator each = volumesAttached.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("volumesAttached"); while (each.hasNext()) { V1AttachedVolumeBuilder builder = each.next(); @@ -1308,28 +1315,28 @@ public A removeMatchingFromVolumesAttached(Predicate pr } public AddressesNested setNewAddressLike(int index,V1NodeAddress item) { - return new AddressesNested(index, item); + return new AddressesNested<>(index, item); } public ConditionsNested setNewConditionLike(int index,V1NodeCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public ImagesNested setNewImageLike(int index,V1ContainerImage item) { - return new ImagesNested(index, item); + return new ImagesNested<>(index, item); } public RuntimeHandlersNested setNewRuntimeHandlerLike(int index,V1NodeRuntimeHandler item) { - return new RuntimeHandlersNested(index, item); + return new RuntimeHandlersNested<>(index, item); } public VolumesAttachedNested setNewVolumesAttachedLike(int index,V1AttachedVolume item) { - return new VolumesAttachedNested(index, item); + return new VolumesAttachedNested<>(index, item); } public A setToAddresses(int index,V1NodeAddress item) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); if (index < 0 || index >= this.addresses.size()) { @@ -1344,7 +1351,7 @@ public A setToAddresses(int index,V1NodeAddress item) { public A setToConditions(int index,V1NodeCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -1359,7 +1366,7 @@ public A setToConditions(int index,V1NodeCondition item) { public A setToDeclaredFeatures(int index,String item) { if (this.declaredFeatures == null) { - this.declaredFeatures = new ArrayList(); + this.declaredFeatures = new ArrayList<>(); } this.declaredFeatures.set(index, item); return (A) this; @@ -1367,7 +1374,7 @@ public A setToDeclaredFeatures(int index,String item) { public A setToImages(int index,V1ContainerImage item) { if (this.images == null) { - this.images = new ArrayList(); + this.images = new ArrayList<>(); } V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); if (index < 0 || index >= this.images.size()) { @@ -1382,7 +1389,7 @@ public A setToImages(int index,V1ContainerImage item) { public A setToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { if (this.runtimeHandlers == null) { - this.runtimeHandlers = new ArrayList(); + this.runtimeHandlers = new ArrayList<>(); } V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); if (index < 0 || index >= this.runtimeHandlers.size()) { @@ -1397,7 +1404,7 @@ public A setToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { public A setToVolumesAttached(int index,V1AttachedVolume item) { if (this.volumesAttached == null) { - this.volumesAttached = new ArrayList(); + this.volumesAttached = new ArrayList<>(); } V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); if (index < 0 || index >= this.volumesAttached.size()) { @@ -1412,7 +1419,7 @@ public A setToVolumesAttached(int index,V1AttachedVolume item) { public A setToVolumesInUse(int index,String item) { if (this.volumesInUse == null) { - this.volumesInUse = new ArrayList(); + this.volumesInUse = new ArrayList<>(); } this.volumesInUse.set(index, item); return (A) this; @@ -1499,7 +1506,7 @@ public A withAddresses(List addresses) { this._visitables.get("addresses").clear(); } if (addresses != null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); for (V1NodeAddress item : addresses) { this.addToAddresses(item); } @@ -1526,7 +1533,7 @@ public A withAllocatable(Map allocatable) { if (allocatable == null) { this.allocatable = null; } else { - this.allocatable = new LinkedHashMap(allocatable); + this.allocatable = new LinkedHashMap<>(allocatable); } return (A) this; } @@ -1535,7 +1542,7 @@ public A withCapacity(Map capacity) { if (capacity == null) { this.capacity = null; } else { - this.capacity = new LinkedHashMap(capacity); + this.capacity = new LinkedHashMap<>(capacity); } return (A) this; } @@ -1545,7 +1552,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1NodeCondition item : conditions) { this.addToConditions(item); } @@ -1574,8 +1581,8 @@ public A withConfig(V1NodeConfigStatus config) { this.config = new V1NodeConfigStatusBuilder(config); this._visitables.get("config").add(this.config); } else { - this.config = null; this._visitables.get("config").remove(this.config); + this.config = null; } return (A) this; } @@ -1586,15 +1593,15 @@ public A withDaemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { this.daemonEndpoints = new V1NodeDaemonEndpointsBuilder(daemonEndpoints); this._visitables.get("daemonEndpoints").add(this.daemonEndpoints); } else { - this.daemonEndpoints = null; this._visitables.get("daemonEndpoints").remove(this.daemonEndpoints); + this.daemonEndpoints = null; } return (A) this; } public A withDeclaredFeatures(List declaredFeatures) { if (declaredFeatures != null) { - this.declaredFeatures = new ArrayList(); + this.declaredFeatures = new ArrayList<>(); for (String item : declaredFeatures) { this.addToDeclaredFeatures(item); } @@ -1623,8 +1630,8 @@ public A withFeatures(V1NodeFeatures features) { this.features = new V1NodeFeaturesBuilder(features); this._visitables.get("features").add(this.features); } else { - this.features = null; this._visitables.get("features").remove(this.features); + this.features = null; } return (A) this; } @@ -1634,7 +1641,7 @@ public A withImages(List images) { this._visitables.get("images").clear(); } if (images != null) { - this.images = new ArrayList(); + this.images = new ArrayList<>(); for (V1ContainerImage item : images) { this.addToImages(item); } @@ -1658,35 +1665,35 @@ public A withImages(V1ContainerImage... images) { } public ConfigNested withNewConfig() { - return new ConfigNested(null); + return new ConfigNested<>(null); } public ConfigNested withNewConfigLike(V1NodeConfigStatus item) { - return new ConfigNested(item); + return new ConfigNested<>(item); } public DaemonEndpointsNested withNewDaemonEndpoints() { - return new DaemonEndpointsNested(null); + return new DaemonEndpointsNested<>(null); } public DaemonEndpointsNested withNewDaemonEndpointsLike(V1NodeDaemonEndpoints item) { - return new DaemonEndpointsNested(item); + return new DaemonEndpointsNested<>(item); } public FeaturesNested withNewFeatures() { - return new FeaturesNested(null); + return new FeaturesNested<>(null); } public FeaturesNested withNewFeaturesLike(V1NodeFeatures item) { - return new FeaturesNested(item); + return new FeaturesNested<>(item); } public NodeInfoNested withNewNodeInfo() { - return new NodeInfoNested(null); + return new NodeInfoNested<>(null); } public NodeInfoNested withNewNodeInfoLike(V1NodeSystemInfo item) { - return new NodeInfoNested(item); + return new NodeInfoNested<>(item); } public A withNodeInfo(V1NodeSystemInfo nodeInfo) { @@ -1695,8 +1702,8 @@ public A withNodeInfo(V1NodeSystemInfo nodeInfo) { this.nodeInfo = new V1NodeSystemInfoBuilder(nodeInfo); this._visitables.get("nodeInfo").add(this.nodeInfo); } else { - this.nodeInfo = null; this._visitables.get("nodeInfo").remove(this.nodeInfo); + this.nodeInfo = null; } return (A) this; } @@ -1711,7 +1718,7 @@ public A withRuntimeHandlers(List runtimeHandlers) { this._visitables.get("runtimeHandlers").clear(); } if (runtimeHandlers != null) { - this.runtimeHandlers = new ArrayList(); + this.runtimeHandlers = new ArrayList<>(); for (V1NodeRuntimeHandler item : runtimeHandlers) { this.addToRuntimeHandlers(item); } @@ -1739,7 +1746,7 @@ public A withVolumesAttached(List volumesAttached) { this._visitables.get("volumesAttached").clear(); } if (volumesAttached != null) { - this.volumesAttached = new ArrayList(); + this.volumesAttached = new ArrayList<>(); for (V1AttachedVolume item : volumesAttached) { this.addToVolumesAttached(item); } @@ -1764,7 +1771,7 @@ public A withVolumesAttached(V1AttachedVolume... volumesAttached) { public A withVolumesInUse(List volumesInUse) { if (volumesInUse != null) { - this.volumesInUse = new ArrayList(); + this.volumesInUse = new ArrayList<>(); for (String item : volumesInUse) { this.addToVolumesInUse(item); } 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 index 4bfbdbcc3a..0ba2c0a1ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeSwapStatusBuilder extends V1NodeSwapStatusFluent implements VisitableBuilder{ V1NodeSwapStatusFluent fluent; 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 index a3976e1288..bdbc360300 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeSwapStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeSwapStatusFluent> extends BaseFluent{ private Long capacity; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NodeSwapStatusFluent that = (V1NodeSwapStatusFluent) o; + V1NodeSwapStatusFluent that = (V1NodeSwapStatusFluent) o; if (!(Objects.equals(capacity, that.capacity))) { return false; } 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 5a5007c3e5..f004a4807d 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NodeSystemInfoBuilder extends V1NodeSystemInfoFluent implements VisitableBuilder{ V1NodeSystemInfoFluent fluent; @@ -47,6 +48,7 @@ public V1NodeSystemInfo build() { buildable.setMachineID(fluent.getMachineID()); buildable.setOperatingSystem(fluent.getOperatingSystem()); buildable.setOsImage(fluent.getOsImage()); + buildable.setRunningInUserNamespace(fluent.getRunningInUserNamespace()); 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 d5c7b040da..a3d732996f 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 @@ -14,18 +14,21 @@ import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NodeSystemInfoFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NodeSystemInfoFluent> extends BaseFluent{ private String architecture; private String bootID; @@ -36,6 +39,7 @@ public class V1NodeSystemInfoFluent that = (V1NodeSystemInfoFluent) o; if (!(Objects.equals(architecture, that.architecture))) { return false; } @@ -117,6 +122,9 @@ public boolean equals(Object o) { if (!(Objects.equals(osImage, that.osImage))) { return false; } + if (!(Objects.equals(runningInUserNamespace, that.runningInUserNamespace))) { + return false; + } if (!(Objects.equals(swap, that.swap))) { return false; } @@ -162,6 +170,10 @@ public String getOsImage() { return this.osImage; } + public Boolean getRunningInUserNamespace() { + return this.runningInUserNamespace; + } + public String getSystemUUID() { return this.systemUUID; } @@ -202,6 +214,10 @@ public boolean hasOsImage() { return this.osImage != null; } + public boolean hasRunningInUserNamespace() { + return this.runningInUserNamespace != null; + } + public boolean hasSwap() { return this.swap != null; } @@ -211,7 +227,7 @@ public boolean hasSystemUUID() { } public int hashCode() { - return Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, swap, systemUUID); + return Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, runningInUserNamespace, swap, systemUUID); } public String toString() { @@ -262,6 +278,11 @@ public String toString() { sb.append(osImage); sb.append(","); } + if (!(runningInUserNamespace == null)) { + sb.append("runningInUserNamespace:"); + sb.append(runningInUserNamespace); + sb.append(","); + } if (!(swap == null)) { sb.append("swap:"); sb.append(swap); @@ -311,11 +332,11 @@ public A withMachineID(String machineID) { } public SwapNested withNewSwap() { - return new SwapNested(null); + return new SwapNested<>(null); } public SwapNested withNewSwapLike(V1NodeSwapStatus item) { - return new SwapNested(item); + return new SwapNested<>(item); } public A withOperatingSystem(String operatingSystem) { @@ -328,14 +349,23 @@ public A withOsImage(String osImage) { return (A) this; } + public A withRunningInUserNamespace() { + return withRunningInUserNamespace(true); + } + + public A withRunningInUserNamespace(Boolean runningInUserNamespace) { + this.runningInUserNamespace = runningInUserNamespace; + return (A) this; + } + 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); + this.swap = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java index 5ff7641a31..1af6787df2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NonResourceAttributesBuilder extends V1NonResourceAttributesFluent implements VisitableBuilder{ V1NonResourceAttributesFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java index 24c091b83b..3607932f44 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NonResourceAttributesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NonResourceAttributesFluent> extends BaseFluent{ private String path; private String verb; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NonResourceAttributesFluent that = (V1NonResourceAttributesFluent) o; + V1NonResourceAttributesFluent that = (V1NonResourceAttributesFluent) o; if (!(Objects.equals(path, that.path))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java index 75eb444818..8fe7230813 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NonResourcePolicyRuleBuilder extends V1NonResourcePolicyRuleFluent implements VisitableBuilder{ V1NonResourcePolicyRuleFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java index 400d8c4ea0..a4d084b016 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NonResourcePolicyRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NonResourcePolicyRuleFluent> extends BaseFluent{ private List nonResourceURLs; private List verbs; @@ -41,7 +43,7 @@ public V1NonResourcePolicyRuleFluent(V1NonResourcePolicyRule instance) { public A addAllToNonResourceURLs(Collection items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } for (String item : items) { this.nonResourceURLs.add(item); @@ -51,7 +53,7 @@ public A addAllToNonResourceURLs(Collection items) { public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -61,7 +63,7 @@ public A addAllToVerbs(Collection items) { public A addToNonResourceURLs(String... items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } for (String item : items) { this.nonResourceURLs.add(item); @@ -71,7 +73,7 @@ public A addToNonResourceURLs(String... items) { public A addToNonResourceURLs(int index,String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } this.nonResourceURLs.add(index, item); return (A) this; @@ -79,7 +81,7 @@ public A addToNonResourceURLs(int index,String item) { public A addToVerbs(String... items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -89,7 +91,7 @@ public A addToVerbs(String... items) { public A addToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.add(index, item); return (A) this; @@ -113,7 +115,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NonResourcePolicyRuleFluent that = (V1NonResourcePolicyRuleFluent) o; + V1NonResourcePolicyRuleFluent that = (V1NonResourcePolicyRuleFluent) o; if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { return false; } @@ -245,7 +247,7 @@ public A removeFromVerbs(String... items) { public A setToNonResourceURLs(int index,String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } this.nonResourceURLs.set(index, item); return (A) this; @@ -253,7 +255,7 @@ public A setToNonResourceURLs(int index,String item) { public A setToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.set(index, item); return (A) this; @@ -277,7 +279,7 @@ public String toString() { public A withNonResourceURLs(List nonResourceURLs) { if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); for (String item : nonResourceURLs) { this.addToNonResourceURLs(item); } @@ -302,7 +304,7 @@ public A withNonResourceURLs(String... nonResourceURLs) { public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); for (String item : verbs) { this.addToVerbs(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java index 9ca638f21f..941d768a91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1NonResourceRuleBuilder extends V1NonResourceRuleFluent implements VisitableBuilder{ V1NonResourceRuleFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java index 0eef2c59e1..8f48c2350b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1NonResourceRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1NonResourceRuleFluent> extends BaseFluent{ private List nonResourceURLs; private List verbs; @@ -41,7 +43,7 @@ public V1NonResourceRuleFluent(V1NonResourceRule instance) { public A addAllToNonResourceURLs(Collection items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } for (String item : items) { this.nonResourceURLs.add(item); @@ -51,7 +53,7 @@ public A addAllToNonResourceURLs(Collection items) { public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -61,7 +63,7 @@ public A addAllToVerbs(Collection items) { public A addToNonResourceURLs(String... items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } for (String item : items) { this.nonResourceURLs.add(item); @@ -71,7 +73,7 @@ public A addToNonResourceURLs(String... items) { public A addToNonResourceURLs(int index,String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } this.nonResourceURLs.add(index, item); return (A) this; @@ -79,7 +81,7 @@ public A addToNonResourceURLs(int index,String item) { public A addToVerbs(String... items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -89,7 +91,7 @@ public A addToVerbs(String... items) { public A addToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.add(index, item); return (A) this; @@ -113,7 +115,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1NonResourceRuleFluent that = (V1NonResourceRuleFluent) o; + V1NonResourceRuleFluent that = (V1NonResourceRuleFluent) o; if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { return false; } @@ -245,7 +247,7 @@ public A removeFromVerbs(String... items) { public A setToNonResourceURLs(int index,String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } this.nonResourceURLs.set(index, item); return (A) this; @@ -253,7 +255,7 @@ public A setToNonResourceURLs(int index,String item) { public A setToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.set(index, item); return (A) this; @@ -277,7 +279,7 @@ public String toString() { public A withNonResourceURLs(List nonResourceURLs) { if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); for (String item : nonResourceURLs) { this.addToNonResourceURLs(item); } @@ -302,7 +304,7 @@ public A withNonResourceURLs(String... nonResourceURLs) { public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); for (String item : verbs) { this.addToVerbs(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java index 0ff72bd308..fd01d9e8c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ObjectFieldSelectorBuilder extends V1ObjectFieldSelectorFluent implements VisitableBuilder{ V1ObjectFieldSelectorFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java index b47e370544..361fab267a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ObjectFieldSelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ObjectFieldSelectorFluent> extends BaseFluent{ private String apiVersion; private String fieldPath; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ObjectFieldSelectorFluent that = (V1ObjectFieldSelectorFluent) o; + V1ObjectFieldSelectorFluent that = (V1ObjectFieldSelectorFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java index a031b2c42d..8c73db850c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ObjectMetaBuilder extends V1ObjectMetaFluent implements VisitableBuilder{ V1ObjectMetaFluent fluent; 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 ab58ea7279..d7ec5d9bed 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 @@ -29,12 +29,14 @@ import java.util.Map; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ObjectMetaFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ObjectMetaFluent> extends BaseFluent{ private Map annotations; private OffsetDateTime creationTimestamp; @@ -61,7 +63,7 @@ public V1ObjectMetaFluent(V1ObjectMeta instance) { public A addAllToFinalizers(Collection items) { if (this.finalizers == null) { - this.finalizers = new ArrayList(); + this.finalizers = new ArrayList<>(); } for (String item : items) { this.finalizers.add(item); @@ -71,7 +73,7 @@ public A addAllToFinalizers(Collection items) { public A addAllToManagedFields(Collection items) { if (this.managedFields == null) { - this.managedFields = new ArrayList(); + this.managedFields = new ArrayList<>(); } for (V1ManagedFieldsEntry item : items) { V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); @@ -83,7 +85,7 @@ public A addAllToManagedFields(Collection items) { public A addAllToOwnerReferences(Collection items) { if (this.ownerReferences == null) { - this.ownerReferences = new ArrayList(); + this.ownerReferences = new ArrayList<>(); } for (V1OwnerReference item : items) { V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); @@ -94,24 +96,24 @@ public A addAllToOwnerReferences(Collection items) { } public ManagedFieldsNested addNewManagedField() { - return new ManagedFieldsNested(-1, null); + return new ManagedFieldsNested<>(-1, null); } public ManagedFieldsNested addNewManagedFieldLike(V1ManagedFieldsEntry item) { - return new ManagedFieldsNested(-1, item); + return new ManagedFieldsNested<>(-1, item); } public OwnerReferencesNested addNewOwnerReference() { - return new OwnerReferencesNested(-1, null); + return new OwnerReferencesNested<>(-1, null); } public OwnerReferencesNested addNewOwnerReferenceLike(V1OwnerReference item) { - return new OwnerReferencesNested(-1, item); + return new OwnerReferencesNested<>(-1, item); } public A addToAnnotations(Map map) { if (this.annotations == null && map != null) { - this.annotations = new LinkedHashMap(); + this.annotations = new LinkedHashMap<>(); } if (map != null) { this.annotations.putAll(map); @@ -121,7 +123,7 @@ public A addToAnnotations(Map map) { public A addToAnnotations(String key,String value) { if (this.annotations == null && key != null && value != null) { - this.annotations = new LinkedHashMap(); + this.annotations = new LinkedHashMap<>(); } if (key != null && value != null) { this.annotations.put(key, value); @@ -131,7 +133,7 @@ public A addToAnnotations(String key,String value) { public A addToFinalizers(String... items) { if (this.finalizers == null) { - this.finalizers = new ArrayList(); + this.finalizers = new ArrayList<>(); } for (String item : items) { this.finalizers.add(item); @@ -141,7 +143,7 @@ public A addToFinalizers(String... items) { public A addToFinalizers(int index,String item) { if (this.finalizers == null) { - this.finalizers = new ArrayList(); + this.finalizers = new ArrayList<>(); } this.finalizers.add(index, item); return (A) this; @@ -149,7 +151,7 @@ public A addToFinalizers(int index,String item) { public A addToLabels(Map map) { if (this.labels == null && map != null) { - this.labels = new LinkedHashMap(); + this.labels = new LinkedHashMap<>(); } if (map != null) { this.labels.putAll(map); @@ -159,7 +161,7 @@ public A addToLabels(Map map) { public A addToLabels(String key,String value) { if (this.labels == null && key != null && value != null) { - this.labels = new LinkedHashMap(); + this.labels = new LinkedHashMap<>(); } if (key != null && value != null) { this.labels.put(key, value); @@ -169,7 +171,7 @@ public A addToLabels(String key,String value) { public A addToManagedFields(V1ManagedFieldsEntry... items) { if (this.managedFields == null) { - this.managedFields = new ArrayList(); + this.managedFields = new ArrayList<>(); } for (V1ManagedFieldsEntry item : items) { V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); @@ -181,7 +183,7 @@ public A addToManagedFields(V1ManagedFieldsEntry... items) { public A addToManagedFields(int index,V1ManagedFieldsEntry item) { if (this.managedFields == null) { - this.managedFields = new ArrayList(); + this.managedFields = new ArrayList<>(); } V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); if (index < 0 || index >= this.managedFields.size()) { @@ -196,7 +198,7 @@ public A addToManagedFields(int index,V1ManagedFieldsEntry item) { public A addToOwnerReferences(V1OwnerReference... items) { if (this.ownerReferences == null) { - this.ownerReferences = new ArrayList(); + this.ownerReferences = new ArrayList<>(); } for (V1OwnerReference item : items) { V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); @@ -208,7 +210,7 @@ public A addToOwnerReferences(V1OwnerReference... items) { public A addToOwnerReferences(int index,V1OwnerReference item) { if (this.ownerReferences == null) { - this.ownerReferences = new ArrayList(); + this.ownerReferences = new ArrayList<>(); } V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); if (index < 0 || index >= this.ownerReferences.size()) { @@ -374,7 +376,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ObjectMetaFluent that = (V1ObjectMetaFluent) o; + V1ObjectMetaFluent that = (V1ObjectMetaFluent) o; if (!(Objects.equals(annotations, that.annotations))) { return false; } @@ -708,6 +710,7 @@ public A removeMatchingFromManagedFields(Predicate return (A) this; } Iterator each = managedFields.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("managedFields"); while (each.hasNext()) { V1ManagedFieldsEntryBuilder builder = each.next(); @@ -724,6 +727,7 @@ public A removeMatchingFromOwnerReferences(Predicate pr return (A) this; } Iterator each = ownerReferences.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ownerReferences"); while (each.hasNext()) { V1OwnerReferenceBuilder builder = each.next(); @@ -736,16 +740,16 @@ public A removeMatchingFromOwnerReferences(Predicate pr } public ManagedFieldsNested setNewManagedFieldLike(int index,V1ManagedFieldsEntry item) { - return new ManagedFieldsNested(index, item); + return new ManagedFieldsNested<>(index, item); } public OwnerReferencesNested setNewOwnerReferenceLike(int index,V1OwnerReference item) { - return new OwnerReferencesNested(index, item); + return new OwnerReferencesNested<>(index, item); } public A setToFinalizers(int index,String item) { if (this.finalizers == null) { - this.finalizers = new ArrayList(); + this.finalizers = new ArrayList<>(); } this.finalizers.set(index, item); return (A) this; @@ -753,7 +757,7 @@ public A setToFinalizers(int index,String item) { public A setToManagedFields(int index,V1ManagedFieldsEntry item) { if (this.managedFields == null) { - this.managedFields = new ArrayList(); + this.managedFields = new ArrayList<>(); } V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); if (index < 0 || index >= this.managedFields.size()) { @@ -768,7 +772,7 @@ public A setToManagedFields(int index,V1ManagedFieldsEntry item) { public A setToOwnerReferences(int index,V1OwnerReference item) { if (this.ownerReferences == null) { - this.ownerReferences = new ArrayList(); + this.ownerReferences = new ArrayList<>(); } V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); if (index < 0 || index >= this.ownerReferences.size()) { @@ -866,7 +870,7 @@ public A withAnnotations(Map annotations) { if (annotations == null) { this.annotations = null; } else { - this.annotations = new LinkedHashMap(annotations); + this.annotations = new LinkedHashMap<>(annotations); } return (A) this; } @@ -888,7 +892,7 @@ public A withDeletionTimestamp(OffsetDateTime deletionTimestamp) { public A withFinalizers(List finalizers) { if (finalizers != null) { - this.finalizers = new ArrayList(); + this.finalizers = new ArrayList<>(); for (String item : finalizers) { this.addToFinalizers(item); } @@ -925,7 +929,7 @@ public A withLabels(Map labels) { if (labels == null) { this.labels = null; } else { - this.labels = new LinkedHashMap(labels); + this.labels = new LinkedHashMap<>(labels); } return (A) this; } @@ -935,7 +939,7 @@ public A withManagedFields(List managedFields) { this._visitables.get("managedFields").clear(); } if (managedFields != null) { - this.managedFields = new ArrayList(); + this.managedFields = new ArrayList<>(); for (V1ManagedFieldsEntry item : managedFields) { this.addToManagedFields(item); } @@ -973,7 +977,7 @@ public A withOwnerReferences(List ownerReferences) { this._visitables.get("ownerReferences").clear(); } if (ownerReferences != null) { - this.ownerReferences = new ArrayList(); + this.ownerReferences = new ArrayList<>(); for (V1OwnerReference item : ownerReferences) { this.addToOwnerReferences(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java index 95066d2e74..1d51b51819 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ObjectReferenceBuilder extends V1ObjectReferenceFluent implements VisitableBuilder{ V1ObjectReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java index 7a1494574b..86ff2100de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ObjectReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ObjectReferenceFluent> extends BaseFluent{ private String apiVersion; private String fieldPath; @@ -63,7 +65,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ObjectReferenceFluent that = (V1ObjectReferenceFluent) o; + V1ObjectReferenceFluent that = (V1ObjectReferenceFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java index c8e99e1fbe..a4f690dc43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1OpaqueDeviceConfigurationBuilder extends V1OpaqueDeviceConfigurationFluent implements VisitableBuilder{ V1OpaqueDeviceConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java index f9e3524dca..3130ead664 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1OpaqueDeviceConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1OpaqueDeviceConfigurationFluent> extends BaseFluent{ private String driver; private Object parameters; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1OpaqueDeviceConfigurationFluent that = (V1OpaqueDeviceConfigurationFluent) o; + V1OpaqueDeviceConfigurationFluent that = (V1OpaqueDeviceConfigurationFluent) o; if (!(Objects.equals(driver, that.driver))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java index b0ba3e4b05..d71b16cf6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1OverheadBuilder extends V1OverheadFluent implements VisitableBuilder{ V1OverheadFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java index e6c957bf70..bcf82eacaa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java @@ -21,12 +21,14 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1OverheadFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1OverheadFluent> extends BaseFluent{ private Map podFixed; @@ -39,7 +41,7 @@ public V1OverheadFluent(V1Overhead instance) { public A addToPodFixed(Map map) { if (this.podFixed == null && map != null) { - this.podFixed = new LinkedHashMap(); + this.podFixed = new LinkedHashMap<>(); } if (map != null) { this.podFixed.putAll(map); @@ -49,7 +51,7 @@ public A addToPodFixed(Map map) { public A addToPodFixed(String key,Quantity value) { if (this.podFixed == null && key != null && value != null) { - this.podFixed = new LinkedHashMap(); + this.podFixed = new LinkedHashMap<>(); } if (key != null && value != null) { this.podFixed.put(key, value); @@ -74,7 +76,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1OverheadFluent that = (V1OverheadFluent) o; + V1OverheadFluent that = (V1OverheadFluent) o; if (!(Objects.equals(podFixed, that.podFixed))) { return false; } @@ -132,7 +134,7 @@ public A withPodFixed(Map podFixed) { if (podFixed == null) { this.podFixed = null; } else { - this.podFixed = new LinkedHashMap(podFixed); + this.podFixed = new LinkedHashMap<>(podFixed); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java index 0158b28d15..658f318ee0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1OwnerReferenceBuilder extends V1OwnerReferenceFluent implements VisitableBuilder{ V1OwnerReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java index c8d52fc707..326fac7aa7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1OwnerReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1OwnerReferenceFluent> extends BaseFluent{ private String apiVersion; private Boolean blockOwnerDeletion; @@ -62,7 +64,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1OwnerReferenceFluent that = (V1OwnerReferenceFluent) o; + V1OwnerReferenceFluent that = (V1OwnerReferenceFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java index 05cd58ec55..494cca29b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ParamKindBuilder extends V1ParamKindFluent implements VisitableBuilder{ V1ParamKindFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java index 48921eb2cb..d0bb0797e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ParamKindFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ParamKindFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ParamKindFluent that = (V1ParamKindFluent) o; + V1ParamKindFluent that = (V1ParamKindFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java index e1b4e71007..65f8082d0b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ParamRefBuilder extends V1ParamRefFluent implements VisitableBuilder{ V1ParamRefFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java index fbafc20fe1..635ea06627 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ParamRefFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ParamRefFluent> extends BaseFluent{ private String name; private String namespace; @@ -75,7 +77,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ParamRefFluent that = (V1ParamRefFluent) o; + V1ParamRefFluent that = (V1ParamRefFluent) o; if (!(Objects.equals(name, that.name))) { return false; } @@ -160,11 +162,11 @@ public A withNamespace(String namespace) { } public SelectorNested withNewSelector() { - return new SelectorNested(null); + return new SelectorNested<>(null); } public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + return new SelectorNested<>(item); } public A withParameterNotFoundAction(String parameterNotFoundAction) { @@ -178,8 +180,8 @@ public A withSelector(V1LabelSelector selector) { this.selector = new V1LabelSelectorBuilder(selector); this._visitables.get("selector").add(this.selector); } else { - this.selector = null; this._visitables.get("selector").remove(this.selector); + this.selector = null; } 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 index 32b63e52ff..4341b269af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ParentReferenceBuilder extends V1ParentReferenceFluent implements VisitableBuilder{ V1ParentReferenceFluent fluent; 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 index 95c1afd93e..64432be0ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ParentReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ParentReferenceFluent> extends BaseFluent{ private String group; private String name; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ParentReferenceFluent that = (V1ParentReferenceFluent) o; + V1ParentReferenceFluent that = (V1ParentReferenceFluent) o; if (!(Objects.equals(group, that.group))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java index 65e5494aff..e7ea061e92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PersistentVolumeBuilder extends V1PersistentVolumeFluent implements VisitableBuilder{ V1PersistentVolumeFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java index 7392df62af..600415390e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PersistentVolumeClaimBuilder extends V1PersistentVolumeClaimFluent implements VisitableBuilder{ V1PersistentVolumeClaimFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java index 6395bce459..60e15b7dd9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PersistentVolumeClaimConditionBuilder extends V1PersistentVolumeClaimConditionFluent implements VisitableBuilder{ V1PersistentVolumeClaimConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java index 5799dc5d59..cc53f31f30 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PersistentVolumeClaimConditionFluent> extends BaseFluent{ private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; @@ -62,7 +64,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PersistentVolumeClaimConditionFluent that = (V1PersistentVolumeClaimConditionFluent) o; + V1PersistentVolumeClaimConditionFluent that = (V1PersistentVolumeClaimConditionFluent) o; if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java index 6ba5e63889..64f06d663f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PersistentVolumeClaimFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PersistentVolumeClaimFluent that = (V1PersistentVolumeClaimFluent) o; + V1PersistentVolumeClaimFluent that = (V1PersistentVolumeClaimFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1PersistentVolumeClaimStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1PersistentVolumeClaimSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1PersistentVolumeClaimSpec spec) { this.spec = new V1PersistentVolumeClaimSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1PersistentVolumeClaimStatus status) { this.status = new V1PersistentVolumeClaimStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java index 5f0e17852d..e0e9598de4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PersistentVolumeClaimListBuilder extends V1PersistentVolumeClaimListFluent implements VisitableBuilder{ V1PersistentVolumeClaimListFluent fluent; 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 d072189837..b152c01cc4 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PersistentVolumeClaimListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1PersistentVolumeClaimListFluent(V1PersistentVolumeClaimList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1PersistentVolumeClaim item : items) { V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1PersistentVolumeClaim item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1PersistentVolumeClaim... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1PersistentVolumeClaim item : items) { V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1PersistentVolumeClaim... items) { public A addToItems(int index,V1PersistentVolumeClaim item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PersistentVolumeClaimListFluent that = (V1PersistentVolumeClaimListFluent) o; + V1PersistentVolumeClaimListFluent that = (V1PersistentVolumeClaimListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PersistentVolumeClaimBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predi } public ItemsNested setNewItemLike(int index,V1PersistentVolumeClaim item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1PersistentVolumeClaim item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1PersistentVolumeClaim item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1PersistentVolumeClaimFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java index 7ab18de0db..fdef1df990 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PersistentVolumeClaimSpecBuilder extends V1PersistentVolumeClaimSpecFluent implements VisitableBuilder{ V1PersistentVolumeClaimSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java index 2957667144..285147d46a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java @@ -24,12 +24,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PersistentVolumeClaimSpecFluent> extends BaseFluent{ private List accessModes; private V1TypedLocalObjectReferenceBuilder dataSource; @@ -50,7 +52,7 @@ public V1PersistentVolumeClaimSpecFluent(V1PersistentVolumeClaimSpec instance) { public A addAllToAccessModes(Collection items) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } for (String item : items) { this.accessModes.add(item); @@ -60,7 +62,7 @@ public A addAllToAccessModes(Collection items) { public A addToAccessModes(String... items) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } for (String item : items) { this.accessModes.add(item); @@ -70,7 +72,7 @@ public A addToAccessModes(String... items) { public A addToAccessModes(int index,String item) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } this.accessModes.add(index, item); return (A) this; @@ -165,7 +167,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PersistentVolumeClaimSpecFluent that = (V1PersistentVolumeClaimSpecFluent) o; + V1PersistentVolumeClaimSpecFluent that = (V1PersistentVolumeClaimSpecFluent) o; if (!(Objects.equals(accessModes, that.accessModes))) { return false; } @@ -308,7 +310,7 @@ public A removeFromAccessModes(String... items) { public A setToAccessModes(int index,String item) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } this.accessModes.set(index, item); return (A) this; @@ -367,7 +369,7 @@ public String toString() { public A withAccessModes(List accessModes) { if (accessModes != null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); for (String item : accessModes) { this.addToAccessModes(item); } @@ -396,8 +398,8 @@ public A withDataSource(V1TypedLocalObjectReference dataSource) { this.dataSource = new V1TypedLocalObjectReferenceBuilder(dataSource); this._visitables.get("dataSource").add(this.dataSource); } else { - this.dataSource = null; this._visitables.get("dataSource").remove(this.dataSource); + this.dataSource = null; } return (A) this; } @@ -408,42 +410,42 @@ public A withDataSourceRef(V1TypedObjectReference dataSourceRef) { this.dataSourceRef = new V1TypedObjectReferenceBuilder(dataSourceRef); this._visitables.get("dataSourceRef").add(this.dataSourceRef); } else { - this.dataSourceRef = null; this._visitables.get("dataSourceRef").remove(this.dataSourceRef); + this.dataSourceRef = null; } return (A) this; } public DataSourceNested withNewDataSource() { - return new DataSourceNested(null); + return new DataSourceNested<>(null); } public DataSourceNested withNewDataSourceLike(V1TypedLocalObjectReference item) { - return new DataSourceNested(item); + return new DataSourceNested<>(item); } public DataSourceRefNested withNewDataSourceRef() { - return new DataSourceRefNested(null); + return new DataSourceRefNested<>(null); } public DataSourceRefNested withNewDataSourceRefLike(V1TypedObjectReference item) { - return new DataSourceRefNested(item); + return new DataSourceRefNested<>(item); } public ResourcesNested withNewResources() { - return new ResourcesNested(null); + return new ResourcesNested<>(null); } public ResourcesNested withNewResourcesLike(V1VolumeResourceRequirements item) { - return new ResourcesNested(item); + return new ResourcesNested<>(item); } public SelectorNested withNewSelector() { - return new SelectorNested(null); + return new SelectorNested<>(null); } public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + return new SelectorNested<>(item); } public A withResources(V1VolumeResourceRequirements resources) { @@ -452,8 +454,8 @@ public A withResources(V1VolumeResourceRequirements resources) { this.resources = new V1VolumeResourceRequirementsBuilder(resources); this._visitables.get("resources").add(this.resources); } else { - this.resources = null; this._visitables.get("resources").remove(this.resources); + this.resources = null; } return (A) this; } @@ -464,8 +466,8 @@ public A withSelector(V1LabelSelector selector) { this.selector = new V1LabelSelectorBuilder(selector); this._visitables.get("selector").add(this.selector); } else { - this.selector = null; this._visitables.get("selector").remove(this.selector); + this.selector = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java index 6734398be4..7da1f6cebe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PersistentVolumeClaimStatusBuilder extends V1PersistentVolumeClaimStatusFluent implements VisitableBuilder{ V1PersistentVolumeClaimStatusFluent fluent; @@ -44,6 +45,7 @@ public V1PersistentVolumeClaimStatus build() { buildable.setCapacity(fluent.getCapacity()); buildable.setConditions(fluent.buildConditions()); buildable.setCurrentVolumeAttributesClassName(fluent.getCurrentVolumeAttributesClassName()); + buildable.setHealthStatus(fluent.buildHealthStatus()); buildable.setModifyVolumeStatus(fluent.buildModifyVolumeStatus()); buildable.setPhase(fluent.getPhase()); return buildable; 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 427c292b48..120be7b35c 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 @@ -29,12 +29,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PersistentVolumeClaimStatusFluent> extends BaseFluent{ private List accessModes; private Map allocatedResourceStatuses; @@ -42,6 +44,7 @@ public class V1PersistentVolumeClaimStatusFluent capacity; private ArrayList conditions; private String currentVolumeAttributesClassName; + private V1VolumeHealthStatusBuilder healthStatus; private V1ModifyVolumeStatusBuilder modifyVolumeStatus; private String phase; @@ -54,7 +57,7 @@ public V1PersistentVolumeClaimStatusFluent(V1PersistentVolumeClaimStatus instanc public A addAllToAccessModes(Collection items) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } for (String item : items) { this.accessModes.add(item); @@ -64,7 +67,7 @@ public A addAllToAccessModes(Collection items) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1PersistentVolumeClaimCondition item : items) { V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); @@ -75,16 +78,16 @@ public A addAllToConditions(Collection items) } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1PersistentVolumeClaimCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToAccessModes(String... items) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } for (String item : items) { this.accessModes.add(item); @@ -94,7 +97,7 @@ public A addToAccessModes(String... items) { public A addToAccessModes(int index,String item) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } this.accessModes.add(index, item); return (A) this; @@ -102,7 +105,7 @@ public A addToAccessModes(int index,String item) { public A addToAllocatedResourceStatuses(Map map) { if (this.allocatedResourceStatuses == null && map != null) { - this.allocatedResourceStatuses = new LinkedHashMap(); + this.allocatedResourceStatuses = new LinkedHashMap<>(); } if (map != null) { this.allocatedResourceStatuses.putAll(map); @@ -112,7 +115,7 @@ public A addToAllocatedResourceStatuses(Map map) { public A addToAllocatedResourceStatuses(String key,String value) { if (this.allocatedResourceStatuses == null && key != null && value != null) { - this.allocatedResourceStatuses = new LinkedHashMap(); + this.allocatedResourceStatuses = new LinkedHashMap<>(); } if (key != null && value != null) { this.allocatedResourceStatuses.put(key, value); @@ -122,7 +125,7 @@ public A addToAllocatedResourceStatuses(String key,String value) { public A addToAllocatedResources(Map map) { if (this.allocatedResources == null && map != null) { - this.allocatedResources = new LinkedHashMap(); + this.allocatedResources = new LinkedHashMap<>(); } if (map != null) { this.allocatedResources.putAll(map); @@ -132,7 +135,7 @@ public A addToAllocatedResources(Map map) { public A addToAllocatedResources(String key,Quantity value) { if (this.allocatedResources == null && key != null && value != null) { - this.allocatedResources = new LinkedHashMap(); + this.allocatedResources = new LinkedHashMap<>(); } if (key != null && value != null) { this.allocatedResources.put(key, value); @@ -142,7 +145,7 @@ public A addToAllocatedResources(String key,Quantity value) { public A addToCapacity(Map map) { if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); + this.capacity = new LinkedHashMap<>(); } if (map != null) { this.capacity.putAll(map); @@ -152,7 +155,7 @@ public A addToCapacity(Map map) { public A addToCapacity(String key,Quantity value) { if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); + this.capacity = new LinkedHashMap<>(); } if (key != null && value != null) { this.capacity.put(key, value); @@ -162,7 +165,7 @@ public A addToCapacity(String key,Quantity value) { public A addToConditions(V1PersistentVolumeClaimCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1PersistentVolumeClaimCondition item : items) { V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); @@ -174,7 +177,7 @@ public A addToConditions(V1PersistentVolumeClaimCondition... items) { public A addToConditions(int index,V1PersistentVolumeClaimCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -199,6 +202,10 @@ public V1PersistentVolumeClaimCondition buildFirstCondition() { return this.conditions.get(0).build(); } + public V1VolumeHealthStatus buildHealthStatus() { + return this.healthStatus != null ? this.healthStatus.build() : null; + } + public V1PersistentVolumeClaimCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } @@ -225,6 +232,7 @@ protected void copyInstance(V1PersistentVolumeClaimStatus instance) { this.withCapacity(instance.getCapacity()); this.withConditions(instance.getConditions()); this.withCurrentVolumeAttributesClassName(instance.getCurrentVolumeAttributesClassName()); + this.withHealthStatus(instance.getHealthStatus()); this.withModifyVolumeStatus(instance.getModifyVolumeStatus()); this.withPhase(instance.getPhase()); } @@ -244,6 +252,10 @@ public ConditionsNested editFirstCondition() { return this.setNewConditionLike(0, this.buildCondition(0)); } + public HealthStatusNested editHealthStatus() { + return this.withNewHealthStatusLike(Optional.ofNullable(this.buildHealthStatus()).orElse(null)); + } + public ConditionsNested editLastCondition() { int index = conditions.size() - 1; if (index < 0) { @@ -270,6 +282,14 @@ public ModifyVolumeStatusNested editModifyVolumeStatus() { return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(null)); } + public HealthStatusNested editOrNewHealthStatus() { + return this.withNewHealthStatusLike(Optional.ofNullable(this.buildHealthStatus()).orElse(new V1VolumeHealthStatusBuilder().build())); + } + + public HealthStatusNested editOrNewHealthStatusLike(V1VolumeHealthStatus item) { + return this.withNewHealthStatusLike(Optional.ofNullable(this.buildHealthStatus()).orElse(item)); + } + public ModifyVolumeStatusNested editOrNewModifyVolumeStatus() { return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(new V1ModifyVolumeStatusBuilder().build())); } @@ -288,7 +308,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PersistentVolumeClaimStatusFluent that = (V1PersistentVolumeClaimStatusFluent) o; + V1PersistentVolumeClaimStatusFluent that = (V1PersistentVolumeClaimStatusFluent) o; if (!(Objects.equals(accessModes, that.accessModes))) { return false; } @@ -307,6 +327,9 @@ public boolean equals(Object o) { if (!(Objects.equals(currentVolumeAttributesClassName, that.currentVolumeAttributesClassName))) { return false; } + if (!(Objects.equals(healthStatus, that.healthStatus))) { + return false; + } if (!(Objects.equals(modifyVolumeStatus, that.modifyVolumeStatus))) { return false; } @@ -385,6 +408,10 @@ public boolean hasCurrentVolumeAttributesClassName() { return this.currentVolumeAttributesClassName != null; } + public boolean hasHealthStatus() { + return this.healthStatus != null; + } + public boolean hasMatchingAccessMode(Predicate predicate) { for (String item : accessModes) { if (predicate.test(item)) { @@ -412,7 +439,7 @@ public boolean hasPhase() { } public int hashCode() { - return Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, currentVolumeAttributesClassName, modifyVolumeStatus, phase); + return Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, currentVolumeAttributesClassName, healthStatus, modifyVolumeStatus, phase); } public A removeAllFromAccessModes(Collection items) { @@ -536,6 +563,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1PersistentVolumeClaimConditionBuilder builder = each.next(); @@ -548,12 +576,12 @@ public A removeMatchingFromConditions(Predicate setNewConditionLike(int index,V1PersistentVolumeClaimCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToAccessModes(int index,String item) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } this.accessModes.set(index, item); return (A) this; @@ -561,7 +589,7 @@ public A setToAccessModes(int index,String item) { public A setToConditions(int index,V1PersistentVolumeClaimCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -607,6 +635,11 @@ public String toString() { sb.append(currentVolumeAttributesClassName); sb.append(","); } + if (!(healthStatus == null)) { + sb.append("healthStatus:"); + sb.append(healthStatus); + sb.append(","); + } if (!(modifyVolumeStatus == null)) { sb.append("modifyVolumeStatus:"); sb.append(modifyVolumeStatus); @@ -622,7 +655,7 @@ public String toString() { public A withAccessModes(List accessModes) { if (accessModes != null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); for (String item : accessModes) { this.addToAccessModes(item); } @@ -649,7 +682,7 @@ public A withAllocatedResourceStatuses(Map allocatedResource if (allocatedResourceStatuses == null) { this.allocatedResourceStatuses = null; } else { - this.allocatedResourceStatuses = new LinkedHashMap(allocatedResourceStatuses); + this.allocatedResourceStatuses = new LinkedHashMap<>(allocatedResourceStatuses); } return (A) this; } @@ -658,7 +691,7 @@ public A withAllocatedResources(Map allocatedResources) { if (allocatedResources == null) { this.allocatedResources = null; } else { - this.allocatedResources = new LinkedHashMap(allocatedResources); + this.allocatedResources = new LinkedHashMap<>(allocatedResources); } return (A) this; } @@ -667,7 +700,7 @@ public A withCapacity(Map capacity) { if (capacity == null) { this.capacity = null; } else { - this.capacity = new LinkedHashMap(capacity); + this.capacity = new LinkedHashMap<>(capacity); } return (A) this; } @@ -677,7 +710,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1PersistentVolumeClaimCondition item : conditions) { this.addToConditions(item); } @@ -705,24 +738,44 @@ public A withCurrentVolumeAttributesClassName(String currentVolumeAttributesClas return (A) this; } + public A withHealthStatus(V1VolumeHealthStatus healthStatus) { + this._visitables.remove("healthStatus"); + if (healthStatus != null) { + this.healthStatus = new V1VolumeHealthStatusBuilder(healthStatus); + this._visitables.get("healthStatus").add(this.healthStatus); + } else { + this._visitables.get("healthStatus").remove(this.healthStatus); + this.healthStatus = null; + } + return (A) this; + } + public A withModifyVolumeStatus(V1ModifyVolumeStatus modifyVolumeStatus) { this._visitables.remove("modifyVolumeStatus"); if (modifyVolumeStatus != null) { this.modifyVolumeStatus = new V1ModifyVolumeStatusBuilder(modifyVolumeStatus); this._visitables.get("modifyVolumeStatus").add(this.modifyVolumeStatus); } else { - this.modifyVolumeStatus = null; this._visitables.get("modifyVolumeStatus").remove(this.modifyVolumeStatus); + this.modifyVolumeStatus = null; } return (A) this; } + public HealthStatusNested withNewHealthStatus() { + return new HealthStatusNested<>(null); + } + + public HealthStatusNested withNewHealthStatusLike(V1VolumeHealthStatus item) { + return new HealthStatusNested<>(item); + } + public ModifyVolumeStatusNested withNewModifyVolumeStatus() { - return new ModifyVolumeStatusNested(null); + return new ModifyVolumeStatusNested<>(null); } public ModifyVolumeStatusNested withNewModifyVolumeStatusLike(V1ModifyVolumeStatus item) { - return new ModifyVolumeStatusNested(item); + return new ModifyVolumeStatusNested<>(item); } public A withPhase(String phase) { @@ -747,6 +800,23 @@ public N endCondition() { return and(); } + } + public class HealthStatusNested extends V1VolumeHealthStatusFluent> implements Nested{ + + V1VolumeHealthStatusBuilder builder; + + HealthStatusNested(V1VolumeHealthStatus item) { + this.builder = new V1VolumeHealthStatusBuilder(this, item); + } + + public N and() { + return (N) V1PersistentVolumeClaimStatusFluent.this.withHealthStatus(builder.build()); + } + + public N endHealthStatus() { + return and(); + } + } public class ModifyVolumeStatusNested extends V1ModifyVolumeStatusFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java index 12f0ae9a26..73b1f93a0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PersistentVolumeClaimTemplateBuilder extends V1PersistentVolumeClaimTemplateFluent implements VisitableBuilder{ V1PersistentVolumeClaimTemplateFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java index 3c798bf661..6d1a04af0e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimTemplateFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PersistentVolumeClaimTemplateFluent> extends BaseFluent{ private V1ObjectMetaBuilder metadata; private V1PersistentVolumeClaimSpecBuilder spec; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PersistentVolumeClaimTemplateFluent that = (V1PersistentVolumeClaimTemplateFluent) o; + V1PersistentVolumeClaimTemplateFluent that = (V1PersistentVolumeClaimTemplateFluent) o; if (!(Objects.equals(metadata, that.metadata))) { return false; } @@ -131,26 +133,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1PersistentVolumeClaimSpec spec) { @@ -159,8 +161,8 @@ public A withSpec(V1PersistentVolumeClaimSpec spec) { this.spec = new V1PersistentVolumeClaimSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java index 4efde3ec02..7920ffec70 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PersistentVolumeClaimVolumeSourceBuilder extends V1PersistentVolumeClaimVolumeSourceFluent implements VisitableBuilder{ V1PersistentVolumeClaimVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java index 5ef171e929..3159364e5b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PersistentVolumeClaimVolumeSourceFluent> extends BaseFluent{ private String claimName; private Boolean readOnly; @@ -54,7 +56,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PersistentVolumeClaimVolumeSourceFluent that = (V1PersistentVolumeClaimVolumeSourceFluent) o; + V1PersistentVolumeClaimVolumeSourceFluent that = (V1PersistentVolumeClaimVolumeSourceFluent) o; if (!(Objects.equals(claimName, that.claimName))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java index ffd3d09537..481632d949 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PersistentVolumeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PersistentVolumeFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PersistentVolumeFluent that = (V1PersistentVolumeFluent) o; + V1PersistentVolumeFluent that = (V1PersistentVolumeFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1PersistentVolumeSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1PersistentVolumeStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1PersistentVolumeSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1PersistentVolumeSpec spec) { this.spec = new V1PersistentVolumeSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1PersistentVolumeStatus status) { this.status = new V1PersistentVolumeStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java index 792789efc9..26e6529afd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PersistentVolumeListBuilder extends V1PersistentVolumeListFluent implements VisitableBuilder{ V1PersistentVolumeListFluent fluent; 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 aa02cca0de..9e934814fb 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PersistentVolumeListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PersistentVolumeListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1PersistentVolumeListFluent(V1PersistentVolumeList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1PersistentVolume item : items) { V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1PersistentVolume item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1PersistentVolume... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1PersistentVolume item : items) { V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1PersistentVolume... items) { public A addToItems(int index,V1PersistentVolume item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PersistentVolumeListFluent that = (V1PersistentVolumeListFluent) o; + V1PersistentVolumeListFluent that = (V1PersistentVolumeListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PersistentVolumeBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) } public ItemsNested setNewItemLike(int index,V1PersistentVolume item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1PersistentVolume item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1PersistentVolume item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1PersistentVolumeFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java index 2d68cf3476..dcf30ae524 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PersistentVolumeSpecBuilder extends V1PersistentVolumeSpecFluent implements VisitableBuilder{ V1PersistentVolumeSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java index f3faaf3755..4a7d6f9c04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PersistentVolumeSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PersistentVolumeSpecFluent> extends BaseFluent{ private List accessModes; private V1AWSElasticBlockStoreVolumeSourceBuilder awsElasticBlockStore; @@ -75,7 +77,7 @@ public V1PersistentVolumeSpecFluent(V1PersistentVolumeSpec instance) { public A addAllToAccessModes(Collection items) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } for (String item : items) { this.accessModes.add(item); @@ -85,7 +87,7 @@ public A addAllToAccessModes(Collection items) { public A addAllToMountOptions(Collection items) { if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); + this.mountOptions = new ArrayList<>(); } for (String item : items) { this.mountOptions.add(item); @@ -95,7 +97,7 @@ public A addAllToMountOptions(Collection items) { public A addToAccessModes(String... items) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } for (String item : items) { this.accessModes.add(item); @@ -105,7 +107,7 @@ public A addToAccessModes(String... items) { public A addToAccessModes(int index,String item) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } this.accessModes.add(index, item); return (A) this; @@ -113,7 +115,7 @@ public A addToAccessModes(int index,String item) { public A addToCapacity(Map map) { if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); + this.capacity = new LinkedHashMap<>(); } if (map != null) { this.capacity.putAll(map); @@ -123,7 +125,7 @@ public A addToCapacity(Map map) { public A addToCapacity(String key,Quantity value) { if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); + this.capacity = new LinkedHashMap<>(); } if (key != null && value != null) { this.capacity.put(key, value); @@ -133,7 +135,7 @@ public A addToCapacity(String key,Quantity value) { public A addToMountOptions(String... items) { if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); + this.mountOptions = new ArrayList<>(); } for (String item : items) { this.mountOptions.add(item); @@ -143,7 +145,7 @@ public A addToMountOptions(String... items) { public A addToMountOptions(int index,String item) { if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); + this.mountOptions = new ArrayList<>(); } this.mountOptions.add(index, item); return (A) this; @@ -580,7 +582,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PersistentVolumeSpecFluent that = (V1PersistentVolumeSpecFluent) o; + V1PersistentVolumeSpecFluent that = (V1PersistentVolumeSpecFluent) o; if (!(Objects.equals(accessModes, that.accessModes))) { return false; } @@ -959,7 +961,7 @@ public A removeFromMountOptions(String... items) { public A setToAccessModes(int index,String item) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } this.accessModes.set(index, item); return (A) this; @@ -967,7 +969,7 @@ public A setToAccessModes(int index,String item) { public A setToMountOptions(int index,String item) { if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); + this.mountOptions = new ArrayList<>(); } this.mountOptions.set(index, item); return (A) this; @@ -1136,7 +1138,7 @@ public String toString() { public A withAccessModes(List accessModes) { if (accessModes != null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); for (String item : accessModes) { this.addToAccessModes(item); } @@ -1165,8 +1167,8 @@ public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticB this.awsElasticBlockStore = new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); this._visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); } else { - this.awsElasticBlockStore = null; this._visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); + this.awsElasticBlockStore = null; } return (A) this; } @@ -1177,8 +1179,8 @@ public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); this._visitables.get("azureDisk").add(this.azureDisk); } else { - this.azureDisk = null; this._visitables.get("azureDisk").remove(this.azureDisk); + this.azureDisk = null; } return (A) this; } @@ -1189,8 +1191,8 @@ public A withAzureFile(V1AzureFilePersistentVolumeSource azureFile) { this.azureFile = new V1AzureFilePersistentVolumeSourceBuilder(azureFile); this._visitables.get("azureFile").add(this.azureFile); } else { - this.azureFile = null; this._visitables.get("azureFile").remove(this.azureFile); + this.azureFile = null; } return (A) this; } @@ -1199,7 +1201,7 @@ public A withCapacity(Map capacity) { if (capacity == null) { this.capacity = null; } else { - this.capacity = new LinkedHashMap(capacity); + this.capacity = new LinkedHashMap<>(capacity); } return (A) this; } @@ -1210,8 +1212,8 @@ public A withCephfs(V1CephFSPersistentVolumeSource cephfs) { this.cephfs = new V1CephFSPersistentVolumeSourceBuilder(cephfs); this._visitables.get("cephfs").add(this.cephfs); } else { - this.cephfs = null; this._visitables.get("cephfs").remove(this.cephfs); + this.cephfs = null; } return (A) this; } @@ -1222,8 +1224,8 @@ public A withCinder(V1CinderPersistentVolumeSource cinder) { this.cinder = new V1CinderPersistentVolumeSourceBuilder(cinder); this._visitables.get("cinder").add(this.cinder); } else { - this.cinder = null; this._visitables.get("cinder").remove(this.cinder); + this.cinder = null; } return (A) this; } @@ -1234,8 +1236,8 @@ public A withClaimRef(V1ObjectReference claimRef) { this.claimRef = new V1ObjectReferenceBuilder(claimRef); this._visitables.get("claimRef").add(this.claimRef); } else { - this.claimRef = null; this._visitables.get("claimRef").remove(this.claimRef); + this.claimRef = null; } return (A) this; } @@ -1246,8 +1248,8 @@ public A withCsi(V1CSIPersistentVolumeSource csi) { this.csi = new V1CSIPersistentVolumeSourceBuilder(csi); this._visitables.get("csi").add(this.csi); } else { - this.csi = null; this._visitables.get("csi").remove(this.csi); + this.csi = null; } return (A) this; } @@ -1258,8 +1260,8 @@ public A withFc(V1FCVolumeSource fc) { this.fc = new V1FCVolumeSourceBuilder(fc); this._visitables.get("fc").add(this.fc); } else { - this.fc = null; this._visitables.get("fc").remove(this.fc); + this.fc = null; } return (A) this; } @@ -1270,8 +1272,8 @@ public A withFlexVolume(V1FlexPersistentVolumeSource flexVolume) { this.flexVolume = new V1FlexPersistentVolumeSourceBuilder(flexVolume); this._visitables.get("flexVolume").add(this.flexVolume); } else { - this.flexVolume = null; this._visitables.get("flexVolume").remove(this.flexVolume); + this.flexVolume = null; } return (A) this; } @@ -1282,8 +1284,8 @@ public A withFlocker(V1FlockerVolumeSource flocker) { this.flocker = new V1FlockerVolumeSourceBuilder(flocker); this._visitables.get("flocker").add(this.flocker); } else { - this.flocker = null; this._visitables.get("flocker").remove(this.flocker); + this.flocker = null; } return (A) this; } @@ -1294,8 +1296,8 @@ public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); this._visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); } else { - this.gcePersistentDisk = null; this._visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); + this.gcePersistentDisk = null; } return (A) this; } @@ -1306,8 +1308,8 @@ public A withGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs) { this.glusterfs = new V1GlusterfsPersistentVolumeSourceBuilder(glusterfs); this._visitables.get("glusterfs").add(this.glusterfs); } else { - this.glusterfs = null; this._visitables.get("glusterfs").remove(this.glusterfs); + this.glusterfs = null; } return (A) this; } @@ -1318,8 +1320,8 @@ public A withHostPath(V1HostPathVolumeSource hostPath) { this.hostPath = new V1HostPathVolumeSourceBuilder(hostPath); this._visitables.get("hostPath").add(this.hostPath); } else { - this.hostPath = null; this._visitables.get("hostPath").remove(this.hostPath); + this.hostPath = null; } return (A) this; } @@ -1330,8 +1332,8 @@ public A withIscsi(V1ISCSIPersistentVolumeSource iscsi) { this.iscsi = new V1ISCSIPersistentVolumeSourceBuilder(iscsi); this._visitables.get("iscsi").add(this.iscsi); } else { - this.iscsi = null; this._visitables.get("iscsi").remove(this.iscsi); + this.iscsi = null; } return (A) this; } @@ -1342,15 +1344,15 @@ public A withLocal(V1LocalVolumeSource local) { this.local = new V1LocalVolumeSourceBuilder(local); this._visitables.get("local").add(this.local); } else { - this.local = null; this._visitables.get("local").remove(this.local); + this.local = null; } return (A) this; } public A withMountOptions(List mountOptions) { if (mountOptions != null) { - this.mountOptions = new ArrayList(); + this.mountOptions = new ArrayList<>(); for (String item : mountOptions) { this.addToMountOptions(item); } @@ -1374,195 +1376,195 @@ public A withMountOptions(String... mountOptions) { } public AwsElasticBlockStoreNested withNewAwsElasticBlockStore() { - return new AwsElasticBlockStoreNested(null); + return new AwsElasticBlockStoreNested<>(null); } public AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { - return new AwsElasticBlockStoreNested(item); + return new AwsElasticBlockStoreNested<>(item); } public AzureDiskNested withNewAzureDisk() { - return new AzureDiskNested(null); + return new AzureDiskNested<>(null); } public AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { - return new AzureDiskNested(item); + return new AzureDiskNested<>(item); } public AzureFileNested withNewAzureFile() { - return new AzureFileNested(null); + return new AzureFileNested<>(null); } public AzureFileNested withNewAzureFileLike(V1AzureFilePersistentVolumeSource item) { - return new AzureFileNested(item); + return new AzureFileNested<>(item); } public CephfsNested withNewCephfs() { - return new CephfsNested(null); + return new CephfsNested<>(null); } public CephfsNested withNewCephfsLike(V1CephFSPersistentVolumeSource item) { - return new CephfsNested(item); + return new CephfsNested<>(item); } public CinderNested withNewCinder() { - return new CinderNested(null); + return new CinderNested<>(null); } public CinderNested withNewCinderLike(V1CinderPersistentVolumeSource item) { - return new CinderNested(item); + return new CinderNested<>(item); } public ClaimRefNested withNewClaimRef() { - return new ClaimRefNested(null); + return new ClaimRefNested<>(null); } public ClaimRefNested withNewClaimRefLike(V1ObjectReference item) { - return new ClaimRefNested(item); + return new ClaimRefNested<>(item); } public CsiNested withNewCsi() { - return new CsiNested(null); + return new CsiNested<>(null); } public CsiNested withNewCsiLike(V1CSIPersistentVolumeSource item) { - return new CsiNested(item); + return new CsiNested<>(item); } public FcNested withNewFc() { - return new FcNested(null); + return new FcNested<>(null); } public FcNested withNewFcLike(V1FCVolumeSource item) { - return new FcNested(item); + return new FcNested<>(item); } public FlexVolumeNested withNewFlexVolume() { - return new FlexVolumeNested(null); + return new FlexVolumeNested<>(null); } public FlexVolumeNested withNewFlexVolumeLike(V1FlexPersistentVolumeSource item) { - return new FlexVolumeNested(item); + return new FlexVolumeNested<>(item); } public FlockerNested withNewFlocker() { - return new FlockerNested(null); + return new FlockerNested<>(null); } public FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { - return new FlockerNested(item); + return new FlockerNested<>(item); } public GcePersistentDiskNested withNewGcePersistentDisk() { - return new GcePersistentDiskNested(null); + return new GcePersistentDiskNested<>(null); } public GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { - return new GcePersistentDiskNested(item); + return new GcePersistentDiskNested<>(item); } public GlusterfsNested withNewGlusterfs() { - return new GlusterfsNested(null); + return new GlusterfsNested<>(null); } public GlusterfsNested withNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) { - return new GlusterfsNested(item); + return new GlusterfsNested<>(item); } public HostPathNested withNewHostPath() { - return new HostPathNested(null); + return new HostPathNested<>(null); } public HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { - return new HostPathNested(item); + return new HostPathNested<>(item); } public IscsiNested withNewIscsi() { - return new IscsiNested(null); + return new IscsiNested<>(null); } public IscsiNested withNewIscsiLike(V1ISCSIPersistentVolumeSource item) { - return new IscsiNested(item); + return new IscsiNested<>(item); } public LocalNested withNewLocal() { - return new LocalNested(null); + return new LocalNested<>(null); } public LocalNested withNewLocalLike(V1LocalVolumeSource item) { - return new LocalNested(item); + return new LocalNested<>(item); } public NfsNested withNewNfs() { - return new NfsNested(null); + return new NfsNested<>(null); } public NfsNested withNewNfsLike(V1NFSVolumeSource item) { - return new NfsNested(item); + return new NfsNested<>(item); } public NodeAffinityNested withNewNodeAffinity() { - return new NodeAffinityNested(null); + return new NodeAffinityNested<>(null); } public NodeAffinityNested withNewNodeAffinityLike(V1VolumeNodeAffinity item) { - return new NodeAffinityNested(item); + return new NodeAffinityNested<>(item); } public PhotonPersistentDiskNested withNewPhotonPersistentDisk() { - return new PhotonPersistentDiskNested(null); + return new PhotonPersistentDiskNested<>(null); } public PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { - return new PhotonPersistentDiskNested(item); + return new PhotonPersistentDiskNested<>(item); } public PortworxVolumeNested withNewPortworxVolume() { - return new PortworxVolumeNested(null); + return new PortworxVolumeNested<>(null); } public PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item) { - return new PortworxVolumeNested(item); + return new PortworxVolumeNested<>(item); } public QuobyteNested withNewQuobyte() { - return new QuobyteNested(null); + return new QuobyteNested<>(null); } public QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { - return new QuobyteNested(item); + return new QuobyteNested<>(item); } public RbdNested withNewRbd() { - return new RbdNested(null); + return new RbdNested<>(null); } public RbdNested withNewRbdLike(V1RBDPersistentVolumeSource item) { - return new RbdNested(item); + return new RbdNested<>(item); } public ScaleIONested withNewScaleIO() { - return new ScaleIONested(null); + return new ScaleIONested<>(null); } public ScaleIONested withNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) { - return new ScaleIONested(item); + return new ScaleIONested<>(item); } public StorageosNested withNewStorageos() { - return new StorageosNested(null); + return new StorageosNested<>(null); } public StorageosNested withNewStorageosLike(V1StorageOSPersistentVolumeSource item) { - return new StorageosNested(item); + return new StorageosNested<>(item); } public VsphereVolumeNested withNewVsphereVolume() { - return new VsphereVolumeNested(null); + return new VsphereVolumeNested<>(null); } public VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { - return new VsphereVolumeNested(item); + return new VsphereVolumeNested<>(item); } public A withNfs(V1NFSVolumeSource nfs) { @@ -1571,8 +1573,8 @@ public A withNfs(V1NFSVolumeSource nfs) { this.nfs = new V1NFSVolumeSourceBuilder(nfs); this._visitables.get("nfs").add(this.nfs); } else { - this.nfs = null; this._visitables.get("nfs").remove(this.nfs); + this.nfs = null; } return (A) this; } @@ -1583,8 +1585,8 @@ public A withNodeAffinity(V1VolumeNodeAffinity nodeAffinity) { this.nodeAffinity = new V1VolumeNodeAffinityBuilder(nodeAffinity); this._visitables.get("nodeAffinity").add(this.nodeAffinity); } else { - this.nodeAffinity = null; this._visitables.get("nodeAffinity").remove(this.nodeAffinity); + this.nodeAffinity = null; } return (A) this; } @@ -1600,8 +1602,8 @@ public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersi this.photonPersistentDisk = new V1PhotonPersistentDiskVolumeSourceBuilder(photonPersistentDisk); this._visitables.get("photonPersistentDisk").add(this.photonPersistentDisk); } else { - this.photonPersistentDisk = null; this._visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); + this.photonPersistentDisk = null; } return (A) this; } @@ -1612,8 +1614,8 @@ public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { this.portworxVolume = new V1PortworxVolumeSourceBuilder(portworxVolume); this._visitables.get("portworxVolume").add(this.portworxVolume); } else { - this.portworxVolume = null; this._visitables.get("portworxVolume").remove(this.portworxVolume); + this.portworxVolume = null; } return (A) this; } @@ -1624,8 +1626,8 @@ public A withQuobyte(V1QuobyteVolumeSource quobyte) { this.quobyte = new V1QuobyteVolumeSourceBuilder(quobyte); this._visitables.get("quobyte").add(this.quobyte); } else { - this.quobyte = null; this._visitables.get("quobyte").remove(this.quobyte); + this.quobyte = null; } return (A) this; } @@ -1636,8 +1638,8 @@ public A withRbd(V1RBDPersistentVolumeSource rbd) { this.rbd = new V1RBDPersistentVolumeSourceBuilder(rbd); this._visitables.get("rbd").add(this.rbd); } else { - this.rbd = null; this._visitables.get("rbd").remove(this.rbd); + this.rbd = null; } return (A) this; } @@ -1648,8 +1650,8 @@ public A withScaleIO(V1ScaleIOPersistentVolumeSource scaleIO) { this.scaleIO = new V1ScaleIOPersistentVolumeSourceBuilder(scaleIO); this._visitables.get("scaleIO").add(this.scaleIO); } else { - this.scaleIO = null; this._visitables.get("scaleIO").remove(this.scaleIO); + this.scaleIO = null; } return (A) this; } @@ -1665,8 +1667,8 @@ public A withStorageos(V1StorageOSPersistentVolumeSource storageos) { this.storageos = new V1StorageOSPersistentVolumeSourceBuilder(storageos); this._visitables.get("storageos").add(this.storageos); } else { - this.storageos = null; this._visitables.get("storageos").remove(this.storageos); + this.storageos = null; } return (A) this; } @@ -1687,8 +1689,8 @@ public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { this.vsphereVolume = new V1VsphereVirtualDiskVolumeSourceBuilder(vsphereVolume); this._visitables.get("vsphereVolume").add(this.vsphereVolume); } else { - this.vsphereVolume = null; this._visitables.get("vsphereVolume").remove(this.vsphereVolume); + this.vsphereVolume = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java index 5474d2f901..fc679ed64d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PersistentVolumeStatusBuilder extends V1PersistentVolumeStatusFluent implements VisitableBuilder{ V1PersistentVolumeStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java index 930c924711..97070f8e49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PersistentVolumeStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PersistentVolumeStatusFluent> extends BaseFluent{ private OffsetDateTime lastPhaseTransitionTime; private String message; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PersistentVolumeStatusFluent that = (V1PersistentVolumeStatusFluent) o; + V1PersistentVolumeStatusFluent that = (V1PersistentVolumeStatusFluent) o; if (!(Objects.equals(lastPhaseTransitionTime, that.lastPhaseTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java index 23a1bf74fd..cd139ebc63 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PhotonPersistentDiskVolumeSourceBuilder extends V1PhotonPersistentDiskVolumeSourceFluent implements VisitableBuilder{ V1PhotonPersistentDiskVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java index 11784773ac..f99421fe32 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PhotonPersistentDiskVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PhotonPersistentDiskVolumeSourceFluent> extends BaseFluent{ private String fsType; private String pdID; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PhotonPersistentDiskVolumeSourceFluent that = (V1PhotonPersistentDiskVolumeSourceFluent) o; + V1PhotonPersistentDiskVolumeSourceFluent that = (V1PhotonPersistentDiskVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java index 82327a3b89..e87f95ced0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodAffinityBuilder extends V1PodAffinityFluent implements VisitableBuilder{ V1PodAffinityFluent fluent; 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 38f9383d26..97325d9e97 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodAffinityFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodAffinityFluent> extends BaseFluent{ private ArrayList preferredDuringSchedulingIgnoredDuringExecution; private ArrayList requiredDuringSchedulingIgnoredDuringExecution; @@ -44,7 +46,7 @@ public V1PodAffinityFluent(V1PodAffinity instance) { public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } for (V1WeightedPodAffinityTerm item : items) { V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); @@ -56,7 +58,7 @@ public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } for (V1PodAffinityTerm item : items) { V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); @@ -67,24 +69,24 @@ public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection addNewPreferredDuringSchedulingIgnoredDuringExecution() { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + return new PreferredDuringSchedulingIgnoredDuringExecutionNested<>(-1, null); } public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + return new PreferredDuringSchedulingIgnoredDuringExecutionNested<>(-1, item); } public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution() { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + return new RequiredDuringSchedulingIgnoredDuringExecutionNested<>(-1, null); } public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + return new RequiredDuringSchedulingIgnoredDuringExecutionNested<>(-1, item); } public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } for (V1WeightedPodAffinityTerm item : items) { V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); @@ -96,7 +98,7 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffin public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); if (index < 0 || index >= this.preferredDuringSchedulingIgnoredDuringExecution.size()) { @@ -111,7 +113,7 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1Weight public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } for (V1PodAffinityTerm item : items) { V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); @@ -123,7 +125,7 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm.. public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); if (index < 0 || index >= this.requiredDuringSchedulingIgnoredDuringExecution.size()) { @@ -276,7 +278,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodAffinityFluent that = (V1PodAffinityFluent) o; + V1PodAffinityFluent that = (V1PodAffinityFluent) o; if (!(Objects.equals(preferredDuringSchedulingIgnoredDuringExecution, that.preferredDuringSchedulingIgnoredDuringExecution))) { return false; } @@ -369,6 +371,7 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predi return (A) this; } Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1WeightedPodAffinityTermBuilder builder = each.next(); @@ -385,6 +388,7 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predic return (A) this; } Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1PodAffinityTermBuilder builder = each.next(); @@ -397,16 +401,16 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predic } public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1WeightedPodAffinityTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); + return new PreferredDuringSchedulingIgnoredDuringExecutionNested<>(index, item); } public RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PodAffinityTerm item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(index, item); + return new RequiredDuringSchedulingIgnoredDuringExecutionNested<>(index, item); } public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); if (index < 0 || index >= this.preferredDuringSchedulingIgnoredDuringExecution.size()) { @@ -421,7 +425,7 @@ public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1Weight public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); if (index < 0 || index >= this.requiredDuringSchedulingIgnoredDuringExecution.size()) { @@ -455,7 +459,7 @@ public A withPreferredDuringSchedulingIgnoredDuringExecution(List(); for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } @@ -483,7 +487,7 @@ public A withRequiredDuringSchedulingIgnoredDuringExecution(List(); for (V1PodAffinityTerm item : requiredDuringSchedulingIgnoredDuringExecution) { this.addToRequiredDuringSchedulingIgnoredDuringExecution(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java index 09bcce5e1d..01430cb933 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodAffinityTermBuilder extends V1PodAffinityTermFluent implements VisitableBuilder{ V1PodAffinityTermFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java index b3b1fe528b..e1e2c10567 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java @@ -24,12 +24,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodAffinityTermFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodAffinityTermFluent> extends BaseFluent{ private V1LabelSelectorBuilder labelSelector; private List matchLabelKeys; @@ -47,7 +49,7 @@ public V1PodAffinityTermFluent(V1PodAffinityTerm instance) { public A addAllToMatchLabelKeys(Collection items) { if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + this.matchLabelKeys = new ArrayList<>(); } for (String item : items) { this.matchLabelKeys.add(item); @@ -57,7 +59,7 @@ public A addAllToMatchLabelKeys(Collection items) { public A addAllToMismatchLabelKeys(Collection items) { if (this.mismatchLabelKeys == null) { - this.mismatchLabelKeys = new ArrayList(); + this.mismatchLabelKeys = new ArrayList<>(); } for (String item : items) { this.mismatchLabelKeys.add(item); @@ -67,7 +69,7 @@ public A addAllToMismatchLabelKeys(Collection items) { public A addAllToNamespaces(Collection items) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); } for (String item : items) { this.namespaces.add(item); @@ -77,7 +79,7 @@ public A addAllToNamespaces(Collection items) { public A addToMatchLabelKeys(String... items) { if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + this.matchLabelKeys = new ArrayList<>(); } for (String item : items) { this.matchLabelKeys.add(item); @@ -87,7 +89,7 @@ public A addToMatchLabelKeys(String... items) { public A addToMatchLabelKeys(int index,String item) { if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + this.matchLabelKeys = new ArrayList<>(); } this.matchLabelKeys.add(index, item); return (A) this; @@ -95,7 +97,7 @@ public A addToMatchLabelKeys(int index,String item) { public A addToMismatchLabelKeys(String... items) { if (this.mismatchLabelKeys == null) { - this.mismatchLabelKeys = new ArrayList(); + this.mismatchLabelKeys = new ArrayList<>(); } for (String item : items) { this.mismatchLabelKeys.add(item); @@ -105,7 +107,7 @@ public A addToMismatchLabelKeys(String... items) { public A addToMismatchLabelKeys(int index,String item) { if (this.mismatchLabelKeys == null) { - this.mismatchLabelKeys = new ArrayList(); + this.mismatchLabelKeys = new ArrayList<>(); } this.mismatchLabelKeys.add(index, item); return (A) this; @@ -113,7 +115,7 @@ public A addToMismatchLabelKeys(int index,String item) { public A addToNamespaces(String... items) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); } for (String item : items) { this.namespaces.add(item); @@ -123,7 +125,7 @@ public A addToNamespaces(String... items) { public A addToNamespaces(int index,String item) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); } this.namespaces.add(index, item); return (A) this; @@ -183,7 +185,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodAffinityTermFluent that = (V1PodAffinityTermFluent) o; + V1PodAffinityTermFluent that = (V1PodAffinityTermFluent) o; if (!(Objects.equals(labelSelector, that.labelSelector))) { return false; } @@ -401,7 +403,7 @@ public A removeFromNamespaces(String... items) { public A setToMatchLabelKeys(int index,String item) { if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + this.matchLabelKeys = new ArrayList<>(); } this.matchLabelKeys.set(index, item); return (A) this; @@ -409,7 +411,7 @@ public A setToMatchLabelKeys(int index,String item) { public A setToMismatchLabelKeys(int index,String item) { if (this.mismatchLabelKeys == null) { - this.mismatchLabelKeys = new ArrayList(); + this.mismatchLabelKeys = new ArrayList<>(); } this.mismatchLabelKeys.set(index, item); return (A) this; @@ -417,7 +419,7 @@ public A setToMismatchLabelKeys(int index,String item) { public A setToNamespaces(int index,String item) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); } this.namespaces.set(index, item); return (A) this; @@ -465,15 +467,15 @@ public A withLabelSelector(V1LabelSelector labelSelector) { this.labelSelector = new V1LabelSelectorBuilder(labelSelector); this._visitables.get("labelSelector").add(this.labelSelector); } else { - this.labelSelector = null; this._visitables.get("labelSelector").remove(this.labelSelector); + this.labelSelector = null; } return (A) this; } public A withMatchLabelKeys(List matchLabelKeys) { if (matchLabelKeys != null) { - this.matchLabelKeys = new ArrayList(); + this.matchLabelKeys = new ArrayList<>(); for (String item : matchLabelKeys) { this.addToMatchLabelKeys(item); } @@ -498,7 +500,7 @@ public A withMatchLabelKeys(String... matchLabelKeys) { public A withMismatchLabelKeys(List mismatchLabelKeys) { if (mismatchLabelKeys != null) { - this.mismatchLabelKeys = new ArrayList(); + this.mismatchLabelKeys = new ArrayList<>(); for (String item : mismatchLabelKeys) { this.addToMismatchLabelKeys(item); } @@ -527,15 +529,15 @@ public A withNamespaceSelector(V1LabelSelector namespaceSelector) { this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); this._visitables.get("namespaceSelector").add(this.namespaceSelector); } else { - this.namespaceSelector = null; this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + this.namespaceSelector = null; } return (A) this; } public A withNamespaces(List namespaces) { if (namespaces != null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); for (String item : namespaces) { this.addToNamespaces(item); } @@ -559,19 +561,19 @@ public A withNamespaces(String... namespaces) { } public LabelSelectorNested withNewLabelSelector() { - return new LabelSelectorNested(null); + return new LabelSelectorNested<>(null); } public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { - return new LabelSelectorNested(item); + return new LabelSelectorNested<>(item); } public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); + return new NamespaceSelectorNested<>(null); } public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); + return new NamespaceSelectorNested<>(item); } public A withTopologyKey(String topologyKey) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java index dd406b01d1..582464c01e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodAntiAffinityBuilder extends V1PodAntiAffinityFluent implements VisitableBuilder{ V1PodAntiAffinityFluent fluent; 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 cd05f8f22f..e259069fa8 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodAntiAffinityFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodAntiAffinityFluent> extends BaseFluent{ private ArrayList preferredDuringSchedulingIgnoredDuringExecution; private ArrayList requiredDuringSchedulingIgnoredDuringExecution; @@ -44,7 +46,7 @@ public V1PodAntiAffinityFluent(V1PodAntiAffinity instance) { public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } for (V1WeightedPodAffinityTerm item : items) { V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); @@ -56,7 +58,7 @@ public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } for (V1PodAffinityTerm item : items) { V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); @@ -67,24 +69,24 @@ public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection addNewPreferredDuringSchedulingIgnoredDuringExecution() { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + return new PreferredDuringSchedulingIgnoredDuringExecutionNested<>(-1, null); } public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + return new PreferredDuringSchedulingIgnoredDuringExecutionNested<>(-1, item); } public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution() { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + return new RequiredDuringSchedulingIgnoredDuringExecutionNested<>(-1, null); } public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + return new RequiredDuringSchedulingIgnoredDuringExecutionNested<>(-1, item); } public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } for (V1WeightedPodAffinityTerm item : items) { V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); @@ -96,7 +98,7 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffin public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); if (index < 0 || index >= this.preferredDuringSchedulingIgnoredDuringExecution.size()) { @@ -111,7 +113,7 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1Weight public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } for (V1PodAffinityTerm item : items) { V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); @@ -123,7 +125,7 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm.. public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); if (index < 0 || index >= this.requiredDuringSchedulingIgnoredDuringExecution.size()) { @@ -276,7 +278,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodAntiAffinityFluent that = (V1PodAntiAffinityFluent) o; + V1PodAntiAffinityFluent that = (V1PodAntiAffinityFluent) o; if (!(Objects.equals(preferredDuringSchedulingIgnoredDuringExecution, that.preferredDuringSchedulingIgnoredDuringExecution))) { return false; } @@ -369,6 +371,7 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predi return (A) this; } Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1WeightedPodAffinityTermBuilder builder = each.next(); @@ -385,6 +388,7 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predic return (A) this; } Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1PodAffinityTermBuilder builder = each.next(); @@ -397,16 +401,16 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predic } public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1WeightedPodAffinityTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); + return new PreferredDuringSchedulingIgnoredDuringExecutionNested<>(index, item); } public RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PodAffinityTerm item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(index, item); + return new RequiredDuringSchedulingIgnoredDuringExecutionNested<>(index, item); } public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); if (index < 0 || index >= this.preferredDuringSchedulingIgnoredDuringExecution.size()) { @@ -421,7 +425,7 @@ public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1Weight public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); if (index < 0 || index >= this.requiredDuringSchedulingIgnoredDuringExecution.size()) { @@ -455,7 +459,7 @@ public A withPreferredDuringSchedulingIgnoredDuringExecution(List(); for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } @@ -483,7 +487,7 @@ public A withRequiredDuringSchedulingIgnoredDuringExecution(List(); for (V1PodAffinityTerm item : requiredDuringSchedulingIgnoredDuringExecution) { this.addToRequiredDuringSchedulingIgnoredDuringExecution(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java index a4569dcfe8..29df3a2106 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodBuilder extends V1PodFluent implements VisitableBuilder{ V1PodFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java index 9c0693f1c4..5d3013b6f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodCertificateProjectionBuilder extends V1PodCertificateProjectionFluent implements VisitableBuilder{ V1PodCertificateProjectionFluent fluent; @@ -44,6 +45,7 @@ public V1PodCertificateProjection build() { buildable.setKeyType(fluent.getKeyType()); buildable.setMaxExpirationSeconds(fluent.getMaxExpirationSeconds()); buildable.setSignerName(fluent.getSignerName()); + buildable.setUser(fluent.getUser()); buildable.setUserAnnotations(fluent.getUserAnnotations()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java index 1129f71be4..d08f7f1125 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java @@ -14,6 +14,7 @@ import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Long; import java.lang.Object; import java.lang.String; import java.lang.StringBuilder; @@ -21,12 +22,14 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodCertificateProjectionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodCertificateProjectionFluent> extends BaseFluent{ private String certificateChainPath; private String credentialBundlePath; @@ -34,6 +37,7 @@ public class V1PodCertificateProjectionFluent userAnnotations; public V1PodCertificateProjectionFluent() { @@ -45,7 +49,7 @@ public V1PodCertificateProjectionFluent(V1PodCertificateProjection instance) { public A addToUserAnnotations(Map map) { if (this.userAnnotations == null && map != null) { - this.userAnnotations = new LinkedHashMap(); + this.userAnnotations = new LinkedHashMap<>(); } if (map != null) { this.userAnnotations.putAll(map); @@ -55,7 +59,7 @@ public A addToUserAnnotations(Map map) { public A addToUserAnnotations(String key,String value) { if (this.userAnnotations == null && key != null && value != null) { - this.userAnnotations = new LinkedHashMap(); + this.userAnnotations = new LinkedHashMap<>(); } if (key != null && value != null) { this.userAnnotations.put(key, value); @@ -72,6 +76,7 @@ protected void copyInstance(V1PodCertificateProjection instance) { this.withKeyType(instance.getKeyType()); this.withMaxExpirationSeconds(instance.getMaxExpirationSeconds()); this.withSignerName(instance.getSignerName()); + this.withUser(instance.getUser()); this.withUserAnnotations(instance.getUserAnnotations()); } } @@ -86,7 +91,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodCertificateProjectionFluent that = (V1PodCertificateProjectionFluent) o; + V1PodCertificateProjectionFluent that = (V1PodCertificateProjectionFluent) o; if (!(Objects.equals(certificateChainPath, that.certificateChainPath))) { return false; } @@ -105,6 +110,9 @@ public boolean equals(Object o) { if (!(Objects.equals(signerName, that.signerName))) { return false; } + if (!(Objects.equals(user, that.user))) { + return false; + } if (!(Objects.equals(userAnnotations, that.userAnnotations))) { return false; } @@ -135,6 +143,10 @@ public String getSignerName() { return this.signerName; } + public Long getUser() { + return this.user; + } + public Map getUserAnnotations() { return this.userAnnotations; } @@ -163,12 +175,16 @@ public boolean hasSignerName() { return this.signerName != null; } + public boolean hasUser() { + return this.user != null; + } + public boolean hasUserAnnotations() { return this.userAnnotations != null; } public int hashCode() { - return Objects.hash(certificateChainPath, credentialBundlePath, keyPath, keyType, maxExpirationSeconds, signerName, userAnnotations); + return Objects.hash(certificateChainPath, credentialBundlePath, keyPath, keyType, maxExpirationSeconds, signerName, user, userAnnotations); } public A removeFromUserAnnotations(String key) { @@ -228,6 +244,11 @@ public String toString() { sb.append(signerName); sb.append(","); } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + sb.append(","); + } if (!(userAnnotations == null) && !(userAnnotations.isEmpty())) { sb.append("userAnnotations:"); sb.append(userAnnotations); @@ -266,11 +287,16 @@ public A withSignerName(String signerName) { return (A) this; } + public A withUser(Long user) { + this.user = user; + return (A) this; + } + public A withUserAnnotations(Map userAnnotations) { if (userAnnotations == null) { this.userAnnotations = null; } else { - this.userAnnotations = new LinkedHashMap(userAnnotations); + this.userAnnotations = new LinkedHashMap<>(userAnnotations); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestBuilder.java new file mode 100644 index 0000000000..80f1ed8406 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestBuilder.java @@ -0,0 +1,50 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1PodCertificateRequestBuilder extends V1PodCertificateRequestFluent implements VisitableBuilder{ + + V1PodCertificateRequestFluent fluent; + + public V1PodCertificateRequestBuilder() { + this(new V1PodCertificateRequest()); + } + + public V1PodCertificateRequestBuilder(V1PodCertificateRequestFluent fluent) { + this(fluent, new V1PodCertificateRequest()); + } + + public V1PodCertificateRequestBuilder(V1PodCertificateRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1PodCertificateRequestBuilder(V1PodCertificateRequestFluent fluent,V1PodCertificateRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PodCertificateRequest build() { + V1PodCertificateRequest buildable = new V1PodCertificateRequest(); + 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/V1PodCertificateRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestFluent.java new file mode 100644 index 0000000000..816ce17847 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestFluent.java @@ -0,0 +1,316 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodCertificateRequestFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1PodCertificateRequestSpecBuilder spec; + private V1PodCertificateRequestStatusBuilder status; + + public V1PodCertificateRequestFluent() { + } + + public V1PodCertificateRequestFluent(V1PodCertificateRequest instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1PodCertificateRequestSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1PodCertificateRequestStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + protected void copyInstance(V1PodCertificateRequest instance) { + instance = instance != null ? instance : new V1PodCertificateRequest(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PodCertificateRequestSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1PodCertificateRequestSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PodCertificateRequestStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1PodCertificateRequestStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodCertificateRequestFluent that = (V1PodCertificateRequestFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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._visitables.get("metadata").remove(this.metadata); + this.metadata = null; + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested<>(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested<>(item); + } + + public SpecNested withNewSpec() { + return new SpecNested<>(null); + } + + public SpecNested withNewSpecLike(V1PodCertificateRequestSpec item) { + return new SpecNested<>(item); + } + + public StatusNested withNewStatus() { + return new StatusNested<>(null); + } + + public StatusNested withNewStatusLike(V1PodCertificateRequestStatus item) { + return new StatusNested<>(item); + } + + public A withSpec(V1PodCertificateRequestSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1PodCertificateRequestSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this._visitables.get("spec").remove(this.spec); + this.spec = null; + } + return (A) this; + } + + public A withStatus(V1PodCertificateRequestStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1PodCertificateRequestStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this._visitables.get("status").remove(this.status); + this.status = null; + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1PodCertificateRequestFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1PodCertificateRequestSpecFluent> implements Nested{ + + V1PodCertificateRequestSpecBuilder builder; + + SpecNested(V1PodCertificateRequestSpec item) { + this.builder = new V1PodCertificateRequestSpecBuilder(this, item); + } + + public N and() { + return (N) V1PodCertificateRequestFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1PodCertificateRequestStatusFluent> implements Nested{ + + V1PodCertificateRequestStatusBuilder builder; + + StatusNested(V1PodCertificateRequestStatus item) { + this.builder = new V1PodCertificateRequestStatusBuilder(this, item); + } + + public N and() { + return (N) V1PodCertificateRequestFluent.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/V1alpha1ClusterTrustBundleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestListBuilder.java similarity index 52% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestListBuilder.java index d8ce4f3c7a..507b10fac6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestListBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha1ClusterTrustBundleListBuilder extends V1alpha1ClusterTrustBundleListFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1PodCertificateRequestListBuilder extends V1PodCertificateRequestListFluent implements VisitableBuilder{ - V1alpha1ClusterTrustBundleListFluent fluent; + V1PodCertificateRequestListFluent fluent; - public V1alpha1ClusterTrustBundleListBuilder() { - this(new V1alpha1ClusterTrustBundleList()); + public V1PodCertificateRequestListBuilder() { + this(new V1PodCertificateRequestList()); } - public V1alpha1ClusterTrustBundleListBuilder(V1alpha1ClusterTrustBundleListFluent fluent) { - this(fluent, new V1alpha1ClusterTrustBundleList()); + public V1PodCertificateRequestListBuilder(V1PodCertificateRequestListFluent fluent) { + this(fluent, new V1PodCertificateRequestList()); } - public V1alpha1ClusterTrustBundleListBuilder(V1alpha1ClusterTrustBundleList instance) { + public V1PodCertificateRequestListBuilder(V1PodCertificateRequestList instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha1ClusterTrustBundleListBuilder(V1alpha1ClusterTrustBundleListFluent fluent,V1alpha1ClusterTrustBundleList instance) { + public V1PodCertificateRequestListBuilder(V1PodCertificateRequestListFluent fluent,V1PodCertificateRequestList instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha1ClusterTrustBundleList build() { - V1alpha1ClusterTrustBundleList buildable = new V1alpha1ClusterTrustBundleList(); + public V1PodCertificateRequestList build() { + V1PodCertificateRequestList buildable = new V1PodCertificateRequestList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.buildItems()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestListFluent.java new file mode 100644 index 0000000000..7ec175f43e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestListFluent.java @@ -0,0 +1,426 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodCertificateRequestListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1PodCertificateRequestListFluent() { + } + + public V1PodCertificateRequestListFluent(V1PodCertificateRequestList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + for (V1PodCertificateRequest item : items) { + V1PodCertificateRequestBuilder builder = new V1PodCertificateRequestBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested<>(-1, null); + } + + public ItemsNested addNewItemLike(V1PodCertificateRequest item) { + return new ItemsNested<>(-1, item); + } + + public A addToItems(V1PodCertificateRequest... items) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + for (V1PodCertificateRequest item : items) { + V1PodCertificateRequestBuilder builder = new V1PodCertificateRequestBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1PodCertificateRequest item) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + V1PodCertificateRequestBuilder builder = new V1PodCertificateRequestBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.add(index, builder); + } + return (A) this; + } + + public V1PodCertificateRequest buildFirstItem() { + return this.items.get(0).build(); + } + + public V1PodCertificateRequest buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1PodCertificateRequest buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1PodCertificateRequest buildMatchingItem(Predicate predicate) { + for (V1PodCertificateRequestBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1PodCertificateRequestList instance) { + instance = instance != null ? instance : new V1PodCertificateRequestList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodCertificateRequestListFluent that = (V1PodCertificateRequestListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1PodCertificateRequestBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1PodCertificateRequest item : items) { + V1PodCertificateRequestBuilder builder = new V1PodCertificateRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1PodCertificateRequest... items) { + if (this.items == null) { + return (A) this; + } + for (V1PodCertificateRequest item : items) { + V1PodCertificateRequestBuilder builder = new V1PodCertificateRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("items"); + while (each.hasNext()) { + V1PodCertificateRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1PodCertificateRequest item) { + return new ItemsNested<>(index, item); + } + + public A setToItems(int index,V1PodCertificateRequest item) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + V1PodCertificateRequestBuilder builder = new V1PodCertificateRequestBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList<>(); + for (V1PodCertificateRequest item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1PodCertificateRequest... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1PodCertificateRequest item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested<>(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested<>(item); + } + public class ItemsNested extends V1PodCertificateRequestFluent> implements Nested{ + + V1PodCertificateRequestBuilder builder; + int index; + + ItemsNested(int index,V1PodCertificateRequest item) { + this.index = index; + this.builder = new V1PodCertificateRequestBuilder(this, item); + } + + public N and() { + return (N) V1PodCertificateRequestListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1PodCertificateRequestListFluent.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/V1PodCertificateRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestSpecBuilder.java new file mode 100644 index 0000000000..cb31e0d72f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestSpecBuilder.java @@ -0,0 +1,55 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1PodCertificateRequestSpecBuilder extends V1PodCertificateRequestSpecFluent implements VisitableBuilder{ + + V1PodCertificateRequestSpecFluent fluent; + + public V1PodCertificateRequestSpecBuilder() { + this(new V1PodCertificateRequestSpec()); + } + + public V1PodCertificateRequestSpecBuilder(V1PodCertificateRequestSpecFluent fluent) { + this(fluent, new V1PodCertificateRequestSpec()); + } + + public V1PodCertificateRequestSpecBuilder(V1PodCertificateRequestSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1PodCertificateRequestSpecBuilder(V1PodCertificateRequestSpecFluent fluent,V1PodCertificateRequestSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PodCertificateRequestSpec build() { + V1PodCertificateRequestSpec buildable = new V1PodCertificateRequestSpec(); + buildable.setMaxExpirationSeconds(fluent.getMaxExpirationSeconds()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeUID(fluent.getNodeUID()); + buildable.setPodName(fluent.getPodName()); + buildable.setPodUID(fluent.getPodUID()); + buildable.setServiceAccountName(fluent.getServiceAccountName()); + buildable.setServiceAccountUID(fluent.getServiceAccountUID()); + buildable.setSignerName(fluent.getSignerName()); + buildable.setStubPKCS10Request(fluent.getStubPKCS10Request()); + buildable.setUnverifiedUserAnnotations(fluent.getUnverifiedUserAnnotations()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestSpecFluent.java new file mode 100644 index 0000000000..9ff5f24914 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestSpecFluent.java @@ -0,0 +1,426 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Byte; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodCertificateRequestSpecFluent> extends BaseFluent{ + + private Integer maxExpirationSeconds; + private String nodeName; + private String nodeUID; + private String podName; + private String podUID; + private String serviceAccountName; + private String serviceAccountUID; + private String signerName; + private List stubPKCS10Request; + private Map unverifiedUserAnnotations; + + public V1PodCertificateRequestSpecFluent() { + } + + public V1PodCertificateRequestSpecFluent(V1PodCertificateRequestSpec instance) { + this.copyInstance(instance); + } + + public A addAllToStubPKCS10Request(Collection items) { + if (this.stubPKCS10Request == null) { + this.stubPKCS10Request = new ArrayList(); + } + for (Byte item : items) { + this.stubPKCS10Request.add(item); + } + return (A) this; + } + + public A addToStubPKCS10Request(Byte... items) { + if (this.stubPKCS10Request == null) { + this.stubPKCS10Request = new ArrayList(); + } + for (Byte item : items) { + this.stubPKCS10Request.add(item); + } + return (A) this; + } + + public A addToStubPKCS10Request(int index,Byte item) { + if (this.stubPKCS10Request == null) { + this.stubPKCS10Request = new ArrayList(); + } + this.stubPKCS10Request.add(index, item); + return (A) this; + } + + public A addToUnverifiedUserAnnotations(Map map) { + if (this.unverifiedUserAnnotations == null && map != null) { + this.unverifiedUserAnnotations = new LinkedHashMap<>(); + } + if (map != null) { + this.unverifiedUserAnnotations.putAll(map); + } + return (A) this; + } + + public A addToUnverifiedUserAnnotations(String key,String value) { + if (this.unverifiedUserAnnotations == null && key != null && value != null) { + this.unverifiedUserAnnotations = new LinkedHashMap<>(); + } + if (key != null && value != null) { + this.unverifiedUserAnnotations.put(key, value); + } + return (A) this; + } + + protected void copyInstance(V1PodCertificateRequestSpec instance) { + instance = instance != null ? instance : new V1PodCertificateRequestSpec(); + if (instance != null) { + this.withMaxExpirationSeconds(instance.getMaxExpirationSeconds()); + this.withNodeName(instance.getNodeName()); + this.withNodeUID(instance.getNodeUID()); + this.withPodName(instance.getPodName()); + this.withPodUID(instance.getPodUID()); + this.withServiceAccountName(instance.getServiceAccountName()); + this.withServiceAccountUID(instance.getServiceAccountUID()); + this.withSignerName(instance.getSignerName()); + this.withStubPKCS10Request(instance.getStubPKCS10Request()); + this.withUnverifiedUserAnnotations(instance.getUnverifiedUserAnnotations()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodCertificateRequestSpecFluent that = (V1PodCertificateRequestSpecFluent) o; + if (!(Objects.equals(maxExpirationSeconds, that.maxExpirationSeconds))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeUID, that.nodeUID))) { + return false; + } + if (!(Objects.equals(podName, that.podName))) { + return false; + } + if (!(Objects.equals(podUID, that.podUID))) { + return false; + } + if (!(Objects.equals(serviceAccountName, that.serviceAccountName))) { + return false; + } + if (!(Objects.equals(serviceAccountUID, that.serviceAccountUID))) { + return false; + } + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + if (!(Objects.equals(stubPKCS10Request, that.stubPKCS10Request))) { + return false; + } + if (!(Objects.equals(unverifiedUserAnnotations, that.unverifiedUserAnnotations))) { + return false; + } + return true; + } + + public Integer getMaxExpirationSeconds() { + return this.maxExpirationSeconds; + } + + public String getNodeName() { + return this.nodeName; + } + + public String getNodeUID() { + return this.nodeUID; + } + + public String getPodName() { + return this.podName; + } + + public String getPodUID() { + return this.podUID; + } + + public String getServiceAccountName() { + return this.serviceAccountName; + } + + public String getServiceAccountUID() { + return this.serviceAccountUID; + } + + public String getSignerName() { + return this.signerName; + } + + public byte[] getStubPKCS10Request() { + int size = stubPKCS10Request != null ? stubPKCS10Request.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; + } + int index = 0; + for (byte item : stubPKCS10Request) { + result[index++] = item; + } + return result; + } + + public Map getUnverifiedUserAnnotations() { + return this.unverifiedUserAnnotations; + } + + public boolean hasMaxExpirationSeconds() { + return this.maxExpirationSeconds != null; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasNodeUID() { + return this.nodeUID != null; + } + + public boolean hasPodName() { + return this.podName != null; + } + + public boolean hasPodUID() { + return this.podUID != null; + } + + public boolean hasServiceAccountName() { + return this.serviceAccountName != null; + } + + public boolean hasServiceAccountUID() { + return this.serviceAccountUID != null; + } + + public boolean hasSignerName() { + return this.signerName != null; + } + + public boolean hasStubPKCS10Request() { + return this.stubPKCS10Request != null && !(this.stubPKCS10Request.isEmpty()); + } + + public boolean hasUnverifiedUserAnnotations() { + return this.unverifiedUserAnnotations != null; + } + + public int hashCode() { + return Objects.hash(maxExpirationSeconds, nodeName, nodeUID, podName, podUID, serviceAccountName, serviceAccountUID, signerName, stubPKCS10Request, unverifiedUserAnnotations); + } + + public A removeAllFromStubPKCS10Request(Collection items) { + if (this.stubPKCS10Request == null) { + return (A) this; + } + for (Byte item : items) { + this.stubPKCS10Request.remove(item); + } + return (A) this; + } + + public A removeFromStubPKCS10Request(Byte... items) { + if (this.stubPKCS10Request == null) { + return (A) this; + } + for (Byte item : items) { + this.stubPKCS10Request.remove(item); + } + return (A) this; + } + + public A removeFromUnverifiedUserAnnotations(String key) { + if (this.unverifiedUserAnnotations == null) { + return (A) this; + } + if (key != null && this.unverifiedUserAnnotations != null) { + this.unverifiedUserAnnotations.remove(key); + } + return (A) this; + } + + public A removeFromUnverifiedUserAnnotations(Map map) { + if (this.unverifiedUserAnnotations == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.unverifiedUserAnnotations != null) { + this.unverifiedUserAnnotations.remove(key); + } + } + } + return (A) this; + } + + public A setToStubPKCS10Request(int index,Byte item) { + if (this.stubPKCS10Request == null) { + this.stubPKCS10Request = new ArrayList(); + } + this.stubPKCS10Request.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(maxExpirationSeconds == null)) { + sb.append("maxExpirationSeconds:"); + sb.append(maxExpirationSeconds); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(nodeUID == null)) { + sb.append("nodeUID:"); + sb.append(nodeUID); + sb.append(","); + } + if (!(podName == null)) { + sb.append("podName:"); + sb.append(podName); + sb.append(","); + } + if (!(podUID == null)) { + sb.append("podUID:"); + sb.append(podUID); + sb.append(","); + } + if (!(serviceAccountName == null)) { + sb.append("serviceAccountName:"); + sb.append(serviceAccountName); + sb.append(","); + } + if (!(serviceAccountUID == null)) { + sb.append("serviceAccountUID:"); + sb.append(serviceAccountUID); + sb.append(","); + } + if (!(signerName == null)) { + sb.append("signerName:"); + sb.append(signerName); + sb.append(","); + } + if (!(stubPKCS10Request == null) && !(stubPKCS10Request.isEmpty())) { + sb.append("stubPKCS10Request:"); + sb.append(stubPKCS10Request); + sb.append(","); + } + if (!(unverifiedUserAnnotations == null) && !(unverifiedUserAnnotations.isEmpty())) { + sb.append("unverifiedUserAnnotations:"); + sb.append(unverifiedUserAnnotations); + } + sb.append("}"); + return sb.toString(); + } + + public A withMaxExpirationSeconds(Integer maxExpirationSeconds) { + this.maxExpirationSeconds = maxExpirationSeconds; + return (A) this; + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withNodeUID(String nodeUID) { + this.nodeUID = nodeUID; + return (A) this; + } + + public A withPodName(String podName) { + this.podName = podName; + return (A) this; + } + + public A withPodUID(String podUID) { + this.podUID = podUID; + return (A) this; + } + + public A withServiceAccountName(String serviceAccountName) { + this.serviceAccountName = serviceAccountName; + return (A) this; + } + + public A withServiceAccountUID(String serviceAccountUID) { + this.serviceAccountUID = serviceAccountUID; + return (A) this; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public A withStubPKCS10Request(byte... stubPKCS10Request) { + if (this.stubPKCS10Request != null) { + this.stubPKCS10Request.clear(); + _visitables.remove("stubPKCS10Request"); + } + if (stubPKCS10Request != null) { + for (byte item : stubPKCS10Request) { + this.addToStubPKCS10Request(item); + } + } + return (A) this; + } + + public A withUnverifiedUserAnnotations(Map unverifiedUserAnnotations) { + if (unverifiedUserAnnotations == null) { + this.unverifiedUserAnnotations = null; + } else { + this.unverifiedUserAnnotations = new LinkedHashMap<>(unverifiedUserAnnotations); + } + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestStatusBuilder.java new file mode 100644 index 0000000000..0d6a858d17 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestStatusBuilder.java @@ -0,0 +1,50 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1PodCertificateRequestStatusBuilder extends V1PodCertificateRequestStatusFluent implements VisitableBuilder{ + + V1PodCertificateRequestStatusFluent fluent; + + public V1PodCertificateRequestStatusBuilder() { + this(new V1PodCertificateRequestStatus()); + } + + public V1PodCertificateRequestStatusBuilder(V1PodCertificateRequestStatusFluent fluent) { + this(fluent, new V1PodCertificateRequestStatus()); + } + + public V1PodCertificateRequestStatusBuilder(V1PodCertificateRequestStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1PodCertificateRequestStatusBuilder(V1PodCertificateRequestStatusFluent fluent,V1PodCertificateRequestStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PodCertificateRequestStatus build() { + V1PodCertificateRequestStatus buildable = new V1PodCertificateRequestStatus(); + buildable.setBeginRefreshAt(fluent.getBeginRefreshAt()); + buildable.setCertificateChain(fluent.getCertificateChain()); + buildable.setConditions(fluent.buildConditions()); + buildable.setNotAfter(fluent.getNotAfter()); + buildable.setNotBefore(fluent.getNotBefore()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestStatusFluent.java new file mode 100644 index 0000000000..595724e5eb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestStatusFluent.java @@ -0,0 +1,405 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodCertificateRequestStatusFluent> extends BaseFluent{ + + private OffsetDateTime beginRefreshAt; + private String certificateChain; + private ArrayList conditions; + private OffsetDateTime notAfter; + private OffsetDateTime notBefore; + + public V1PodCertificateRequestStatusFluent() { + } + + public V1PodCertificateRequestStatusFluent(V1PodCertificateRequestStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested<>(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested<>(-1, item); + } + + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); + } + return (A) this; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + 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; + } + + protected void copyInstance(V1PodCertificateRequestStatus instance) { + instance = instance != null ? instance : new V1PodCertificateRequestStatus(); + if (instance != null) { + this.withBeginRefreshAt(instance.getBeginRefreshAt()); + this.withCertificateChain(instance.getCertificateChain()); + this.withConditions(instance.getConditions()); + this.withNotAfter(instance.getNotAfter()); + this.withNotBefore(instance.getNotBefore()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodCertificateRequestStatusFluent that = (V1PodCertificateRequestStatusFluent) o; + if (!(Objects.equals(beginRefreshAt, that.beginRefreshAt))) { + return false; + } + if (!(Objects.equals(certificateChain, that.certificateChain))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(notAfter, that.notAfter))) { + return false; + } + if (!(Objects.equals(notBefore, that.notBefore))) { + return false; + } + return true; + } + + public OffsetDateTime getBeginRefreshAt() { + return this.beginRefreshAt; + } + + public String getCertificateChain() { + return this.certificateChain; + } + + public OffsetDateTime getNotAfter() { + return this.notAfter; + } + + public OffsetDateTime getNotBefore() { + return this.notBefore; + } + + public boolean hasBeginRefreshAt() { + return this.beginRefreshAt != null; + } + + public boolean hasCertificateChain() { + return this.certificateChain != null; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNotAfter() { + return this.notAfter != null; + } + + public boolean hasNotBefore() { + return this.notBefore != null; + } + + public int hashCode() { + return Objects.hash(beginRefreshAt, certificateChain, conditions, notAfter, notBefore); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested<>(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(beginRefreshAt == null)) { + sb.append("beginRefreshAt:"); + sb.append(beginRefreshAt); + sb.append(","); + } + if (!(certificateChain == null)) { + sb.append("certificateChain:"); + sb.append(certificateChain); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(notAfter == null)) { + sb.append("notAfter:"); + sb.append(notAfter); + sb.append(","); + } + if (!(notBefore == null)) { + sb.append("notBefore:"); + sb.append(notBefore); + } + sb.append("}"); + return sb.toString(); + } + + public A withBeginRefreshAt(OffsetDateTime beginRefreshAt) { + this.beginRefreshAt = beginRefreshAt; + return (A) this; + } + + public A withCertificateChain(String certificateChain) { + this.certificateChain = certificateChain; + return (A) this; + } + + 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(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 A withNotAfter(OffsetDateTime notAfter) { + this.notAfter = notAfter; + return (A) this; + } + + public A withNotBefore(OffsetDateTime notBefore) { + this.notBefore = notBefore; + return (A) this; + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1PodCertificateRequestStatusFluent.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/V1PodConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java index 53ca2fc35b..9f573691c8 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodConditionBuilder extends V1PodConditionFluent implements VisitableBuilder{ V1PodConditionFluent fluent; 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 30bf759d17..b3a3671520 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 @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodConditionFluent> extends BaseFluent{ private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; @@ -65,7 +67,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodConditionFluent that = (V1PodConditionFluent) o; + V1PodConditionFluent that = (V1PodConditionFluent) o; if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java index 8afc57673b..67ecef9538 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodDNSConfigBuilder extends V1PodDNSConfigFluent implements VisitableBuilder{ V1PodDNSConfigFluent fluent; 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 d5617f5346..ce244e0385 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodDNSConfigFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodDNSConfigFluent> extends BaseFluent{ private List nameservers; private ArrayList options; @@ -45,7 +47,7 @@ public V1PodDNSConfigFluent(V1PodDNSConfig instance) { public A addAllToNameservers(Collection items) { if (this.nameservers == null) { - this.nameservers = new ArrayList(); + this.nameservers = new ArrayList<>(); } for (String item : items) { this.nameservers.add(item); @@ -55,7 +57,7 @@ public A addAllToNameservers(Collection items) { public A addAllToOptions(Collection items) { if (this.options == null) { - this.options = new ArrayList(); + this.options = new ArrayList<>(); } for (V1PodDNSConfigOption item : items) { V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); @@ -67,7 +69,7 @@ public A addAllToOptions(Collection items) { public A addAllToSearches(Collection items) { if (this.searches == null) { - this.searches = new ArrayList(); + this.searches = new ArrayList<>(); } for (String item : items) { this.searches.add(item); @@ -76,16 +78,16 @@ public A addAllToSearches(Collection items) { } public OptionsNested addNewOption() { - return new OptionsNested(-1, null); + return new OptionsNested<>(-1, null); } public OptionsNested addNewOptionLike(V1PodDNSConfigOption item) { - return new OptionsNested(-1, item); + return new OptionsNested<>(-1, item); } public A addToNameservers(String... items) { if (this.nameservers == null) { - this.nameservers = new ArrayList(); + this.nameservers = new ArrayList<>(); } for (String item : items) { this.nameservers.add(item); @@ -95,7 +97,7 @@ public A addToNameservers(String... items) { public A addToNameservers(int index,String item) { if (this.nameservers == null) { - this.nameservers = new ArrayList(); + this.nameservers = new ArrayList<>(); } this.nameservers.add(index, item); return (A) this; @@ -103,7 +105,7 @@ public A addToNameservers(int index,String item) { public A addToOptions(V1PodDNSConfigOption... items) { if (this.options == null) { - this.options = new ArrayList(); + this.options = new ArrayList<>(); } for (V1PodDNSConfigOption item : items) { V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); @@ -115,7 +117,7 @@ public A addToOptions(V1PodDNSConfigOption... items) { public A addToOptions(int index,V1PodDNSConfigOption item) { if (this.options == null) { - this.options = new ArrayList(); + this.options = new ArrayList<>(); } V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); if (index < 0 || index >= this.options.size()) { @@ -130,7 +132,7 @@ public A addToOptions(int index,V1PodDNSConfigOption item) { public A addToSearches(String... items) { if (this.searches == null) { - this.searches = new ArrayList(); + this.searches = new ArrayList<>(); } for (String item : items) { this.searches.add(item); @@ -140,7 +142,7 @@ public A addToSearches(String... items) { public A addToSearches(int index,String item) { if (this.searches == null) { - this.searches = new ArrayList(); + this.searches = new ArrayList<>(); } this.searches.add(index, item); return (A) this; @@ -226,7 +228,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodDNSConfigFluent that = (V1PodDNSConfigFluent) o; + V1PodDNSConfigFluent that = (V1PodDNSConfigFluent) o; if (!(Objects.equals(nameservers, that.nameservers))) { return false; } @@ -401,6 +403,7 @@ public A removeMatchingFromOptions(Predicate predic return (A) this; } Iterator each = options.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("options"); while (each.hasNext()) { V1PodDNSConfigOptionBuilder builder = each.next(); @@ -413,12 +416,12 @@ public A removeMatchingFromOptions(Predicate predic } public OptionsNested setNewOptionLike(int index,V1PodDNSConfigOption item) { - return new OptionsNested(index, item); + return new OptionsNested<>(index, item); } public A setToNameservers(int index,String item) { if (this.nameservers == null) { - this.nameservers = new ArrayList(); + this.nameservers = new ArrayList<>(); } this.nameservers.set(index, item); return (A) this; @@ -426,7 +429,7 @@ public A setToNameservers(int index,String item) { public A setToOptions(int index,V1PodDNSConfigOption item) { if (this.options == null) { - this.options = new ArrayList(); + this.options = new ArrayList<>(); } V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); if (index < 0 || index >= this.options.size()) { @@ -441,7 +444,7 @@ public A setToOptions(int index,V1PodDNSConfigOption item) { public A setToSearches(int index,String item) { if (this.searches == null) { - this.searches = new ArrayList(); + this.searches = new ArrayList<>(); } this.searches.set(index, item); return (A) this; @@ -470,7 +473,7 @@ public String toString() { public A withNameservers(List nameservers) { if (nameservers != null) { - this.nameservers = new ArrayList(); + this.nameservers = new ArrayList<>(); for (String item : nameservers) { this.addToNameservers(item); } @@ -498,7 +501,7 @@ public A withOptions(List options) { this._visitables.get("options").clear(); } if (options != null) { - this.options = new ArrayList(); + this.options = new ArrayList<>(); for (V1PodDNSConfigOption item : options) { this.addToOptions(item); } @@ -523,7 +526,7 @@ public A withOptions(V1PodDNSConfigOption... options) { public A withSearches(List searches) { if (searches != null) { - this.searches = new ArrayList(); + this.searches = new ArrayList<>(); for (String item : searches) { this.addToSearches(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java index 83703518d3..90e9bdba2e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodDNSConfigOptionBuilder extends V1PodDNSConfigOptionFluent implements VisitableBuilder{ V1PodDNSConfigOptionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java index 0fc2dc8eef..b9dff4f870 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodDNSConfigOptionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodDNSConfigOptionFluent> extends BaseFluent{ private String name; private String value; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodDNSConfigOptionFluent that = (V1PodDNSConfigOptionFluent) o; + V1PodDNSConfigOptionFluent that = (V1PodDNSConfigOptionFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java index 971df80810..441b4f8cb2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodDisruptionBudgetBuilder extends V1PodDisruptionBudgetFluent implements VisitableBuilder{ V1PodDisruptionBudgetFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java index 0df0e21131..77ccafe466 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodDisruptionBudgetFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodDisruptionBudgetFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodDisruptionBudgetFluent that = (V1PodDisruptionBudgetFluent) o; + V1PodDisruptionBudgetFluent that = (V1PodDisruptionBudgetFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1PodDisruptionBudgetSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1PodDisruptionBudgetStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1PodDisruptionBudgetSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1PodDisruptionBudgetSpec spec) { this.spec = new V1PodDisruptionBudgetSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1PodDisruptionBudgetStatus status) { this.status = new V1PodDisruptionBudgetStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java index 8f48bed152..48e8122d92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodDisruptionBudgetListBuilder extends V1PodDisruptionBudgetListFluent implements VisitableBuilder{ V1PodDisruptionBudgetListFluent fluent; 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 34fbe5993c..2843a100d8 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodDisruptionBudgetListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodDisruptionBudgetListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1PodDisruptionBudgetListFluent(V1PodDisruptionBudgetList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1PodDisruptionBudget item : items) { V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1PodDisruptionBudget item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1PodDisruptionBudget... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1PodDisruptionBudget item : items) { V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1PodDisruptionBudget... items) { public A addToItems(int index,V1PodDisruptionBudget item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodDisruptionBudgetListFluent that = (V1PodDisruptionBudgetListFluent) o; + V1PodDisruptionBudgetListFluent that = (V1PodDisruptionBudgetListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predica return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PodDisruptionBudgetBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predica } public ItemsNested setNewItemLike(int index,V1PodDisruptionBudget item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1PodDisruptionBudget item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1PodDisruptionBudget item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1PodDisruptionBudgetFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java index d06b3ebeb7..7d6649939a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodDisruptionBudgetSpecBuilder extends V1PodDisruptionBudgetSpecFluent implements VisitableBuilder{ V1PodDisruptionBudgetSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java index c7492f85de..7ef8c5603b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodDisruptionBudgetSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodDisruptionBudgetSpecFluent> extends BaseFluent{ private IntOrString maxUnavailable; private IntOrString minAvailable; @@ -76,7 +78,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodDisruptionBudgetSpecFluent that = (V1PodDisruptionBudgetSpecFluent) o; + V1PodDisruptionBudgetSpecFluent that = (V1PodDisruptionBudgetSpecFluent) o; if (!(Objects.equals(maxUnavailable, that.maxUnavailable))) { return false; } @@ -177,11 +179,11 @@ public A withNewMinAvailable(String value) { } public SelectorNested withNewSelector() { - return new SelectorNested(null); + return new SelectorNested<>(null); } public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + return new SelectorNested<>(item); } public A withSelector(V1LabelSelector selector) { @@ -190,8 +192,8 @@ public A withSelector(V1LabelSelector selector) { this.selector = new V1LabelSelectorBuilder(selector); this._visitables.get("selector").add(this.selector); } else { - this.selector = null; this._visitables.get("selector").remove(this.selector); + this.selector = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java index 337b303dd2..0408eb1afa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodDisruptionBudgetStatusBuilder extends V1PodDisruptionBudgetStatusFluent implements VisitableBuilder{ V1PodDisruptionBudgetStatusFluent fluent; 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 bf07dd3cb3..dbc6d5a681 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 @@ -30,12 +30,14 @@ import java.util.Map; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodDisruptionBudgetStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodDisruptionBudgetStatusFluent> extends BaseFluent{ private ArrayList conditions; private Integer currentHealthy; @@ -54,7 +56,7 @@ public V1PodDisruptionBudgetStatusFluent(V1PodDisruptionBudgetStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -65,16 +67,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -86,7 +88,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -101,7 +103,7 @@ public A addToConditions(int index,V1Condition item) { public A addToDisruptedPods(Map map) { if (this.disruptedPods == null && map != null) { - this.disruptedPods = new LinkedHashMap(); + this.disruptedPods = new LinkedHashMap<>(); } if (map != null) { this.disruptedPods.putAll(map); @@ -111,7 +113,7 @@ public A addToDisruptedPods(Map map) { public A addToDisruptedPods(String key,OffsetDateTime value) { if (this.disruptedPods == null && key != null && value != null) { - this.disruptedPods = new LinkedHashMap(); + this.disruptedPods = new LinkedHashMap<>(); } if (key != null && value != null) { this.disruptedPods.put(key, value); @@ -203,7 +205,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodDisruptionBudgetStatusFluent that = (V1PodDisruptionBudgetStatusFluent) o; + V1PodDisruptionBudgetStatusFluent that = (V1PodDisruptionBudgetStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -346,6 +348,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -358,12 +361,12 @@ public A removeMatchingFromConditions(Predicate predicate) { } public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -422,7 +425,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } @@ -459,7 +462,7 @@ public A withDisruptedPods(Map disruptedPods) { if (disruptedPods == null) { this.disruptedPods = null; } else { - this.disruptedPods = new LinkedHashMap(disruptedPods); + this.disruptedPods = new LinkedHashMap<>(disruptedPods); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java index 895eaeeca4..c29c11e809 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodExtendedResourceClaimStatusBuilder extends V1PodExtendedResourceClaimStatusFluent implements VisitableBuilder{ V1PodExtendedResourceClaimStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java index 7c19af9c3d..dbcbf7f87e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodExtendedResourceClaimStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodExtendedResourceClaimStatusFluent> extends BaseFluent{ private ArrayList requestMappings; private String resourceClaimName; @@ -44,7 +46,7 @@ public V1PodExtendedResourceClaimStatusFluent(V1PodExtendedResourceClaimStatus i public A addAllToRequestMappings(Collection items) { if (this.requestMappings == null) { - this.requestMappings = new ArrayList(); + this.requestMappings = new ArrayList<>(); } for (V1ContainerExtendedResourceRequest item : items) { V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); @@ -55,16 +57,16 @@ public A addAllToRequestMappings(Collection } public RequestMappingsNested addNewRequestMapping() { - return new RequestMappingsNested(-1, null); + return new RequestMappingsNested<>(-1, null); } public RequestMappingsNested addNewRequestMappingLike(V1ContainerExtendedResourceRequest item) { - return new RequestMappingsNested(-1, item); + return new RequestMappingsNested<>(-1, item); } public A addToRequestMappings(V1ContainerExtendedResourceRequest... items) { if (this.requestMappings == null) { - this.requestMappings = new ArrayList(); + this.requestMappings = new ArrayList<>(); } for (V1ContainerExtendedResourceRequest item : items) { V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); @@ -76,7 +78,7 @@ public A addToRequestMappings(V1ContainerExtendedResourceRequest... items) { public A addToRequestMappings(int index,V1ContainerExtendedResourceRequest item) { if (this.requestMappings == null) { - this.requestMappings = new ArrayList(); + this.requestMappings = new ArrayList<>(); } V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); if (index < 0 || index >= this.requestMappings.size()) { @@ -168,7 +170,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodExtendedResourceClaimStatusFluent that = (V1PodExtendedResourceClaimStatusFluent) o; + V1PodExtendedResourceClaimStatusFluent that = (V1PodExtendedResourceClaimStatusFluent) o; if (!(Objects.equals(requestMappings, that.requestMappings))) { return false; } @@ -232,6 +234,7 @@ public A removeMatchingFromRequestMappings(Predicate each = requestMappings.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("requestMappings"); while (each.hasNext()) { V1ContainerExtendedResourceRequestBuilder builder = each.next(); @@ -244,12 +247,12 @@ public A removeMatchingFromRequestMappings(Predicate setNewRequestMappingLike(int index,V1ContainerExtendedResourceRequest item) { - return new RequestMappingsNested(index, item); + return new RequestMappingsNested<>(index, item); } public A setToRequestMappings(int index,V1ContainerExtendedResourceRequest item) { if (this.requestMappings == null) { - this.requestMappings = new ArrayList(); + this.requestMappings = new ArrayList<>(); } V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); if (index < 0 || index >= this.requestMappings.size()) { @@ -283,7 +286,7 @@ public A withRequestMappings(List requestMap this._visitables.get("requestMappings").clear(); } if (requestMappings != null) { - this.requestMappings = new ArrayList(); + this.requestMappings = new ArrayList<>(); for (V1ContainerExtendedResourceRequest item : requestMappings) { this.addToRequestMappings(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java index ef068563c4..4390d34ad7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodFailurePolicyBuilder extends V1PodFailurePolicyFluent implements VisitableBuilder{ V1PodFailurePolicyFluent fluent; 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 71bd655ab7..61422d3e65 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodFailurePolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodFailurePolicyFluent> extends BaseFluent{ private ArrayList rules; @@ -43,7 +45,7 @@ public V1PodFailurePolicyFluent(V1PodFailurePolicy instance) { public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1PodFailurePolicyRule item : items) { V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); @@ -54,16 +56,16 @@ public A addAllToRules(Collection items) { } public RulesNested addNewRule() { - return new RulesNested(-1, null); + return new RulesNested<>(-1, null); } public RulesNested addNewRuleLike(V1PodFailurePolicyRule item) { - return new RulesNested(-1, item); + return new RulesNested<>(-1, item); } public A addToRules(V1PodFailurePolicyRule... items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1PodFailurePolicyRule item : items) { V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); @@ -75,7 +77,7 @@ public A addToRules(V1PodFailurePolicyRule... items) { public A addToRules(int index,V1PodFailurePolicyRule item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodFailurePolicyFluent that = (V1PodFailurePolicyFluent) o; + V1PodFailurePolicyFluent that = (V1PodFailurePolicyFluent) o; if (!(Objects.equals(rules, that.rules))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromRules(Predicate predic return (A) this; } Iterator each = rules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1PodFailurePolicyRuleBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromRules(Predicate predic } public RulesNested setNewRuleLike(int index,V1PodFailurePolicyRule item) { - return new RulesNested(index, item); + return new RulesNested<>(index, item); } public A setToRules(int index,V1PodFailurePolicyRule item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -265,7 +268,7 @@ public A withRules(List rules) { this._visitables.get("rules").clear(); } if (rules != null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); for (V1PodFailurePolicyRule item : rules) { this.addToRules(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java index 5ae7619e50..64e6866d0e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodFailurePolicyOnExitCodesRequirementBuilder extends V1PodFailurePolicyOnExitCodesRequirementFluent implements VisitableBuilder{ V1PodFailurePolicyOnExitCodesRequirementFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java index 0a4758f47e..f196cb7e41 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java @@ -23,12 +23,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodFailurePolicyOnExitCodesRequirementFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodFailurePolicyOnExitCodesRequirementFluent> extends BaseFluent{ private String containerName; private String operator; @@ -43,7 +45,7 @@ public V1PodFailurePolicyOnExitCodesRequirementFluent(V1PodFailurePolicyOnExitCo public A addAllToValues(Collection items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (Integer item : items) { this.values.add(item); @@ -53,7 +55,7 @@ public A addAllToValues(Collection items) { public A addToValues(Integer... items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (Integer item : items) { this.values.add(item); @@ -63,7 +65,7 @@ public A addToValues(Integer... items) { public A addToValues(int index,Integer item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.add(index, item); return (A) this; @@ -88,7 +90,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodFailurePolicyOnExitCodesRequirementFluent that = (V1PodFailurePolicyOnExitCodesRequirementFluent) o; + V1PodFailurePolicyOnExitCodesRequirementFluent that = (V1PodFailurePolicyOnExitCodesRequirementFluent) o; if (!(Objects.equals(containerName, that.containerName))) { return false; } @@ -181,7 +183,7 @@ public A removeFromValues(Integer... items) { public A setToValues(int index,Integer item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.set(index, item); return (A) this; @@ -220,7 +222,7 @@ public A withOperator(String operator) { public A withValues(List values) { if (values != null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); for (Integer item : values) { this.addToValues(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java index ef8e77601c..f975ca3468 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodFailurePolicyOnPodConditionsPatternBuilder extends V1PodFailurePolicyOnPodConditionsPatternFluent implements VisitableBuilder{ V1PodFailurePolicyOnPodConditionsPatternFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java index b80e11811e..455c6134a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodFailurePolicyOnPodConditionsPatternFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodFailurePolicyOnPodConditionsPatternFluent> extends BaseFluent{ private String status; private String type; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodFailurePolicyOnPodConditionsPatternFluent that = (V1PodFailurePolicyOnPodConditionsPatternFluent) o; + V1PodFailurePolicyOnPodConditionsPatternFluent that = (V1PodFailurePolicyOnPodConditionsPatternFluent) o; if (!(Objects.equals(status, that.status))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java index 8494cf6175..a6ec9afa39 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodFailurePolicyRuleBuilder extends V1PodFailurePolicyRuleFluent implements VisitableBuilder{ V1PodFailurePolicyRuleFluent fluent; 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 06b5d5994e..bb356f22c8 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodFailurePolicyRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodFailurePolicyRuleFluent> extends BaseFluent{ private String action; private V1PodFailurePolicyOnExitCodesRequirementBuilder onExitCodes; @@ -46,7 +48,7 @@ public V1PodFailurePolicyRuleFluent(V1PodFailurePolicyRule instance) { public A addAllToOnPodConditions(Collection items) { if (this.onPodConditions == null) { - this.onPodConditions = new ArrayList(); + this.onPodConditions = new ArrayList<>(); } for (V1PodFailurePolicyOnPodConditionsPattern item : items) { V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); @@ -57,16 +59,16 @@ public A addAllToOnPodConditions(Collection addNewOnPodCondition() { - return new OnPodConditionsNested(-1, null); + return new OnPodConditionsNested<>(-1, null); } public OnPodConditionsNested addNewOnPodConditionLike(V1PodFailurePolicyOnPodConditionsPattern item) { - return new OnPodConditionsNested(-1, item); + return new OnPodConditionsNested<>(-1, item); } public A addToOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... items) { if (this.onPodConditions == null) { - this.onPodConditions = new ArrayList(); + this.onPodConditions = new ArrayList<>(); } for (V1PodFailurePolicyOnPodConditionsPattern item : items) { V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); @@ -78,7 +80,7 @@ public A addToOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... items) public A addToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern item) { if (this.onPodConditions == null) { - this.onPodConditions = new ArrayList(); + this.onPodConditions = new ArrayList<>(); } V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); if (index < 0 || index >= this.onPodConditions.size()) { @@ -187,7 +189,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodFailurePolicyRuleFluent that = (V1PodFailurePolicyRuleFluent) o; + V1PodFailurePolicyRuleFluent that = (V1PodFailurePolicyRuleFluent) o; if (!(Objects.equals(action, that.action))) { return false; } @@ -258,6 +260,7 @@ public A removeMatchingFromOnPodConditions(Predicate each = onPodConditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("onPodConditions"); while (each.hasNext()) { V1PodFailurePolicyOnPodConditionsPatternBuilder builder = each.next(); @@ -270,12 +273,12 @@ public A removeMatchingFromOnPodConditions(Predicate setNewOnPodConditionLike(int index,V1PodFailurePolicyOnPodConditionsPattern item) { - return new OnPodConditionsNested(index, item); + return new OnPodConditionsNested<>(index, item); } public A setToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern item) { if (this.onPodConditions == null) { - this.onPodConditions = new ArrayList(); + this.onPodConditions = new ArrayList<>(); } V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); if (index < 0 || index >= this.onPodConditions.size()) { @@ -315,11 +318,11 @@ public A withAction(String action) { } public OnExitCodesNested withNewOnExitCodes() { - return new OnExitCodesNested(null); + return new OnExitCodesNested<>(null); } public OnExitCodesNested withNewOnExitCodesLike(V1PodFailurePolicyOnExitCodesRequirement item) { - return new OnExitCodesNested(item); + return new OnExitCodesNested<>(item); } public A withOnExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { @@ -328,8 +331,8 @@ public A withOnExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { this.onExitCodes = new V1PodFailurePolicyOnExitCodesRequirementBuilder(onExitCodes); this._visitables.get("onExitCodes").add(this.onExitCodes); } else { - this.onExitCodes = null; this._visitables.get("onExitCodes").remove(this.onExitCodes); + this.onExitCodes = null; } return (A) this; } @@ -339,7 +342,7 @@ public A withOnPodConditions(List onPo this._visitables.get("onPodConditions").clear(); } if (onPodConditions != null) { - this.onPodConditions = new ArrayList(); + this.onPodConditions = new ArrayList<>(); for (V1PodFailurePolicyOnPodConditionsPattern item : onPodConditions) { this.addToOnPodConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java index cb81362d5c..3a689e62fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodFluent that = (V1PodFluent) o; + V1PodFluent that = (V1PodFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1PodSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1PodStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1PodSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1PodSpec spec) { this.spec = new V1PodSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1PodStatus status) { this.status = new V1PodStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java index 5f2439df8d..4f18e63b12 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodIPBuilder extends V1PodIPFluent implements VisitableBuilder{ V1PodIPFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java index ac6e8b7d39..085011b989 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodIPFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodIPFluent> extends BaseFluent{ private String ip; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodIPFluent that = (V1PodIPFluent) o; + V1PodIPFluent that = (V1PodIPFluent) o; if (!(Objects.equals(ip, that.ip))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java index dae5333cc9..cd369a4b90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodListBuilder extends V1PodListFluent implements VisitableBuilder{ V1PodListFluent fluent; 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 f9f73614a0..44ea3748cf 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1PodListFluent(V1PodList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Pod item : items) { V1PodBuilder builder = new V1PodBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1Pod item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1Pod... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Pod item : items) { V1PodBuilder builder = new V1PodBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1Pod... items) { public A addToItems(int index,V1Pod item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PodBuilder builder = new V1PodBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodListFluent that = (V1PodListFluent) o; + V1PodListFluent that = (V1PodListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PodBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1Pod item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1Pod item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PodBuilder builder = new V1PodBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1Pod item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1PodFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java index a9256ee55f..7619113bac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodOSBuilder extends V1PodOSFluent implements VisitableBuilder{ V1PodOSFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java index ddabc8f3ec..85bef8d882 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodOSFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodOSFluent> extends BaseFluent{ private String name; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodOSFluent that = (V1PodOSFluent) o; + V1PodOSFluent that = (V1PodOSFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java index 22b111e521..da9f5155f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodReadinessGateBuilder extends V1PodReadinessGateFluent implements VisitableBuilder{ V1PodReadinessGateFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java index e4081a1ea2..553ac4f211 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodReadinessGateFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodReadinessGateFluent> extends BaseFluent{ private String conditionType; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodReadinessGateFluent that = (V1PodReadinessGateFluent) o; + V1PodReadinessGateFluent that = (V1PodReadinessGateFluent) o; if (!(Objects.equals(conditionType, that.conditionType))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java index 3793ace1da..9ee9773534 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodResourceClaimBuilder extends V1PodResourceClaimFluent implements VisitableBuilder{ V1PodResourceClaimFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java index 9b3fa3cd3f..28e9e479dd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodResourceClaimFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodResourceClaimFluent> extends BaseFluent{ private String name; private String resourceClaimName; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodResourceClaimFluent that = (V1PodResourceClaimFluent) o; + V1PodResourceClaimFluent that = (V1PodResourceClaimFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java index dacb641566..42408c9314 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodResourceClaimStatusBuilder extends V1PodResourceClaimStatusFluent implements VisitableBuilder{ V1PodResourceClaimStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java index c13472aabd..c16c526fe5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodResourceClaimStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodResourceClaimStatusFluent> extends BaseFluent{ private String name; private String resourceClaimName; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodResourceClaimStatusFluent that = (V1PodResourceClaimStatusFluent) o; + V1PodResourceClaimStatusFluent that = (V1PodResourceClaimStatusFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java index 09f3fba197..b1c68a8d25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodSchedulingGateBuilder extends V1PodSchedulingGateFluent implements VisitableBuilder{ V1PodSchedulingGateFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java index fa602d6ac3..3dc6277cf8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodSchedulingGateFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodSchedulingGateFluent> extends BaseFluent{ private String name; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodSchedulingGateFluent that = (V1PodSchedulingGateFluent) o; + V1PodSchedulingGateFluent that = (V1PodSchedulingGateFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupBuilder.java index f57d326db5..ad7ae77e6d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodSchedulingGroupBuilder extends V1PodSchedulingGroupFluent implements VisitableBuilder{ V1PodSchedulingGroupFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupFluent.java index 0312cedaca..0198d59645 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodSchedulingGroupFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodSchedulingGroupFluent> extends BaseFluent{ private String podGroupName; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodSchedulingGroupFluent that = (V1PodSchedulingGroupFluent) o; + V1PodSchedulingGroupFluent that = (V1PodSchedulingGroupFluent) o; if (!(Objects.equals(podGroupName, that.podGroupName))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java index 5002a5d13e..a506da4337 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodSecurityContextBuilder extends V1PodSecurityContextFluent implements VisitableBuilder{ V1PodSecurityContextFluent fluent; 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 e0123804eb..673ed65be3 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 @@ -28,12 +28,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodSecurityContextFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodSecurityContextFluent> extends BaseFluent{ private V1AppArmorProfileBuilder appArmorProfile; private Long fsGroup; @@ -58,7 +60,7 @@ public V1PodSecurityContextFluent(V1PodSecurityContext instance) { public A addAllToSupplementalGroups(Collection items) { if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); + this.supplementalGroups = new ArrayList<>(); } for (Long item : items) { this.supplementalGroups.add(item); @@ -68,7 +70,7 @@ public A addAllToSupplementalGroups(Collection items) { public A addAllToSysctls(Collection items) { if (this.sysctls == null) { - this.sysctls = new ArrayList(); + this.sysctls = new ArrayList<>(); } for (V1Sysctl item : items) { V1SysctlBuilder builder = new V1SysctlBuilder(item); @@ -79,16 +81,16 @@ public A addAllToSysctls(Collection items) { } public SysctlsNested addNewSysctl() { - return new SysctlsNested(-1, null); + return new SysctlsNested<>(-1, null); } public SysctlsNested addNewSysctlLike(V1Sysctl item) { - return new SysctlsNested(-1, item); + return new SysctlsNested<>(-1, item); } public A addToSupplementalGroups(Long... items) { if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); + this.supplementalGroups = new ArrayList<>(); } for (Long item : items) { this.supplementalGroups.add(item); @@ -98,7 +100,7 @@ public A addToSupplementalGroups(Long... items) { public A addToSupplementalGroups(int index,Long item) { if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); + this.supplementalGroups = new ArrayList<>(); } this.supplementalGroups.add(index, item); return (A) this; @@ -106,7 +108,7 @@ public A addToSupplementalGroups(int index,Long item) { public A addToSysctls(V1Sysctl... items) { if (this.sysctls == null) { - this.sysctls = new ArrayList(); + this.sysctls = new ArrayList<>(); } for (V1Sysctl item : items) { V1SysctlBuilder builder = new V1SysctlBuilder(item); @@ -118,7 +120,7 @@ public A addToSysctls(V1Sysctl... items) { public A addToSysctls(int index,V1Sysctl item) { if (this.sysctls == null) { - this.sysctls = new ArrayList(); + this.sysctls = new ArrayList<>(); } V1SysctlBuilder builder = new V1SysctlBuilder(item); if (index < 0 || index >= this.sysctls.size()) { @@ -285,7 +287,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodSecurityContextFluent that = (V1PodSecurityContextFluent) o; + V1PodSecurityContextFluent that = (V1PodSecurityContextFluent) o; if (!(Objects.equals(appArmorProfile, that.appArmorProfile))) { return false; } @@ -504,6 +506,7 @@ public A removeMatchingFromSysctls(Predicate predicate) { return (A) this; } Iterator each = sysctls.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("sysctls"); while (each.hasNext()) { V1SysctlBuilder builder = each.next(); @@ -516,12 +519,12 @@ public A removeMatchingFromSysctls(Predicate predicate) { } public SysctlsNested setNewSysctlLike(int index,V1Sysctl item) { - return new SysctlsNested(index, item); + return new SysctlsNested<>(index, item); } public A setToSupplementalGroups(int index,Long item) { if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); + this.supplementalGroups = new ArrayList<>(); } this.supplementalGroups.set(index, item); return (A) this; @@ -529,7 +532,7 @@ public A setToSupplementalGroups(int index,Long item) { public A setToSysctls(int index,V1Sysctl item) { if (this.sysctls == null) { - this.sysctls = new ArrayList(); + this.sysctls = new ArrayList<>(); } V1SysctlBuilder builder = new V1SysctlBuilder(item); if (index < 0 || index >= this.sysctls.size()) { @@ -619,8 +622,8 @@ public A withAppArmorProfile(V1AppArmorProfile appArmorProfile) { this.appArmorProfile = new V1AppArmorProfileBuilder(appArmorProfile); this._visitables.get("appArmorProfile").add(this.appArmorProfile); } else { - this.appArmorProfile = null; this._visitables.get("appArmorProfile").remove(this.appArmorProfile); + this.appArmorProfile = null; } return (A) this; } @@ -636,35 +639,35 @@ public A withFsGroupChangePolicy(String fsGroupChangePolicy) { } public AppArmorProfileNested withNewAppArmorProfile() { - return new AppArmorProfileNested(null); + return new AppArmorProfileNested<>(null); } public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile item) { - return new AppArmorProfileNested(item); + return new AppArmorProfileNested<>(item); } public SeLinuxOptionsNested withNewSeLinuxOptions() { - return new SeLinuxOptionsNested(null); + return new SeLinuxOptionsNested<>(null); } public SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) { - return new SeLinuxOptionsNested(item); + return new SeLinuxOptionsNested<>(item); } public SeccompProfileNested withNewSeccompProfile() { - return new SeccompProfileNested(null); + return new SeccompProfileNested<>(null); } public SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) { - return new SeccompProfileNested(item); + return new SeccompProfileNested<>(item); } public WindowsOptionsNested withNewWindowsOptions() { - return new WindowsOptionsNested(null); + return new WindowsOptionsNested<>(null); } public WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { - return new WindowsOptionsNested(item); + return new WindowsOptionsNested<>(item); } public A withRunAsGroup(Long runAsGroup) { @@ -697,8 +700,8 @@ public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); this._visitables.get("seLinuxOptions").add(this.seLinuxOptions); } else { - this.seLinuxOptions = null; this._visitables.get("seLinuxOptions").remove(this.seLinuxOptions); + this.seLinuxOptions = null; } return (A) this; } @@ -709,15 +712,15 @@ public A withSeccompProfile(V1SeccompProfile seccompProfile) { this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); this._visitables.get("seccompProfile").add(this.seccompProfile); } else { - this.seccompProfile = null; this._visitables.get("seccompProfile").remove(this.seccompProfile); + this.seccompProfile = null; } return (A) this; } public A withSupplementalGroups(List supplementalGroups) { if (supplementalGroups != null) { - this.supplementalGroups = new ArrayList(); + this.supplementalGroups = new ArrayList<>(); for (Long item : supplementalGroups) { this.addToSupplementalGroups(item); } @@ -750,7 +753,7 @@ public A withSysctls(List sysctls) { this._visitables.get("sysctls").clear(); } if (sysctls != null) { - this.sysctls = new ArrayList(); + this.sysctls = new ArrayList<>(); for (V1Sysctl item : sysctls) { this.addToSysctls(item); } @@ -779,8 +782,8 @@ public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { this.windowsOptions = new V1WindowsSecurityContextOptionsBuilder(windowsOptions); this._visitables.get("windowsOptions").add(this.windowsOptions); } else { - this.windowsOptions = null; this._visitables.get("windowsOptions").remove(this.windowsOptions); + this.windowsOptions = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java index 938177bbaa..589b63ffc7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodSpecBuilder extends V1PodSpecFluent implements VisitableBuilder{ V1PodSpecFluent fluent; @@ -46,6 +47,7 @@ public V1PodSpec build() { buildable.setDnsPolicy(fluent.getDnsPolicy()); buildable.setEnableServiceLinks(fluent.getEnableServiceLinks()); buildable.setEphemeralContainers(fluent.buildEphemeralContainers()); + buildable.setEvictionResponders(fluent.buildEvictionResponders()); buildable.setHostAliases(fluent.buildHostAliases()); buildable.setHostIPC(fluent.getHostIPC()); buildable.setHostNetwork(fluent.getHostNetwork()); 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 067ef9b0a3..1798b1a4a8 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 @@ -32,12 +32,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodSpecFluent> extends BaseFluent{ private Long activeDeadlineSeconds; private V1AffinityBuilder affinity; @@ -47,6 +49,7 @@ public class V1PodSpecFluent ephemeralContainers; + private ArrayList evictionResponders; private ArrayList hostAliases; private Boolean hostIPC; private Boolean hostNetwork; @@ -91,7 +94,7 @@ public V1PodSpecFluent(V1PodSpec instance) { public A addAllToContainers(Collection items) { if (this.containers == null) { - this.containers = new ArrayList(); + this.containers = new ArrayList<>(); } for (V1Container item : items) { V1ContainerBuilder builder = new V1ContainerBuilder(item); @@ -103,7 +106,7 @@ public A addAllToContainers(Collection items) { public A addAllToEphemeralContainers(Collection items) { if (this.ephemeralContainers == null) { - this.ephemeralContainers = new ArrayList(); + this.ephemeralContainers = new ArrayList<>(); } for (V1EphemeralContainer item : items) { V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); @@ -113,9 +116,21 @@ public A addAllToEphemeralContainers(Collection items) { return (A) this; } + public A addAllToEvictionResponders(Collection items) { + if (this.evictionResponders == null) { + this.evictionResponders = new ArrayList<>(); + } + for (V1EvictionResponder item : items) { + V1EvictionResponderBuilder builder = new V1EvictionResponderBuilder(item); + this._visitables.get("evictionResponders").add(builder); + this.evictionResponders.add(builder); + } + return (A) this; + } + public A addAllToHostAliases(Collection items) { if (this.hostAliases == null) { - this.hostAliases = new ArrayList(); + this.hostAliases = new ArrayList<>(); } for (V1HostAlias item : items) { V1HostAliasBuilder builder = new V1HostAliasBuilder(item); @@ -127,7 +142,7 @@ public A addAllToHostAliases(Collection items) { public A addAllToImagePullSecrets(Collection items) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); + this.imagePullSecrets = new ArrayList<>(); } for (V1LocalObjectReference item : items) { V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); @@ -139,7 +154,7 @@ public A addAllToImagePullSecrets(Collection items) { public A addAllToInitContainers(Collection items) { if (this.initContainers == null) { - this.initContainers = new ArrayList(); + this.initContainers = new ArrayList<>(); } for (V1Container item : items) { V1ContainerBuilder builder = new V1ContainerBuilder(item); @@ -151,7 +166,7 @@ public A addAllToInitContainers(Collection items) { public A addAllToReadinessGates(Collection items) { if (this.readinessGates == null) { - this.readinessGates = new ArrayList(); + this.readinessGates = new ArrayList<>(); } for (V1PodReadinessGate item : items) { V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); @@ -163,7 +178,7 @@ public A addAllToReadinessGates(Collection items) { public A addAllToResourceClaims(Collection items) { if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); + this.resourceClaims = new ArrayList<>(); } for (V1PodResourceClaim item : items) { V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); @@ -175,7 +190,7 @@ public A addAllToResourceClaims(Collection items) { public A addAllToSchedulingGates(Collection items) { if (this.schedulingGates == null) { - this.schedulingGates = new ArrayList(); + this.schedulingGates = new ArrayList<>(); } for (V1PodSchedulingGate item : items) { V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); @@ -187,7 +202,7 @@ public A addAllToSchedulingGates(Collection items) { public A addAllToTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1Toleration item : items) { V1TolerationBuilder builder = new V1TolerationBuilder(item); @@ -199,7 +214,7 @@ public A addAllToTolerations(Collection items) { public A addAllToTopologySpreadConstraints(Collection items) { if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = new ArrayList(); + this.topologySpreadConstraints = new ArrayList<>(); } for (V1TopologySpreadConstraint item : items) { V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); @@ -211,7 +226,7 @@ public A addAllToTopologySpreadConstraints(Collection items) { if (this.volumes == null) { - this.volumes = new ArrayList(); + this.volumes = new ArrayList<>(); } for (V1Volume item : items) { V1VolumeBuilder builder = new V1VolumeBuilder(item); @@ -222,96 +237,104 @@ public A addAllToVolumes(Collection items) { } public ContainersNested addNewContainer() { - return new ContainersNested(-1, null); + return new ContainersNested<>(-1, null); } public ContainersNested addNewContainerLike(V1Container item) { - return new ContainersNested(-1, item); + return new ContainersNested<>(-1, item); } public EphemeralContainersNested addNewEphemeralContainer() { - return new EphemeralContainersNested(-1, null); + return new EphemeralContainersNested<>(-1, null); } public EphemeralContainersNested addNewEphemeralContainerLike(V1EphemeralContainer item) { - return new EphemeralContainersNested(-1, item); + return new EphemeralContainersNested<>(-1, item); + } + + public EvictionRespondersNested addNewEvictionResponder() { + return new EvictionRespondersNested<>(-1, null); + } + + public EvictionRespondersNested addNewEvictionResponderLike(V1EvictionResponder item) { + return new EvictionRespondersNested<>(-1, item); } public HostAliasesNested addNewHostAlias() { - return new HostAliasesNested(-1, null); + return new HostAliasesNested<>(-1, null); } public HostAliasesNested addNewHostAliasLike(V1HostAlias item) { - return new HostAliasesNested(-1, item); + return new HostAliasesNested<>(-1, item); } public ImagePullSecretsNested addNewImagePullSecret() { - return new ImagePullSecretsNested(-1, null); + return new ImagePullSecretsNested<>(-1, null); } public ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item) { - return new ImagePullSecretsNested(-1, item); + return new ImagePullSecretsNested<>(-1, item); } public InitContainersNested addNewInitContainer() { - return new InitContainersNested(-1, null); + return new InitContainersNested<>(-1, null); } public InitContainersNested addNewInitContainerLike(V1Container item) { - return new InitContainersNested(-1, item); + return new InitContainersNested<>(-1, item); } public ReadinessGatesNested addNewReadinessGate() { - return new ReadinessGatesNested(-1, null); + return new ReadinessGatesNested<>(-1, null); } public ReadinessGatesNested addNewReadinessGateLike(V1PodReadinessGate item) { - return new ReadinessGatesNested(-1, item); + return new ReadinessGatesNested<>(-1, item); } public ResourceClaimsNested addNewResourceClaim() { - return new ResourceClaimsNested(-1, null); + return new ResourceClaimsNested<>(-1, null); } public ResourceClaimsNested addNewResourceClaimLike(V1PodResourceClaim item) { - return new ResourceClaimsNested(-1, item); + return new ResourceClaimsNested<>(-1, item); } public SchedulingGatesNested addNewSchedulingGate() { - return new SchedulingGatesNested(-1, null); + return new SchedulingGatesNested<>(-1, null); } public SchedulingGatesNested addNewSchedulingGateLike(V1PodSchedulingGate item) { - return new SchedulingGatesNested(-1, item); + return new SchedulingGatesNested<>(-1, item); } public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + return new TolerationsNested<>(-1, null); } public TolerationsNested addNewTolerationLike(V1Toleration item) { - return new TolerationsNested(-1, item); + return new TolerationsNested<>(-1, item); } public TopologySpreadConstraintsNested addNewTopologySpreadConstraint() { - return new TopologySpreadConstraintsNested(-1, null); + return new TopologySpreadConstraintsNested<>(-1, null); } public TopologySpreadConstraintsNested addNewTopologySpreadConstraintLike(V1TopologySpreadConstraint item) { - return new TopologySpreadConstraintsNested(-1, item); + return new TopologySpreadConstraintsNested<>(-1, item); } public VolumesNested addNewVolume() { - return new VolumesNested(-1, null); + return new VolumesNested<>(-1, null); } public VolumesNested addNewVolumeLike(V1Volume item) { - return new VolumesNested(-1, item); + return new VolumesNested<>(-1, item); } public A addToContainers(V1Container... items) { if (this.containers == null) { - this.containers = new ArrayList(); + this.containers = new ArrayList<>(); } for (V1Container item : items) { V1ContainerBuilder builder = new V1ContainerBuilder(item); @@ -323,7 +346,7 @@ public A addToContainers(V1Container... items) { public A addToContainers(int index,V1Container item) { if (this.containers == null) { - this.containers = new ArrayList(); + this.containers = new ArrayList<>(); } V1ContainerBuilder builder = new V1ContainerBuilder(item); if (index < 0 || index >= this.containers.size()) { @@ -338,7 +361,7 @@ public A addToContainers(int index,V1Container item) { public A addToEphemeralContainers(V1EphemeralContainer... items) { if (this.ephemeralContainers == null) { - this.ephemeralContainers = new ArrayList(); + this.ephemeralContainers = new ArrayList<>(); } for (V1EphemeralContainer item : items) { V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); @@ -350,7 +373,7 @@ public A addToEphemeralContainers(V1EphemeralContainer... items) { public A addToEphemeralContainers(int index,V1EphemeralContainer item) { if (this.ephemeralContainers == null) { - this.ephemeralContainers = new ArrayList(); + this.ephemeralContainers = new ArrayList<>(); } V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); if (index < 0 || index >= this.ephemeralContainers.size()) { @@ -363,9 +386,36 @@ public A addToEphemeralContainers(int index,V1EphemeralContainer item) { return (A) this; } + public A addToEvictionResponders(V1EvictionResponder... items) { + if (this.evictionResponders == null) { + this.evictionResponders = new ArrayList<>(); + } + for (V1EvictionResponder item : items) { + V1EvictionResponderBuilder builder = new V1EvictionResponderBuilder(item); + this._visitables.get("evictionResponders").add(builder); + this.evictionResponders.add(builder); + } + return (A) this; + } + + public A addToEvictionResponders(int index,V1EvictionResponder item) { + if (this.evictionResponders == null) { + this.evictionResponders = new ArrayList<>(); + } + V1EvictionResponderBuilder builder = new V1EvictionResponderBuilder(item); + if (index < 0 || index >= this.evictionResponders.size()) { + this._visitables.get("evictionResponders").add(builder); + this.evictionResponders.add(builder); + } else { + this._visitables.get("evictionResponders").add(builder); + this.evictionResponders.add(index, builder); + } + return (A) this; + } + public A addToHostAliases(V1HostAlias... items) { if (this.hostAliases == null) { - this.hostAliases = new ArrayList(); + this.hostAliases = new ArrayList<>(); } for (V1HostAlias item : items) { V1HostAliasBuilder builder = new V1HostAliasBuilder(item); @@ -377,7 +427,7 @@ public A addToHostAliases(V1HostAlias... items) { public A addToHostAliases(int index,V1HostAlias item) { if (this.hostAliases == null) { - this.hostAliases = new ArrayList(); + this.hostAliases = new ArrayList<>(); } V1HostAliasBuilder builder = new V1HostAliasBuilder(item); if (index < 0 || index >= this.hostAliases.size()) { @@ -392,7 +442,7 @@ public A addToHostAliases(int index,V1HostAlias item) { public A addToImagePullSecrets(V1LocalObjectReference... items) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); + this.imagePullSecrets = new ArrayList<>(); } for (V1LocalObjectReference item : items) { V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); @@ -404,7 +454,7 @@ public A addToImagePullSecrets(V1LocalObjectReference... items) { public A addToImagePullSecrets(int index,V1LocalObjectReference item) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); + this.imagePullSecrets = new ArrayList<>(); } V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); if (index < 0 || index >= this.imagePullSecrets.size()) { @@ -419,7 +469,7 @@ public A addToImagePullSecrets(int index,V1LocalObjectReference item) { public A addToInitContainers(V1Container... items) { if (this.initContainers == null) { - this.initContainers = new ArrayList(); + this.initContainers = new ArrayList<>(); } for (V1Container item : items) { V1ContainerBuilder builder = new V1ContainerBuilder(item); @@ -431,7 +481,7 @@ public A addToInitContainers(V1Container... items) { public A addToInitContainers(int index,V1Container item) { if (this.initContainers == null) { - this.initContainers = new ArrayList(); + this.initContainers = new ArrayList<>(); } V1ContainerBuilder builder = new V1ContainerBuilder(item); if (index < 0 || index >= this.initContainers.size()) { @@ -446,7 +496,7 @@ public A addToInitContainers(int index,V1Container item) { public A addToNodeSelector(Map map) { if (this.nodeSelector == null && map != null) { - this.nodeSelector = new LinkedHashMap(); + this.nodeSelector = new LinkedHashMap<>(); } if (map != null) { this.nodeSelector.putAll(map); @@ -456,7 +506,7 @@ public A addToNodeSelector(Map map) { public A addToNodeSelector(String key,String value) { if (this.nodeSelector == null && key != null && value != null) { - this.nodeSelector = new LinkedHashMap(); + this.nodeSelector = new LinkedHashMap<>(); } if (key != null && value != null) { this.nodeSelector.put(key, value); @@ -466,7 +516,7 @@ public A addToNodeSelector(String key,String value) { public A addToOverhead(Map map) { if (this.overhead == null && map != null) { - this.overhead = new LinkedHashMap(); + this.overhead = new LinkedHashMap<>(); } if (map != null) { this.overhead.putAll(map); @@ -476,7 +526,7 @@ public A addToOverhead(Map map) { public A addToOverhead(String key,Quantity value) { if (this.overhead == null && key != null && value != null) { - this.overhead = new LinkedHashMap(); + this.overhead = new LinkedHashMap<>(); } if (key != null && value != null) { this.overhead.put(key, value); @@ -486,7 +536,7 @@ public A addToOverhead(String key,Quantity value) { public A addToReadinessGates(V1PodReadinessGate... items) { if (this.readinessGates == null) { - this.readinessGates = new ArrayList(); + this.readinessGates = new ArrayList<>(); } for (V1PodReadinessGate item : items) { V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); @@ -498,7 +548,7 @@ public A addToReadinessGates(V1PodReadinessGate... items) { public A addToReadinessGates(int index,V1PodReadinessGate item) { if (this.readinessGates == null) { - this.readinessGates = new ArrayList(); + this.readinessGates = new ArrayList<>(); } V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); if (index < 0 || index >= this.readinessGates.size()) { @@ -513,7 +563,7 @@ public A addToReadinessGates(int index,V1PodReadinessGate item) { public A addToResourceClaims(V1PodResourceClaim... items) { if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); + this.resourceClaims = new ArrayList<>(); } for (V1PodResourceClaim item : items) { V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); @@ -525,7 +575,7 @@ public A addToResourceClaims(V1PodResourceClaim... items) { public A addToResourceClaims(int index,V1PodResourceClaim item) { if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); + this.resourceClaims = new ArrayList<>(); } V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); if (index < 0 || index >= this.resourceClaims.size()) { @@ -540,7 +590,7 @@ public A addToResourceClaims(int index,V1PodResourceClaim item) { public A addToSchedulingGates(V1PodSchedulingGate... items) { if (this.schedulingGates == null) { - this.schedulingGates = new ArrayList(); + this.schedulingGates = new ArrayList<>(); } for (V1PodSchedulingGate item : items) { V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); @@ -552,7 +602,7 @@ public A addToSchedulingGates(V1PodSchedulingGate... items) { public A addToSchedulingGates(int index,V1PodSchedulingGate item) { if (this.schedulingGates == null) { - this.schedulingGates = new ArrayList(); + this.schedulingGates = new ArrayList<>(); } V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); if (index < 0 || index >= this.schedulingGates.size()) { @@ -567,7 +617,7 @@ public A addToSchedulingGates(int index,V1PodSchedulingGate item) { public A addToTolerations(V1Toleration... items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1Toleration item : items) { V1TolerationBuilder builder = new V1TolerationBuilder(item); @@ -579,7 +629,7 @@ public A addToTolerations(V1Toleration... items) { public A addToTolerations(int index,V1Toleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1TolerationBuilder builder = new V1TolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -594,7 +644,7 @@ public A addToTolerations(int index,V1Toleration item) { public A addToTopologySpreadConstraints(V1TopologySpreadConstraint... items) { if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = new ArrayList(); + this.topologySpreadConstraints = new ArrayList<>(); } for (V1TopologySpreadConstraint item : items) { V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); @@ -606,7 +656,7 @@ public A addToTopologySpreadConstraints(V1TopologySpreadConstraint... items) { public A addToTopologySpreadConstraints(int index,V1TopologySpreadConstraint item) { if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = new ArrayList(); + this.topologySpreadConstraints = new ArrayList<>(); } V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); if (index < 0 || index >= this.topologySpreadConstraints.size()) { @@ -621,7 +671,7 @@ public A addToTopologySpreadConstraints(int index,V1TopologySpreadConstraint ite public A addToVolumes(V1Volume... items) { if (this.volumes == null) { - this.volumes = new ArrayList(); + this.volumes = new ArrayList<>(); } for (V1Volume item : items) { V1VolumeBuilder builder = new V1VolumeBuilder(item); @@ -633,7 +683,7 @@ public A addToVolumes(V1Volume... items) { public A addToVolumes(int index,V1Volume item) { if (this.volumes == null) { - this.volumes = new ArrayList(); + this.volumes = new ArrayList<>(); } V1VolumeBuilder builder = new V1VolumeBuilder(item); if (index < 0 || index >= this.volumes.size()) { @@ -670,6 +720,14 @@ public List buildEphemeralContainers() { return this.ephemeralContainers != null ? build(ephemeralContainers) : null; } + public V1EvictionResponder buildEvictionResponder(int index) { + return this.evictionResponders.get(index).build(); + } + + public List buildEvictionResponders() { + return this.evictionResponders != null ? build(evictionResponders) : null; + } + public V1Container buildFirstContainer() { return this.containers.get(0).build(); } @@ -678,6 +736,10 @@ public V1EphemeralContainer buildFirstEphemeralContainer() { return this.ephemeralContainers.get(0).build(); } + public V1EvictionResponder buildFirstEvictionResponder() { + return this.evictionResponders.get(0).build(); + } + public V1HostAlias buildFirstHostAlias() { return this.hostAliases.get(0).build(); } @@ -746,6 +808,10 @@ public V1EphemeralContainer buildLastEphemeralContainer() { return this.ephemeralContainers.get(ephemeralContainers.size() - 1).build(); } + public V1EvictionResponder buildLastEvictionResponder() { + return this.evictionResponders.get(evictionResponders.size() - 1).build(); + } + public V1HostAlias buildLastHostAlias() { return this.hostAliases.get(hostAliases.size() - 1).build(); } @@ -800,6 +866,15 @@ public V1EphemeralContainer buildMatchingEphemeralContainer(Predicate predicate) { + for (V1EvictionResponderBuilder item : evictionResponders) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + public V1HostAlias buildMatchingHostAlias(Predicate predicate) { for (V1HostAliasBuilder item : hostAliases) { if (predicate.test(item)) { @@ -956,6 +1031,7 @@ protected void copyInstance(V1PodSpec instance) { this.withDnsPolicy(instance.getDnsPolicy()); this.withEnableServiceLinks(instance.getEnableServiceLinks()); this.withEphemeralContainers(instance.getEphemeralContainers()); + this.withEvictionResponders(instance.getEvictionResponders()); this.withHostAliases(instance.getHostAliases()); this.withHostIPC(instance.getHostIPC()); this.withHostNetwork(instance.getHostNetwork()); @@ -1015,6 +1091,13 @@ public EphemeralContainersNested editEphemeralContainer(int index) { return this.setNewEphemeralContainerLike(index, this.buildEphemeralContainer(index)); } + public EvictionRespondersNested editEvictionResponder(int index) { + if (evictionResponders.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "evictionResponders")); + } + return this.setNewEvictionResponderLike(index, this.buildEvictionResponder(index)); + } + public ContainersNested editFirstContainer() { if (containers.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "containers")); @@ -1029,6 +1112,13 @@ public EphemeralContainersNested editFirstEphemeralContainer() { return this.setNewEphemeralContainerLike(0, this.buildEphemeralContainer(0)); } + public EvictionRespondersNested editFirstEvictionResponder() { + if (evictionResponders.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "evictionResponders")); + } + return this.setNewEvictionResponderLike(0, this.buildEvictionResponder(0)); + } + public HostAliasesNested editFirstHostAlias() { if (hostAliases.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "hostAliases")); @@ -1129,6 +1219,14 @@ public EphemeralContainersNested editLastEphemeralContainer() { return this.setNewEphemeralContainerLike(index, this.buildEphemeralContainer(index)); } + public EvictionRespondersNested editLastEvictionResponder() { + int index = evictionResponders.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "evictionResponders")); + } + return this.setNewEvictionResponderLike(index, this.buildEvictionResponder(index)); + } + public HostAliasesNested editLastHostAlias() { int index = hostAliases.size() - 1; if (index < 0) { @@ -1229,6 +1327,20 @@ public EphemeralContainersNested editMatchingEphemeralContainer(Predicate editMatchingEvictionResponder(Predicate predicate) { + int index = -1; + for (int i = 0;i < evictionResponders.size();i++) { + if (predicate.test(evictionResponders.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "evictionResponders")); + } + return this.setNewEvictionResponderLike(index, this.buildEvictionResponder(index)); + } + public HostAliasesNested editMatchingHostAlias(Predicate predicate) { int index = -1; for (int i = 0;i < hostAliases.size();i++) { @@ -1471,7 +1583,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodSpecFluent that = (V1PodSpecFluent) o; + V1PodSpecFluent that = (V1PodSpecFluent) o; if (!(Objects.equals(activeDeadlineSeconds, that.activeDeadlineSeconds))) { return false; } @@ -1496,6 +1608,9 @@ public boolean equals(Object o) { if (!(Objects.equals(ephemeralContainers, that.ephemeralContainers))) { return false; } + if (!(Objects.equals(evictionResponders, that.evictionResponders))) { + return false; + } if (!(Objects.equals(hostAliases, that.hostAliases))) { return false; } @@ -1733,6 +1848,10 @@ public boolean hasEphemeralContainers() { return this.ephemeralContainers != null && !(this.ephemeralContainers.isEmpty()); } + public boolean hasEvictionResponders() { + return this.evictionResponders != null && !(this.evictionResponders.isEmpty()); + } + public boolean hasHostAliases() { return this.hostAliases != null && !(this.hostAliases.isEmpty()); } @@ -1787,6 +1906,15 @@ public boolean hasMatchingEphemeralContainer(Predicate predicate) { + for (V1EvictionResponderBuilder item : evictionResponders) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingHostAlias(Predicate predicate) { for (V1HostAliasBuilder item : hostAliases) { if (predicate.test(item)) { @@ -1969,7 +2097,7 @@ public boolean hasVolumes() { } public int hashCode() { - return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, hostnameOverride, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, schedulingGroup, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes); + return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, evictionResponders, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, hostnameOverride, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, schedulingGroup, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes); } public A removeAllFromContainers(Collection items) { @@ -1996,6 +2124,18 @@ public A removeAllFromEphemeralContainers(Collection items return (A) this; } + public A removeAllFromEvictionResponders(Collection items) { + if (this.evictionResponders == null) { + return (A) this; + } + for (V1EvictionResponder item : items) { + V1EvictionResponderBuilder builder = new V1EvictionResponderBuilder(item); + _visitables.get("evictionResponders").remove(builder); + this.evictionResponders.remove(builder); + } + return (A) this; + } + public A removeAllFromHostAliases(Collection items) { if (this.hostAliases == null) { return (A) this; @@ -2128,6 +2268,18 @@ public A removeFromEphemeralContainers(V1EphemeralContainer... items) { return (A) this; } + public A removeFromEvictionResponders(V1EvictionResponder... items) { + if (this.evictionResponders == null) { + return (A) this; + } + for (V1EvictionResponder item : items) { + V1EvictionResponderBuilder builder = new V1EvictionResponderBuilder(item); + _visitables.get("evictionResponders").remove(builder); + this.evictionResponders.remove(builder); + } + return (A) this; + } + public A removeFromHostAliases(V1HostAlias... items) { if (this.hostAliases == null) { return (A) this; @@ -2289,6 +2441,7 @@ public A removeMatchingFromContainers(Predicate predicate) { return (A) this; } Iterator each = containers.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("containers"); while (each.hasNext()) { V1ContainerBuilder builder = each.next(); @@ -2305,6 +2458,7 @@ public A removeMatchingFromEphemeralContainers(Predicate each = ephemeralContainers.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ephemeralContainers"); while (each.hasNext()) { V1EphemeralContainerBuilder builder = each.next(); @@ -2316,11 +2470,29 @@ public A removeMatchingFromEphemeralContainers(Predicate predicate) { + if (evictionResponders == null) { + return (A) this; + } + Iterator each = evictionResponders.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("evictionResponders"); + while (each.hasNext()) { + V1EvictionResponderBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public A removeMatchingFromHostAliases(Predicate predicate) { if (hostAliases == null) { return (A) this; } Iterator each = hostAliases.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("hostAliases"); while (each.hasNext()) { V1HostAliasBuilder builder = each.next(); @@ -2337,6 +2509,7 @@ public A removeMatchingFromImagePullSecrets(Predicate each = imagePullSecrets.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("imagePullSecrets"); while (each.hasNext()) { V1LocalObjectReferenceBuilder builder = each.next(); @@ -2353,6 +2526,7 @@ public A removeMatchingFromInitContainers(Predicate predicat return (A) this; } Iterator each = initContainers.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("initContainers"); while (each.hasNext()) { V1ContainerBuilder builder = each.next(); @@ -2369,6 +2543,7 @@ public A removeMatchingFromReadinessGates(Predicate p return (A) this; } Iterator each = readinessGates.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("readinessGates"); while (each.hasNext()) { V1PodReadinessGateBuilder builder = each.next(); @@ -2385,6 +2560,7 @@ public A removeMatchingFromResourceClaims(Predicate p return (A) this; } Iterator each = resourceClaims.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resourceClaims"); while (each.hasNext()) { V1PodResourceClaimBuilder builder = each.next(); @@ -2401,6 +2577,7 @@ public A removeMatchingFromSchedulingGates(Predicate return (A) this; } Iterator each = schedulingGates.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("schedulingGates"); while (each.hasNext()) { V1PodSchedulingGateBuilder builder = each.next(); @@ -2417,6 +2594,7 @@ public A removeMatchingFromTolerations(Predicate predicate) return (A) this; } Iterator each = tolerations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1TolerationBuilder builder = each.next(); @@ -2433,6 +2611,7 @@ public A removeMatchingFromTopologySpreadConstraints(Predicate each = topologySpreadConstraints.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("topologySpreadConstraints"); while (each.hasNext()) { V1TopologySpreadConstraintBuilder builder = each.next(); @@ -2449,6 +2628,7 @@ public A removeMatchingFromVolumes(Predicate predicate) { return (A) this; } Iterator each = volumes.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("volumes"); while (each.hasNext()) { V1VolumeBuilder builder = each.next(); @@ -2461,52 +2641,56 @@ public A removeMatchingFromVolumes(Predicate predicate) { } public ContainersNested setNewContainerLike(int index,V1Container item) { - return new ContainersNested(index, item); + return new ContainersNested<>(index, item); } public EphemeralContainersNested setNewEphemeralContainerLike(int index,V1EphemeralContainer item) { - return new EphemeralContainersNested(index, item); + return new EphemeralContainersNested<>(index, item); + } + + public EvictionRespondersNested setNewEvictionResponderLike(int index,V1EvictionResponder item) { + return new EvictionRespondersNested<>(index, item); } public HostAliasesNested setNewHostAliasLike(int index,V1HostAlias item) { - return new HostAliasesNested(index, item); + return new HostAliasesNested<>(index, item); } public ImagePullSecretsNested setNewImagePullSecretLike(int index,V1LocalObjectReference item) { - return new ImagePullSecretsNested(index, item); + return new ImagePullSecretsNested<>(index, item); } public InitContainersNested setNewInitContainerLike(int index,V1Container item) { - return new InitContainersNested(index, item); + return new InitContainersNested<>(index, item); } public ReadinessGatesNested setNewReadinessGateLike(int index,V1PodReadinessGate item) { - return new ReadinessGatesNested(index, item); + return new ReadinessGatesNested<>(index, item); } public ResourceClaimsNested setNewResourceClaimLike(int index,V1PodResourceClaim item) { - return new ResourceClaimsNested(index, item); + return new ResourceClaimsNested<>(index, item); } public SchedulingGatesNested setNewSchedulingGateLike(int index,V1PodSchedulingGate item) { - return new SchedulingGatesNested(index, item); + return new SchedulingGatesNested<>(index, item); } public TolerationsNested setNewTolerationLike(int index,V1Toleration item) { - return new TolerationsNested(index, item); + return new TolerationsNested<>(index, item); } public TopologySpreadConstraintsNested setNewTopologySpreadConstraintLike(int index,V1TopologySpreadConstraint item) { - return new TopologySpreadConstraintsNested(index, item); + return new TopologySpreadConstraintsNested<>(index, item); } public VolumesNested setNewVolumeLike(int index,V1Volume item) { - return new VolumesNested(index, item); + return new VolumesNested<>(index, item); } public A setToContainers(int index,V1Container item) { if (this.containers == null) { - this.containers = new ArrayList(); + this.containers = new ArrayList<>(); } V1ContainerBuilder builder = new V1ContainerBuilder(item); if (index < 0 || index >= this.containers.size()) { @@ -2521,7 +2705,7 @@ public A setToContainers(int index,V1Container item) { public A setToEphemeralContainers(int index,V1EphemeralContainer item) { if (this.ephemeralContainers == null) { - this.ephemeralContainers = new ArrayList(); + this.ephemeralContainers = new ArrayList<>(); } V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); if (index < 0 || index >= this.ephemeralContainers.size()) { @@ -2534,9 +2718,24 @@ public A setToEphemeralContainers(int index,V1EphemeralContainer item) { return (A) this; } + public A setToEvictionResponders(int index,V1EvictionResponder item) { + if (this.evictionResponders == null) { + this.evictionResponders = new ArrayList<>(); + } + V1EvictionResponderBuilder builder = new V1EvictionResponderBuilder(item); + if (index < 0 || index >= this.evictionResponders.size()) { + this._visitables.get("evictionResponders").add(builder); + this.evictionResponders.add(builder); + } else { + this._visitables.get("evictionResponders").add(builder); + this.evictionResponders.set(index, builder); + } + return (A) this; + } + public A setToHostAliases(int index,V1HostAlias item) { if (this.hostAliases == null) { - this.hostAliases = new ArrayList(); + this.hostAliases = new ArrayList<>(); } V1HostAliasBuilder builder = new V1HostAliasBuilder(item); if (index < 0 || index >= this.hostAliases.size()) { @@ -2551,7 +2750,7 @@ public A setToHostAliases(int index,V1HostAlias item) { public A setToImagePullSecrets(int index,V1LocalObjectReference item) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); + this.imagePullSecrets = new ArrayList<>(); } V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); if (index < 0 || index >= this.imagePullSecrets.size()) { @@ -2566,7 +2765,7 @@ public A setToImagePullSecrets(int index,V1LocalObjectReference item) { public A setToInitContainers(int index,V1Container item) { if (this.initContainers == null) { - this.initContainers = new ArrayList(); + this.initContainers = new ArrayList<>(); } V1ContainerBuilder builder = new V1ContainerBuilder(item); if (index < 0 || index >= this.initContainers.size()) { @@ -2581,7 +2780,7 @@ public A setToInitContainers(int index,V1Container item) { public A setToReadinessGates(int index,V1PodReadinessGate item) { if (this.readinessGates == null) { - this.readinessGates = new ArrayList(); + this.readinessGates = new ArrayList<>(); } V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); if (index < 0 || index >= this.readinessGates.size()) { @@ -2596,7 +2795,7 @@ public A setToReadinessGates(int index,V1PodReadinessGate item) { public A setToResourceClaims(int index,V1PodResourceClaim item) { if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); + this.resourceClaims = new ArrayList<>(); } V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); if (index < 0 || index >= this.resourceClaims.size()) { @@ -2611,7 +2810,7 @@ public A setToResourceClaims(int index,V1PodResourceClaim item) { public A setToSchedulingGates(int index,V1PodSchedulingGate item) { if (this.schedulingGates == null) { - this.schedulingGates = new ArrayList(); + this.schedulingGates = new ArrayList<>(); } V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); if (index < 0 || index >= this.schedulingGates.size()) { @@ -2626,7 +2825,7 @@ public A setToSchedulingGates(int index,V1PodSchedulingGate item) { public A setToTolerations(int index,V1Toleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1TolerationBuilder builder = new V1TolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -2641,7 +2840,7 @@ public A setToTolerations(int index,V1Toleration item) { public A setToTopologySpreadConstraints(int index,V1TopologySpreadConstraint item) { if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = new ArrayList(); + this.topologySpreadConstraints = new ArrayList<>(); } V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); if (index < 0 || index >= this.topologySpreadConstraints.size()) { @@ -2656,7 +2855,7 @@ public A setToTopologySpreadConstraints(int index,V1TopologySpreadConstraint ite public A setToVolumes(int index,V1Volume item) { if (this.volumes == null) { - this.volumes = new ArrayList(); + this.volumes = new ArrayList<>(); } V1VolumeBuilder builder = new V1VolumeBuilder(item); if (index < 0 || index >= this.volumes.size()) { @@ -2712,6 +2911,11 @@ public String toString() { sb.append(ephemeralContainers); sb.append(","); } + if (!(evictionResponders == null) && !(evictionResponders.isEmpty())) { + sb.append("evictionResponders:"); + sb.append(evictionResponders); + sb.append(","); + } if (!(hostAliases == null) && !(hostAliases.isEmpty())) { sb.append("hostAliases:"); sb.append(hostAliases); @@ -2896,8 +3100,8 @@ public A withAffinity(V1Affinity affinity) { this.affinity = new V1AffinityBuilder(affinity); this._visitables.get("affinity").add(this.affinity); } else { - this.affinity = null; this._visitables.get("affinity").remove(this.affinity); + this.affinity = null; } return (A) this; } @@ -2916,7 +3120,7 @@ public A withContainers(List containers) { this._visitables.get("containers").clear(); } if (containers != null) { - this.containers = new ArrayList(); + this.containers = new ArrayList<>(); for (V1Container item : containers) { this.addToContainers(item); } @@ -2945,8 +3149,8 @@ public A withDnsConfig(V1PodDNSConfig dnsConfig) { this.dnsConfig = new V1PodDNSConfigBuilder(dnsConfig); this._visitables.get("dnsConfig").add(this.dnsConfig); } else { - this.dnsConfig = null; this._visitables.get("dnsConfig").remove(this.dnsConfig); + this.dnsConfig = null; } return (A) this; } @@ -2970,7 +3174,7 @@ public A withEphemeralContainers(List ephemeralContainers) this._visitables.get("ephemeralContainers").clear(); } if (ephemeralContainers != null) { - this.ephemeralContainers = new ArrayList(); + this.ephemeralContainers = new ArrayList<>(); for (V1EphemeralContainer item : ephemeralContainers) { this.addToEphemeralContainers(item); } @@ -2993,12 +3197,40 @@ public A withEphemeralContainers(V1EphemeralContainer... ephemeralContainers) { return (A) this; } + public A withEvictionResponders(List evictionResponders) { + if (this.evictionResponders != null) { + this._visitables.get("evictionResponders").clear(); + } + if (evictionResponders != null) { + this.evictionResponders = new ArrayList<>(); + for (V1EvictionResponder item : evictionResponders) { + this.addToEvictionResponders(item); + } + } else { + this.evictionResponders = null; + } + return (A) this; + } + + public A withEvictionResponders(V1EvictionResponder... evictionResponders) { + if (this.evictionResponders != null) { + this.evictionResponders.clear(); + _visitables.remove("evictionResponders"); + } + if (evictionResponders != null) { + for (V1EvictionResponder item : evictionResponders) { + this.addToEvictionResponders(item); + } + } + return (A) this; + } + public A withHostAliases(List hostAliases) { if (this.hostAliases != null) { this._visitables.get("hostAliases").clear(); } if (hostAliases != null) { - this.hostAliases = new ArrayList(); + this.hostAliases = new ArrayList<>(); for (V1HostAlias item : hostAliases) { this.addToHostAliases(item); } @@ -3072,7 +3304,7 @@ public A withImagePullSecrets(List imagePullSecrets) { this._visitables.get("imagePullSecrets").clear(); } if (imagePullSecrets != null) { - this.imagePullSecrets = new ArrayList(); + this.imagePullSecrets = new ArrayList<>(); for (V1LocalObjectReference item : imagePullSecrets) { this.addToImagePullSecrets(item); } @@ -3100,7 +3332,7 @@ public A withInitContainers(List initContainers) { this._visitables.get("initContainers").clear(); } if (initContainers != null) { - this.initContainers = new ArrayList(); + this.initContainers = new ArrayList<>(); for (V1Container item : initContainers) { this.addToInitContainers(item); } @@ -3124,51 +3356,51 @@ public A withInitContainers(V1Container... initContainers) { } public AffinityNested withNewAffinity() { - return new AffinityNested(null); + return new AffinityNested<>(null); } public AffinityNested withNewAffinityLike(V1Affinity item) { - return new AffinityNested(item); + return new AffinityNested<>(item); } public DnsConfigNested withNewDnsConfig() { - return new DnsConfigNested(null); + return new DnsConfigNested<>(null); } public DnsConfigNested withNewDnsConfigLike(V1PodDNSConfig item) { - return new DnsConfigNested(item); + return new DnsConfigNested<>(item); } public OsNested withNewOs() { - return new OsNested(null); + return new OsNested<>(null); } public OsNested withNewOsLike(V1PodOS item) { - return new OsNested(item); + return new OsNested<>(item); } public ResourcesNested withNewResources() { - return new ResourcesNested(null); + return new ResourcesNested<>(null); } public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { - return new ResourcesNested(item); + return new ResourcesNested<>(item); } public SchedulingGroupNested withNewSchedulingGroup() { - return new SchedulingGroupNested(null); + return new SchedulingGroupNested<>(null); } public SchedulingGroupNested withNewSchedulingGroupLike(V1PodSchedulingGroup item) { - return new SchedulingGroupNested(item); + return new SchedulingGroupNested<>(item); } public SecurityContextNested withNewSecurityContext() { - return new SecurityContextNested(null); + return new SecurityContextNested<>(null); } public SecurityContextNested withNewSecurityContextLike(V1PodSecurityContext item) { - return new SecurityContextNested(item); + return new SecurityContextNested<>(item); } public A withNodeName(String nodeName) { @@ -3180,7 +3412,7 @@ public A withNodeSelector(Map nodeSelector) { if (nodeSelector == null) { this.nodeSelector = null; } else { - this.nodeSelector = new LinkedHashMap(nodeSelector); + this.nodeSelector = new LinkedHashMap<>(nodeSelector); } return (A) this; } @@ -3191,8 +3423,8 @@ public A withOs(V1PodOS os) { this.os = new V1PodOSBuilder(os); this._visitables.get("os").add(this.os); } else { - this.os = null; this._visitables.get("os").remove(this.os); + this.os = null; } return (A) this; } @@ -3201,7 +3433,7 @@ public A withOverhead(Map overhead) { if (overhead == null) { this.overhead = null; } else { - this.overhead = new LinkedHashMap(overhead); + this.overhead = new LinkedHashMap<>(overhead); } return (A) this; } @@ -3226,7 +3458,7 @@ public A withReadinessGates(List readinessGates) { this._visitables.get("readinessGates").clear(); } if (readinessGates != null) { - this.readinessGates = new ArrayList(); + this.readinessGates = new ArrayList<>(); for (V1PodReadinessGate item : readinessGates) { this.addToReadinessGates(item); } @@ -3254,7 +3486,7 @@ public A withResourceClaims(List resourceClaims) { this._visitables.get("resourceClaims").clear(); } if (resourceClaims != null) { - this.resourceClaims = new ArrayList(); + this.resourceClaims = new ArrayList<>(); for (V1PodResourceClaim item : resourceClaims) { this.addToResourceClaims(item); } @@ -3283,8 +3515,8 @@ public A withResources(V1ResourceRequirements resources) { this.resources = new V1ResourceRequirementsBuilder(resources); this._visitables.get("resources").add(this.resources); } else { - this.resources = null; this._visitables.get("resources").remove(this.resources); + this.resources = null; } return (A) this; } @@ -3309,7 +3541,7 @@ public A withSchedulingGates(List schedulingGates) { this._visitables.get("schedulingGates").clear(); } if (schedulingGates != null) { - this.schedulingGates = new ArrayList(); + this.schedulingGates = new ArrayList<>(); for (V1PodSchedulingGate item : schedulingGates) { this.addToSchedulingGates(item); } @@ -3338,8 +3570,8 @@ public A withSchedulingGroup(V1PodSchedulingGroup schedulingGroup) { this.schedulingGroup = new V1PodSchedulingGroupBuilder(schedulingGroup); this._visitables.get("schedulingGroup").add(this.schedulingGroup); } else { - this.schedulingGroup = null; this._visitables.get("schedulingGroup").remove(this.schedulingGroup); + this.schedulingGroup = null; } return (A) this; } @@ -3350,8 +3582,8 @@ public A withSecurityContext(V1PodSecurityContext securityContext) { this.securityContext = new V1PodSecurityContextBuilder(securityContext); this._visitables.get("securityContext").add(this.securityContext); } else { - this.securityContext = null; this._visitables.get("securityContext").remove(this.securityContext); + this.securityContext = null; } return (A) this; } @@ -3399,7 +3631,7 @@ public A withTolerations(List tolerations) { this._visitables.get("tolerations").clear(); } if (tolerations != null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); for (V1Toleration item : tolerations) { this.addToTolerations(item); } @@ -3427,7 +3659,7 @@ public A withTopologySpreadConstraints(List topology this._visitables.get("topologySpreadConstraints").clear(); } if (topologySpreadConstraints != null) { - this.topologySpreadConstraints = new ArrayList(); + this.topologySpreadConstraints = new ArrayList<>(); for (V1TopologySpreadConstraint item : topologySpreadConstraints) { this.addToTopologySpreadConstraints(item); } @@ -3455,7 +3687,7 @@ public A withVolumes(List volumes) { this._visitables.get("volumes").clear(); } if (volumes != null) { - this.volumes = new ArrayList(); + this.volumes = new ArrayList<>(); for (V1Volume item : volumes) { this.addToVolumes(item); } @@ -3548,6 +3780,25 @@ public N endEphemeralContainer() { return and(); } + } + public class EvictionRespondersNested extends V1EvictionResponderFluent> implements Nested{ + + V1EvictionResponderBuilder builder; + int index; + + EvictionRespondersNested(int index,V1EvictionResponder item) { + this.index = index; + this.builder = new V1EvictionResponderBuilder(this, item); + } + + public N and() { + return (N) V1PodSpecFluent.this.setToEvictionResponders(index, builder.build()); + } + + public N endEvictionResponder() { + return and(); + } + } public class HostAliasesNested extends V1HostAliasFluent> implements Nested{ 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 dc7145da22..43979aeb73 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodStatusBuilder extends V1PodStatusFluent implements VisitableBuilder{ V1PodStatusFluent fluent; @@ -59,6 +60,7 @@ public V1PodStatus build() { buildable.setResourceClaimStatuses(fluent.buildResourceClaimStatuses()); buildable.setResources(fluent.buildResources()); buildable.setStartTime(fluent.getStartTime()); + buildable.setVolumeHealth(fluent.buildVolumeHealth()); return buildable; } 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 1ab94fb576..8b1015920a 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 @@ -31,12 +31,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodStatusFluent> extends BaseFluent{ private Map allocatedResources; private ArrayList conditions; @@ -59,6 +61,7 @@ public class V1PodStatusFluent resourceClaimStatuses; private V1ResourceRequirementsBuilder resources; private OffsetDateTime startTime; + private ArrayList volumeHealth; public V1PodStatusFluent() { } @@ -69,7 +72,7 @@ public V1PodStatusFluent(V1PodStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1PodCondition item : items) { V1PodConditionBuilder builder = new V1PodConditionBuilder(item); @@ -81,7 +84,7 @@ public A addAllToConditions(Collection items) { public A addAllToContainerStatuses(Collection items) { if (this.containerStatuses == null) { - this.containerStatuses = new ArrayList(); + this.containerStatuses = new ArrayList<>(); } for (V1ContainerStatus item : items) { V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); @@ -93,7 +96,7 @@ public A addAllToContainerStatuses(Collection items) { public A addAllToEphemeralContainerStatuses(Collection items) { if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = new ArrayList(); + this.ephemeralContainerStatuses = new ArrayList<>(); } for (V1ContainerStatus item : items) { V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); @@ -105,7 +108,7 @@ public A addAllToEphemeralContainerStatuses(Collection items) public A addAllToHostIPs(Collection items) { if (this.hostIPs == null) { - this.hostIPs = new ArrayList(); + this.hostIPs = new ArrayList<>(); } for (V1HostIP item : items) { V1HostIPBuilder builder = new V1HostIPBuilder(item); @@ -117,7 +120,7 @@ public A addAllToHostIPs(Collection items) { public A addAllToInitContainerStatuses(Collection items) { if (this.initContainerStatuses == null) { - this.initContainerStatuses = new ArrayList(); + this.initContainerStatuses = new ArrayList<>(); } for (V1ContainerStatus item : items) { V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); @@ -129,7 +132,7 @@ public A addAllToInitContainerStatuses(Collection items) { public A addAllToNodeAllocatableResourceClaimStatuses(Collection items) { if (this.nodeAllocatableResourceClaimStatuses == null) { - this.nodeAllocatableResourceClaimStatuses = new ArrayList(); + this.nodeAllocatableResourceClaimStatuses = new ArrayList<>(); } for (V1NodeAllocatableResourceClaimStatus item : items) { V1NodeAllocatableResourceClaimStatusBuilder builder = new V1NodeAllocatableResourceClaimStatusBuilder(item); @@ -141,7 +144,7 @@ public A addAllToNodeAllocatableResourceClaimStatuses(Collection items) { if (this.podIPs == null) { - this.podIPs = new ArrayList(); + this.podIPs = new ArrayList<>(); } for (V1PodIP item : items) { V1PodIPBuilder builder = new V1PodIPBuilder(item); @@ -153,7 +156,7 @@ public A addAllToPodIPs(Collection items) { public A addAllToResourceClaimStatuses(Collection items) { if (this.resourceClaimStatuses == null) { - this.resourceClaimStatuses = new ArrayList(); + this.resourceClaimStatuses = new ArrayList<>(); } for (V1PodResourceClaimStatus item : items) { V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); @@ -163,73 +166,93 @@ public A addAllToResourceClaimStatuses(Collection item return (A) this; } + public A addAllToVolumeHealth(Collection items) { + if (this.volumeHealth == null) { + this.volumeHealth = new ArrayList<>(); + } + for (V1PodVolumeHealth item : items) { + V1PodVolumeHealthBuilder builder = new V1PodVolumeHealthBuilder(item); + this._visitables.get("volumeHealth").add(builder); + this.volumeHealth.add(builder); + } + return (A) this; + } + public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1PodCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public ContainerStatusesNested addNewContainerStatus() { - return new ContainerStatusesNested(-1, null); + return new ContainerStatusesNested<>(-1, null); } public ContainerStatusesNested addNewContainerStatusLike(V1ContainerStatus item) { - return new ContainerStatusesNested(-1, item); + return new ContainerStatusesNested<>(-1, item); } public EphemeralContainerStatusesNested addNewEphemeralContainerStatus() { - return new EphemeralContainerStatusesNested(-1, null); + return new EphemeralContainerStatusesNested<>(-1, null); } public EphemeralContainerStatusesNested addNewEphemeralContainerStatusLike(V1ContainerStatus item) { - return new EphemeralContainerStatusesNested(-1, item); + return new EphemeralContainerStatusesNested<>(-1, item); } public HostIPsNested addNewHostIP() { - return new HostIPsNested(-1, null); + return new HostIPsNested<>(-1, null); } public HostIPsNested addNewHostIPLike(V1HostIP item) { - return new HostIPsNested(-1, item); + return new HostIPsNested<>(-1, item); } public InitContainerStatusesNested addNewInitContainerStatus() { - return new InitContainerStatusesNested(-1, null); + return new InitContainerStatusesNested<>(-1, null); } public InitContainerStatusesNested addNewInitContainerStatusLike(V1ContainerStatus item) { - return new InitContainerStatusesNested(-1, item); + return new InitContainerStatusesNested<>(-1, item); } public NodeAllocatableResourceClaimStatusesNested addNewNodeAllocatableResourceClaimStatus() { - return new NodeAllocatableResourceClaimStatusesNested(-1, null); + return new NodeAllocatableResourceClaimStatusesNested<>(-1, null); } public NodeAllocatableResourceClaimStatusesNested addNewNodeAllocatableResourceClaimStatusLike(V1NodeAllocatableResourceClaimStatus item) { - return new NodeAllocatableResourceClaimStatusesNested(-1, item); + return new NodeAllocatableResourceClaimStatusesNested<>(-1, item); } public PodIPsNested addNewPodIP() { - return new PodIPsNested(-1, null); + return new PodIPsNested<>(-1, null); } public PodIPsNested addNewPodIPLike(V1PodIP item) { - return new PodIPsNested(-1, item); + return new PodIPsNested<>(-1, item); } public ResourceClaimStatusesNested addNewResourceClaimStatus() { - return new ResourceClaimStatusesNested(-1, null); + return new ResourceClaimStatusesNested<>(-1, null); } public ResourceClaimStatusesNested addNewResourceClaimStatusLike(V1PodResourceClaimStatus item) { - return new ResourceClaimStatusesNested(-1, item); + return new ResourceClaimStatusesNested<>(-1, item); + } + + public VolumeHealthNested addNewVolumeHealth() { + return new VolumeHealthNested<>(-1, null); + } + + public VolumeHealthNested addNewVolumeHealthLike(V1PodVolumeHealth item) { + return new VolumeHealthNested<>(-1, item); } public A addToAllocatedResources(Map map) { if (this.allocatedResources == null && map != null) { - this.allocatedResources = new LinkedHashMap(); + this.allocatedResources = new LinkedHashMap<>(); } if (map != null) { this.allocatedResources.putAll(map); @@ -239,7 +262,7 @@ public A addToAllocatedResources(Map map) { public A addToAllocatedResources(String key,Quantity value) { if (this.allocatedResources == null && key != null && value != null) { - this.allocatedResources = new LinkedHashMap(); + this.allocatedResources = new LinkedHashMap<>(); } if (key != null && value != null) { this.allocatedResources.put(key, value); @@ -249,7 +272,7 @@ public A addToAllocatedResources(String key,Quantity value) { public A addToConditions(V1PodCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1PodCondition item : items) { V1PodConditionBuilder builder = new V1PodConditionBuilder(item); @@ -261,7 +284,7 @@ public A addToConditions(V1PodCondition... items) { public A addToConditions(int index,V1PodCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1PodConditionBuilder builder = new V1PodConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -276,7 +299,7 @@ public A addToConditions(int index,V1PodCondition item) { public A addToContainerStatuses(V1ContainerStatus... items) { if (this.containerStatuses == null) { - this.containerStatuses = new ArrayList(); + this.containerStatuses = new ArrayList<>(); } for (V1ContainerStatus item : items) { V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); @@ -288,7 +311,7 @@ public A addToContainerStatuses(V1ContainerStatus... items) { public A addToContainerStatuses(int index,V1ContainerStatus item) { if (this.containerStatuses == null) { - this.containerStatuses = new ArrayList(); + this.containerStatuses = new ArrayList<>(); } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= this.containerStatuses.size()) { @@ -303,7 +326,7 @@ public A addToContainerStatuses(int index,V1ContainerStatus item) { public A addToEphemeralContainerStatuses(V1ContainerStatus... items) { if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = new ArrayList(); + this.ephemeralContainerStatuses = new ArrayList<>(); } for (V1ContainerStatus item : items) { V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); @@ -315,7 +338,7 @@ public A addToEphemeralContainerStatuses(V1ContainerStatus... items) { public A addToEphemeralContainerStatuses(int index,V1ContainerStatus item) { if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = new ArrayList(); + this.ephemeralContainerStatuses = new ArrayList<>(); } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= this.ephemeralContainerStatuses.size()) { @@ -330,7 +353,7 @@ public A addToEphemeralContainerStatuses(int index,V1ContainerStatus item) { public A addToHostIPs(V1HostIP... items) { if (this.hostIPs == null) { - this.hostIPs = new ArrayList(); + this.hostIPs = new ArrayList<>(); } for (V1HostIP item : items) { V1HostIPBuilder builder = new V1HostIPBuilder(item); @@ -342,7 +365,7 @@ public A addToHostIPs(V1HostIP... items) { public A addToHostIPs(int index,V1HostIP item) { if (this.hostIPs == null) { - this.hostIPs = new ArrayList(); + this.hostIPs = new ArrayList<>(); } V1HostIPBuilder builder = new V1HostIPBuilder(item); if (index < 0 || index >= this.hostIPs.size()) { @@ -357,7 +380,7 @@ public A addToHostIPs(int index,V1HostIP item) { public A addToInitContainerStatuses(V1ContainerStatus... items) { if (this.initContainerStatuses == null) { - this.initContainerStatuses = new ArrayList(); + this.initContainerStatuses = new ArrayList<>(); } for (V1ContainerStatus item : items) { V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); @@ -369,7 +392,7 @@ public A addToInitContainerStatuses(V1ContainerStatus... items) { public A addToInitContainerStatuses(int index,V1ContainerStatus item) { if (this.initContainerStatuses == null) { - this.initContainerStatuses = new ArrayList(); + this.initContainerStatuses = new ArrayList<>(); } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= this.initContainerStatuses.size()) { @@ -384,7 +407,7 @@ public A addToInitContainerStatuses(int index,V1ContainerStatus item) { public A addToNodeAllocatableResourceClaimStatuses(V1NodeAllocatableResourceClaimStatus... items) { if (this.nodeAllocatableResourceClaimStatuses == null) { - this.nodeAllocatableResourceClaimStatuses = new ArrayList(); + this.nodeAllocatableResourceClaimStatuses = new ArrayList<>(); } for (V1NodeAllocatableResourceClaimStatus item : items) { V1NodeAllocatableResourceClaimStatusBuilder builder = new V1NodeAllocatableResourceClaimStatusBuilder(item); @@ -396,7 +419,7 @@ public A addToNodeAllocatableResourceClaimStatuses(V1NodeAllocatableResourceClai public A addToNodeAllocatableResourceClaimStatuses(int index,V1NodeAllocatableResourceClaimStatus item) { if (this.nodeAllocatableResourceClaimStatuses == null) { - this.nodeAllocatableResourceClaimStatuses = new ArrayList(); + this.nodeAllocatableResourceClaimStatuses = new ArrayList<>(); } V1NodeAllocatableResourceClaimStatusBuilder builder = new V1NodeAllocatableResourceClaimStatusBuilder(item); if (index < 0 || index >= this.nodeAllocatableResourceClaimStatuses.size()) { @@ -411,7 +434,7 @@ public A addToNodeAllocatableResourceClaimStatuses(int index,V1NodeAllocatableRe public A addToPodIPs(V1PodIP... items) { if (this.podIPs == null) { - this.podIPs = new ArrayList(); + this.podIPs = new ArrayList<>(); } for (V1PodIP item : items) { V1PodIPBuilder builder = new V1PodIPBuilder(item); @@ -423,7 +446,7 @@ public A addToPodIPs(V1PodIP... items) { public A addToPodIPs(int index,V1PodIP item) { if (this.podIPs == null) { - this.podIPs = new ArrayList(); + this.podIPs = new ArrayList<>(); } V1PodIPBuilder builder = new V1PodIPBuilder(item); if (index < 0 || index >= this.podIPs.size()) { @@ -438,7 +461,7 @@ public A addToPodIPs(int index,V1PodIP item) { public A addToResourceClaimStatuses(V1PodResourceClaimStatus... items) { if (this.resourceClaimStatuses == null) { - this.resourceClaimStatuses = new ArrayList(); + this.resourceClaimStatuses = new ArrayList<>(); } for (V1PodResourceClaimStatus item : items) { V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); @@ -450,7 +473,7 @@ public A addToResourceClaimStatuses(V1PodResourceClaimStatus... items) { public A addToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { if (this.resourceClaimStatuses == null) { - this.resourceClaimStatuses = new ArrayList(); + this.resourceClaimStatuses = new ArrayList<>(); } V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); if (index < 0 || index >= this.resourceClaimStatuses.size()) { @@ -463,6 +486,33 @@ public A addToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { return (A) this; } + public A addToVolumeHealth(V1PodVolumeHealth... items) { + if (this.volumeHealth == null) { + this.volumeHealth = new ArrayList<>(); + } + for (V1PodVolumeHealth item : items) { + V1PodVolumeHealthBuilder builder = new V1PodVolumeHealthBuilder(item); + this._visitables.get("volumeHealth").add(builder); + this.volumeHealth.add(builder); + } + return (A) this; + } + + public A addToVolumeHealth(int index,V1PodVolumeHealth item) { + if (this.volumeHealth == null) { + this.volumeHealth = new ArrayList<>(); + } + V1PodVolumeHealthBuilder builder = new V1PodVolumeHealthBuilder(item); + if (index < 0 || index >= this.volumeHealth.size()) { + this._visitables.get("volumeHealth").add(builder); + this.volumeHealth.add(builder); + } else { + this._visitables.get("volumeHealth").add(builder); + this.volumeHealth.add(index, builder); + } + return (A) this; + } + public V1PodCondition buildCondition(int index) { return this.conditions.get(index).build(); } @@ -523,6 +573,10 @@ public V1PodResourceClaimStatus buildFirstResourceClaimStatus() { return this.resourceClaimStatuses.get(0).build(); } + public V1PodVolumeHealth buildFirstVolumeHealth() { + return this.volumeHealth.get(0).build(); + } + public V1HostIP buildHostIP(int index) { return this.hostIPs.get(index).build(); } @@ -571,6 +625,10 @@ public V1PodResourceClaimStatus buildLastResourceClaimStatus() { return this.resourceClaimStatuses.get(resourceClaimStatuses.size() - 1).build(); } + public V1PodVolumeHealth buildLastVolumeHealth() { + return this.volumeHealth.get(volumeHealth.size() - 1).build(); + } + public V1PodCondition buildMatchingCondition(Predicate predicate) { for (V1PodConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -643,6 +701,15 @@ public V1PodResourceClaimStatus buildMatchingResourceClaimStatus(Predicate predicate) { + for (V1PodVolumeHealthBuilder item : volumeHealth) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + public V1NodeAllocatableResourceClaimStatus buildNodeAllocatableResourceClaimStatus(int index) { return this.nodeAllocatableResourceClaimStatuses.get(index).build(); } @@ -671,6 +738,14 @@ public V1ResourceRequirements buildResources() { return this.resources != null ? this.resources.build() : null; } + public List buildVolumeHealth() { + return this.volumeHealth != null ? build(volumeHealth) : null; + } + + public V1PodVolumeHealth buildVolumeHealth(int index) { + return this.volumeHealth.get(index).build(); + } + protected void copyInstance(V1PodStatus instance) { instance = instance != null ? instance : new V1PodStatus(); if (instance != null) { @@ -695,6 +770,7 @@ protected void copyInstance(V1PodStatus instance) { this.withResourceClaimStatuses(instance.getResourceClaimStatuses()); this.withResources(instance.getResources()); this.withStartTime(instance.getStartTime()); + this.withVolumeHealth(instance.getVolumeHealth()); } } @@ -779,6 +855,13 @@ public ResourceClaimStatusesNested editFirstResourceClaimStatus() { return this.setNewResourceClaimStatusLike(0, this.buildResourceClaimStatus(0)); } + public VolumeHealthNested editFirstVolumeHealth() { + if (volumeHealth.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeHealth")); + } + return this.setNewVolumeHealthLike(0, this.buildVolumeHealth(0)); + } + public HostIPsNested editHostIP(int index) { if (hostIPs.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "hostIPs")); @@ -857,6 +940,14 @@ public ResourceClaimStatusesNested editLastResourceClaimStatus() { return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); } + public VolumeHealthNested editLastVolumeHealth() { + int index = volumeHealth.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeHealth")); + } + return this.setNewVolumeHealthLike(index, this.buildVolumeHealth(index)); + } + public ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; for (int i = 0;i < conditions.size();i++) { @@ -969,6 +1060,20 @@ public ResourceClaimStatusesNested editMatchingResourceClaimStatus(Predicate< return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); } + public VolumeHealthNested editMatchingVolumeHealth(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumeHealth.size();i++) { + if (predicate.test(volumeHealth.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeHealth")); + } + return this.setNewVolumeHealthLike(index, this.buildVolumeHealth(index)); + } + public NodeAllocatableResourceClaimStatusesNested editNodeAllocatableResourceClaimStatus(int index) { if (nodeAllocatableResourceClaimStatuses.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nodeAllocatableResourceClaimStatuses")); @@ -1010,6 +1115,13 @@ public ResourcesNested editResources() { return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } + public VolumeHealthNested editVolumeHealth(int index) { + if (volumeHealth.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeHealth")); + } + return this.setNewVolumeHealthLike(index, this.buildVolumeHealth(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -1020,7 +1132,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodStatusFluent that = (V1PodStatusFluent) o; + V1PodStatusFluent that = (V1PodStatusFluent) o; if (!(Objects.equals(allocatedResources, that.allocatedResources))) { return false; } @@ -1084,6 +1196,9 @@ public boolean equals(Object o) { if (!(Objects.equals(startTime, that.startTime))) { return false; } + if (!(Objects.equals(volumeHealth, that.volumeHealth))) { + return false; + } return true; } @@ -1235,6 +1350,15 @@ public boolean hasMatchingResourceClaimStatus(Predicate predicate) { + for (V1PodVolumeHealthBuilder item : volumeHealth) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMessage() { return this.message != null; } @@ -1287,8 +1411,12 @@ public boolean hasStartTime() { return this.startTime != null; } + public boolean hasVolumeHealth() { + return this.volumeHealth != null && !(this.volumeHealth.isEmpty()); + } + public int hashCode() { - return Objects.hash(allocatedResources, conditions, containerStatuses, ephemeralContainerStatuses, extendedResourceClaimStatus, hostIP, hostIPs, initContainerStatuses, message, nodeAllocatableResourceClaimStatuses, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, resources, startTime); + return Objects.hash(allocatedResources, conditions, containerStatuses, ephemeralContainerStatuses, extendedResourceClaimStatus, hostIP, hostIPs, initContainerStatuses, message, nodeAllocatableResourceClaimStatuses, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, resources, startTime, volumeHealth); } public A removeAllFromConditions(Collection items) { @@ -1387,6 +1515,18 @@ public A removeAllFromResourceClaimStatuses(Collection return (A) this; } + public A removeAllFromVolumeHealth(Collection items) { + if (this.volumeHealth == null) { + return (A) this; + } + for (V1PodVolumeHealth item : items) { + V1PodVolumeHealthBuilder builder = new V1PodVolumeHealthBuilder(item); + _visitables.get("volumeHealth").remove(builder); + this.volumeHealth.remove(builder); + } + return (A) this; + } + public A removeFromAllocatedResources(String key) { if (this.allocatedResources == null) { return (A) this; @@ -1507,11 +1647,24 @@ public A removeFromResourceClaimStatuses(V1PodResourceClaimStatus... items) { return (A) this; } + public A removeFromVolumeHealth(V1PodVolumeHealth... items) { + if (this.volumeHealth == null) { + return (A) this; + } + for (V1PodVolumeHealth item : items) { + V1PodVolumeHealthBuilder builder = new V1PodVolumeHealthBuilder(item); + _visitables.get("volumeHealth").remove(builder); + this.volumeHealth.remove(builder); + } + return (A) this; + } + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1PodConditionBuilder builder = each.next(); @@ -1528,6 +1681,7 @@ public A removeMatchingFromContainerStatuses(Predicate return (A) this; } Iterator each = containerStatuses.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("containerStatuses"); while (each.hasNext()) { V1ContainerStatusBuilder builder = each.next(); @@ -1544,6 +1698,7 @@ public A removeMatchingFromEphemeralContainerStatuses(Predicate each = ephemeralContainerStatuses.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ephemeralContainerStatuses"); while (each.hasNext()) { V1ContainerStatusBuilder builder = each.next(); @@ -1560,6 +1715,7 @@ public A removeMatchingFromHostIPs(Predicate predicate) { return (A) this; } Iterator each = hostIPs.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("hostIPs"); while (each.hasNext()) { V1HostIPBuilder builder = each.next(); @@ -1576,6 +1732,7 @@ public A removeMatchingFromInitContainerStatuses(Predicate each = initContainerStatuses.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("initContainerStatuses"); while (each.hasNext()) { V1ContainerStatusBuilder builder = each.next(); @@ -1592,6 +1749,7 @@ public A removeMatchingFromNodeAllocatableResourceClaimStatuses(Predicate each = nodeAllocatableResourceClaimStatuses.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("nodeAllocatableResourceClaimStatuses"); while (each.hasNext()) { V1NodeAllocatableResourceClaimStatusBuilder builder = each.next(); @@ -1608,6 +1766,7 @@ public A removeMatchingFromPodIPs(Predicate predicate) { return (A) this; } Iterator each = podIPs.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("podIPs"); while (each.hasNext()) { V1PodIPBuilder builder = each.next(); @@ -1624,6 +1783,7 @@ public A removeMatchingFromResourceClaimStatuses(Predicate each = resourceClaimStatuses.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resourceClaimStatuses"); while (each.hasNext()) { V1PodResourceClaimStatusBuilder builder = each.next(); @@ -1635,41 +1795,62 @@ public A removeMatchingFromResourceClaimStatuses(Predicate predicate) { + if (volumeHealth == null) { + return (A) this; + } + Iterator each = volumeHealth.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("volumeHealth"); + while (each.hasNext()) { + V1PodVolumeHealthBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public ConditionsNested setNewConditionLike(int index,V1PodCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public ContainerStatusesNested setNewContainerStatusLike(int index,V1ContainerStatus item) { - return new ContainerStatusesNested(index, item); + return new ContainerStatusesNested<>(index, item); } public EphemeralContainerStatusesNested setNewEphemeralContainerStatusLike(int index,V1ContainerStatus item) { - return new EphemeralContainerStatusesNested(index, item); + return new EphemeralContainerStatusesNested<>(index, item); } public HostIPsNested setNewHostIPLike(int index,V1HostIP item) { - return new HostIPsNested(index, item); + return new HostIPsNested<>(index, item); } public InitContainerStatusesNested setNewInitContainerStatusLike(int index,V1ContainerStatus item) { - return new InitContainerStatusesNested(index, item); + return new InitContainerStatusesNested<>(index, item); } public NodeAllocatableResourceClaimStatusesNested setNewNodeAllocatableResourceClaimStatusLike(int index,V1NodeAllocatableResourceClaimStatus item) { - return new NodeAllocatableResourceClaimStatusesNested(index, item); + return new NodeAllocatableResourceClaimStatusesNested<>(index, item); } public PodIPsNested setNewPodIPLike(int index,V1PodIP item) { - return new PodIPsNested(index, item); + return new PodIPsNested<>(index, item); } public ResourceClaimStatusesNested setNewResourceClaimStatusLike(int index,V1PodResourceClaimStatus item) { - return new ResourceClaimStatusesNested(index, item); + return new ResourceClaimStatusesNested<>(index, item); + } + + public VolumeHealthNested setNewVolumeHealthLike(int index,V1PodVolumeHealth item) { + return new VolumeHealthNested<>(index, item); } public A setToConditions(int index,V1PodCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1PodConditionBuilder builder = new V1PodConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -1684,7 +1865,7 @@ public A setToConditions(int index,V1PodCondition item) { public A setToContainerStatuses(int index,V1ContainerStatus item) { if (this.containerStatuses == null) { - this.containerStatuses = new ArrayList(); + this.containerStatuses = new ArrayList<>(); } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= this.containerStatuses.size()) { @@ -1699,7 +1880,7 @@ public A setToContainerStatuses(int index,V1ContainerStatus item) { public A setToEphemeralContainerStatuses(int index,V1ContainerStatus item) { if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = new ArrayList(); + this.ephemeralContainerStatuses = new ArrayList<>(); } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= this.ephemeralContainerStatuses.size()) { @@ -1714,7 +1895,7 @@ public A setToEphemeralContainerStatuses(int index,V1ContainerStatus item) { public A setToHostIPs(int index,V1HostIP item) { if (this.hostIPs == null) { - this.hostIPs = new ArrayList(); + this.hostIPs = new ArrayList<>(); } V1HostIPBuilder builder = new V1HostIPBuilder(item); if (index < 0 || index >= this.hostIPs.size()) { @@ -1729,7 +1910,7 @@ public A setToHostIPs(int index,V1HostIP item) { public A setToInitContainerStatuses(int index,V1ContainerStatus item) { if (this.initContainerStatuses == null) { - this.initContainerStatuses = new ArrayList(); + this.initContainerStatuses = new ArrayList<>(); } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= this.initContainerStatuses.size()) { @@ -1744,7 +1925,7 @@ public A setToInitContainerStatuses(int index,V1ContainerStatus item) { public A setToNodeAllocatableResourceClaimStatuses(int index,V1NodeAllocatableResourceClaimStatus item) { if (this.nodeAllocatableResourceClaimStatuses == null) { - this.nodeAllocatableResourceClaimStatuses = new ArrayList(); + this.nodeAllocatableResourceClaimStatuses = new ArrayList<>(); } V1NodeAllocatableResourceClaimStatusBuilder builder = new V1NodeAllocatableResourceClaimStatusBuilder(item); if (index < 0 || index >= this.nodeAllocatableResourceClaimStatuses.size()) { @@ -1759,7 +1940,7 @@ public A setToNodeAllocatableResourceClaimStatuses(int index,V1NodeAllocatableRe public A setToPodIPs(int index,V1PodIP item) { if (this.podIPs == null) { - this.podIPs = new ArrayList(); + this.podIPs = new ArrayList<>(); } V1PodIPBuilder builder = new V1PodIPBuilder(item); if (index < 0 || index >= this.podIPs.size()) { @@ -1774,7 +1955,7 @@ public A setToPodIPs(int index,V1PodIP item) { public A setToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { if (this.resourceClaimStatuses == null) { - this.resourceClaimStatuses = new ArrayList(); + this.resourceClaimStatuses = new ArrayList<>(); } V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); if (index < 0 || index >= this.resourceClaimStatuses.size()) { @@ -1787,6 +1968,21 @@ public A setToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { return (A) this; } + public A setToVolumeHealth(int index,V1PodVolumeHealth item) { + if (this.volumeHealth == null) { + this.volumeHealth = new ArrayList<>(); + } + V1PodVolumeHealthBuilder builder = new V1PodVolumeHealthBuilder(item); + if (index < 0 || index >= this.volumeHealth.size()) { + this._visitables.get("volumeHealth").add(builder); + this.volumeHealth.add(builder); + } else { + this._visitables.get("volumeHealth").add(builder); + this.volumeHealth.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -1893,6 +2089,11 @@ public String toString() { if (!(startTime == null)) { sb.append("startTime:"); sb.append(startTime); + sb.append(","); + } + if (!(volumeHealth == null) && !(volumeHealth.isEmpty())) { + sb.append("volumeHealth:"); + sb.append(volumeHealth); } sb.append("}"); return sb.toString(); @@ -1902,7 +2103,7 @@ public A withAllocatedResources(Map allocatedResources) { if (allocatedResources == null) { this.allocatedResources = null; } else { - this.allocatedResources = new LinkedHashMap(allocatedResources); + this.allocatedResources = new LinkedHashMap<>(allocatedResources); } return (A) this; } @@ -1912,7 +2113,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1PodCondition item : conditions) { this.addToConditions(item); } @@ -1940,7 +2141,7 @@ public A withContainerStatuses(List containerStatuses) { this._visitables.get("containerStatuses").clear(); } if (containerStatuses != null) { - this.containerStatuses = new ArrayList(); + this.containerStatuses = new ArrayList<>(); for (V1ContainerStatus item : containerStatuses) { this.addToContainerStatuses(item); } @@ -1968,7 +2169,7 @@ public A withEphemeralContainerStatuses(List ephemeralContain this._visitables.get("ephemeralContainerStatuses").clear(); } if (ephemeralContainerStatuses != null) { - this.ephemeralContainerStatuses = new ArrayList(); + this.ephemeralContainerStatuses = new ArrayList<>(); for (V1ContainerStatus item : ephemeralContainerStatuses) { this.addToEphemeralContainerStatuses(item); } @@ -1997,8 +2198,8 @@ public A withExtendedResourceClaimStatus(V1PodExtendedResourceClaimStatus extend this.extendedResourceClaimStatus = new V1PodExtendedResourceClaimStatusBuilder(extendedResourceClaimStatus); this._visitables.get("extendedResourceClaimStatus").add(this.extendedResourceClaimStatus); } else { - this.extendedResourceClaimStatus = null; this._visitables.get("extendedResourceClaimStatus").remove(this.extendedResourceClaimStatus); + this.extendedResourceClaimStatus = null; } return (A) this; } @@ -2013,7 +2214,7 @@ public A withHostIPs(List hostIPs) { this._visitables.get("hostIPs").clear(); } if (hostIPs != null) { - this.hostIPs = new ArrayList(); + this.hostIPs = new ArrayList<>(); for (V1HostIP item : hostIPs) { this.addToHostIPs(item); } @@ -2041,7 +2242,7 @@ public A withInitContainerStatuses(List initContainerStatuses this._visitables.get("initContainerStatuses").clear(); } if (initContainerStatuses != null) { - this.initContainerStatuses = new ArrayList(); + this.initContainerStatuses = new ArrayList<>(); for (V1ContainerStatus item : initContainerStatuses) { this.addToInitContainerStatuses(item); } @@ -2070,19 +2271,19 @@ public A withMessage(String message) { } public ExtendedResourceClaimStatusNested withNewExtendedResourceClaimStatus() { - return new ExtendedResourceClaimStatusNested(null); + return new ExtendedResourceClaimStatusNested<>(null); } public ExtendedResourceClaimStatusNested withNewExtendedResourceClaimStatusLike(V1PodExtendedResourceClaimStatus item) { - return new ExtendedResourceClaimStatusNested(item); + return new ExtendedResourceClaimStatusNested<>(item); } public ResourcesNested withNewResources() { - return new ResourcesNested(null); + return new ResourcesNested<>(null); } public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { - return new ResourcesNested(item); + return new ResourcesNested<>(item); } public A withNodeAllocatableResourceClaimStatuses(List nodeAllocatableResourceClaimStatuses) { @@ -2090,7 +2291,7 @@ public A withNodeAllocatableResourceClaimStatuses(List(); for (V1NodeAllocatableResourceClaimStatus item : nodeAllocatableResourceClaimStatuses) { this.addToNodeAllocatableResourceClaimStatuses(item); } @@ -2138,7 +2339,7 @@ public A withPodIPs(List podIPs) { this._visitables.get("podIPs").clear(); } if (podIPs != null) { - this.podIPs = new ArrayList(); + this.podIPs = new ArrayList<>(); for (V1PodIP item : podIPs) { this.addToPodIPs(item); } @@ -2181,7 +2382,7 @@ public A withResourceClaimStatuses(List resourceClaimS this._visitables.get("resourceClaimStatuses").clear(); } if (resourceClaimStatuses != null) { - this.resourceClaimStatuses = new ArrayList(); + this.resourceClaimStatuses = new ArrayList<>(); for (V1PodResourceClaimStatus item : resourceClaimStatuses) { this.addToResourceClaimStatuses(item); } @@ -2210,8 +2411,8 @@ public A withResources(V1ResourceRequirements resources) { this.resources = new V1ResourceRequirementsBuilder(resources); this._visitables.get("resources").add(this.resources); } else { - this.resources = null; this._visitables.get("resources").remove(this.resources); + this.resources = null; } return (A) this; } @@ -2220,6 +2421,34 @@ public A withStartTime(OffsetDateTime startTime) { this.startTime = startTime; return (A) this; } + + public A withVolumeHealth(List volumeHealth) { + if (this.volumeHealth != null) { + this._visitables.get("volumeHealth").clear(); + } + if (volumeHealth != null) { + this.volumeHealth = new ArrayList<>(); + for (V1PodVolumeHealth item : volumeHealth) { + this.addToVolumeHealth(item); + } + } else { + this.volumeHealth = null; + } + return (A) this; + } + + public A withVolumeHealth(V1PodVolumeHealth... volumeHealth) { + if (this.volumeHealth != null) { + this.volumeHealth.clear(); + _visitables.remove("volumeHealth"); + } + if (volumeHealth != null) { + for (V1PodVolumeHealth item : volumeHealth) { + this.addToVolumeHealth(item); + } + } + return (A) this; + } public class ConditionsNested extends V1PodConditionFluent> implements Nested{ V1PodConditionBuilder builder; @@ -2406,4 +2635,23 @@ public N endResources() { } } + public class VolumeHealthNested extends V1PodVolumeHealthFluent> implements Nested{ + + V1PodVolumeHealthBuilder builder; + int index; + + VolumeHealthNested(int index,V1PodVolumeHealth item) { + this.index = index; + this.builder = new V1PodVolumeHealthBuilder(this, item); + } + + public N and() { + return (N) V1PodStatusFluent.this.setToVolumeHealth(index, builder.build()); + } + + public N endVolumeHealth() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java index 081155400b..e4f28beb96 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodTemplateBuilder extends V1PodTemplateFluent implements VisitableBuilder{ V1PodTemplateFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java index ced4dcb1e0..c0fdfee73f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodTemplateFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodTemplateFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodTemplateFluent that = (V1PodTemplateFluent) o; + V1PodTemplateFluent that = (V1PodTemplateFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public TemplateNested withNewTemplate() { - return new TemplateNested(null); + return new TemplateNested<>(null); } public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); + return new TemplateNested<>(item); } public A withTemplate(V1PodTemplateSpec template) { @@ -205,8 +207,8 @@ public A withTemplate(V1PodTemplateSpec template) { this.template = new V1PodTemplateSpecBuilder(template); this._visitables.get("template").add(this.template); } else { - this.template = null; this._visitables.get("template").remove(this.template); + this.template = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java index 404fff71f8..5e6dc9cb6a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodTemplateListBuilder extends V1PodTemplateListFluent implements VisitableBuilder{ V1PodTemplateListFluent fluent; 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 a6ce3380e8..df753de4f0 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodTemplateListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodTemplateListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1PodTemplateListFluent(V1PodTemplateList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1PodTemplate item : items) { V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1PodTemplate item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1PodTemplate... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1PodTemplate item : items) { V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1PodTemplate... items) { public A addToItems(int index,V1PodTemplate item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodTemplateListFluent that = (V1PodTemplateListFluent) o; + V1PodTemplateListFluent that = (V1PodTemplateListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PodTemplateBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1PodTemplate item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1PodTemplate item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1PodTemplate item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1PodTemplateFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java index e1471f6926..e8a09604c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PodTemplateSpecBuilder extends V1PodTemplateSpecFluent implements VisitableBuilder{ V1PodTemplateSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java index c60115d044..f6f3503f53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PodTemplateSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodTemplateSpecFluent> extends BaseFluent{ private V1ObjectMetaBuilder metadata; private V1PodSpecBuilder spec; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PodTemplateSpecFluent that = (V1PodTemplateSpecFluent) o; + V1PodTemplateSpecFluent that = (V1PodTemplateSpecFluent) o; if (!(Objects.equals(metadata, that.metadata))) { return false; } @@ -131,26 +133,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1PodSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1PodSpec spec) { @@ -159,8 +161,8 @@ public A withSpec(V1PodSpec spec) { this.spec = new V1PodSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodVolumeHealthBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodVolumeHealthBuilder.java new file mode 100644 index 0000000000..352714c5c6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodVolumeHealthBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1PodVolumeHealthBuilder extends V1PodVolumeHealthFluent implements VisitableBuilder{ + + V1PodVolumeHealthFluent fluent; + + public V1PodVolumeHealthBuilder() { + this(new V1PodVolumeHealth()); + } + + public V1PodVolumeHealthBuilder(V1PodVolumeHealthFluent fluent) { + this(fluent, new V1PodVolumeHealth()); + } + + public V1PodVolumeHealthBuilder(V1PodVolumeHealth instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1PodVolumeHealthBuilder(V1PodVolumeHealthFluent fluent,V1PodVolumeHealth instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PodVolumeHealth build() { + V1PodVolumeHealth buildable = new V1PodVolumeHealth(); + buildable.setHealthConditions(fluent.buildHealthConditions()); + buildable.setLastTransitionTime(fluent.getLastTransitionTime()); + buildable.setName(fluent.getName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodVolumeHealthFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodVolumeHealthFluent.java new file mode 100644 index 0000000000..0acca58be2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodVolumeHealthFluent.java @@ -0,0 +1,359 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PodVolumeHealthFluent> extends BaseFluent{ + + private ArrayList healthConditions; + private OffsetDateTime lastTransitionTime; + private String name; + + public V1PodVolumeHealthFluent() { + } + + public V1PodVolumeHealthFluent(V1PodVolumeHealth instance) { + this.copyInstance(instance); + } + + public A addAllToHealthConditions(Collection items) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + for (V1VolumeHealthCondition item : items) { + V1VolumeHealthConditionBuilder builder = new V1VolumeHealthConditionBuilder(item); + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(builder); + } + return (A) this; + } + + public HealthConditionsNested addNewHealthCondition() { + return new HealthConditionsNested<>(-1, null); + } + + public HealthConditionsNested addNewHealthConditionLike(V1VolumeHealthCondition item) { + return new HealthConditionsNested<>(-1, item); + } + + public A addToHealthConditions(V1VolumeHealthCondition... items) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + for (V1VolumeHealthCondition item : items) { + V1VolumeHealthConditionBuilder builder = new V1VolumeHealthConditionBuilder(item); + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(builder); + } + return (A) this; + } + + public A addToHealthConditions(int index,V1VolumeHealthCondition item) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + V1VolumeHealthConditionBuilder builder = new V1VolumeHealthConditionBuilder(item); + if (index < 0 || index >= this.healthConditions.size()) { + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(builder); + } else { + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(index, builder); + } + return (A) this; + } + + public V1VolumeHealthCondition buildFirstHealthCondition() { + return this.healthConditions.get(0).build(); + } + + public V1VolumeHealthCondition buildHealthCondition(int index) { + return this.healthConditions.get(index).build(); + } + + public List buildHealthConditions() { + return this.healthConditions != null ? build(healthConditions) : null; + } + + public V1VolumeHealthCondition buildLastHealthCondition() { + return this.healthConditions.get(healthConditions.size() - 1).build(); + } + + public V1VolumeHealthCondition buildMatchingHealthCondition(Predicate predicate) { + for (V1VolumeHealthConditionBuilder item : healthConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + protected void copyInstance(V1PodVolumeHealth instance) { + instance = instance != null ? instance : new V1PodVolumeHealth(); + if (instance != null) { + this.withHealthConditions(instance.getHealthConditions()); + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withName(instance.getName()); + } + } + + public HealthConditionsNested editFirstHealthCondition() { + if (healthConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "healthConditions")); + } + return this.setNewHealthConditionLike(0, this.buildHealthCondition(0)); + } + + public HealthConditionsNested editHealthCondition(int index) { + if (healthConditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "healthConditions")); + } + return this.setNewHealthConditionLike(index, this.buildHealthCondition(index)); + } + + public HealthConditionsNested editLastHealthCondition() { + int index = healthConditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "healthConditions")); + } + return this.setNewHealthConditionLike(index, this.buildHealthCondition(index)); + } + + public HealthConditionsNested editMatchingHealthCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < healthConditions.size();i++) { + if (predicate.test(healthConditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "healthConditions")); + } + return this.setNewHealthConditionLike(index, this.buildHealthCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodVolumeHealthFluent that = (V1PodVolumeHealthFluent) o; + if (!(Objects.equals(healthConditions, that.healthConditions))) { + return false; + } + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public String getName() { + return this.name; + } + + public boolean hasHealthConditions() { + return this.healthConditions != null && !(this.healthConditions.isEmpty()); + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMatchingHealthCondition(Predicate predicate) { + for (V1VolumeHealthConditionBuilder item : healthConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(healthConditions, lastTransitionTime, name); + } + + public A removeAllFromHealthConditions(Collection items) { + if (this.healthConditions == null) { + return (A) this; + } + for (V1VolumeHealthCondition item : items) { + V1VolumeHealthConditionBuilder builder = new V1VolumeHealthConditionBuilder(item); + _visitables.get("healthConditions").remove(builder); + this.healthConditions.remove(builder); + } + return (A) this; + } + + public A removeFromHealthConditions(V1VolumeHealthCondition... items) { + if (this.healthConditions == null) { + return (A) this; + } + for (V1VolumeHealthCondition item : items) { + V1VolumeHealthConditionBuilder builder = new V1VolumeHealthConditionBuilder(item); + _visitables.get("healthConditions").remove(builder); + this.healthConditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromHealthConditions(Predicate predicate) { + if (healthConditions == null) { + return (A) this; + } + Iterator each = healthConditions.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("healthConditions"); + while (each.hasNext()) { + V1VolumeHealthConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public HealthConditionsNested setNewHealthConditionLike(int index,V1VolumeHealthCondition item) { + return new HealthConditionsNested<>(index, item); + } + + public A setToHealthConditions(int index,V1VolumeHealthCondition item) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + V1VolumeHealthConditionBuilder builder = new V1VolumeHealthConditionBuilder(item); + if (index < 0 || index >= this.healthConditions.size()) { + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(builder); + } else { + this._visitables.get("healthConditions").add(builder); + this.healthConditions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(healthConditions == null) && !(healthConditions.isEmpty())) { + sb.append("healthConditions:"); + sb.append(healthConditions); + sb.append(","); + } + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withHealthConditions(List healthConditions) { + if (this.healthConditions != null) { + this._visitables.get("healthConditions").clear(); + } + if (healthConditions != null) { + this.healthConditions = new ArrayList<>(); + for (V1VolumeHealthCondition item : healthConditions) { + this.addToHealthConditions(item); + } + } else { + this.healthConditions = null; + } + return (A) this; + } + + public A withHealthConditions(V1VolumeHealthCondition... healthConditions) { + if (this.healthConditions != null) { + this.healthConditions.clear(); + _visitables.remove("healthConditions"); + } + if (healthConditions != null) { + for (V1VolumeHealthCondition item : healthConditions) { + this.addToHealthConditions(item); + } + } + return (A) this; + } + + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public class HealthConditionsNested extends V1VolumeHealthConditionFluent> implements Nested{ + + V1VolumeHealthConditionBuilder builder; + int index; + + HealthConditionsNested(int index,V1VolumeHealthCondition item) { + this.index = index; + this.builder = new V1VolumeHealthConditionBuilder(this, item); + } + + public N and() { + return (N) V1PodVolumeHealthFluent.this.setToHealthConditions(index, builder.build()); + } + + public N endHealthCondition() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java index d284da4a90..c7ac853db2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PolicyRuleBuilder extends V1PolicyRuleFluent implements VisitableBuilder{ V1PolicyRuleFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java index e3b7b89eb2..a3993265fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PolicyRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PolicyRuleFluent> extends BaseFluent{ private List apiGroups; private List nonResourceURLs; @@ -44,7 +46,7 @@ public V1PolicyRuleFluent(V1PolicyRule instance) { public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -54,7 +56,7 @@ public A addAllToApiGroups(Collection items) { public A addAllToNonResourceURLs(Collection items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } for (String item : items) { this.nonResourceURLs.add(item); @@ -64,7 +66,7 @@ public A addAllToNonResourceURLs(Collection items) { public A addAllToResourceNames(Collection items) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } for (String item : items) { this.resourceNames.add(item); @@ -74,7 +76,7 @@ public A addAllToResourceNames(Collection items) { public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -84,7 +86,7 @@ public A addAllToResources(Collection items) { public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -94,7 +96,7 @@ public A addAllToVerbs(Collection items) { public A addToApiGroups(String... items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -104,7 +106,7 @@ public A addToApiGroups(String... items) { public A addToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(index, item); return (A) this; @@ -112,7 +114,7 @@ public A addToApiGroups(int index,String item) { public A addToNonResourceURLs(String... items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } for (String item : items) { this.nonResourceURLs.add(item); @@ -122,7 +124,7 @@ public A addToNonResourceURLs(String... items) { public A addToNonResourceURLs(int index,String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } this.nonResourceURLs.add(index, item); return (A) this; @@ -130,7 +132,7 @@ public A addToNonResourceURLs(int index,String item) { public A addToResourceNames(String... items) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } for (String item : items) { this.resourceNames.add(item); @@ -140,7 +142,7 @@ public A addToResourceNames(String... items) { public A addToResourceNames(int index,String item) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.add(index, item); return (A) this; @@ -148,7 +150,7 @@ public A addToResourceNames(int index,String item) { public A addToResources(String... items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -158,7 +160,7 @@ public A addToResources(String... items) { public A addToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(index, item); return (A) this; @@ -166,7 +168,7 @@ public A addToResources(int index,String item) { public A addToVerbs(String... items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -176,7 +178,7 @@ public A addToVerbs(String... items) { public A addToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.add(index, item); return (A) this; @@ -203,7 +205,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PolicyRuleFluent that = (V1PolicyRuleFluent) o; + V1PolicyRuleFluent that = (V1PolicyRuleFluent) o; if (!(Objects.equals(apiGroups, that.apiGroups))) { return false; } @@ -518,7 +520,7 @@ public A removeFromVerbs(String... items) { public A setToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.set(index, item); return (A) this; @@ -526,7 +528,7 @@ public A setToApiGroups(int index,String item) { public A setToNonResourceURLs(int index,String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } this.nonResourceURLs.set(index, item); return (A) this; @@ -534,7 +536,7 @@ public A setToNonResourceURLs(int index,String item) { public A setToResourceNames(int index,String item) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.set(index, item); return (A) this; @@ -542,7 +544,7 @@ public A setToResourceNames(int index,String item) { public A setToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.set(index, item); return (A) this; @@ -550,7 +552,7 @@ public A setToResources(int index,String item) { public A setToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.set(index, item); return (A) this; @@ -589,7 +591,7 @@ public String toString() { public A withApiGroups(List apiGroups) { if (apiGroups != null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); for (String item : apiGroups) { this.addToApiGroups(item); } @@ -614,7 +616,7 @@ public A withApiGroups(String... apiGroups) { public A withNonResourceURLs(List nonResourceURLs) { if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); for (String item : nonResourceURLs) { this.addToNonResourceURLs(item); } @@ -639,7 +641,7 @@ public A withNonResourceURLs(String... nonResourceURLs) { public A withResourceNames(List resourceNames) { if (resourceNames != null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); for (String item : resourceNames) { this.addToResourceNames(item); } @@ -664,7 +666,7 @@ public A withResourceNames(String... resourceNames) { public A withResources(List resources) { if (resources != null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); for (String item : resources) { this.addToResources(item); } @@ -689,7 +691,7 @@ public A withResources(String... resources) { public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); for (String item : verbs) { this.addToVerbs(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java index a331d04205..a60741b394 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PolicyRulesWithSubjectsBuilder extends V1PolicyRulesWithSubjectsFluent implements VisitableBuilder{ V1PolicyRulesWithSubjectsFluent fluent; 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 279ca97e87..6b4ae841f2 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PolicyRulesWithSubjectsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PolicyRulesWithSubjectsFluent> extends BaseFluent{ private ArrayList nonResourceRules; private ArrayList resourceRules; @@ -45,7 +47,7 @@ public V1PolicyRulesWithSubjectsFluent(V1PolicyRulesWithSubjects instance) { public A addAllToNonResourceRules(Collection items) { if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); + this.nonResourceRules = new ArrayList<>(); } for (V1NonResourcePolicyRule item : items) { V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); @@ -57,7 +59,7 @@ public A addAllToNonResourceRules(Collection items) { public A addAllToResourceRules(Collection items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } for (V1ResourcePolicyRule item : items) { V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); @@ -69,7 +71,7 @@ public A addAllToResourceRules(Collection items) { public A addAllToSubjects(Collection items) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } for (FlowcontrolV1Subject item : items) { FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); @@ -80,32 +82,32 @@ public A addAllToSubjects(Collection items) { } public NonResourceRulesNested addNewNonResourceRule() { - return new NonResourceRulesNested(-1, null); + return new NonResourceRulesNested<>(-1, null); } public NonResourceRulesNested addNewNonResourceRuleLike(V1NonResourcePolicyRule item) { - return new NonResourceRulesNested(-1, item); + return new NonResourceRulesNested<>(-1, item); } public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); + return new ResourceRulesNested<>(-1, null); } public ResourceRulesNested addNewResourceRuleLike(V1ResourcePolicyRule item) { - return new ResourceRulesNested(-1, item); + return new ResourceRulesNested<>(-1, item); } public SubjectsNested addNewSubject() { - return new SubjectsNested(-1, null); + return new SubjectsNested<>(-1, null); } public SubjectsNested addNewSubjectLike(FlowcontrolV1Subject item) { - return new SubjectsNested(-1, item); + return new SubjectsNested<>(-1, item); } public A addToNonResourceRules(V1NonResourcePolicyRule... items) { if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); + this.nonResourceRules = new ArrayList<>(); } for (V1NonResourcePolicyRule item : items) { V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); @@ -117,7 +119,7 @@ public A addToNonResourceRules(V1NonResourcePolicyRule... items) { public A addToNonResourceRules(int index,V1NonResourcePolicyRule item) { if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); + this.nonResourceRules = new ArrayList<>(); } V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); if (index < 0 || index >= this.nonResourceRules.size()) { @@ -132,7 +134,7 @@ public A addToNonResourceRules(int index,V1NonResourcePolicyRule item) { public A addToResourceRules(V1ResourcePolicyRule... items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } for (V1ResourcePolicyRule item : items) { V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); @@ -144,7 +146,7 @@ public A addToResourceRules(V1ResourcePolicyRule... items) { public A addToResourceRules(int index,V1ResourcePolicyRule item) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); if (index < 0 || index >= this.resourceRules.size()) { @@ -159,7 +161,7 @@ public A addToResourceRules(int index,V1ResourcePolicyRule item) { public A addToSubjects(FlowcontrolV1Subject... items) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } for (FlowcontrolV1Subject item : items) { FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); @@ -171,7 +173,7 @@ public A addToSubjects(FlowcontrolV1Subject... items) { public A addToSubjects(int index,FlowcontrolV1Subject item) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); if (index < 0 || index >= this.subjects.size()) { @@ -386,7 +388,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PolicyRulesWithSubjectsFluent that = (V1PolicyRulesWithSubjectsFluent) o; + V1PolicyRulesWithSubjectsFluent that = (V1PolicyRulesWithSubjectsFluent) o; if (!(Objects.equals(nonResourceRules, that.nonResourceRules))) { return false; } @@ -519,6 +521,7 @@ public A removeMatchingFromNonResourceRules(Predicate each = nonResourceRules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("nonResourceRules"); while (each.hasNext()) { V1NonResourcePolicyRuleBuilder builder = each.next(); @@ -535,6 +538,7 @@ public A removeMatchingFromResourceRules(Predicate return (A) this; } Iterator each = resourceRules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resourceRules"); while (each.hasNext()) { V1ResourcePolicyRuleBuilder builder = each.next(); @@ -551,6 +555,7 @@ public A removeMatchingFromSubjects(Predicate predi return (A) this; } Iterator each = subjects.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("subjects"); while (each.hasNext()) { FlowcontrolV1SubjectBuilder builder = each.next(); @@ -563,20 +568,20 @@ public A removeMatchingFromSubjects(Predicate predi } public NonResourceRulesNested setNewNonResourceRuleLike(int index,V1NonResourcePolicyRule item) { - return new NonResourceRulesNested(index, item); + return new NonResourceRulesNested<>(index, item); } public ResourceRulesNested setNewResourceRuleLike(int index,V1ResourcePolicyRule item) { - return new ResourceRulesNested(index, item); + return new ResourceRulesNested<>(index, item); } public SubjectsNested setNewSubjectLike(int index,FlowcontrolV1Subject item) { - return new SubjectsNested(index, item); + return new SubjectsNested<>(index, item); } public A setToNonResourceRules(int index,V1NonResourcePolicyRule item) { if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); + this.nonResourceRules = new ArrayList<>(); } V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); if (index < 0 || index >= this.nonResourceRules.size()) { @@ -591,7 +596,7 @@ public A setToNonResourceRules(int index,V1NonResourcePolicyRule item) { public A setToResourceRules(int index,V1ResourcePolicyRule item) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); if (index < 0 || index >= this.resourceRules.size()) { @@ -606,7 +611,7 @@ public A setToResourceRules(int index,V1ResourcePolicyRule item) { public A setToSubjects(int index,FlowcontrolV1Subject item) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); if (index < 0 || index >= this.subjects.size()) { @@ -645,7 +650,7 @@ public A withNonResourceRules(List nonResourceRules) { this._visitables.get("nonResourceRules").clear(); } if (nonResourceRules != null) { - this.nonResourceRules = new ArrayList(); + this.nonResourceRules = new ArrayList<>(); for (V1NonResourcePolicyRule item : nonResourceRules) { this.addToNonResourceRules(item); } @@ -673,7 +678,7 @@ public A withResourceRules(List resourceRules) { this._visitables.get("resourceRules").clear(); } if (resourceRules != null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); for (V1ResourcePolicyRule item : resourceRules) { this.addToResourceRules(item); } @@ -701,7 +706,7 @@ public A withSubjects(List subjects) { this._visitables.get("subjects").clear(); } if (subjects != null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); for (FlowcontrolV1Subject item : subjects) { this.addToSubjects(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java index 58d5b9110a..00b85f0f81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PortStatusBuilder extends V1PortStatusFluent implements VisitableBuilder{ V1PortStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java index 4004903428..bf385e4f3f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PortStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PortStatusFluent> extends BaseFluent{ private String error; private Integer port; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PortStatusFluent that = (V1PortStatusFluent) o; + V1PortStatusFluent that = (V1PortStatusFluent) o; if (!(Objects.equals(error, that.error))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java index 33c137bfc7..4e305c2861 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PortworxVolumeSourceBuilder extends V1PortworxVolumeSourceFluent implements VisitableBuilder{ V1PortworxVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java index d32d626906..511d4a77b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PortworxVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PortworxVolumeSourceFluent> extends BaseFluent{ private String fsType; private Boolean readOnly; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PortworxVolumeSourceFluent that = (V1PortworxVolumeSourceFluent) o; + V1PortworxVolumeSourceFluent that = (V1PortworxVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java index 3a4b8730d8..56f5881988 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PreconditionsBuilder extends V1PreconditionsFluent implements VisitableBuilder{ V1PreconditionsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java index b5423c70e2..1573049aff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PreconditionsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PreconditionsFluent> extends BaseFluent{ private String resourceVersion; private String uid; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PreconditionsFluent that = (V1PreconditionsFluent) o; + V1PreconditionsFluent that = (V1PreconditionsFluent) o; if (!(Objects.equals(resourceVersion, that.resourceVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java index 9093493185..fbcb46dc29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PreferredSchedulingTermBuilder extends V1PreferredSchedulingTermFluent implements VisitableBuilder{ V1PreferredSchedulingTermFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java index ecff2aee66..c21e15fe6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PreferredSchedulingTermFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PreferredSchedulingTermFluent> extends BaseFluent{ private V1NodeSelectorTermBuilder preference; private Integer weight; @@ -72,7 +74,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PreferredSchedulingTermFluent that = (V1PreferredSchedulingTermFluent) o; + V1PreferredSchedulingTermFluent that = (V1PreferredSchedulingTermFluent) o; if (!(Objects.equals(preference, that.preference))) { return false; } @@ -115,11 +117,11 @@ public String toString() { } public PreferenceNested withNewPreference() { - return new PreferenceNested(null); + return new PreferenceNested<>(null); } public PreferenceNested withNewPreferenceLike(V1NodeSelectorTerm item) { - return new PreferenceNested(item); + return new PreferenceNested<>(item); } public A withPreference(V1NodeSelectorTerm preference) { @@ -128,8 +130,8 @@ public A withPreference(V1NodeSelectorTerm preference) { this.preference = new V1NodeSelectorTermBuilder(preference); this._visitables.get("preference").add(this.preference); } else { - this.preference = null; this._visitables.get("preference").remove(this.preference); + this.preference = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java index 3387707502..b195648623 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PriorityClassBuilder extends V1PriorityClassFluent implements VisitableBuilder{ V1PriorityClassFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java index 0cdf2523d6..6ec8aa4690 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java @@ -22,12 +22,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PriorityClassFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PriorityClassFluent> extends BaseFluent{ private String apiVersion; private String description; @@ -83,7 +85,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PriorityClassFluent that = (V1PriorityClassFluent) o; + V1PriorityClassFluent that = (V1PriorityClassFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -235,18 +237,18 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withPreemptionPolicy(String preemptionPolicy) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java index 43676f91b1..9a820b7882 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PriorityClassListBuilder extends V1PriorityClassListFluent implements VisitableBuilder{ V1PriorityClassListFluent fluent; 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 25b3976d2a..5df9f54037 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PriorityClassListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PriorityClassListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1PriorityClassListFluent(V1PriorityClassList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1PriorityClass item : items) { V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1PriorityClass item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1PriorityClass... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1PriorityClass item : items) { V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1PriorityClass... items) { public A addToItems(int index,V1PriorityClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PriorityClassListFluent that = (V1PriorityClassListFluent) o; + V1PriorityClassListFluent that = (V1PriorityClassListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PriorityClassBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1PriorityClass item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1PriorityClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1PriorityClass item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1PriorityClassFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java index 4ca5d76c23..e45f3e1e34 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PriorityLevelConfigurationBuilder extends V1PriorityLevelConfigurationFluent implements VisitableBuilder{ V1PriorityLevelConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java index 8deb53eb2b..a2c069a3a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PriorityLevelConfigurationConditionBuilder extends V1PriorityLevelConfigurationConditionFluent implements VisitableBuilder{ V1PriorityLevelConfigurationConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java index a39935170a..6a3529c228 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PriorityLevelConfigurationConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private String message; @@ -60,7 +62,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PriorityLevelConfigurationConditionFluent that = (V1PriorityLevelConfigurationConditionFluent) o; + V1PriorityLevelConfigurationConditionFluent that = (V1PriorityLevelConfigurationConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java index 9261137951..1419e442e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PriorityLevelConfigurationFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PriorityLevelConfigurationFluent that = (V1PriorityLevelConfigurationFluent) o; + V1PriorityLevelConfigurationFluent that = (V1PriorityLevelConfigurationFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1PriorityLevelConfigurationSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1PriorityLevelConfigurationStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1PriorityLevelConfigurationSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1PriorityLevelConfigurationSpec spec) { this.spec = new V1PriorityLevelConfigurationSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1PriorityLevelConfigurationStatus status) { this.status = new V1PriorityLevelConfigurationStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java index 574c4376dc..6426722898 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PriorityLevelConfigurationListBuilder extends V1PriorityLevelConfigurationListFluent implements VisitableBuilder{ V1PriorityLevelConfigurationListFluent fluent; 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 b99b43b37d..c1106656d9 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PriorityLevelConfigurationListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1PriorityLevelConfigurationListFluent(V1PriorityLevelConfigurationList i public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1PriorityLevelConfiguration item : items) { V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1PriorityLevelConfiguration item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1PriorityLevelConfiguration... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1PriorityLevelConfiguration item : items) { V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1PriorityLevelConfiguration... items) { public A addToItems(int index,V1PriorityLevelConfiguration item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PriorityLevelConfigurationListFluent that = (V1PriorityLevelConfigurationListFluent) o; + V1PriorityLevelConfigurationListFluent that = (V1PriorityLevelConfigurationListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PriorityLevelConfigurationBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate } public ItemsNested setNewItemLike(int index,V1PriorityLevelConfiguration item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1PriorityLevelConfiguration item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1PriorityLevelConfiguration item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1PriorityLevelConfigurationFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java index 78f2129db5..59e299e2f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PriorityLevelConfigurationReferenceBuilder extends V1PriorityLevelConfigurationReferenceFluent implements VisitableBuilder{ V1PriorityLevelConfigurationReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java index 22031688a6..1a90076f74 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PriorityLevelConfigurationReferenceFluent> extends BaseFluent{ private String name; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PriorityLevelConfigurationReferenceFluent that = (V1PriorityLevelConfigurationReferenceFluent) o; + V1PriorityLevelConfigurationReferenceFluent that = (V1PriorityLevelConfigurationReferenceFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java index 37d0f34d3f..f9fca43b04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PriorityLevelConfigurationSpecBuilder extends V1PriorityLevelConfigurationSpecFluent implements VisitableBuilder{ V1PriorityLevelConfigurationSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java index ee84abaef0..d910dc113f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PriorityLevelConfigurationSpecFluent> extends BaseFluent{ private V1ExemptPriorityLevelConfigurationBuilder exempt; private V1LimitedPriorityLevelConfigurationBuilder limited; @@ -89,7 +91,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PriorityLevelConfigurationSpecFluent that = (V1PriorityLevelConfigurationSpecFluent) o; + V1PriorityLevelConfigurationSpecFluent that = (V1PriorityLevelConfigurationSpecFluent) o; if (!(Objects.equals(exempt, that.exempt))) { return false; } @@ -149,8 +151,8 @@ public A withExempt(V1ExemptPriorityLevelConfiguration exempt) { this.exempt = new V1ExemptPriorityLevelConfigurationBuilder(exempt); this._visitables.get("exempt").add(this.exempt); } else { - this.exempt = null; this._visitables.get("exempt").remove(this.exempt); + this.exempt = null; } return (A) this; } @@ -161,26 +163,26 @@ public A withLimited(V1LimitedPriorityLevelConfiguration limited) { this.limited = new V1LimitedPriorityLevelConfigurationBuilder(limited); this._visitables.get("limited").add(this.limited); } else { - this.limited = null; this._visitables.get("limited").remove(this.limited); + this.limited = null; } return (A) this; } public ExemptNested withNewExempt() { - return new ExemptNested(null); + return new ExemptNested<>(null); } public ExemptNested withNewExemptLike(V1ExemptPriorityLevelConfiguration item) { - return new ExemptNested(item); + return new ExemptNested<>(item); } public LimitedNested withNewLimited() { - return new LimitedNested(null); + return new LimitedNested<>(null); } public LimitedNested withNewLimitedLike(V1LimitedPriorityLevelConfiguration item) { - return new LimitedNested(item); + return new LimitedNested<>(item); } public A withType(String type) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java index e8ccb49b80..3b512793ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1PriorityLevelConfigurationStatusBuilder extends V1PriorityLevelConfigurationStatusFluent implements VisitableBuilder{ V1PriorityLevelConfigurationStatusFluent fluent; 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 61e784fc06..18b718a20e 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1PriorityLevelConfigurationStatusFluent> extends BaseFluent{ private ArrayList conditions; @@ -43,7 +45,7 @@ public V1PriorityLevelConfigurationStatusFluent(V1PriorityLevelConfigurationStat public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1PriorityLevelConfigurationCondition item : items) { V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); @@ -54,16 +56,16 @@ public A addAllToConditions(Collection it } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1PriorityLevelConfigurationCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1PriorityLevelConfigurationCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1PriorityLevelConfigurationCondition item : items) { V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); @@ -75,7 +77,7 @@ public A addToConditions(V1PriorityLevelConfigurationCondition... items) { public A addToConditions(int index,V1PriorityLevelConfigurationCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1PriorityLevelConfigurationStatusFluent that = (V1PriorityLevelConfigurationStatusFluent) o; + V1PriorityLevelConfigurationStatusFluent that = (V1PriorityLevelConfigurationStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1PriorityLevelConfigurationConditionBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromConditions(Predicate setNewConditionLike(int index,V1PriorityLevelConfigurationCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1PriorityLevelConfigurationCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -265,7 +268,7 @@ public A withConditions(List conditions) this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1PriorityLevelConfigurationCondition item : conditions) { this.addToConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java index f077e3528c..5ebf6c62d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ProbeBuilder extends V1ProbeFluent implements VisitableBuilder{ V1ProbeFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java index a9e23d1c66..977febef25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java @@ -22,12 +22,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ProbeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ProbeFluent> extends BaseFluent{ private V1ExecActionBuilder exec; private Integer failureThreshold; @@ -137,7 +139,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ProbeFluent that = (V1ProbeFluent) o; + V1ProbeFluent that = (V1ProbeFluent) o; if (!(Objects.equals(exec, that.exec))) { return false; } @@ -301,8 +303,8 @@ public A withExec(V1ExecAction exec) { this.exec = new V1ExecActionBuilder(exec); this._visitables.get("exec").add(this.exec); } else { - this.exec = null; this._visitables.get("exec").remove(this.exec); + this.exec = null; } return (A) this; } @@ -318,8 +320,8 @@ public A withGrpc(V1GRPCAction grpc) { this.grpc = new V1GRPCActionBuilder(grpc); this._visitables.get("grpc").add(this.grpc); } else { - this.grpc = null; this._visitables.get("grpc").remove(this.grpc); + this.grpc = null; } return (A) this; } @@ -330,8 +332,8 @@ public A withHttpGet(V1HTTPGetAction httpGet) { this.httpGet = new V1HTTPGetActionBuilder(httpGet); this._visitables.get("httpGet").add(this.httpGet); } else { - this.httpGet = null; this._visitables.get("httpGet").remove(this.httpGet); + this.httpGet = null; } return (A) this; } @@ -342,35 +344,35 @@ public A withInitialDelaySeconds(Integer initialDelaySeconds) { } public ExecNested withNewExec() { - return new ExecNested(null); + return new ExecNested<>(null); } public ExecNested withNewExecLike(V1ExecAction item) { - return new ExecNested(item); + return new ExecNested<>(item); } public GrpcNested withNewGrpc() { - return new GrpcNested(null); + return new GrpcNested<>(null); } public GrpcNested withNewGrpcLike(V1GRPCAction item) { - return new GrpcNested(item); + return new GrpcNested<>(item); } public HttpGetNested withNewHttpGet() { - return new HttpGetNested(null); + return new HttpGetNested<>(null); } public HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { - return new HttpGetNested(item); + return new HttpGetNested<>(item); } public TcpSocketNested withNewTcpSocket() { - return new TcpSocketNested(null); + return new TcpSocketNested<>(null); } public TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { - return new TcpSocketNested(item); + return new TcpSocketNested<>(item); } public A withPeriodSeconds(Integer periodSeconds) { @@ -389,8 +391,8 @@ public A withTcpSocket(V1TCPSocketAction tcpSocket) { this.tcpSocket = new V1TCPSocketActionBuilder(tcpSocket); this._visitables.get("tcpSocket").add(this.tcpSocket); } else { - this.tcpSocket = null; this._visitables.get("tcpSocket").remove(this.tcpSocket); + this.tcpSocket = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java index 20fc3d1d2f..0f6058de2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ProjectedVolumeSourceBuilder extends V1ProjectedVolumeSourceFluent implements VisitableBuilder{ V1ProjectedVolumeSourceFluent fluent; @@ -39,6 +40,7 @@ public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSourceFluent fluent,V1 public V1ProjectedVolumeSource build() { V1ProjectedVolumeSource buildable = new V1ProjectedVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); + buildable.setDefaultUser(fluent.getDefaultUser()); buildable.setSources(fluent.buildSources()); return buildable; } 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 1cd6f9f74c..2e98d70d6f 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 @@ -15,6 +15,7 @@ import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; import java.lang.Integer; +import java.lang.Long; import java.lang.Object; import java.lang.RuntimeException; import java.lang.String; @@ -26,14 +27,17 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ProjectedVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ProjectedVolumeSourceFluent> extends BaseFluent{ private Integer defaultMode; + private Long defaultUser; private ArrayList sources; public V1ProjectedVolumeSourceFluent() { @@ -45,7 +49,7 @@ public V1ProjectedVolumeSourceFluent(V1ProjectedVolumeSource instance) { public A addAllToSources(Collection items) { if (this.sources == null) { - this.sources = new ArrayList(); + this.sources = new ArrayList<>(); } for (V1VolumeProjection item : items) { V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); @@ -56,16 +60,16 @@ public A addAllToSources(Collection items) { } public SourcesNested addNewSource() { - return new SourcesNested(-1, null); + return new SourcesNested<>(-1, null); } public SourcesNested addNewSourceLike(V1VolumeProjection item) { - return new SourcesNested(-1, item); + return new SourcesNested<>(-1, item); } public A addToSources(V1VolumeProjection... items) { if (this.sources == null) { - this.sources = new ArrayList(); + this.sources = new ArrayList<>(); } for (V1VolumeProjection item : items) { V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); @@ -77,7 +81,7 @@ public A addToSources(V1VolumeProjection... items) { public A addToSources(int index,V1VolumeProjection item) { if (this.sources == null) { - this.sources = new ArrayList(); + this.sources = new ArrayList<>(); } V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); if (index < 0 || index >= this.sources.size()) { @@ -119,6 +123,7 @@ protected void copyInstance(V1ProjectedVolumeSource instance) { instance = instance != null ? instance : new V1ProjectedVolumeSource(); if (instance != null) { this.withDefaultMode(instance.getDefaultMode()); + this.withDefaultUser(instance.getDefaultUser()); this.withSources(instance.getSources()); } } @@ -169,10 +174,13 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ProjectedVolumeSourceFluent that = (V1ProjectedVolumeSourceFluent) o; + V1ProjectedVolumeSourceFluent that = (V1ProjectedVolumeSourceFluent) o; if (!(Objects.equals(defaultMode, that.defaultMode))) { return false; } + if (!(Objects.equals(defaultUser, that.defaultUser))) { + return false; + } if (!(Objects.equals(sources, that.sources))) { return false; } @@ -183,10 +191,18 @@ public Integer getDefaultMode() { return this.defaultMode; } + public Long getDefaultUser() { + return this.defaultUser; + } + public boolean hasDefaultMode() { return this.defaultMode != null; } + public boolean hasDefaultUser() { + return this.defaultUser != null; + } + public boolean hasMatchingSource(Predicate predicate) { for (V1VolumeProjectionBuilder item : sources) { if (predicate.test(item)) { @@ -201,7 +217,7 @@ public boolean hasSources() { } public int hashCode() { - return Objects.hash(defaultMode, sources); + return Objects.hash(defaultMode, defaultUser, sources); } public A removeAllFromSources(Collection items) { @@ -233,6 +249,7 @@ public A removeMatchingFromSources(Predicate predicat return (A) this; } Iterator each = sources.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("sources"); while (each.hasNext()) { V1VolumeProjectionBuilder builder = each.next(); @@ -245,12 +262,12 @@ public A removeMatchingFromSources(Predicate predicat } public SourcesNested setNewSourceLike(int index,V1VolumeProjection item) { - return new SourcesNested(index, item); + return new SourcesNested<>(index, item); } public A setToSources(int index,V1VolumeProjection item) { if (this.sources == null) { - this.sources = new ArrayList(); + this.sources = new ArrayList<>(); } V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); if (index < 0 || index >= this.sources.size()) { @@ -271,6 +288,11 @@ public String toString() { sb.append(defaultMode); sb.append(","); } + if (!(defaultUser == null)) { + sb.append("defaultUser:"); + sb.append(defaultUser); + sb.append(","); + } if (!(sources == null) && !(sources.isEmpty())) { sb.append("sources:"); sb.append(sources); @@ -284,12 +306,17 @@ public A withDefaultMode(Integer defaultMode) { return (A) this; } + public A withDefaultUser(Long defaultUser) { + this.defaultUser = defaultUser; + return (A) this; + } + public A withSources(List sources) { if (this.sources != null) { this._visitables.get("sources").clear(); } if (sources != null) { - this.sources = new ArrayList(); + this.sources = new ArrayList<>(); for (V1VolumeProjection item : sources) { this.addToSources(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java index 8038025434..f8458a6267 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1QueuingConfigurationBuilder extends V1QueuingConfigurationFluent implements VisitableBuilder{ V1QueuingConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java index 14351d3ae0..5f24c98933 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1QueuingConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1QueuingConfigurationFluent> extends BaseFluent{ private Integer handSize; private Integer queueLengthLimit; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1QueuingConfigurationFluent that = (V1QueuingConfigurationFluent) o; + V1QueuingConfigurationFluent that = (V1QueuingConfigurationFluent) o; if (!(Objects.equals(handSize, that.handSize))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java index 19576b00e7..589675dc97 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1QuobyteVolumeSourceBuilder extends V1QuobyteVolumeSourceFluent implements VisitableBuilder{ V1QuobyteVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java index 829b20515e..d35969f1d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1QuobyteVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1QuobyteVolumeSourceFluent> extends BaseFluent{ private String group; private Boolean readOnly; @@ -62,7 +64,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1QuobyteVolumeSourceFluent that = (V1QuobyteVolumeSourceFluent) o; + V1QuobyteVolumeSourceFluent that = (V1QuobyteVolumeSourceFluent) o; if (!(Objects.equals(group, that.group))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java index 2f9c6deb5c..b754556122 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1RBDPersistentVolumeSourceBuilder extends V1RBDPersistentVolumeSourceFluent implements VisitableBuilder{ V1RBDPersistentVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java index 1bb35709db..02625c52b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java @@ -25,12 +25,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1RBDPersistentVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1RBDPersistentVolumeSourceFluent> extends BaseFluent{ private String fsType; private String image; @@ -50,7 +52,7 @@ public V1RBDPersistentVolumeSourceFluent(V1RBDPersistentVolumeSource instance) { public A addAllToMonitors(Collection items) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } for (String item : items) { this.monitors.add(item); @@ -60,7 +62,7 @@ public A addAllToMonitors(Collection items) { public A addToMonitors(String... items) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } for (String item : items) { this.monitors.add(item); @@ -70,7 +72,7 @@ public A addToMonitors(String... items) { public A addToMonitors(int index,String item) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } this.monitors.add(index, item); return (A) this; @@ -116,7 +118,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1RBDPersistentVolumeSourceFluent that = (V1RBDPersistentVolumeSourceFluent) o; + V1RBDPersistentVolumeSourceFluent that = (V1RBDPersistentVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } @@ -260,7 +262,7 @@ public A removeFromMonitors(String... items) { public A setToMonitors(int index,String item) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } this.monitors.set(index, item); return (A) this; @@ -329,7 +331,7 @@ public A withKeyring(String keyring) { public A withMonitors(List monitors) { if (monitors != null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); for (String item : monitors) { this.addToMonitors(item); } @@ -353,11 +355,11 @@ public A withMonitors(String... monitors) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withPool(String pool) { @@ -380,8 +382,8 @@ public A withSecretRef(V1SecretReference secretRef) { this.secretRef = new V1SecretReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java index 842de1cd89..187710d53d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1RBDVolumeSourceBuilder extends V1RBDVolumeSourceFluent implements VisitableBuilder{ V1RBDVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java index 62d3bac88f..cba9ae3abf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java @@ -25,12 +25,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1RBDVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1RBDVolumeSourceFluent> extends BaseFluent{ private String fsType; private String image; @@ -50,7 +52,7 @@ public V1RBDVolumeSourceFluent(V1RBDVolumeSource instance) { public A addAllToMonitors(Collection items) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } for (String item : items) { this.monitors.add(item); @@ -60,7 +62,7 @@ public A addAllToMonitors(Collection items) { public A addToMonitors(String... items) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } for (String item : items) { this.monitors.add(item); @@ -70,7 +72,7 @@ public A addToMonitors(String... items) { public A addToMonitors(int index,String item) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } this.monitors.add(index, item); return (A) this; @@ -116,7 +118,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1RBDVolumeSourceFluent that = (V1RBDVolumeSourceFluent) o; + V1RBDVolumeSourceFluent that = (V1RBDVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } @@ -260,7 +262,7 @@ public A removeFromMonitors(String... items) { public A setToMonitors(int index,String item) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); } this.monitors.set(index, item); return (A) this; @@ -329,7 +331,7 @@ public A withKeyring(String keyring) { public A withMonitors(List monitors) { if (monitors != null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList<>(); for (String item : monitors) { this.addToMonitors(item); } @@ -353,11 +355,11 @@ public A withMonitors(String... monitors) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withPool(String pool) { @@ -380,8 +382,8 @@ public A withSecretRef(V1LocalObjectReference secretRef) { this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java index f816eb3645..98e2b7be64 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ReplicaSetBuilder extends V1ReplicaSetFluent implements VisitableBuilder{ V1ReplicaSetFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java index 32152e8116..d8ddb2d5f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ReplicaSetConditionBuilder extends V1ReplicaSetConditionFluent implements VisitableBuilder{ V1ReplicaSetConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java index 47cedccd83..6b4b3a1dcd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ReplicaSetConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ReplicaSetConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private String message; @@ -60,7 +62,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ReplicaSetConditionFluent that = (V1ReplicaSetConditionFluent) o; + V1ReplicaSetConditionFluent that = (V1ReplicaSetConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java index 90e7f478a7..5ee67bdd0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ReplicaSetFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ReplicaSetFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ReplicaSetFluent that = (V1ReplicaSetFluent) o; + V1ReplicaSetFluent that = (V1ReplicaSetFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1ReplicaSetSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1ReplicaSetStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1ReplicaSetSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1ReplicaSetSpec spec) { this.spec = new V1ReplicaSetSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1ReplicaSetStatus status) { this.status = new V1ReplicaSetStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java index 6af3f73411..cc4a6551f0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ReplicaSetListBuilder extends V1ReplicaSetListFluent implements VisitableBuilder{ V1ReplicaSetListFluent fluent; 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 2ad3a8b33b..0205ba61b8 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ReplicaSetListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ReplicaSetListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ReplicaSetListFluent(V1ReplicaSetList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ReplicaSet item : items) { V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ReplicaSet item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ReplicaSet... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ReplicaSet item : items) { V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ReplicaSet... items) { public A addToItems(int index,V1ReplicaSet item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ReplicaSetListFluent that = (V1ReplicaSetListFluent) o; + V1ReplicaSetListFluent that = (V1ReplicaSetListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ReplicaSetBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1ReplicaSet item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ReplicaSet item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ReplicaSet item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ReplicaSetFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java index 5c91ef0d6d..c0cba4ed8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ReplicaSetSpecBuilder extends V1ReplicaSetSpecFluent implements VisitableBuilder{ V1ReplicaSetSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java index 62e0aab4ff..c296c69da1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ReplicaSetSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ReplicaSetSpecFluent> extends BaseFluent{ private Integer minReadySeconds; private Integer replicas; @@ -92,7 +94,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ReplicaSetSpecFluent that = (V1ReplicaSetSpecFluent) o; + V1ReplicaSetSpecFluent that = (V1ReplicaSetSpecFluent) o; if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { return false; } @@ -168,19 +170,19 @@ public A withMinReadySeconds(Integer minReadySeconds) { } public SelectorNested withNewSelector() { - return new SelectorNested(null); + return new SelectorNested<>(null); } public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + return new SelectorNested<>(item); } public TemplateNested withNewTemplate() { - return new TemplateNested(null); + return new TemplateNested<>(null); } public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); + return new TemplateNested<>(item); } public A withReplicas(Integer replicas) { @@ -194,8 +196,8 @@ public A withSelector(V1LabelSelector selector) { this.selector = new V1LabelSelectorBuilder(selector); this._visitables.get("selector").add(this.selector); } else { - this.selector = null; this._visitables.get("selector").remove(this.selector); + this.selector = null; } return (A) this; } @@ -206,8 +208,8 @@ public A withTemplate(V1PodTemplateSpec template) { this.template = new V1PodTemplateSpecBuilder(template); this._visitables.get("template").add(this.template); } else { - this.template = null; this._visitables.get("template").remove(this.template); + this.template = null; } 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 aec4e39311..6b9801ddd7 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ReplicaSetStatusBuilder extends V1ReplicaSetStatusFluent implements VisitableBuilder{ V1ReplicaSetStatusFluent fluent; 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 65b273aff5..ba9d71428f 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 @@ -27,12 +27,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ReplicaSetStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ReplicaSetStatusFluent> extends BaseFluent{ private Integer availableReplicas; private ArrayList conditions; @@ -51,7 +53,7 @@ public V1ReplicaSetStatusFluent(V1ReplicaSetStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1ReplicaSetCondition item : items) { V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); @@ -62,16 +64,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1ReplicaSetCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1ReplicaSetCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1ReplicaSetCondition item : items) { V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); @@ -83,7 +85,7 @@ public A addToConditions(V1ReplicaSetCondition... items) { public A addToConditions(int index,V1ReplicaSetCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -180,7 +182,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ReplicaSetStatusFluent that = (V1ReplicaSetStatusFluent) o; + V1ReplicaSetStatusFluent that = (V1ReplicaSetStatusFluent) o; if (!(Objects.equals(availableReplicas, that.availableReplicas))) { return false; } @@ -299,6 +301,7 @@ public A removeMatchingFromConditions(Predicate pr return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ReplicaSetConditionBuilder builder = each.next(); @@ -311,12 +314,12 @@ public A removeMatchingFromConditions(Predicate pr } public ConditionsNested setNewConditionLike(int index,V1ReplicaSetCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1ReplicaSetCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -380,7 +383,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1ReplicaSetCondition item : conditions) { this.addToConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java index de2d2a3bb0..52923b658b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ReplicationControllerBuilder extends V1ReplicationControllerFluent implements VisitableBuilder{ V1ReplicationControllerFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java index 1f2531c0cc..8358337714 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ReplicationControllerConditionBuilder extends V1ReplicationControllerConditionFluent implements VisitableBuilder{ V1ReplicationControllerConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java index c89a013760..e7b70b2d9d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ReplicationControllerConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ReplicationControllerConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private String message; @@ -60,7 +62,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ReplicationControllerConditionFluent that = (V1ReplicationControllerConditionFluent) o; + V1ReplicationControllerConditionFluent that = (V1ReplicationControllerConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java index a494a8037e..700b6edbaa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ReplicationControllerFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ReplicationControllerFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ReplicationControllerFluent that = (V1ReplicationControllerFluent) o; + V1ReplicationControllerFluent that = (V1ReplicationControllerFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1ReplicationControllerSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1ReplicationControllerStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1ReplicationControllerSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1ReplicationControllerSpec spec) { this.spec = new V1ReplicationControllerSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1ReplicationControllerStatus status) { this.status = new V1ReplicationControllerStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java index 697fbd0b37..62499deece 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ReplicationControllerListBuilder extends V1ReplicationControllerListFluent implements VisitableBuilder{ V1ReplicationControllerListFluent fluent; 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 8ce2c5c470..05f60dd04e 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ReplicationControllerListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ReplicationControllerListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ReplicationControllerListFluent(V1ReplicationControllerList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ReplicationController item : items) { V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ReplicationController item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ReplicationController... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ReplicationController item : items) { V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ReplicationController... items) { public A addToItems(int index,V1ReplicationController item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ReplicationControllerListFluent that = (V1ReplicationControllerListFluent) o; + V1ReplicationControllerListFluent that = (V1ReplicationControllerListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ReplicationControllerBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predi } public ItemsNested setNewItemLike(int index,V1ReplicationController item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ReplicationController item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ReplicationController item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ReplicationControllerFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java index 5f8dd7291b..89a793c1e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ReplicationControllerSpecBuilder extends V1ReplicationControllerSpecFluent implements VisitableBuilder{ V1ReplicationControllerSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java index e2c1902be5..6877e3d1cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java @@ -23,12 +23,14 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ReplicationControllerSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ReplicationControllerSpecFluent> extends BaseFluent{ private Integer minReadySeconds; private Integer replicas; @@ -44,7 +46,7 @@ public V1ReplicationControllerSpecFluent(V1ReplicationControllerSpec instance) { public A addToSelector(Map map) { if (this.selector == null && map != null) { - this.selector = new LinkedHashMap(); + this.selector = new LinkedHashMap<>(); } if (map != null) { this.selector.putAll(map); @@ -54,7 +56,7 @@ public A addToSelector(Map map) { public A addToSelector(String key,String value) { if (this.selector == null && key != null && value != null) { - this.selector = new LinkedHashMap(); + this.selector = new LinkedHashMap<>(); } if (key != null && value != null) { this.selector.put(key, value); @@ -98,7 +100,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ReplicationControllerSpecFluent that = (V1ReplicationControllerSpecFluent) o; + V1ReplicationControllerSpecFluent that = (V1ReplicationControllerSpecFluent) o; if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { return false; } @@ -202,11 +204,11 @@ public A withMinReadySeconds(Integer minReadySeconds) { } public TemplateNested withNewTemplate() { - return new TemplateNested(null); + return new TemplateNested<>(null); } public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); + return new TemplateNested<>(item); } public A withReplicas(Integer replicas) { @@ -218,7 +220,7 @@ public A withSelector(Map selector) { if (selector == null) { this.selector = null; } else { - this.selector = new LinkedHashMap(selector); + this.selector = new LinkedHashMap<>(selector); } return (A) this; } @@ -229,8 +231,8 @@ public A withTemplate(V1PodTemplateSpec template) { this.template = new V1PodTemplateSpecBuilder(template); this._visitables.get("template").add(this.template); } else { - this.template = null; this._visitables.get("template").remove(this.template); + this.template = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java index cc70d4507c..3429ef3303 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ReplicationControllerStatusBuilder extends V1ReplicationControllerStatusFluent implements VisitableBuilder{ V1ReplicationControllerStatusFluent fluent; 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 31c5dbf6ca..7e65429677 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 @@ -27,12 +27,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ReplicationControllerStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ReplicationControllerStatusFluent> extends BaseFluent{ private Integer availableReplicas; private ArrayList conditions; @@ -50,7 +52,7 @@ public V1ReplicationControllerStatusFluent(V1ReplicationControllerStatus instanc public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1ReplicationControllerCondition item : items) { V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); @@ -61,16 +63,16 @@ public A addAllToConditions(Collection items) } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1ReplicationControllerCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1ReplicationControllerCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1ReplicationControllerCondition item : items) { V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); @@ -82,7 +84,7 @@ public A addToConditions(V1ReplicationControllerCondition... items) { public A addToConditions(int index,V1ReplicationControllerCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -178,7 +180,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ReplicationControllerStatusFluent that = (V1ReplicationControllerStatusFluent) o; + V1ReplicationControllerStatusFluent that = (V1ReplicationControllerStatusFluent) o; if (!(Objects.equals(availableReplicas, that.availableReplicas))) { return false; } @@ -286,6 +288,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ReplicationControllerConditionBuilder builder = each.next(); @@ -298,12 +301,12 @@ public A removeMatchingFromConditions(Predicate setNewConditionLike(int index,V1ReplicationControllerCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1ReplicationControllerCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -362,7 +365,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1ReplicationControllerCondition item : conditions) { this.addToConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java index 7827bfa4ef..72e2032429 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceAttributesBuilder extends V1ResourceAttributesFluent implements VisitableBuilder{ V1ResourceAttributesFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java index f996459dbc..afa0046038 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceAttributesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceAttributesFluent> extends BaseFluent{ private V1FieldSelectorAttributesBuilder fieldSelector; private String group; @@ -101,7 +103,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceAttributesFluent that = (V1ResourceAttributesFluent) o; + V1ResourceAttributesFluent that = (V1ResourceAttributesFluent) o; if (!(Objects.equals(fieldSelector, that.fieldSelector))) { return false; } @@ -257,8 +259,8 @@ public A withFieldSelector(V1FieldSelectorAttributes fieldSelector) { this.fieldSelector = new V1FieldSelectorAttributesBuilder(fieldSelector); this._visitables.get("fieldSelector").add(this.fieldSelector); } else { - this.fieldSelector = null; this._visitables.get("fieldSelector").remove(this.fieldSelector); + this.fieldSelector = null; } return (A) this; } @@ -274,8 +276,8 @@ public A withLabelSelector(V1LabelSelectorAttributes labelSelector) { this.labelSelector = new V1LabelSelectorAttributesBuilder(labelSelector); this._visitables.get("labelSelector").add(this.labelSelector); } else { - this.labelSelector = null; this._visitables.get("labelSelector").remove(this.labelSelector); + this.labelSelector = null; } return (A) this; } @@ -291,19 +293,19 @@ public A withNamespace(String namespace) { } public FieldSelectorNested withNewFieldSelector() { - return new FieldSelectorNested(null); + return new FieldSelectorNested<>(null); } public FieldSelectorNested withNewFieldSelectorLike(V1FieldSelectorAttributes item) { - return new FieldSelectorNested(item); + return new FieldSelectorNested<>(item); } public LabelSelectorNested withNewLabelSelector() { - return new LabelSelectorNested(null); + return new LabelSelectorNested<>(null); } public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelectorAttributes item) { - return new LabelSelectorNested(item); + return new LabelSelectorNested<>(item); } public A withResource(String resource) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java index 00517263e6..91f300db3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceClaimConsumerReferenceBuilder extends V1ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ V1ResourceClaimConsumerReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java index c95bad4307..bf789958ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceClaimConsumerReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceClaimConsumerReferenceFluent> extends BaseFluent{ private String apiGroup; private String name; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceClaimConsumerReferenceFluent that = (V1ResourceClaimConsumerReferenceFluent) o; + V1ResourceClaimConsumerReferenceFluent that = (V1ResourceClaimConsumerReferenceFluent) o; if (!(Objects.equals(apiGroup, that.apiGroup))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java index 69c97a9ffb..e6d2bf96d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceClaimListBuilder extends V1ResourceClaimListFluent implements VisitableBuilder{ V1ResourceClaimListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java index 9b8928001e..b86d65f6a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceClaimListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceClaimListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ResourceClaimListFluent(V1ResourceClaimList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (ResourceV1ResourceClaim item : items) { ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(ResourceV1ResourceClaim item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(ResourceV1ResourceClaim... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (ResourceV1ResourceClaim item : items) { ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(ResourceV1ResourceClaim... items) { public A addToItems(int index,ResourceV1ResourceClaim item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceClaimListFluent that = (V1ResourceClaimListFluent) o; + V1ResourceClaimListFluent that = (V1ResourceClaimListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { ResourceV1ResourceClaimBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predi } public ItemsNested setNewItemLike(int index,ResourceV1ResourceClaim item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,ResourceV1ResourceClaim item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (ResourceV1ResourceClaim item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends ResourceV1ResourceClaimFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java index 086c534938..ebcbc7a018 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceClaimSpecBuilder extends V1ResourceClaimSpecFluent implements VisitableBuilder{ V1ResourceClaimSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java index beb1bd7258..5f2909ea24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceClaimSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceClaimSpecFluent> extends BaseFluent{ private V1DeviceClaimBuilder devices; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceClaimSpecFluent that = (V1ResourceClaimSpecFluent) o; + V1ResourceClaimSpecFluent that = (V1ResourceClaimSpecFluent) o; if (!(Objects.equals(devices, that.devices))) { return false; } @@ -101,18 +103,18 @@ public A withDevices(V1DeviceClaim devices) { this.devices = new V1DeviceClaimBuilder(devices); this._visitables.get("devices").add(this.devices); } else { - this.devices = null; this._visitables.get("devices").remove(this.devices); + this.devices = null; } return (A) this; } public DevicesNested withNewDevices() { - return new DevicesNested(null); + return new DevicesNested<>(null); } public DevicesNested withNewDevicesLike(V1DeviceClaim item) { - return new DevicesNested(item); + return new DevicesNested<>(item); } public class DevicesNested extends V1DeviceClaimFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java index b9a768fe8d..5cb63cc2da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceClaimStatusBuilder extends V1ResourceClaimStatusFluent implements VisitableBuilder{ V1ResourceClaimStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java index c6f743c571..00e142cb0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceClaimStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceClaimStatusFluent> extends BaseFluent{ private V1AllocationResultBuilder allocation; private ArrayList devices; @@ -46,7 +48,7 @@ public V1ResourceClaimStatusFluent(V1ResourceClaimStatus instance) { public A addAllToDevices(Collection items) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } for (V1AllocatedDeviceStatus item : items) { V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); @@ -58,7 +60,7 @@ public A addAllToDevices(Collection items) { public A addAllToReservedFor(Collection items) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); } for (V1ResourceClaimConsumerReference item : items) { V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); @@ -69,24 +71,24 @@ public A addAllToReservedFor(Collection items) } public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); + return new DevicesNested<>(-1, null); } public DevicesNested addNewDeviceLike(V1AllocatedDeviceStatus item) { - return new DevicesNested(-1, item); + return new DevicesNested<>(-1, item); } public ReservedForNested addNewReservedFor() { - return new ReservedForNested(-1, null); + return new ReservedForNested<>(-1, null); } public ReservedForNested addNewReservedForLike(V1ResourceClaimConsumerReference item) { - return new ReservedForNested(-1, item); + return new ReservedForNested<>(-1, item); } public A addToDevices(V1AllocatedDeviceStatus... items) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } for (V1AllocatedDeviceStatus item : items) { V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); @@ -98,7 +100,7 @@ public A addToDevices(V1AllocatedDeviceStatus... items) { public A addToDevices(int index,V1AllocatedDeviceStatus item) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); if (index < 0 || index >= this.devices.size()) { @@ -113,7 +115,7 @@ public A addToDevices(int index,V1AllocatedDeviceStatus item) { public A addToReservedFor(V1ResourceClaimConsumerReference... items) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); } for (V1ResourceClaimConsumerReference item : items) { V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); @@ -125,7 +127,7 @@ public A addToReservedFor(V1ResourceClaimConsumerReference... items) { public A addToReservedFor(int index,V1ResourceClaimConsumerReference item) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); } V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); if (index < 0 || index >= this.reservedFor.size()) { @@ -295,7 +297,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceClaimStatusFluent that = (V1ResourceClaimStatusFluent) o; + V1ResourceClaimStatusFluent that = (V1ResourceClaimStatusFluent) o; if (!(Objects.equals(allocation, that.allocation))) { return false; } @@ -395,6 +397,7 @@ public A removeMatchingFromDevices(Predicate pre return (A) this; } Iterator each = devices.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("devices"); while (each.hasNext()) { V1AllocatedDeviceStatusBuilder builder = each.next(); @@ -411,6 +414,7 @@ public A removeMatchingFromReservedFor(Predicate each = reservedFor.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("reservedFor"); while (each.hasNext()) { V1ResourceClaimConsumerReferenceBuilder builder = each.next(); @@ -423,16 +427,16 @@ public A removeMatchingFromReservedFor(Predicate setNewDeviceLike(int index,V1AllocatedDeviceStatus item) { - return new DevicesNested(index, item); + return new DevicesNested<>(index, item); } public ReservedForNested setNewReservedForLike(int index,V1ResourceClaimConsumerReference item) { - return new ReservedForNested(index, item); + return new ReservedForNested<>(index, item); } public A setToDevices(int index,V1AllocatedDeviceStatus item) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); if (index < 0 || index >= this.devices.size()) { @@ -447,7 +451,7 @@ public A setToDevices(int index,V1AllocatedDeviceStatus item) { public A setToReservedFor(int index,V1ResourceClaimConsumerReference item) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); } V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); if (index < 0 || index >= this.reservedFor.size()) { @@ -487,8 +491,8 @@ public A withAllocation(V1AllocationResult allocation) { this.allocation = new V1AllocationResultBuilder(allocation); this._visitables.get("allocation").add(this.allocation); } else { - this.allocation = null; this._visitables.get("allocation").remove(this.allocation); + this.allocation = null; } return (A) this; } @@ -498,7 +502,7 @@ public A withDevices(List devices) { this._visitables.get("devices").clear(); } if (devices != null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); for (V1AllocatedDeviceStatus item : devices) { this.addToDevices(item); } @@ -522,11 +526,11 @@ public A withDevices(V1AllocatedDeviceStatus... devices) { } public AllocationNested withNewAllocation() { - return new AllocationNested(null); + return new AllocationNested<>(null); } public AllocationNested withNewAllocationLike(V1AllocationResult item) { - return new AllocationNested(item); + return new AllocationNested<>(item); } public A withReservedFor(List reservedFor) { @@ -534,7 +538,7 @@ public A withReservedFor(List reservedFor) { this._visitables.get("reservedFor").clear(); } if (reservedFor != null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); for (V1ResourceClaimConsumerReference item : reservedFor) { this.addToReservedFor(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java index d54ba41ae8..73677456e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceClaimTemplateBuilder extends V1ResourceClaimTemplateFluent implements VisitableBuilder{ V1ResourceClaimTemplateFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java index f9c6503ad4..d6ab1640ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceClaimTemplateFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceClaimTemplateFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceClaimTemplateFluent that = (V1ResourceClaimTemplateFluent) o; + V1ResourceClaimTemplateFluent that = (V1ResourceClaimTemplateFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1ResourceClaimTemplateSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1ResourceClaimTemplateSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1ResourceClaimTemplateSpec spec) { this.spec = new V1ResourceClaimTemplateSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java index f1f24224af..251b00a1e6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceClaimTemplateListBuilder extends V1ResourceClaimTemplateListFluent implements VisitableBuilder{ V1ResourceClaimTemplateListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java index 3ff19ed6d7..4b4d497a50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceClaimTemplateListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceClaimTemplateListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ResourceClaimTemplateListFluent(V1ResourceClaimTemplateList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ResourceClaimTemplate item : items) { V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ResourceClaimTemplate item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ResourceClaimTemplate... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ResourceClaimTemplate item : items) { V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ResourceClaimTemplate... items) { public A addToItems(int index,V1ResourceClaimTemplate item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceClaimTemplateListFluent that = (V1ResourceClaimTemplateListFluent) o; + V1ResourceClaimTemplateListFluent that = (V1ResourceClaimTemplateListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ResourceClaimTemplateBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predi } public ItemsNested setNewItemLike(int index,V1ResourceClaimTemplate item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ResourceClaimTemplate item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ResourceClaimTemplate item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ResourceClaimTemplateFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java index bc855a67d1..06b1e83d45 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceClaimTemplateSpecBuilder extends V1ResourceClaimTemplateSpecFluent implements VisitableBuilder{ V1ResourceClaimTemplateSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java index 25bb72622a..a88a9f23cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceClaimTemplateSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceClaimTemplateSpecFluent> extends BaseFluent{ private V1ObjectMetaBuilder metadata; private V1ResourceClaimSpecBuilder spec; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceClaimTemplateSpecFluent that = (V1ResourceClaimTemplateSpecFluent) o; + V1ResourceClaimTemplateSpecFluent that = (V1ResourceClaimTemplateSpecFluent) o; if (!(Objects.equals(metadata, that.metadata))) { return false; } @@ -131,26 +133,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1ResourceClaimSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1ResourceClaimSpec spec) { @@ -159,8 +161,8 @@ public A withSpec(V1ResourceClaimSpec spec) { this.spec = new V1ResourceClaimSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java index 64e1fd57e3..dfa4141f0a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceFieldSelectorBuilder extends V1ResourceFieldSelectorFluent implements VisitableBuilder{ V1ResourceFieldSelectorFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java index c3e611e2ff..ea2b549db0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceFieldSelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceFieldSelectorFluent> extends BaseFluent{ private String containerName; private Quantity divisor; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceFieldSelectorFluent that = (V1ResourceFieldSelectorFluent) o; + V1ResourceFieldSelectorFluent that = (V1ResourceFieldSelectorFluent) o; if (!(Objects.equals(containerName, that.containerName))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java index dd80a03fcb..af538b203f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceHealthBuilder extends V1ResourceHealthFluent implements VisitableBuilder{ V1ResourceHealthFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java index d49ead4225..be3d37e841 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceHealthFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceHealthFluent> extends BaseFluent{ private String health; private String message; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceHealthFluent that = (V1ResourceHealthFluent) o; + V1ResourceHealthFluent that = (V1ResourceHealthFluent) o; if (!(Objects.equals(health, that.health))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java index 4ba7d06421..084efc13fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourcePolicyRuleBuilder extends V1ResourcePolicyRuleFluent implements VisitableBuilder{ V1ResourcePolicyRuleFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java index 20a316922b..3c4db368bc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java @@ -23,12 +23,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourcePolicyRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourcePolicyRuleFluent> extends BaseFluent{ private List apiGroups; private Boolean clusterScope; @@ -45,7 +47,7 @@ public V1ResourcePolicyRuleFluent(V1ResourcePolicyRule instance) { public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -55,7 +57,7 @@ public A addAllToApiGroups(Collection items) { public A addAllToNamespaces(Collection items) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); } for (String item : items) { this.namespaces.add(item); @@ -65,7 +67,7 @@ public A addAllToNamespaces(Collection items) { public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -75,7 +77,7 @@ public A addAllToResources(Collection items) { public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -85,7 +87,7 @@ public A addAllToVerbs(Collection items) { public A addToApiGroups(String... items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -95,7 +97,7 @@ public A addToApiGroups(String... items) { public A addToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(index, item); return (A) this; @@ -103,7 +105,7 @@ public A addToApiGroups(int index,String item) { public A addToNamespaces(String... items) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); } for (String item : items) { this.namespaces.add(item); @@ -113,7 +115,7 @@ public A addToNamespaces(String... items) { public A addToNamespaces(int index,String item) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); } this.namespaces.add(index, item); return (A) this; @@ -121,7 +123,7 @@ public A addToNamespaces(int index,String item) { public A addToResources(String... items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -131,7 +133,7 @@ public A addToResources(String... items) { public A addToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(index, item); return (A) this; @@ -139,7 +141,7 @@ public A addToResources(int index,String item) { public A addToVerbs(String... items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -149,7 +151,7 @@ public A addToVerbs(String... items) { public A addToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.add(index, item); return (A) this; @@ -176,7 +178,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourcePolicyRuleFluent that = (V1ResourcePolicyRuleFluent) o; + V1ResourcePolicyRuleFluent that = (V1ResourcePolicyRuleFluent) o; if (!(Objects.equals(apiGroups, that.apiGroups))) { return false; } @@ -441,7 +443,7 @@ public A removeFromVerbs(String... items) { public A setToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.set(index, item); return (A) this; @@ -449,7 +451,7 @@ public A setToApiGroups(int index,String item) { public A setToNamespaces(int index,String item) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); } this.namespaces.set(index, item); return (A) this; @@ -457,7 +459,7 @@ public A setToNamespaces(int index,String item) { public A setToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.set(index, item); return (A) this; @@ -465,7 +467,7 @@ public A setToResources(int index,String item) { public A setToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.set(index, item); return (A) this; @@ -504,7 +506,7 @@ public String toString() { public A withApiGroups(List apiGroups) { if (apiGroups != null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); for (String item : apiGroups) { this.addToApiGroups(item); } @@ -538,7 +540,7 @@ public A withClusterScope(Boolean clusterScope) { public A withNamespaces(List namespaces) { if (namespaces != null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); for (String item : namespaces) { this.addToNamespaces(item); } @@ -563,7 +565,7 @@ public A withNamespaces(String... namespaces) { public A withResources(List resources) { if (resources != null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); for (String item : resources) { this.addToResources(item); } @@ -588,7 +590,7 @@ public A withResources(String... resources) { public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); for (String item : verbs) { this.addToVerbs(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java index 1b580e81c4..63bcaeeb3f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourcePoolBuilder extends V1ResourcePoolFluent implements VisitableBuilder{ V1ResourcePoolFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java index ef78d358bb..b3589b53db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourcePoolFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourcePoolFluent> extends BaseFluent{ private Long generation; private String name; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourcePoolFluent that = (V1ResourcePoolFluent) o; + V1ResourcePoolFluent that = (V1ResourcePoolFluent) o; if (!(Objects.equals(generation, that.generation))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java index 7e58af0b56..87090eb89f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceQuotaBuilder extends V1ResourceQuotaFluent implements VisitableBuilder{ V1ResourceQuotaFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java index 1a36bcec12..f9e38e9de2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceQuotaFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceQuotaFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceQuotaFluent that = (V1ResourceQuotaFluent) o; + V1ResourceQuotaFluent that = (V1ResourceQuotaFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1ResourceQuotaSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1ResourceQuotaStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1ResourceQuotaSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1ResourceQuotaSpec spec) { this.spec = new V1ResourceQuotaSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1ResourceQuotaStatus status) { this.status = new V1ResourceQuotaStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java index 314a370f9c..d1c3a23d12 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceQuotaListBuilder extends V1ResourceQuotaListFluent implements VisitableBuilder{ V1ResourceQuotaListFluent fluent; 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 d23ce98b6c..bb37bd7f5a 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceQuotaListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceQuotaListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ResourceQuotaListFluent(V1ResourceQuotaList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ResourceQuota item : items) { V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ResourceQuota item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ResourceQuota... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ResourceQuota item : items) { V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ResourceQuota... items) { public A addToItems(int index,V1ResourceQuota item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceQuotaListFluent that = (V1ResourceQuotaListFluent) o; + V1ResourceQuotaListFluent that = (V1ResourceQuotaListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ResourceQuotaBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1ResourceQuota item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ResourceQuota item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ResourceQuota item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ResourceQuotaFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java index 91c8d67ea5..e492497d18 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceQuotaSpecBuilder extends V1ResourceQuotaSpecFluent implements VisitableBuilder{ V1ResourceQuotaSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java index 6d5376cd6d..e50416739e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceQuotaSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceQuotaSpecFluent> extends BaseFluent{ private Map hard; private V1ScopeSelectorBuilder scopeSelector; @@ -47,7 +49,7 @@ public V1ResourceQuotaSpecFluent(V1ResourceQuotaSpec instance) { public A addAllToScopes(Collection items) { if (this.scopes == null) { - this.scopes = new ArrayList(); + this.scopes = new ArrayList<>(); } for (String item : items) { this.scopes.add(item); @@ -57,7 +59,7 @@ public A addAllToScopes(Collection items) { public A addToHard(Map map) { if (this.hard == null && map != null) { - this.hard = new LinkedHashMap(); + this.hard = new LinkedHashMap<>(); } if (map != null) { this.hard.putAll(map); @@ -67,7 +69,7 @@ public A addToHard(Map map) { public A addToHard(String key,Quantity value) { if (this.hard == null && key != null && value != null) { - this.hard = new LinkedHashMap(); + this.hard = new LinkedHashMap<>(); } if (key != null && value != null) { this.hard.put(key, value); @@ -77,7 +79,7 @@ public A addToHard(String key,Quantity value) { public A addToScopes(String... items) { if (this.scopes == null) { - this.scopes = new ArrayList(); + this.scopes = new ArrayList<>(); } for (String item : items) { this.scopes.add(item); @@ -87,7 +89,7 @@ public A addToScopes(String... items) { public A addToScopes(int index,String item) { if (this.scopes == null) { - this.scopes = new ArrayList(); + this.scopes = new ArrayList<>(); } this.scopes.add(index, item); return (A) this; @@ -128,7 +130,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceQuotaSpecFluent that = (V1ResourceQuotaSpecFluent) o; + V1ResourceQuotaSpecFluent that = (V1ResourceQuotaSpecFluent) o; if (!(Objects.equals(hard, that.hard))) { return false; } @@ -241,7 +243,7 @@ public A removeFromScopes(String... items) { public A setToScopes(int index,String item) { if (this.scopes == null) { - this.scopes = new ArrayList(); + this.scopes = new ArrayList<>(); } this.scopes.set(index, item); return (A) this; @@ -272,17 +274,17 @@ public A withHard(Map hard) { if (hard == null) { this.hard = null; } else { - this.hard = new LinkedHashMap(hard); + this.hard = new LinkedHashMap<>(hard); } return (A) this; } public ScopeSelectorNested withNewScopeSelector() { - return new ScopeSelectorNested(null); + return new ScopeSelectorNested<>(null); } public ScopeSelectorNested withNewScopeSelectorLike(V1ScopeSelector item) { - return new ScopeSelectorNested(item); + return new ScopeSelectorNested<>(item); } public A withScopeSelector(V1ScopeSelector scopeSelector) { @@ -291,15 +293,15 @@ public A withScopeSelector(V1ScopeSelector scopeSelector) { this.scopeSelector = new V1ScopeSelectorBuilder(scopeSelector); this._visitables.get("scopeSelector").add(this.scopeSelector); } else { - this.scopeSelector = null; this._visitables.get("scopeSelector").remove(this.scopeSelector); + this.scopeSelector = null; } return (A) this; } public A withScopes(List scopes) { if (scopes != null) { - this.scopes = new ArrayList(); + this.scopes = new ArrayList<>(); for (String item : scopes) { this.addToScopes(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java index 3935858390..5972326f9c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceQuotaStatusBuilder extends V1ResourceQuotaStatusFluent implements VisitableBuilder{ V1ResourceQuotaStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java index 7b492a1895..5b41fdf764 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java @@ -21,12 +21,14 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceQuotaStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceQuotaStatusFluent> extends BaseFluent{ private Map hard; private Map used; @@ -40,7 +42,7 @@ public V1ResourceQuotaStatusFluent(V1ResourceQuotaStatus instance) { public A addToHard(Map map) { if (this.hard == null && map != null) { - this.hard = new LinkedHashMap(); + this.hard = new LinkedHashMap<>(); } if (map != null) { this.hard.putAll(map); @@ -50,7 +52,7 @@ public A addToHard(Map map) { public A addToHard(String key,Quantity value) { if (this.hard == null && key != null && value != null) { - this.hard = new LinkedHashMap(); + this.hard = new LinkedHashMap<>(); } if (key != null && value != null) { this.hard.put(key, value); @@ -60,7 +62,7 @@ public A addToHard(String key,Quantity value) { public A addToUsed(Map map) { if (this.used == null && map != null) { - this.used = new LinkedHashMap(); + this.used = new LinkedHashMap<>(); } if (map != null) { this.used.putAll(map); @@ -70,7 +72,7 @@ public A addToUsed(Map map) { public A addToUsed(String key,Quantity value) { if (this.used == null && key != null && value != null) { - this.used = new LinkedHashMap(); + this.used = new LinkedHashMap<>(); } if (key != null && value != null) { this.used.put(key, value); @@ -96,7 +98,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceQuotaStatusFluent that = (V1ResourceQuotaStatusFluent) o; + V1ResourceQuotaStatusFluent that = (V1ResourceQuotaStatusFluent) o; if (!(Objects.equals(hard, that.hard))) { return false; } @@ -194,7 +196,7 @@ public A withHard(Map hard) { if (hard == null) { this.hard = null; } else { - this.hard = new LinkedHashMap(hard); + this.hard = new LinkedHashMap<>(hard); } return (A) this; } @@ -203,7 +205,7 @@ public A withUsed(Map used) { if (used == null) { this.used = null; } else { - this.used = new LinkedHashMap(used); + this.used = new LinkedHashMap<>(used); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java index 3fbba1b851..7349789e2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceRequirementsBuilder extends V1ResourceRequirementsFluent implements VisitableBuilder{ V1ResourceRequirementsFluent fluent; 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 0492eae67b..7f3b182bd0 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 @@ -28,12 +28,14 @@ import java.util.Map; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceRequirementsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceRequirementsFluent> extends BaseFluent{ private ArrayList claims; private Map limits; @@ -48,7 +50,7 @@ public V1ResourceRequirementsFluent(V1ResourceRequirements instance) { public A addAllToClaims(Collection items) { if (this.claims == null) { - this.claims = new ArrayList(); + this.claims = new ArrayList<>(); } for (CoreV1ResourceClaim item : items) { CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); @@ -59,16 +61,16 @@ public A addAllToClaims(Collection items) { } public ClaimsNested addNewClaim() { - return new ClaimsNested(-1, null); + return new ClaimsNested<>(-1, null); } public ClaimsNested addNewClaimLike(CoreV1ResourceClaim item) { - return new ClaimsNested(-1, item); + return new ClaimsNested<>(-1, item); } public A addToClaims(CoreV1ResourceClaim... items) { if (this.claims == null) { - this.claims = new ArrayList(); + this.claims = new ArrayList<>(); } for (CoreV1ResourceClaim item : items) { CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); @@ -80,7 +82,7 @@ public A addToClaims(CoreV1ResourceClaim... items) { public A addToClaims(int index,CoreV1ResourceClaim item) { if (this.claims == null) { - this.claims = new ArrayList(); + this.claims = new ArrayList<>(); } CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); if (index < 0 || index >= this.claims.size()) { @@ -95,7 +97,7 @@ public A addToClaims(int index,CoreV1ResourceClaim item) { public A addToLimits(Map map) { if (this.limits == null && map != null) { - this.limits = new LinkedHashMap(); + this.limits = new LinkedHashMap<>(); } if (map != null) { this.limits.putAll(map); @@ -105,7 +107,7 @@ public A addToLimits(Map map) { public A addToLimits(String key,Quantity value) { if (this.limits == null && key != null && value != null) { - this.limits = new LinkedHashMap(); + this.limits = new LinkedHashMap<>(); } if (key != null && value != null) { this.limits.put(key, value); @@ -115,7 +117,7 @@ public A addToLimits(String key,Quantity value) { public A addToRequests(Map map) { if (this.requests == null && map != null) { - this.requests = new LinkedHashMap(); + this.requests = new LinkedHashMap<>(); } if (map != null) { this.requests.putAll(map); @@ -125,7 +127,7 @@ public A addToRequests(Map map) { public A addToRequests(String key,Quantity value) { if (this.requests == null && key != null && value != null) { - this.requests = new LinkedHashMap(); + this.requests = new LinkedHashMap<>(); } if (key != null && value != null) { this.requests.put(key, value); @@ -213,7 +215,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceRequirementsFluent that = (V1ResourceRequirementsFluent) o; + V1ResourceRequirementsFluent that = (V1ResourceRequirementsFluent) o; if (!(Objects.equals(claims, that.claims))) { return false; } @@ -336,6 +338,7 @@ public A removeMatchingFromClaims(Predicate predicat return (A) this; } Iterator each = claims.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("claims"); while (each.hasNext()) { CoreV1ResourceClaimBuilder builder = each.next(); @@ -348,12 +351,12 @@ public A removeMatchingFromClaims(Predicate predicat } public ClaimsNested setNewClaimLike(int index,CoreV1ResourceClaim item) { - return new ClaimsNested(index, item); + return new ClaimsNested<>(index, item); } public A setToClaims(int index,CoreV1ResourceClaim item) { if (this.claims == null) { - this.claims = new ArrayList(); + this.claims = new ArrayList<>(); } CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); if (index < 0 || index >= this.claims.size()) { @@ -392,7 +395,7 @@ public A withClaims(List claims) { this._visitables.get("claims").clear(); } if (claims != null) { - this.claims = new ArrayList(); + this.claims = new ArrayList<>(); for (CoreV1ResourceClaim item : claims) { this.addToClaims(item); } @@ -419,7 +422,7 @@ public A withLimits(Map limits) { if (limits == null) { this.limits = null; } else { - this.limits = new LinkedHashMap(limits); + this.limits = new LinkedHashMap<>(limits); } return (A) this; } @@ -428,7 +431,7 @@ public A withRequests(Map requests) { if (requests == null) { this.requests = null; } else { - this.requests = new LinkedHashMap(requests); + this.requests = new LinkedHashMap<>(requests); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java index 01800a337f..75491d918d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceRuleBuilder extends V1ResourceRuleFluent implements VisitableBuilder{ V1ResourceRuleFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java index 1a7e4302d6..6e9e92833c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceRuleFluent> extends BaseFluent{ private List apiGroups; private List resourceNames; @@ -43,7 +45,7 @@ public V1ResourceRuleFluent(V1ResourceRule instance) { public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -53,7 +55,7 @@ public A addAllToApiGroups(Collection items) { public A addAllToResourceNames(Collection items) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } for (String item : items) { this.resourceNames.add(item); @@ -63,7 +65,7 @@ public A addAllToResourceNames(Collection items) { public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -73,7 +75,7 @@ public A addAllToResources(Collection items) { public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -83,7 +85,7 @@ public A addAllToVerbs(Collection items) { public A addToApiGroups(String... items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -93,7 +95,7 @@ public A addToApiGroups(String... items) { public A addToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(index, item); return (A) this; @@ -101,7 +103,7 @@ public A addToApiGroups(int index,String item) { public A addToResourceNames(String... items) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } for (String item : items) { this.resourceNames.add(item); @@ -111,7 +113,7 @@ public A addToResourceNames(String... items) { public A addToResourceNames(int index,String item) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.add(index, item); return (A) this; @@ -119,7 +121,7 @@ public A addToResourceNames(int index,String item) { public A addToResources(String... items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -129,7 +131,7 @@ public A addToResources(String... items) { public A addToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(index, item); return (A) this; @@ -137,7 +139,7 @@ public A addToResources(int index,String item) { public A addToVerbs(String... items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -147,7 +149,7 @@ public A addToVerbs(String... items) { public A addToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.add(index, item); return (A) this; @@ -173,7 +175,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceRuleFluent that = (V1ResourceRuleFluent) o; + V1ResourceRuleFluent that = (V1ResourceRuleFluent) o; if (!(Objects.equals(apiGroups, that.apiGroups))) { return false; } @@ -427,7 +429,7 @@ public A removeFromVerbs(String... items) { public A setToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.set(index, item); return (A) this; @@ -435,7 +437,7 @@ public A setToApiGroups(int index,String item) { public A setToResourceNames(int index,String item) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.set(index, item); return (A) this; @@ -443,7 +445,7 @@ public A setToResourceNames(int index,String item) { public A setToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.set(index, item); return (A) this; @@ -451,7 +453,7 @@ public A setToResources(int index,String item) { public A setToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.set(index, item); return (A) this; @@ -485,7 +487,7 @@ public String toString() { public A withApiGroups(List apiGroups) { if (apiGroups != null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); for (String item : apiGroups) { this.addToApiGroups(item); } @@ -510,7 +512,7 @@ public A withApiGroups(String... apiGroups) { public A withResourceNames(List resourceNames) { if (resourceNames != null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); for (String item : resourceNames) { this.addToResourceNames(item); } @@ -535,7 +537,7 @@ public A withResourceNames(String... resourceNames) { public A withResources(List resources) { if (resources != null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); for (String item : resources) { this.addToResources(item); } @@ -560,7 +562,7 @@ public A withResources(String... resources) { public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); for (String item : verbs) { this.addToVerbs(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java index 8764170e5a..c2d666e140 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceSliceBuilder extends V1ResourceSliceFluent implements VisitableBuilder{ V1ResourceSliceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java index cfc9a5708d..7c29655bf5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceSliceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceSliceFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceSliceFluent that = (V1ResourceSliceFluent) o; + V1ResourceSliceFluent that = (V1ResourceSliceFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1ResourceSliceSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1ResourceSliceSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1ResourceSliceSpec spec) { this.spec = new V1ResourceSliceSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java index 0a46ed2858..cf97879018 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceSliceListBuilder extends V1ResourceSliceListFluent implements VisitableBuilder{ V1ResourceSliceListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java index 52796f11b3..f1c25cc1c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceSliceListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceSliceListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ResourceSliceListFluent(V1ResourceSliceList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ResourceSlice item : items) { V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ResourceSlice item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ResourceSlice... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ResourceSlice item : items) { V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ResourceSlice... items) { public A addToItems(int index,V1ResourceSlice item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceSliceListFluent that = (V1ResourceSliceListFluent) o; + V1ResourceSliceListFluent that = (V1ResourceSliceListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ResourceSliceBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1ResourceSlice item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ResourceSlice item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ResourceSlice item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ResourceSliceFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java index c8a06543fa..9a5e3ef271 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceSliceSpecBuilder extends V1ResourceSliceSpecFluent implements VisitableBuilder{ V1ResourceSliceSpecFluent fluent; @@ -43,9 +44,11 @@ public V1ResourceSliceSpec build() { buildable.setDriver(fluent.getDriver()); buildable.setNodeName(fluent.getNodeName()); buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setPartitionTypeAttribute(fluent.getPartitionTypeAttribute()); buildable.setPerDeviceNodeSelection(fluent.getPerDeviceNodeSelection()); buildable.setPool(fluent.buildPool()); buildable.setSharedCounters(fluent.buildSharedCounters()); + buildable.setSkipNodeOperations(fluent.getSkipNodeOperations()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java index 22e5f69570..1833fca696 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java @@ -27,21 +27,25 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceSliceSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceSliceSpecFluent> extends BaseFluent{ private Boolean allNodes; private ArrayList devices; private String driver; private String nodeName; private V1NodeSelectorBuilder nodeSelector; + private String partitionTypeAttribute; private Boolean perDeviceNodeSelection; private V1ResourcePoolBuilder pool; private ArrayList sharedCounters; + private List skipNodeOperations; public V1ResourceSliceSpecFluent() { } @@ -52,7 +56,7 @@ public V1ResourceSliceSpecFluent(V1ResourceSliceSpec instance) { public A addAllToDevices(Collection items) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } for (V1Device item : items) { V1DeviceBuilder builder = new V1DeviceBuilder(item); @@ -64,7 +68,7 @@ public A addAllToDevices(Collection items) { public A addAllToSharedCounters(Collection items) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); } for (V1CounterSet item : items) { V1CounterSetBuilder builder = new V1CounterSetBuilder(item); @@ -74,25 +78,35 @@ public A addAllToSharedCounters(Collection items) { return (A) this; } + public A addAllToSkipNodeOperations(Collection items) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + for (String item : items) { + this.skipNodeOperations.add(item); + } + return (A) this; + } + public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); + return new DevicesNested<>(-1, null); } public DevicesNested addNewDeviceLike(V1Device item) { - return new DevicesNested(-1, item); + return new DevicesNested<>(-1, item); } public SharedCountersNested addNewSharedCounter() { - return new SharedCountersNested(-1, null); + return new SharedCountersNested<>(-1, null); } public SharedCountersNested addNewSharedCounterLike(V1CounterSet item) { - return new SharedCountersNested(-1, item); + return new SharedCountersNested<>(-1, item); } public A addToDevices(V1Device... items) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } for (V1Device item : items) { V1DeviceBuilder builder = new V1DeviceBuilder(item); @@ -104,7 +118,7 @@ public A addToDevices(V1Device... items) { public A addToDevices(int index,V1Device item) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } V1DeviceBuilder builder = new V1DeviceBuilder(item); if (index < 0 || index >= this.devices.size()) { @@ -119,7 +133,7 @@ public A addToDevices(int index,V1Device item) { public A addToSharedCounters(V1CounterSet... items) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); } for (V1CounterSet item : items) { V1CounterSetBuilder builder = new V1CounterSetBuilder(item); @@ -131,7 +145,7 @@ public A addToSharedCounters(V1CounterSet... items) { public A addToSharedCounters(int index,V1CounterSet item) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); } V1CounterSetBuilder builder = new V1CounterSetBuilder(item); if (index < 0 || index >= this.sharedCounters.size()) { @@ -144,6 +158,24 @@ public A addToSharedCounters(int index,V1CounterSet item) { return (A) this; } + public A addToSkipNodeOperations(String... items) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + for (String item : items) { + this.skipNodeOperations.add(item); + } + return (A) this; + } + + public A addToSkipNodeOperations(int index,String item) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.add(index, item); + return (A) this; + } + public V1Device buildDevice(int index) { return this.devices.get(index).build(); } @@ -210,9 +242,11 @@ protected void copyInstance(V1ResourceSliceSpec instance) { this.withDriver(instance.getDriver()); this.withNodeName(instance.getNodeName()); this.withNodeSelector(instance.getNodeSelector()); + this.withPartitionTypeAttribute(instance.getPartitionTypeAttribute()); this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); this.withPool(instance.getPool()); this.withSharedCounters(instance.getSharedCounters()); + this.withSkipNodeOperations(instance.getSkipNodeOperations()); } } @@ -322,7 +356,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceSliceSpecFluent that = (V1ResourceSliceSpecFluent) o; + V1ResourceSliceSpecFluent that = (V1ResourceSliceSpecFluent) o; if (!(Objects.equals(allNodes, that.allNodes))) { return false; } @@ -338,6 +372,9 @@ public boolean equals(Object o) { if (!(Objects.equals(nodeSelector, that.nodeSelector))) { return false; } + if (!(Objects.equals(partitionTypeAttribute, that.partitionTypeAttribute))) { + return false; + } if (!(Objects.equals(perDeviceNodeSelection, that.perDeviceNodeSelection))) { return false; } @@ -347,6 +384,9 @@ public boolean equals(Object o) { if (!(Objects.equals(sharedCounters, that.sharedCounters))) { return false; } + if (!(Objects.equals(skipNodeOperations, that.skipNodeOperations))) { + return false; + } return true; } @@ -358,14 +398,43 @@ public String getDriver() { return this.driver; } + public String getFirstSkipNodeOperation() { + return this.skipNodeOperations.get(0); + } + + public String getLastSkipNodeOperation() { + return this.skipNodeOperations.get(skipNodeOperations.size() - 1); + } + + public String getMatchingSkipNodeOperation(Predicate predicate) { + for (String item : skipNodeOperations) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + public String getNodeName() { return this.nodeName; } + public String getPartitionTypeAttribute() { + return this.partitionTypeAttribute; + } + public Boolean getPerDeviceNodeSelection() { return this.perDeviceNodeSelection; } + public String getSkipNodeOperation(int index) { + return this.skipNodeOperations.get(index); + } + + public List getSkipNodeOperations() { + return this.skipNodeOperations; + } + public boolean hasAllNodes() { return this.allNodes != null; } @@ -396,6 +465,15 @@ public boolean hasMatchingSharedCounter(Predicate predicate return false; } + public boolean hasMatchingSkipNodeOperation(Predicate predicate) { + for (String item : skipNodeOperations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasNodeName() { return this.nodeName != null; } @@ -404,6 +482,10 @@ public boolean hasNodeSelector() { return this.nodeSelector != null; } + public boolean hasPartitionTypeAttribute() { + return this.partitionTypeAttribute != null; + } + public boolean hasPerDeviceNodeSelection() { return this.perDeviceNodeSelection != null; } @@ -416,8 +498,12 @@ public boolean hasSharedCounters() { return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); } + public boolean hasSkipNodeOperations() { + return this.skipNodeOperations != null && !(this.skipNodeOperations.isEmpty()); + } + public int hashCode() { - return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); + return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, partitionTypeAttribute, perDeviceNodeSelection, pool, sharedCounters, skipNodeOperations); } public A removeAllFromDevices(Collection items) { @@ -444,6 +530,16 @@ public A removeAllFromSharedCounters(Collection items) { return (A) this; } + public A removeAllFromSkipNodeOperations(Collection items) { + if (this.skipNodeOperations == null) { + return (A) this; + } + for (String item : items) { + this.skipNodeOperations.remove(item); + } + return (A) this; + } + public A removeFromDevices(V1Device... items) { if (this.devices == null) { return (A) this; @@ -468,11 +564,22 @@ public A removeFromSharedCounters(V1CounterSet... items) { return (A) this; } + public A removeFromSkipNodeOperations(String... items) { + if (this.skipNodeOperations == null) { + return (A) this; + } + for (String item : items) { + this.skipNodeOperations.remove(item); + } + return (A) this; + } + public A removeMatchingFromDevices(Predicate predicate) { if (devices == null) { return (A) this; } Iterator each = devices.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("devices"); while (each.hasNext()) { V1DeviceBuilder builder = each.next(); @@ -489,6 +596,7 @@ public A removeMatchingFromSharedCounters(Predicate predica return (A) this; } Iterator each = sharedCounters.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("sharedCounters"); while (each.hasNext()) { V1CounterSetBuilder builder = each.next(); @@ -501,16 +609,16 @@ public A removeMatchingFromSharedCounters(Predicate predica } public DevicesNested setNewDeviceLike(int index,V1Device item) { - return new DevicesNested(index, item); + return new DevicesNested<>(index, item); } public SharedCountersNested setNewSharedCounterLike(int index,V1CounterSet item) { - return new SharedCountersNested(index, item); + return new SharedCountersNested<>(index, item); } public A setToDevices(int index,V1Device item) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } V1DeviceBuilder builder = new V1DeviceBuilder(item); if (index < 0 || index >= this.devices.size()) { @@ -525,7 +633,7 @@ public A setToDevices(int index,V1Device item) { public A setToSharedCounters(int index,V1CounterSet item) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); } V1CounterSetBuilder builder = new V1CounterSetBuilder(item); if (index < 0 || index >= this.sharedCounters.size()) { @@ -538,6 +646,14 @@ public A setToSharedCounters(int index,V1CounterSet item) { return (A) this; } + public A setToSkipNodeOperations(int index,String item) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.set(index, item); + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -566,6 +682,11 @@ public String toString() { sb.append(nodeSelector); sb.append(","); } + if (!(partitionTypeAttribute == null)) { + sb.append("partitionTypeAttribute:"); + sb.append(partitionTypeAttribute); + sb.append(","); + } if (!(perDeviceNodeSelection == null)) { sb.append("perDeviceNodeSelection:"); sb.append(perDeviceNodeSelection); @@ -579,6 +700,11 @@ public String toString() { if (!(sharedCounters == null) && !(sharedCounters.isEmpty())) { sb.append("sharedCounters:"); sb.append(sharedCounters); + sb.append(","); + } + if (!(skipNodeOperations == null) && !(skipNodeOperations.isEmpty())) { + sb.append("skipNodeOperations:"); + sb.append(skipNodeOperations); } sb.append("}"); return sb.toString(); @@ -598,7 +724,7 @@ public A withDevices(List devices) { this._visitables.get("devices").clear(); } if (devices != null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); for (V1Device item : devices) { this.addToDevices(item); } @@ -627,19 +753,19 @@ public A withDriver(String driver) { } public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + return new NodeSelectorNested<>(null); } public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + return new NodeSelectorNested<>(item); } public PoolNested withNewPool() { - return new PoolNested(null); + return new PoolNested<>(null); } public PoolNested withNewPoolLike(V1ResourcePool item) { - return new PoolNested(item); + return new PoolNested<>(item); } public A withNodeName(String nodeName) { @@ -653,12 +779,17 @@ public A withNodeSelector(V1NodeSelector nodeSelector) { this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); this._visitables.get("nodeSelector").add(this.nodeSelector); } else { - this.nodeSelector = null; this._visitables.get("nodeSelector").remove(this.nodeSelector); + this.nodeSelector = null; } return (A) this; } + public A withPartitionTypeAttribute(String partitionTypeAttribute) { + this.partitionTypeAttribute = partitionTypeAttribute; + return (A) this; + } + public A withPerDeviceNodeSelection() { return withPerDeviceNodeSelection(true); } @@ -674,8 +805,8 @@ public A withPool(V1ResourcePool pool) { this.pool = new V1ResourcePoolBuilder(pool); this._visitables.get("pool").add(this.pool); } else { - this.pool = null; this._visitables.get("pool").remove(this.pool); + this.pool = null; } return (A) this; } @@ -685,7 +816,7 @@ public A withSharedCounters(List sharedCounters) { this._visitables.get("sharedCounters").clear(); } if (sharedCounters != null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); for (V1CounterSet item : sharedCounters) { this.addToSharedCounters(item); } @@ -707,6 +838,31 @@ public A withSharedCounters(V1CounterSet... sharedCounters) { } return (A) this; } + + public A withSkipNodeOperations(List skipNodeOperations) { + if (skipNodeOperations != null) { + this.skipNodeOperations = new ArrayList<>(); + for (String item : skipNodeOperations) { + this.addToSkipNodeOperations(item); + } + } else { + this.skipNodeOperations = null; + } + return (A) this; + } + + public A withSkipNodeOperations(String... skipNodeOperations) { + if (this.skipNodeOperations != null) { + this.skipNodeOperations.clear(); + _visitables.remove("skipNodeOperations"); + } + if (skipNodeOperations != null) { + for (String item : skipNodeOperations) { + this.addToSkipNodeOperations(item); + } + } + return (A) this; + } public class DevicesNested extends V1DeviceFluent> implements Nested{ V1DeviceBuilder builder; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java index 8c4f85a31c..3171946775 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ResourceStatusBuilder extends V1ResourceStatusFluent implements VisitableBuilder{ V1ResourceStatusFluent fluent; 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 1fab40b42e..1c17b967ed 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ResourceStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ResourceStatusFluent> extends BaseFluent{ private String name; private ArrayList resources; @@ -44,7 +46,7 @@ public V1ResourceStatusFluent(V1ResourceStatus instance) { public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (V1ResourceHealth item : items) { V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); @@ -55,16 +57,16 @@ public A addAllToResources(Collection items) { } public ResourcesNested addNewResource() { - return new ResourcesNested(-1, null); + return new ResourcesNested<>(-1, null); } public ResourcesNested addNewResourceLike(V1ResourceHealth item) { - return new ResourcesNested(-1, item); + return new ResourcesNested<>(-1, item); } public A addToResources(V1ResourceHealth... items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (V1ResourceHealth item : items) { V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); @@ -76,7 +78,7 @@ public A addToResources(V1ResourceHealth... items) { public A addToResources(int index,V1ResourceHealth item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); if (index < 0 || index >= this.resources.size()) { @@ -168,7 +170,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ResourceStatusFluent that = (V1ResourceStatusFluent) o; + V1ResourceStatusFluent that = (V1ResourceStatusFluent) o; if (!(Objects.equals(name, that.name))) { return false; } @@ -232,6 +234,7 @@ public A removeMatchingFromResources(Predicate predicat return (A) this; } Iterator each = resources.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resources"); while (each.hasNext()) { V1ResourceHealthBuilder builder = each.next(); @@ -244,12 +247,12 @@ public A removeMatchingFromResources(Predicate predicat } public ResourcesNested setNewResourceLike(int index,V1ResourceHealth item) { - return new ResourcesNested(index, item); + return new ResourcesNested<>(index, item); } public A setToResources(int index,V1ResourceHealth item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); if (index < 0 || index >= this.resources.size()) { @@ -288,7 +291,7 @@ public A withResources(List resources) { this._visitables.get("resources").clear(); } if (resources != null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); for (V1ResourceHealth item : resources) { this.addToResources(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java index 9378f0fe51..2a9c0f3922 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1RoleBindingBuilder extends V1RoleBindingFluent implements VisitableBuilder{ V1RoleBindingFluent fluent; 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 a35fc26503..d8e2b24f12 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1RoleBindingFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1RoleBindingFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -48,7 +50,7 @@ public V1RoleBindingFluent(V1RoleBinding instance) { public A addAllToSubjects(Collection items) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } for (RbacV1Subject item : items) { RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); @@ -59,16 +61,16 @@ public A addAllToSubjects(Collection items) { } public SubjectsNested addNewSubject() { - return new SubjectsNested(-1, null); + return new SubjectsNested<>(-1, null); } public SubjectsNested addNewSubjectLike(RbacV1Subject item) { - return new SubjectsNested(-1, item); + return new SubjectsNested<>(-1, item); } public A addToSubjects(RbacV1Subject... items) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } for (RbacV1Subject item : items) { RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); @@ -80,7 +82,7 @@ public A addToSubjects(RbacV1Subject... items) { public A addToSubjects(int index,RbacV1Subject item) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); if (index < 0 || index >= this.subjects.size()) { @@ -207,7 +209,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1RoleBindingFluent that = (V1RoleBindingFluent) o; + V1RoleBindingFluent that = (V1RoleBindingFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -296,6 +298,7 @@ public A removeMatchingFromSubjects(Predicate predicate) { return (A) this; } Iterator each = subjects.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("subjects"); while (each.hasNext()) { RbacV1SubjectBuilder builder = each.next(); @@ -308,12 +311,12 @@ public A removeMatchingFromSubjects(Predicate predicate) { } public SubjectsNested setNewSubjectLike(int index,RbacV1Subject item) { - return new SubjectsNested(index, item); + return new SubjectsNested<>(index, item); } public A setToSubjects(int index,RbacV1Subject item) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); if (index < 0 || index >= this.subjects.size()) { @@ -373,26 +376,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public RoleRefNested withNewRoleRef() { - return new RoleRefNested(null); + return new RoleRefNested<>(null); } public RoleRefNested withNewRoleRefLike(V1RoleRef item) { - return new RoleRefNested(item); + return new RoleRefNested<>(item); } public A withRoleRef(V1RoleRef roleRef) { @@ -401,8 +404,8 @@ public A withRoleRef(V1RoleRef roleRef) { this.roleRef = new V1RoleRefBuilder(roleRef); this._visitables.get("roleRef").add(this.roleRef); } else { - this.roleRef = null; this._visitables.get("roleRef").remove(this.roleRef); + this.roleRef = null; } return (A) this; } @@ -412,7 +415,7 @@ public A withSubjects(List subjects) { this._visitables.get("subjects").clear(); } if (subjects != null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); for (RbacV1Subject item : subjects) { this.addToSubjects(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java index 36728a59a1..039b85640b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1RoleBindingListBuilder extends V1RoleBindingListFluent implements VisitableBuilder{ V1RoleBindingListFluent fluent; 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 e572fa1f1f..48f9913086 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1RoleBindingListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1RoleBindingListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1RoleBindingListFluent(V1RoleBindingList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1RoleBinding item : items) { V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1RoleBinding item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1RoleBinding... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1RoleBinding item : items) { V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1RoleBinding... items) { public A addToItems(int index,V1RoleBinding item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1RoleBindingListFluent that = (V1RoleBindingListFluent) o; + V1RoleBindingListFluent that = (V1RoleBindingListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1RoleBindingBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1RoleBinding item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1RoleBinding item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1RoleBinding item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1RoleBindingFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java index b46f1d2a00..38d7456d64 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1RoleBuilder extends V1RoleFluent implements VisitableBuilder{ V1RoleFluent fluent; 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 fdc8412230..fb13401ee6 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1RoleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1RoleFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -47,7 +49,7 @@ public V1RoleFluent(V1Role instance) { public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1PolicyRule item : items) { V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); @@ -58,16 +60,16 @@ public A addAllToRules(Collection items) { } public RulesNested addNewRule() { - return new RulesNested(-1, null); + return new RulesNested<>(-1, null); } public RulesNested addNewRuleLike(V1PolicyRule item) { - return new RulesNested(-1, item); + return new RulesNested<>(-1, item); } public A addToRules(V1PolicyRule... items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1PolicyRule item : items) { V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); @@ -79,7 +81,7 @@ public A addToRules(V1PolicyRule... items) { public A addToRules(int index,V1PolicyRule item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1RoleFluent that = (V1RoleFluent) o; + V1RoleFluent that = (V1RoleFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromRules(Predicate predicate) { return (A) this; } Iterator each = rules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1PolicyRuleBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromRules(Predicate predicate) { } public RulesNested setNewRuleLike(int index,V1PolicyRule item) { - return new RulesNested(index, item); + return new RulesNested<>(index, item); } public A setToRules(int index,V1PolicyRule item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -343,18 +346,18 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withRules(List rules) { @@ -362,7 +365,7 @@ public A withRules(List rules) { this._visitables.get("rules").clear(); } if (rules != null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); for (V1PolicyRule item : rules) { this.addToRules(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java index 85c31fdd2a..79daaed01e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1RoleListBuilder extends V1RoleListFluent implements VisitableBuilder{ V1RoleListFluent fluent; 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 0f4794f03a..2d7eb95987 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1RoleListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1RoleListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1RoleListFluent(V1RoleList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Role item : items) { V1RoleBuilder builder = new V1RoleBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1Role item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1Role... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Role item : items) { V1RoleBuilder builder = new V1RoleBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1Role... items) { public A addToItems(int index,V1Role item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1RoleBuilder builder = new V1RoleBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1RoleListFluent that = (V1RoleListFluent) o; + V1RoleListFluent that = (V1RoleListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1RoleBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1Role item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1Role item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1RoleBuilder builder = new V1RoleBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1Role item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1RoleFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java index b40d58a338..963dce7bd7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1RoleRefBuilder extends V1RoleRefFluent implements VisitableBuilder{ V1RoleRefFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java index 78a4c345be..871452a27b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1RoleRefFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1RoleRefFluent> extends BaseFluent{ private String apiGroup; private String kind; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1RoleRefFluent that = (V1RoleRefFluent) o; + V1RoleRefFluent that = (V1RoleRefFluent) o; if (!(Objects.equals(apiGroup, that.apiGroup))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java index ed9ec05606..ebce54e4c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1RollingUpdateDaemonSetBuilder extends V1RollingUpdateDaemonSetFluent implements VisitableBuilder{ V1RollingUpdateDaemonSetFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java index 735f29b20a..1b3f8da180 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1RollingUpdateDaemonSetFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1RollingUpdateDaemonSetFluent> extends BaseFluent{ private IntOrString maxSurge; private IntOrString maxUnavailable; @@ -54,7 +56,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1RollingUpdateDaemonSetFluent that = (V1RollingUpdateDaemonSetFluent) o; + V1RollingUpdateDaemonSetFluent that = (V1RollingUpdateDaemonSetFluent) o; if (!(Objects.equals(maxSurge, that.maxSurge))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java index 3ffbc90aa4..2269904c06 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1RollingUpdateDeploymentBuilder extends V1RollingUpdateDeploymentFluent implements VisitableBuilder{ V1RollingUpdateDeploymentFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java index a5fd90262e..54878a0528 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1RollingUpdateDeploymentFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1RollingUpdateDeploymentFluent> extends BaseFluent{ private IntOrString maxSurge; private IntOrString maxUnavailable; @@ -54,7 +56,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1RollingUpdateDeploymentFluent that = (V1RollingUpdateDeploymentFluent) o; + V1RollingUpdateDeploymentFluent that = (V1RollingUpdateDeploymentFluent) o; if (!(Objects.equals(maxSurge, that.maxSurge))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java index 45f20eac84..29102b74a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1RollingUpdateStatefulSetStrategyBuilder extends V1RollingUpdateStatefulSetStrategyFluent implements VisitableBuilder{ V1RollingUpdateStatefulSetStrategyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java index b93e979da4..10c1f814fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java @@ -20,12 +20,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1RollingUpdateStatefulSetStrategyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1RollingUpdateStatefulSetStrategyFluent> extends BaseFluent{ private IntOrString maxUnavailable; private Integer partition; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1RollingUpdateStatefulSetStrategyFluent that = (V1RollingUpdateStatefulSetStrategyFluent) o; + V1RollingUpdateStatefulSetStrategyFluent that = (V1RollingUpdateStatefulSetStrategyFluent) o; if (!(Objects.equals(maxUnavailable, that.maxUnavailable))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java index a8066abd33..e71f5c04c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1RuleWithOperationsBuilder extends V1RuleWithOperationsFluent implements VisitableBuilder{ V1RuleWithOperationsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java index df89d0bf62..5beec690b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1RuleWithOperationsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1RuleWithOperationsFluent> extends BaseFluent{ private List apiGroups; private List apiVersions; @@ -44,7 +46,7 @@ public V1RuleWithOperationsFluent(V1RuleWithOperations instance) { public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -54,7 +56,7 @@ public A addAllToApiGroups(Collection items) { public A addAllToApiVersions(Collection items) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } for (String item : items) { this.apiVersions.add(item); @@ -64,7 +66,7 @@ public A addAllToApiVersions(Collection items) { public A addAllToOperations(Collection items) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } for (String item : items) { this.operations.add(item); @@ -74,7 +76,7 @@ public A addAllToOperations(Collection items) { public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -84,7 +86,7 @@ public A addAllToResources(Collection items) { public A addToApiGroups(String... items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -94,7 +96,7 @@ public A addToApiGroups(String... items) { public A addToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(index, item); return (A) this; @@ -102,7 +104,7 @@ public A addToApiGroups(int index,String item) { public A addToApiVersions(String... items) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } for (String item : items) { this.apiVersions.add(item); @@ -112,7 +114,7 @@ public A addToApiVersions(String... items) { public A addToApiVersions(int index,String item) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } this.apiVersions.add(index, item); return (A) this; @@ -120,7 +122,7 @@ public A addToApiVersions(int index,String item) { public A addToOperations(String... items) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } for (String item : items) { this.operations.add(item); @@ -130,7 +132,7 @@ public A addToOperations(String... items) { public A addToOperations(int index,String item) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } this.operations.add(index, item); return (A) this; @@ -138,7 +140,7 @@ public A addToOperations(int index,String item) { public A addToResources(String... items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -148,7 +150,7 @@ public A addToResources(String... items) { public A addToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(index, item); return (A) this; @@ -175,7 +177,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1RuleWithOperationsFluent that = (V1RuleWithOperationsFluent) o; + V1RuleWithOperationsFluent that = (V1RuleWithOperationsFluent) o; if (!(Objects.equals(apiGroups, that.apiGroups))) { return false; } @@ -440,7 +442,7 @@ public A removeFromResources(String... items) { public A setToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.set(index, item); return (A) this; @@ -448,7 +450,7 @@ public A setToApiGroups(int index,String item) { public A setToApiVersions(int index,String item) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } this.apiVersions.set(index, item); return (A) this; @@ -456,7 +458,7 @@ public A setToApiVersions(int index,String item) { public A setToOperations(int index,String item) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } this.operations.set(index, item); return (A) this; @@ -464,7 +466,7 @@ public A setToOperations(int index,String item) { public A setToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.set(index, item); return (A) this; @@ -503,7 +505,7 @@ public String toString() { public A withApiGroups(List apiGroups) { if (apiGroups != null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); for (String item : apiGroups) { this.addToApiGroups(item); } @@ -528,7 +530,7 @@ public A withApiGroups(String... apiGroups) { public A withApiVersions(List apiVersions) { if (apiVersions != null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); for (String item : apiVersions) { this.addToApiVersions(item); } @@ -553,7 +555,7 @@ public A withApiVersions(String... apiVersions) { public A withOperations(List operations) { if (operations != null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); for (String item : operations) { this.addToOperations(item); } @@ -578,7 +580,7 @@ public A withOperations(String... operations) { public A withResources(List resources) { if (resources != null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); for (String item : resources) { this.addToResources(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java index c23bd1dfac..f07aa2fabf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1RuntimeClassBuilder extends V1RuntimeClassFluent implements VisitableBuilder{ V1RuntimeClassFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java index 727841e3de..5880b8b560 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1RuntimeClassFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1RuntimeClassFluent> extends BaseFluent{ private String apiVersion; private String handler; @@ -111,7 +113,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1RuntimeClassFluent that = (V1RuntimeClassFluent) o; + V1RuntimeClassFluent that = (V1RuntimeClassFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -230,34 +232,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public OverheadNested withNewOverhead() { - return new OverheadNested(null); + return new OverheadNested<>(null); } public OverheadNested withNewOverheadLike(V1Overhead item) { - return new OverheadNested(item); + return new OverheadNested<>(item); } public SchedulingNested withNewScheduling() { - return new SchedulingNested(null); + return new SchedulingNested<>(null); } public SchedulingNested withNewSchedulingLike(V1Scheduling item) { - return new SchedulingNested(item); + return new SchedulingNested<>(item); } public A withOverhead(V1Overhead overhead) { @@ -266,8 +268,8 @@ public A withOverhead(V1Overhead overhead) { this.overhead = new V1OverheadBuilder(overhead); this._visitables.get("overhead").add(this.overhead); } else { - this.overhead = null; this._visitables.get("overhead").remove(this.overhead); + this.overhead = null; } return (A) this; } @@ -278,8 +280,8 @@ public A withScheduling(V1Scheduling scheduling) { this.scheduling = new V1SchedulingBuilder(scheduling); this._visitables.get("scheduling").add(this.scheduling); } else { - this.scheduling = null; this._visitables.get("scheduling").remove(this.scheduling); + this.scheduling = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java index b8b331bd7e..e7a12dfa2e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1RuntimeClassListBuilder extends V1RuntimeClassListFluent implements VisitableBuilder{ V1RuntimeClassListFluent fluent; 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 7553aa3493..8a5c8ba5c3 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1RuntimeClassListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1RuntimeClassListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1RuntimeClassListFluent(V1RuntimeClassList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1RuntimeClass item : items) { V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1RuntimeClass item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1RuntimeClass... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1RuntimeClass item : items) { V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1RuntimeClass... items) { public A addToItems(int index,V1RuntimeClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1RuntimeClassListFluent that = (V1RuntimeClassListFluent) o; + V1RuntimeClassListFluent that = (V1RuntimeClassListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1RuntimeClassBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1RuntimeClass item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1RuntimeClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1RuntimeClass item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1RuntimeClassFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java index b9ffa368e8..b9a169bedc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SELinuxOptionsBuilder extends V1SELinuxOptionsFluent implements VisitableBuilder{ V1SELinuxOptionsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java index 8a324aaf16..b2e1eaae4d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SELinuxOptionsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SELinuxOptionsFluent> extends BaseFluent{ private String level; private String role; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SELinuxOptionsFluent that = (V1SELinuxOptionsFluent) o; + V1SELinuxOptionsFluent that = (V1SELinuxOptionsFluent) o; if (!(Objects.equals(level, that.level))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java index 6de2d90acc..247040e1c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ScaleBuilder extends V1ScaleFluent implements VisitableBuilder{ V1ScaleFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java index afe52c0f42..53d3120d4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ScaleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ScaleFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ScaleFluent that = (V1ScaleFluent) o; + V1ScaleFluent that = (V1ScaleFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1ScaleSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1ScaleStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1ScaleSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1ScaleSpec spec) { this.spec = new V1ScaleSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1ScaleStatus status) { this.status = new V1ScaleStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java index 12d3ad3ae5..bb8993bdaf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ScaleIOPersistentVolumeSourceBuilder extends V1ScaleIOPersistentVolumeSourceFluent implements VisitableBuilder{ V1ScaleIOPersistentVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java index ec7b4a0944..1c1a305bcb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ScaleIOPersistentVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ScaleIOPersistentVolumeSourceFluent> extends BaseFluent{ private String fsType; private String gateway; @@ -88,7 +90,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ScaleIOPersistentVolumeSourceFluent that = (V1ScaleIOPersistentVolumeSourceFluent) o; + V1ScaleIOPersistentVolumeSourceFluent that = (V1ScaleIOPersistentVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } @@ -269,11 +271,11 @@ public A withGateway(String gateway) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withProtectionDomain(String protectionDomain) { @@ -296,8 +298,8 @@ public A withSecretRef(V1SecretReference secretRef) { this.secretRef = new V1SecretReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java index eab378cde7..59d8317aa4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ScaleIOVolumeSourceBuilder extends V1ScaleIOVolumeSourceFluent implements VisitableBuilder{ V1ScaleIOVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java index 7033654396..7d39fb592d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ScaleIOVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ScaleIOVolumeSourceFluent> extends BaseFluent{ private String fsType; private String gateway; @@ -88,7 +90,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ScaleIOVolumeSourceFluent that = (V1ScaleIOVolumeSourceFluent) o; + V1ScaleIOVolumeSourceFluent that = (V1ScaleIOVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } @@ -269,11 +271,11 @@ public A withGateway(String gateway) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withProtectionDomain(String protectionDomain) { @@ -296,8 +298,8 @@ public A withSecretRef(V1LocalObjectReference secretRef) { this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java index aa51e64788..2d1e06ccb8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ScaleSpecBuilder extends V1ScaleSpecFluent implements VisitableBuilder{ V1ScaleSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java index 05fa5250bc..7b4ee91c39 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ScaleSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ScaleSpecFluent> extends BaseFluent{ private Integer replicas; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ScaleSpecFluent that = (V1ScaleSpecFluent) o; + V1ScaleSpecFluent that = (V1ScaleSpecFluent) o; if (!(Objects.equals(replicas, that.replicas))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java index 7de00d7152..99695664a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ScaleStatusBuilder extends V1ScaleStatusFluent implements VisitableBuilder{ V1ScaleStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java index 0be8d0263e..e25e840375 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ScaleStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ScaleStatusFluent> extends BaseFluent{ private Integer replicas; private String selector; @@ -54,7 +56,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ScaleStatusFluent that = (V1ScaleStatusFluent) o; + V1ScaleStatusFluent that = (V1ScaleStatusFluent) o; if (!(Objects.equals(replicas, that.replicas))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java index 7f64c0793c..a9bf424271 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SchedulingBuilder extends V1SchedulingFluent implements VisitableBuilder{ V1SchedulingFluent fluent; 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 4f8336b86d..2af97ab646 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 @@ -27,12 +27,14 @@ import java.util.Map; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SchedulingFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SchedulingFluent> extends BaseFluent{ private Map nodeSelector; private ArrayList tolerations; @@ -46,7 +48,7 @@ public V1SchedulingFluent(V1Scheduling instance) { public A addAllToTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1Toleration item : items) { V1TolerationBuilder builder = new V1TolerationBuilder(item); @@ -57,16 +59,16 @@ public A addAllToTolerations(Collection items) { } public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + return new TolerationsNested<>(-1, null); } public TolerationsNested addNewTolerationLike(V1Toleration item) { - return new TolerationsNested(-1, item); + return new TolerationsNested<>(-1, item); } public A addToNodeSelector(Map map) { if (this.nodeSelector == null && map != null) { - this.nodeSelector = new LinkedHashMap(); + this.nodeSelector = new LinkedHashMap<>(); } if (map != null) { this.nodeSelector.putAll(map); @@ -76,7 +78,7 @@ public A addToNodeSelector(Map map) { public A addToNodeSelector(String key,String value) { if (this.nodeSelector == null && key != null && value != null) { - this.nodeSelector = new LinkedHashMap(); + this.nodeSelector = new LinkedHashMap<>(); } if (key != null && value != null) { this.nodeSelector.put(key, value); @@ -86,7 +88,7 @@ public A addToNodeSelector(String key,String value) { public A addToTolerations(V1Toleration... items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1Toleration item : items) { V1TolerationBuilder builder = new V1TolerationBuilder(item); @@ -98,7 +100,7 @@ public A addToTolerations(V1Toleration... items) { public A addToTolerations(int index,V1Toleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1TolerationBuilder builder = new V1TolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -190,7 +192,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SchedulingFluent that = (V1SchedulingFluent) o; + V1SchedulingFluent that = (V1SchedulingFluent) o; if (!(Objects.equals(nodeSelector, that.nodeSelector))) { return false; } @@ -278,6 +280,7 @@ public A removeMatchingFromTolerations(Predicate predicate) return (A) this; } Iterator each = tolerations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1TolerationBuilder builder = each.next(); @@ -290,12 +293,12 @@ public A removeMatchingFromTolerations(Predicate predicate) } public TolerationsNested setNewTolerationLike(int index,V1Toleration item) { - return new TolerationsNested(index, item); + return new TolerationsNested<>(index, item); } public A setToTolerations(int index,V1Toleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1TolerationBuilder builder = new V1TolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -328,7 +331,7 @@ public A withNodeSelector(Map nodeSelector) { if (nodeSelector == null) { this.nodeSelector = null; } else { - this.nodeSelector = new LinkedHashMap(nodeSelector); + this.nodeSelector = new LinkedHashMap<>(nodeSelector); } return (A) this; } @@ -338,7 +341,7 @@ public A withTolerations(List tolerations) { this._visitables.get("tolerations").clear(); } if (tolerations != null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); for (V1Toleration item : tolerations) { this.addToTolerations(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java index f4b7cab996..f222bcf2a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ScopeSelectorBuilder extends V1ScopeSelectorFluent implements VisitableBuilder{ V1ScopeSelectorFluent fluent; 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 121a724c66..8da362b093 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ScopeSelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ScopeSelectorFluent> extends BaseFluent{ private ArrayList matchExpressions; @@ -43,7 +45,7 @@ public V1ScopeSelectorFluent(V1ScopeSelector instance) { public A addAllToMatchExpressions(Collection items) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } for (V1ScopedResourceSelectorRequirement item : items) { V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); @@ -54,16 +56,16 @@ public A addAllToMatchExpressions(Collection addNewMatchExpression() { - return new MatchExpressionsNested(-1, null); + return new MatchExpressionsNested<>(-1, null); } public MatchExpressionsNested addNewMatchExpressionLike(V1ScopedResourceSelectorRequirement item) { - return new MatchExpressionsNested(-1, item); + return new MatchExpressionsNested<>(-1, item); } public A addToMatchExpressions(V1ScopedResourceSelectorRequirement... items) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } for (V1ScopedResourceSelectorRequirement item : items) { V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); @@ -75,7 +77,7 @@ public A addToMatchExpressions(V1ScopedResourceSelectorRequirement... items) { public A addToMatchExpressions(int index,V1ScopedResourceSelectorRequirement item) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); if (index < 0 || index >= this.matchExpressions.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ScopeSelectorFluent that = (V1ScopeSelectorFluent) o; + V1ScopeSelectorFluent that = (V1ScopeSelectorFluent) o; if (!(Objects.equals(matchExpressions, that.matchExpressions))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromMatchExpressions(Predicate each = matchExpressions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("matchExpressions"); while (each.hasNext()) { V1ScopedResourceSelectorRequirementBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromMatchExpressions(Predicate setNewMatchExpressionLike(int index,V1ScopedResourceSelectorRequirement item) { - return new MatchExpressionsNested(index, item); + return new MatchExpressionsNested<>(index, item); } public A setToMatchExpressions(int index,V1ScopedResourceSelectorRequirement item) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); if (index < 0 || index >= this.matchExpressions.size()) { @@ -265,7 +268,7 @@ public A withMatchExpressions(List matchExp this._visitables.get("matchExpressions").clear(); } if (matchExpressions != null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); for (V1ScopedResourceSelectorRequirement item : matchExpressions) { this.addToMatchExpressions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java index 7d8f83a2ad..07edd73046 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ScopedResourceSelectorRequirementBuilder extends V1ScopedResourceSelectorRequirementFluent implements VisitableBuilder{ V1ScopedResourceSelectorRequirementFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java index 5fa93c62a3..3cec18ee55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ScopedResourceSelectorRequirementFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ScopedResourceSelectorRequirementFluent> extends BaseFluent{ private String operator; private String scopeName; @@ -42,7 +44,7 @@ public V1ScopedResourceSelectorRequirementFluent(V1ScopedResourceSelectorRequire public A addAllToValues(Collection items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (String item : items) { this.values.add(item); @@ -52,7 +54,7 @@ public A addAllToValues(Collection items) { public A addToValues(String... items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (String item : items) { this.values.add(item); @@ -62,7 +64,7 @@ public A addToValues(String... items) { public A addToValues(int index,String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.add(index, item); return (A) this; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ScopedResourceSelectorRequirementFluent that = (V1ScopedResourceSelectorRequirementFluent) o; + V1ScopedResourceSelectorRequirementFluent that = (V1ScopedResourceSelectorRequirementFluent) o; if (!(Objects.equals(operator, that.operator))) { return false; } @@ -180,7 +182,7 @@ public A removeFromValues(String... items) { public A setToValues(int index,String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.set(index, item); return (A) this; @@ -219,7 +221,7 @@ public A withScopeName(String scopeName) { public A withValues(List values) { if (values != null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); for (String item : values) { this.addToValues(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java index 7709027276..92cf656d7a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SeccompProfileBuilder extends V1SeccompProfileFluent implements VisitableBuilder{ V1SeccompProfileFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java index bebb7dd516..0c07d71745 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SeccompProfileFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SeccompProfileFluent> extends BaseFluent{ private String localhostProfile; private String type; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SeccompProfileFluent that = (V1SeccompProfileFluent) o; + V1SeccompProfileFluent that = (V1SeccompProfileFluent) o; if (!(Objects.equals(localhostProfile, that.localhostProfile))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java index cdb17c3a59..cc5c3e3a28 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SecretBuilder extends V1SecretFluent implements VisitableBuilder{ V1SecretFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java index c92b0a5cde..144ec83d13 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SecretEnvSourceBuilder extends V1SecretEnvSourceFluent implements VisitableBuilder{ V1SecretEnvSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java index b5f6cc38f4..8ecdbbea7b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SecretEnvSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SecretEnvSourceFluent> extends BaseFluent{ private String name; private Boolean optional; @@ -54,7 +56,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SecretEnvSourceFluent that = (V1SecretEnvSourceFluent) o; + V1SecretEnvSourceFluent that = (V1SecretEnvSourceFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java index f5dc5e74b9..f4e8493e73 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java @@ -23,12 +23,14 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SecretFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SecretFluent> extends BaseFluent{ private String apiVersion; private Map data; @@ -47,7 +49,7 @@ public V1SecretFluent(V1Secret instance) { public A addToData(Map map) { if (this.data == null && map != null) { - this.data = new LinkedHashMap(); + this.data = new LinkedHashMap<>(); } if (map != null) { this.data.putAll(map); @@ -57,7 +59,7 @@ public A addToData(Map map) { public A addToData(String key,byte[] value) { if (this.data == null && key != null && value != null) { - this.data = new LinkedHashMap(); + this.data = new LinkedHashMap<>(); } if (key != null && value != null) { this.data.put(key, value); @@ -67,7 +69,7 @@ public A addToData(String key,byte[] value) { public A addToStringData(Map map) { if (this.stringData == null && map != null) { - this.stringData = new LinkedHashMap(); + this.stringData = new LinkedHashMap<>(); } if (map != null) { this.stringData.putAll(map); @@ -77,7 +79,7 @@ public A addToStringData(Map map) { public A addToStringData(String key,String value) { if (this.stringData == null && key != null && value != null) { - this.stringData = new LinkedHashMap(); + this.stringData = new LinkedHashMap<>(); } if (key != null && value != null) { this.stringData.put(key, value); @@ -124,7 +126,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SecretFluent that = (V1SecretFluent) o; + V1SecretFluent that = (V1SecretFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -303,7 +305,7 @@ public A withData(Map data) { if (data == null) { this.data = null; } else { - this.data = new LinkedHashMap(data); + this.data = new LinkedHashMap<>(data); } return (A) this; } @@ -328,25 +330,25 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withStringData(Map stringData) { if (stringData == null) { this.stringData = null; } else { - this.stringData = new LinkedHashMap(stringData); + this.stringData = new LinkedHashMap<>(stringData); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java index 04bd41ae56..566db413a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SecretKeySelectorBuilder extends V1SecretKeySelectorFluent implements VisitableBuilder{ V1SecretKeySelectorFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java index a263a67769..3f9e35c262 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SecretKeySelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SecretKeySelectorFluent> extends BaseFluent{ private String key; private String name; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SecretKeySelectorFluent that = (V1SecretKeySelectorFluent) o; + V1SecretKeySelectorFluent that = (V1SecretKeySelectorFluent) o; if (!(Objects.equals(key, that.key))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java index 9028fa3a33..131549f203 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SecretListBuilder extends V1SecretListFluent implements VisitableBuilder{ V1SecretListFluent fluent; 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 07ca571e4f..46f7e6a3c7 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SecretListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SecretListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1SecretListFluent(V1SecretList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Secret item : items) { V1SecretBuilder builder = new V1SecretBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1Secret item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1Secret... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Secret item : items) { V1SecretBuilder builder = new V1SecretBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1Secret... items) { public A addToItems(int index,V1Secret item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1SecretBuilder builder = new V1SecretBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SecretListFluent that = (V1SecretListFluent) o; + V1SecretListFluent that = (V1SecretListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1SecretBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1Secret item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1Secret item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1SecretBuilder builder = new V1SecretBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1Secret item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1SecretFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java index c0db6cfb43..5957575583 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SecretProjectionBuilder extends V1SecretProjectionFluent implements VisitableBuilder{ V1SecretProjectionFluent fluent; 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 b46852ca24..c053930b35 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 @@ -26,12 +26,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SecretProjectionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SecretProjectionFluent> extends BaseFluent{ private ArrayList items; private String name; @@ -46,7 +48,7 @@ public V1SecretProjectionFluent(V1SecretProjection instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); @@ -57,16 +59,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1KeyToPath item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1KeyToPath... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); @@ -78,7 +80,7 @@ public A addToItems(V1KeyToPath... items) { public A addToItems(int index,V1KeyToPath item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -171,7 +173,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SecretProjectionFluent that = (V1SecretProjectionFluent) o; + V1SecretProjectionFluent that = (V1SecretProjectionFluent) o; if (!(Objects.equals(items, that.items))) { return false; } @@ -246,6 +248,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1KeyToPathBuilder builder = each.next(); @@ -258,12 +261,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1KeyToPath item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1KeyToPath item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -302,7 +305,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1KeyToPath item : items) { this.addToItems(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java index 199031a4b3..2faf0b05a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SecretReferenceBuilder extends V1SecretReferenceFluent implements VisitableBuilder{ V1SecretReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java index 89ce07ea37..745b309617 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SecretReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SecretReferenceFluent> extends BaseFluent{ private String name; private String namespace; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SecretReferenceFluent that = (V1SecretReferenceFluent) o; + V1SecretReferenceFluent that = (V1SecretReferenceFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java index 876145a7d6..bf571d9aa2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SecretVolumeSourceBuilder extends V1SecretVolumeSourceFluent implements VisitableBuilder{ V1SecretVolumeSourceFluent fluent; @@ -39,6 +40,7 @@ public V1SecretVolumeSourceBuilder(V1SecretVolumeSourceFluent fluent,V1Secret public V1SecretVolumeSource build() { V1SecretVolumeSource buildable = new V1SecretVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); + buildable.setDefaultUser(fluent.getDefaultUser()); buildable.setItems(fluent.buildItems()); buildable.setOptional(fluent.getOptional()); buildable.setSecretName(fluent.getSecretName()); 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 74592ea927..ecf8d0ee0d 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 @@ -16,6 +16,7 @@ import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; import java.lang.Integer; +import java.lang.Long; import java.lang.Object; import java.lang.RuntimeException; import java.lang.String; @@ -27,14 +28,17 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SecretVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SecretVolumeSourceFluent> extends BaseFluent{ private Integer defaultMode; + private Long defaultUser; private ArrayList items; private Boolean optional; private String secretName; @@ -48,7 +52,7 @@ public V1SecretVolumeSourceFluent(V1SecretVolumeSource instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); @@ -59,16 +63,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1KeyToPath item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1KeyToPath... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); @@ -80,7 +84,7 @@ public A addToItems(V1KeyToPath... items) { public A addToItems(int index,V1KeyToPath item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -122,6 +126,7 @@ protected void copyInstance(V1SecretVolumeSource instance) { instance = instance != null ? instance : new V1SecretVolumeSource(); if (instance != null) { this.withDefaultMode(instance.getDefaultMode()); + this.withDefaultUser(instance.getDefaultUser()); this.withItems(instance.getItems()); this.withOptional(instance.getOptional()); this.withSecretName(instance.getSecretName()); @@ -174,10 +179,13 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SecretVolumeSourceFluent that = (V1SecretVolumeSourceFluent) o; + V1SecretVolumeSourceFluent that = (V1SecretVolumeSourceFluent) o; if (!(Objects.equals(defaultMode, that.defaultMode))) { return false; } + if (!(Objects.equals(defaultUser, that.defaultUser))) { + return false; + } if (!(Objects.equals(items, that.items))) { return false; } @@ -194,6 +202,10 @@ public Integer getDefaultMode() { return this.defaultMode; } + public Long getDefaultUser() { + return this.defaultUser; + } + public Boolean getOptional() { return this.optional; } @@ -206,6 +218,10 @@ public boolean hasDefaultMode() { return this.defaultMode != null; } + public boolean hasDefaultUser() { + return this.defaultUser != null; + } + public boolean hasItems() { return this.items != null && !(this.items.isEmpty()); } @@ -228,7 +244,7 @@ public boolean hasSecretName() { } public int hashCode() { - return Objects.hash(defaultMode, items, optional, secretName); + return Objects.hash(defaultMode, defaultUser, items, optional, secretName); } public A removeAllFromItems(Collection items) { @@ -260,6 +276,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1KeyToPathBuilder builder = each.next(); @@ -272,12 +289,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1KeyToPath item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1KeyToPath item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -298,6 +315,11 @@ public String toString() { sb.append(defaultMode); sb.append(","); } + if (!(defaultUser == null)) { + sb.append("defaultUser:"); + sb.append(defaultUser); + sb.append(","); + } if (!(items == null) && !(items.isEmpty())) { sb.append("items:"); sb.append(items); @@ -321,12 +343,17 @@ public A withDefaultMode(Integer defaultMode) { return (A) this; } + public A withDefaultUser(Long defaultUser) { + this.defaultUser = defaultUser; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1KeyToPath item : items) { this.addToItems(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java index 9b9156e9db..69e4e2b56a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SecurityContextBuilder extends V1SecurityContextFluent implements VisitableBuilder{ V1SecurityContextFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java index d5ac1ce0a0..d6bbb08a45 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java @@ -22,12 +22,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SecurityContextFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SecurityContextFluent> extends BaseFluent{ private Boolean allowPrivilegeEscalation; private V1AppArmorProfileBuilder appArmorProfile; @@ -157,7 +159,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SecurityContextFluent that = (V1SecurityContextFluent) o; + V1SecurityContextFluent that = (V1SecurityContextFluent) o; if (!(Objects.equals(allowPrivilegeEscalation, that.allowPrivilegeEscalation))) { return false; } @@ -358,8 +360,8 @@ public A withAppArmorProfile(V1AppArmorProfile appArmorProfile) { this.appArmorProfile = new V1AppArmorProfileBuilder(appArmorProfile); this._visitables.get("appArmorProfile").add(this.appArmorProfile); } else { - this.appArmorProfile = null; this._visitables.get("appArmorProfile").remove(this.appArmorProfile); + this.appArmorProfile = null; } return (A) this; } @@ -370,50 +372,50 @@ public A withCapabilities(V1Capabilities capabilities) { this.capabilities = new V1CapabilitiesBuilder(capabilities); this._visitables.get("capabilities").add(this.capabilities); } else { - this.capabilities = null; this._visitables.get("capabilities").remove(this.capabilities); + this.capabilities = null; } return (A) this; } public AppArmorProfileNested withNewAppArmorProfile() { - return new AppArmorProfileNested(null); + return new AppArmorProfileNested<>(null); } public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile item) { - return new AppArmorProfileNested(item); + return new AppArmorProfileNested<>(item); } public CapabilitiesNested withNewCapabilities() { - return new CapabilitiesNested(null); + return new CapabilitiesNested<>(null); } public CapabilitiesNested withNewCapabilitiesLike(V1Capabilities item) { - return new CapabilitiesNested(item); + return new CapabilitiesNested<>(item); } public SeLinuxOptionsNested withNewSeLinuxOptions() { - return new SeLinuxOptionsNested(null); + return new SeLinuxOptionsNested<>(null); } public SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) { - return new SeLinuxOptionsNested(item); + return new SeLinuxOptionsNested<>(item); } public SeccompProfileNested withNewSeccompProfile() { - return new SeccompProfileNested(null); + return new SeccompProfileNested<>(null); } public SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) { - return new SeccompProfileNested(item); + return new SeccompProfileNested<>(item); } public WindowsOptionsNested withNewWindowsOptions() { - return new WindowsOptionsNested(null); + return new WindowsOptionsNested<>(null); } public WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { - return new WindowsOptionsNested(item); + return new WindowsOptionsNested<>(item); } public A withPrivileged() { @@ -464,8 +466,8 @@ public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); this._visitables.get("seLinuxOptions").add(this.seLinuxOptions); } else { - this.seLinuxOptions = null; this._visitables.get("seLinuxOptions").remove(this.seLinuxOptions); + this.seLinuxOptions = null; } return (A) this; } @@ -476,8 +478,8 @@ public A withSeccompProfile(V1SeccompProfile seccompProfile) { this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); this._visitables.get("seccompProfile").add(this.seccompProfile); } else { - this.seccompProfile = null; this._visitables.get("seccompProfile").remove(this.seccompProfile); + this.seccompProfile = null; } return (A) this; } @@ -488,8 +490,8 @@ public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { this.windowsOptions = new V1WindowsSecurityContextOptionsBuilder(windowsOptions); this._visitables.get("windowsOptions").add(this.windowsOptions); } else { - this.windowsOptions = null; this._visitables.get("windowsOptions").remove(this.windowsOptions); + this.windowsOptions = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java index 1e648dd404..86223747c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SelectableFieldBuilder extends V1SelectableFieldFluent implements VisitableBuilder{ V1SelectableFieldFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java index 860d7c65c7..b89e7c46e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SelectableFieldFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SelectableFieldFluent> extends BaseFluent{ private String jsonPath; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SelectableFieldFluent that = (V1SelectableFieldFluent) o; + V1SelectableFieldFluent that = (V1SelectableFieldFluent) o; if (!(Objects.equals(jsonPath, that.jsonPath))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java index 9843c0d8ed..3e35d12c17 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SelfSubjectAccessReviewBuilder extends V1SelfSubjectAccessReviewFluent implements VisitableBuilder{ V1SelfSubjectAccessReviewFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java index bae42e95b9..d8ec6e6a30 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SelfSubjectAccessReviewFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SelfSubjectAccessReviewFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SelfSubjectAccessReviewFluent that = (V1SelfSubjectAccessReviewFluent) o; + V1SelfSubjectAccessReviewFluent that = (V1SelfSubjectAccessReviewFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1SelfSubjectAccessReviewSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1SelfSubjectAccessReviewSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1SelfSubjectAccessReviewSpec spec) { this.spec = new V1SelfSubjectAccessReviewSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1SubjectAccessReviewStatus status) { this.status = new V1SubjectAccessReviewStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java index e66237f873..b5ca7dafa2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SelfSubjectAccessReviewSpecBuilder extends V1SelfSubjectAccessReviewSpecFluent implements VisitableBuilder{ V1SelfSubjectAccessReviewSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java index 3ec21f401d..53e2e3d6b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SelfSubjectAccessReviewSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SelfSubjectAccessReviewSpecFluent> extends BaseFluent{ private V1NonResourceAttributesBuilder nonResourceAttributes; private V1ResourceAttributesBuilder resourceAttributes; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SelfSubjectAccessReviewSpecFluent that = (V1SelfSubjectAccessReviewSpecFluent) o; + V1SelfSubjectAccessReviewSpecFluent that = (V1SelfSubjectAccessReviewSpecFluent) o; if (!(Objects.equals(nonResourceAttributes, that.nonResourceAttributes))) { return false; } @@ -126,19 +128,19 @@ public String toString() { } public NonResourceAttributesNested withNewNonResourceAttributes() { - return new NonResourceAttributesNested(null); + return new NonResourceAttributesNested<>(null); } public NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item) { - return new NonResourceAttributesNested(item); + return new NonResourceAttributesNested<>(item); } public ResourceAttributesNested withNewResourceAttributes() { - return new ResourceAttributesNested(null); + return new ResourceAttributesNested<>(null); } public ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item) { - return new ResourceAttributesNested(item); + return new ResourceAttributesNested<>(item); } public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { @@ -147,8 +149,8 @@ public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes this.nonResourceAttributes = new V1NonResourceAttributesBuilder(nonResourceAttributes); this._visitables.get("nonResourceAttributes").add(this.nonResourceAttributes); } else { - this.nonResourceAttributes = null; this._visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); + this.nonResourceAttributes = null; } return (A) this; } @@ -159,8 +161,8 @@ public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { this.resourceAttributes = new V1ResourceAttributesBuilder(resourceAttributes); this._visitables.get("resourceAttributes").add(this.resourceAttributes); } else { - this.resourceAttributes = null; this._visitables.get("resourceAttributes").remove(this.resourceAttributes); + this.resourceAttributes = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java index a7dfecd5a9..177bb85b02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SelfSubjectReviewBuilder extends V1SelfSubjectReviewFluent implements VisitableBuilder{ V1SelfSubjectReviewFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java index 82f1216571..d0d08cd2d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SelfSubjectReviewFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SelfSubjectReviewFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SelfSubjectReviewFluent that = (V1SelfSubjectReviewFluent) o; + V1SelfSubjectReviewFluent that = (V1SelfSubjectReviewFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1SelfSubjectReviewStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withStatus(V1SelfSubjectReviewStatus status) { @@ -205,8 +207,8 @@ public A withStatus(V1SelfSubjectReviewStatus status) { this.status = new V1SelfSubjectReviewStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java index c9bf657bb9..e089bd29f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SelfSubjectReviewStatusBuilder extends V1SelfSubjectReviewStatusFluent implements VisitableBuilder{ V1SelfSubjectReviewStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java index 70c16beda4..8b04171cf4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SelfSubjectReviewStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SelfSubjectReviewStatusFluent> extends BaseFluent{ private V1UserInfoBuilder userInfo; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SelfSubjectReviewStatusFluent that = (V1SelfSubjectReviewStatusFluent) o; + V1SelfSubjectReviewStatusFluent that = (V1SelfSubjectReviewStatusFluent) o; if (!(Objects.equals(userInfo, that.userInfo))) { return false; } @@ -96,11 +98,11 @@ public String toString() { } public UserInfoNested withNewUserInfo() { - return new UserInfoNested(null); + return new UserInfoNested<>(null); } public UserInfoNested withNewUserInfoLike(V1UserInfo item) { - return new UserInfoNested(item); + return new UserInfoNested<>(item); } public A withUserInfo(V1UserInfo userInfo) { @@ -109,8 +111,8 @@ public A withUserInfo(V1UserInfo userInfo) { this.userInfo = new V1UserInfoBuilder(userInfo); this._visitables.get("userInfo").add(this.userInfo); } else { - this.userInfo = null; this._visitables.get("userInfo").remove(this.userInfo); + this.userInfo = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java index 171a063046..0f1abbdedc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SelfSubjectRulesReviewBuilder extends V1SelfSubjectRulesReviewFluent implements VisitableBuilder{ V1SelfSubjectRulesReviewFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java index 77b0be2c7e..27a6144191 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SelfSubjectRulesReviewFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SelfSubjectRulesReviewFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SelfSubjectRulesReviewFluent that = (V1SelfSubjectRulesReviewFluent) o; + V1SelfSubjectRulesReviewFluent that = (V1SelfSubjectRulesReviewFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1SelfSubjectRulesReviewSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1SubjectRulesReviewStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1SelfSubjectRulesReviewSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1SelfSubjectRulesReviewSpec spec) { this.spec = new V1SelfSubjectRulesReviewSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1SubjectRulesReviewStatus status) { this.status = new V1SubjectRulesReviewStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java index 89ee79009b..c9c831c64a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SelfSubjectRulesReviewSpecBuilder extends V1SelfSubjectRulesReviewSpecFluent implements VisitableBuilder{ V1SelfSubjectRulesReviewSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java index e477f8fd8c..140dd394d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SelfSubjectRulesReviewSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SelfSubjectRulesReviewSpecFluent> extends BaseFluent{ private String namespace; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SelfSubjectRulesReviewSpecFluent that = (V1SelfSubjectRulesReviewSpecFluent) o; + V1SelfSubjectRulesReviewSpecFluent that = (V1SelfSubjectRulesReviewSpecFluent) o; if (!(Objects.equals(namespace, that.namespace))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java index 850a19c563..c50ce5c79e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServerAddressByClientCIDRBuilder extends V1ServerAddressByClientCIDRFluent implements VisitableBuilder{ V1ServerAddressByClientCIDRFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java index c1153e8d7c..ac1c291d08 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServerAddressByClientCIDRFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServerAddressByClientCIDRFluent> extends BaseFluent{ private String clientCIDR; private String serverAddress; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServerAddressByClientCIDRFluent that = (V1ServerAddressByClientCIDRFluent) o; + V1ServerAddressByClientCIDRFluent that = (V1ServerAddressByClientCIDRFluent) o; if (!(Objects.equals(clientCIDR, that.clientCIDR))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java index d5f72de727..27fafe95e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServiceAccountBuilder extends V1ServiceAccountFluent implements VisitableBuilder{ V1ServiceAccountFluent fluent; 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 c43122eb68..5c6efed258 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 @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServiceAccountFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServiceAccountFluent> extends BaseFluent{ private String apiVersion; private Boolean automountServiceAccountToken; @@ -50,7 +52,7 @@ public V1ServiceAccountFluent(V1ServiceAccount instance) { public A addAllToImagePullSecrets(Collection items) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); + this.imagePullSecrets = new ArrayList<>(); } for (V1LocalObjectReference item : items) { V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); @@ -62,7 +64,7 @@ public A addAllToImagePullSecrets(Collection items) { public A addAllToSecrets(Collection items) { if (this.secrets == null) { - this.secrets = new ArrayList(); + this.secrets = new ArrayList<>(); } for (V1ObjectReference item : items) { V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); @@ -73,24 +75,24 @@ public A addAllToSecrets(Collection items) { } public ImagePullSecretsNested addNewImagePullSecret() { - return new ImagePullSecretsNested(-1, null); + return new ImagePullSecretsNested<>(-1, null); } public ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item) { - return new ImagePullSecretsNested(-1, item); + return new ImagePullSecretsNested<>(-1, item); } public SecretsNested addNewSecret() { - return new SecretsNested(-1, null); + return new SecretsNested<>(-1, null); } public SecretsNested addNewSecretLike(V1ObjectReference item) { - return new SecretsNested(-1, item); + return new SecretsNested<>(-1, item); } public A addToImagePullSecrets(V1LocalObjectReference... items) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); + this.imagePullSecrets = new ArrayList<>(); } for (V1LocalObjectReference item : items) { V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); @@ -102,7 +104,7 @@ public A addToImagePullSecrets(V1LocalObjectReference... items) { public A addToImagePullSecrets(int index,V1LocalObjectReference item) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); + this.imagePullSecrets = new ArrayList<>(); } V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); if (index < 0 || index >= this.imagePullSecrets.size()) { @@ -117,7 +119,7 @@ public A addToImagePullSecrets(int index,V1LocalObjectReference item) { public A addToSecrets(V1ObjectReference... items) { if (this.secrets == null) { - this.secrets = new ArrayList(); + this.secrets = new ArrayList<>(); } for (V1ObjectReference item : items) { V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); @@ -129,7 +131,7 @@ public A addToSecrets(V1ObjectReference... items) { public A addToSecrets(int index,V1ObjectReference item) { if (this.secrets == null) { - this.secrets = new ArrayList(); + this.secrets = new ArrayList<>(); } V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); if (index < 0 || index >= this.secrets.size()) { @@ -302,7 +304,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServiceAccountFluent that = (V1ServiceAccountFluent) o; + V1ServiceAccountFluent that = (V1ServiceAccountFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -435,6 +437,7 @@ public A removeMatchingFromImagePullSecrets(Predicate each = imagePullSecrets.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("imagePullSecrets"); while (each.hasNext()) { V1LocalObjectReferenceBuilder builder = each.next(); @@ -451,6 +454,7 @@ public A removeMatchingFromSecrets(Predicate predicate return (A) this; } Iterator each = secrets.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("secrets"); while (each.hasNext()) { V1ObjectReferenceBuilder builder = each.next(); @@ -463,16 +467,16 @@ public A removeMatchingFromSecrets(Predicate predicate } public ImagePullSecretsNested setNewImagePullSecretLike(int index,V1LocalObjectReference item) { - return new ImagePullSecretsNested(index, item); + return new ImagePullSecretsNested<>(index, item); } public SecretsNested setNewSecretLike(int index,V1ObjectReference item) { - return new SecretsNested(index, item); + return new SecretsNested<>(index, item); } public A setToImagePullSecrets(int index,V1LocalObjectReference item) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); + this.imagePullSecrets = new ArrayList<>(); } V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); if (index < 0 || index >= this.imagePullSecrets.size()) { @@ -487,7 +491,7 @@ public A setToImagePullSecrets(int index,V1LocalObjectReference item) { public A setToSecrets(int index,V1ObjectReference item) { if (this.secrets == null) { - this.secrets = new ArrayList(); + this.secrets = new ArrayList<>(); } V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); if (index < 0 || index >= this.secrets.size()) { @@ -555,7 +559,7 @@ public A withImagePullSecrets(List imagePullSecrets) { this._visitables.get("imagePullSecrets").clear(); } if (imagePullSecrets != null) { - this.imagePullSecrets = new ArrayList(); + this.imagePullSecrets = new ArrayList<>(); for (V1LocalObjectReference item : imagePullSecrets) { this.addToImagePullSecrets(item); } @@ -589,18 +593,18 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withSecrets(List secrets) { @@ -608,7 +612,7 @@ public A withSecrets(List secrets) { this._visitables.get("secrets").clear(); } if (secrets != null) { - this.secrets = new ArrayList(); + this.secrets = new ArrayList<>(); for (V1ObjectReference item : secrets) { this.addToSecrets(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java index 309ec779f6..aae2b7dab0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServiceAccountListBuilder extends V1ServiceAccountListFluent implements VisitableBuilder{ V1ServiceAccountListFluent fluent; 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 15ba8ff98f..22b9ae2684 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServiceAccountListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServiceAccountListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ServiceAccountListFluent(V1ServiceAccountList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ServiceAccount item : items) { V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ServiceAccount item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ServiceAccount... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ServiceAccount item : items) { V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ServiceAccount... items) { public A addToItems(int index,V1ServiceAccount item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServiceAccountListFluent that = (V1ServiceAccountListFluent) o; + V1ServiceAccountListFluent that = (V1ServiceAccountListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ServiceAccountBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1ServiceAccount item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ServiceAccount item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ServiceAccount item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ServiceAccountFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java index c40484bda3..089baf3f29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServiceAccountSubjectBuilder extends V1ServiceAccountSubjectFluent implements VisitableBuilder{ V1ServiceAccountSubjectFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java index b021ac10eb..f31388c516 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServiceAccountSubjectFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServiceAccountSubjectFluent> extends BaseFluent{ private String name; private String namespace; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServiceAccountSubjectFluent that = (V1ServiceAccountSubjectFluent) o; + V1ServiceAccountSubjectFluent that = (V1ServiceAccountSubjectFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java index f8fc0e4f51..cf18e533f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServiceAccountTokenProjectionBuilder extends V1ServiceAccountTokenProjectionFluent implements VisitableBuilder{ V1ServiceAccountTokenProjectionFluent fluent; @@ -41,6 +42,7 @@ public V1ServiceAccountTokenProjection build() { buildable.setAudience(fluent.getAudience()); buildable.setExpirationSeconds(fluent.getExpirationSeconds()); buildable.setPath(fluent.getPath()); + buildable.setUser(fluent.getUser()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java index f182f6661e..b1ad5ee2cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java @@ -19,16 +19,19 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServiceAccountTokenProjectionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServiceAccountTokenProjectionFluent> extends BaseFluent{ private String audience; private Long expirationSeconds; private String path; + private Long user; public V1ServiceAccountTokenProjectionFluent() { } @@ -43,6 +46,7 @@ protected void copyInstance(V1ServiceAccountTokenProjection instance) { this.withAudience(instance.getAudience()); this.withExpirationSeconds(instance.getExpirationSeconds()); this.withPath(instance.getPath()); + this.withUser(instance.getUser()); } } @@ -56,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServiceAccountTokenProjectionFluent that = (V1ServiceAccountTokenProjectionFluent) o; + V1ServiceAccountTokenProjectionFluent that = (V1ServiceAccountTokenProjectionFluent) o; if (!(Objects.equals(audience, that.audience))) { return false; } @@ -66,6 +70,9 @@ public boolean equals(Object o) { if (!(Objects.equals(path, that.path))) { return false; } + if (!(Objects.equals(user, that.user))) { + return false; + } return true; } @@ -81,6 +88,10 @@ public String getPath() { return this.path; } + public Long getUser() { + return this.user; + } + public boolean hasAudience() { return this.audience != null; } @@ -93,8 +104,12 @@ public boolean hasPath() { return this.path != null; } + public boolean hasUser() { + return this.user != null; + } + public int hashCode() { - return Objects.hash(audience, expirationSeconds, path); + return Objects.hash(audience, expirationSeconds, path, user); } public String toString() { @@ -113,6 +128,11 @@ public String toString() { if (!(path == null)) { sb.append("path:"); sb.append(path); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); } sb.append("}"); return sb.toString(); @@ -133,4 +153,9 @@ public A withPath(String path) { return (A) this; } + public A withUser(Long user) { + this.user = user; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java index 332c390fba..1b0a7b9380 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServiceBackendPortBuilder extends V1ServiceBackendPortFluent implements VisitableBuilder{ V1ServiceBackendPortFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java index ba5d37278a..714f7979c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServiceBackendPortFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServiceBackendPortFluent> extends BaseFluent{ private String name; private Integer number; @@ -54,7 +56,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServiceBackendPortFluent that = (V1ServiceBackendPortFluent) o; + V1ServiceBackendPortFluent that = (V1ServiceBackendPortFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java index acceb01072..1cbc956baa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServiceBuilder extends V1ServiceFluent implements VisitableBuilder{ V1ServiceFluent fluent; 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 index 7fb5ae75e8..468d2629dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServiceCIDRBuilder extends V1ServiceCIDRFluent implements VisitableBuilder{ V1ServiceCIDRFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java index 65887a7676..38e2adb71d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServiceCIDRFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServiceCIDRFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServiceCIDRFluent that = (V1ServiceCIDRFluent) o; + V1ServiceCIDRFluent that = (V1ServiceCIDRFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1ServiceCIDRSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1ServiceCIDRStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1ServiceCIDRSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1ServiceCIDRSpec spec) { this.spec = new V1ServiceCIDRSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1ServiceCIDRStatus status) { this.status = new V1ServiceCIDRStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } 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 index 5b51639816..d411d673ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServiceCIDRListBuilder extends V1ServiceCIDRListFluent implements VisitableBuilder{ V1ServiceCIDRListFluent fluent; 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 index eb7e660d36..b307aa86aa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServiceCIDRListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServiceCIDRListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ServiceCIDRListFluent(V1ServiceCIDRList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ServiceCIDR item : items) { V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ServiceCIDR item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ServiceCIDR... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ServiceCIDR item : items) { V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ServiceCIDR... items) { public A addToItems(int index,V1ServiceCIDR item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServiceCIDRListFluent that = (V1ServiceCIDRListFluent) o; + V1ServiceCIDRListFluent that = (V1ServiceCIDRListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ServiceCIDRBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1ServiceCIDR item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ServiceCIDR item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ServiceCIDR item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ServiceCIDRFluent> implements Nested{ 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 index e431226b32..d125622337 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServiceCIDRSpecBuilder extends V1ServiceCIDRSpecFluent implements VisitableBuilder{ V1ServiceCIDRSpecFluent fluent; 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 index cf1b8c2957..e67498b359 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServiceCIDRSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServiceCIDRSpecFluent> extends BaseFluent{ private List cidrs; @@ -40,7 +42,7 @@ public V1ServiceCIDRSpecFluent(V1ServiceCIDRSpec instance) { public A addAllToCidrs(Collection items) { if (this.cidrs == null) { - this.cidrs = new ArrayList(); + this.cidrs = new ArrayList<>(); } for (String item : items) { this.cidrs.add(item); @@ -50,7 +52,7 @@ public A addAllToCidrs(Collection items) { public A addToCidrs(String... items) { if (this.cidrs == null) { - this.cidrs = new ArrayList(); + this.cidrs = new ArrayList<>(); } for (String item : items) { this.cidrs.add(item); @@ -60,7 +62,7 @@ public A addToCidrs(String... items) { public A addToCidrs(int index,String item) { if (this.cidrs == null) { - this.cidrs = new ArrayList(); + this.cidrs = new ArrayList<>(); } this.cidrs.add(index, item); return (A) this; @@ -83,7 +85,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServiceCIDRSpecFluent that = (V1ServiceCIDRSpecFluent) o; + V1ServiceCIDRSpecFluent that = (V1ServiceCIDRSpecFluent) o; if (!(Objects.equals(cidrs, that.cidrs))) { return false; } @@ -154,7 +156,7 @@ public A removeFromCidrs(String... items) { public A setToCidrs(int index,String item) { if (this.cidrs == null) { - this.cidrs = new ArrayList(); + this.cidrs = new ArrayList<>(); } this.cidrs.set(index, item); return (A) this; @@ -173,7 +175,7 @@ public String toString() { public A withCidrs(List cidrs) { if (cidrs != null) { - this.cidrs = new ArrayList(); + this.cidrs = new ArrayList<>(); for (String item : cidrs) { this.addToCidrs(item); } 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 index 798615e10a..f529d6ce26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServiceCIDRStatusBuilder extends V1ServiceCIDRStatusFluent implements VisitableBuilder{ V1ServiceCIDRStatusFluent fluent; 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 index e89bf2d0d0..decb58b9ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServiceCIDRStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServiceCIDRStatusFluent> extends BaseFluent{ private ArrayList conditions; @@ -43,7 +45,7 @@ public V1ServiceCIDRStatusFluent(V1ServiceCIDRStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -54,16 +56,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -75,7 +77,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServiceCIDRStatusFluent that = (V1ServiceCIDRStatusFluent) o; + V1ServiceCIDRStatusFluent that = (V1ServiceCIDRStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromConditions(Predicate predicate) { } public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -265,7 +268,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java index 28a4a8eca8..23b6feb60a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServiceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServiceFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServiceFluent that = (V1ServiceFluent) o; + V1ServiceFluent that = (V1ServiceFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1ServiceSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1ServiceStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1ServiceSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1ServiceSpec spec) { this.spec = new V1ServiceSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1ServiceStatus status) { this.status = new V1ServiceStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java index 90697fd4f2..e02fbe292b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServiceListBuilder extends V1ServiceListFluent implements VisitableBuilder{ V1ServiceListFluent fluent; 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 3c153593da..689d3d2349 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServiceListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServiceListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ServiceListFluent(V1ServiceList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Service item : items) { V1ServiceBuilder builder = new V1ServiceBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1Service item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1Service... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1Service item : items) { V1ServiceBuilder builder = new V1ServiceBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1Service... items) { public A addToItems(int index,V1Service item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ServiceBuilder builder = new V1ServiceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServiceListFluent that = (V1ServiceListFluent) o; + V1ServiceListFluent that = (V1ServiceListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ServiceBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1Service item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1Service item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ServiceBuilder builder = new V1ServiceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1Service item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ServiceFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java index ec62dcf1de..b5d35bacc6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServicePortBuilder extends V1ServicePortFluent implements VisitableBuilder{ V1ServicePortFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java index f79503888e..4ac84fb4c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java @@ -20,12 +20,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServicePortFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServicePortFluent> extends BaseFluent{ private String appProtocol; private String name; @@ -63,7 +65,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServicePortFluent that = (V1ServicePortFluent) o; + V1ServicePortFluent that = (V1ServicePortFluent) o; if (!(Objects.equals(appProtocol, that.appProtocol))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java index 5b182976ed..6ab78ad070 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServiceSpecBuilder extends V1ServiceSpecFluent implements VisitableBuilder{ V1ServiceSpecFluent fluent; 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 ed38ce970b..74cac58a49 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 @@ -30,12 +30,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServiceSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServiceSpecFluent> extends BaseFluent{ private Boolean allocateLoadBalancerNodePorts; private String clusterIP; @@ -67,7 +69,7 @@ public V1ServiceSpecFluent(V1ServiceSpec instance) { public A addAllToClusterIPs(Collection items) { if (this.clusterIPs == null) { - this.clusterIPs = new ArrayList(); + this.clusterIPs = new ArrayList<>(); } for (String item : items) { this.clusterIPs.add(item); @@ -77,7 +79,7 @@ public A addAllToClusterIPs(Collection items) { public A addAllToExternalIPs(Collection items) { if (this.externalIPs == null) { - this.externalIPs = new ArrayList(); + this.externalIPs = new ArrayList<>(); } for (String item : items) { this.externalIPs.add(item); @@ -87,7 +89,7 @@ public A addAllToExternalIPs(Collection items) { public A addAllToIpFamilies(Collection items) { if (this.ipFamilies == null) { - this.ipFamilies = new ArrayList(); + this.ipFamilies = new ArrayList<>(); } for (String item : items) { this.ipFamilies.add(item); @@ -97,7 +99,7 @@ public A addAllToIpFamilies(Collection items) { public A addAllToLoadBalancerSourceRanges(Collection items) { if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new ArrayList(); + this.loadBalancerSourceRanges = new ArrayList<>(); } for (String item : items) { this.loadBalancerSourceRanges.add(item); @@ -107,7 +109,7 @@ public A addAllToLoadBalancerSourceRanges(Collection items) { public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1ServicePort item : items) { V1ServicePortBuilder builder = new V1ServicePortBuilder(item); @@ -118,16 +120,16 @@ public A addAllToPorts(Collection items) { } public PortsNested addNewPort() { - return new PortsNested(-1, null); + return new PortsNested<>(-1, null); } public PortsNested addNewPortLike(V1ServicePort item) { - return new PortsNested(-1, item); + return new PortsNested<>(-1, item); } public A addToClusterIPs(String... items) { if (this.clusterIPs == null) { - this.clusterIPs = new ArrayList(); + this.clusterIPs = new ArrayList<>(); } for (String item : items) { this.clusterIPs.add(item); @@ -137,7 +139,7 @@ public A addToClusterIPs(String... items) { public A addToClusterIPs(int index,String item) { if (this.clusterIPs == null) { - this.clusterIPs = new ArrayList(); + this.clusterIPs = new ArrayList<>(); } this.clusterIPs.add(index, item); return (A) this; @@ -145,7 +147,7 @@ public A addToClusterIPs(int index,String item) { public A addToExternalIPs(String... items) { if (this.externalIPs == null) { - this.externalIPs = new ArrayList(); + this.externalIPs = new ArrayList<>(); } for (String item : items) { this.externalIPs.add(item); @@ -155,7 +157,7 @@ public A addToExternalIPs(String... items) { public A addToExternalIPs(int index,String item) { if (this.externalIPs == null) { - this.externalIPs = new ArrayList(); + this.externalIPs = new ArrayList<>(); } this.externalIPs.add(index, item); return (A) this; @@ -163,7 +165,7 @@ public A addToExternalIPs(int index,String item) { public A addToIpFamilies(String... items) { if (this.ipFamilies == null) { - this.ipFamilies = new ArrayList(); + this.ipFamilies = new ArrayList<>(); } for (String item : items) { this.ipFamilies.add(item); @@ -173,7 +175,7 @@ public A addToIpFamilies(String... items) { public A addToIpFamilies(int index,String item) { if (this.ipFamilies == null) { - this.ipFamilies = new ArrayList(); + this.ipFamilies = new ArrayList<>(); } this.ipFamilies.add(index, item); return (A) this; @@ -181,7 +183,7 @@ public A addToIpFamilies(int index,String item) { public A addToLoadBalancerSourceRanges(String... items) { if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new ArrayList(); + this.loadBalancerSourceRanges = new ArrayList<>(); } for (String item : items) { this.loadBalancerSourceRanges.add(item); @@ -191,7 +193,7 @@ public A addToLoadBalancerSourceRanges(String... items) { public A addToLoadBalancerSourceRanges(int index,String item) { if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new ArrayList(); + this.loadBalancerSourceRanges = new ArrayList<>(); } this.loadBalancerSourceRanges.add(index, item); return (A) this; @@ -199,7 +201,7 @@ public A addToLoadBalancerSourceRanges(int index,String item) { public A addToPorts(V1ServicePort... items) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } for (V1ServicePort item : items) { V1ServicePortBuilder builder = new V1ServicePortBuilder(item); @@ -211,7 +213,7 @@ public A addToPorts(V1ServicePort... items) { public A addToPorts(int index,V1ServicePort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1ServicePortBuilder builder = new V1ServicePortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -226,7 +228,7 @@ public A addToPorts(int index,V1ServicePort item) { public A addToSelector(Map map) { if (this.selector == null && map != null) { - this.selector = new LinkedHashMap(); + this.selector = new LinkedHashMap<>(); } if (map != null) { this.selector.putAll(map); @@ -236,7 +238,7 @@ public A addToSelector(Map map) { public A addToSelector(String key,String value) { if (this.selector == null && key != null && value != null) { - this.selector = new LinkedHashMap(); + this.selector = new LinkedHashMap<>(); } if (key != null && value != null) { this.selector.put(key, value); @@ -357,7 +359,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServiceSpecFluent that = (V1ServiceSpecFluent) o; + V1ServiceSpecFluent that = (V1ServiceSpecFluent) o; if (!(Objects.equals(allocateLoadBalancerNodePorts, that.allocateLoadBalancerNodePorts))) { return false; } @@ -839,6 +841,7 @@ public A removeMatchingFromPorts(Predicate predicate) { return (A) this; } Iterator each = ports.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1ServicePortBuilder builder = each.next(); @@ -851,12 +854,12 @@ public A removeMatchingFromPorts(Predicate predicate) { } public PortsNested setNewPortLike(int index,V1ServicePort item) { - return new PortsNested(index, item); + return new PortsNested<>(index, item); } public A setToClusterIPs(int index,String item) { if (this.clusterIPs == null) { - this.clusterIPs = new ArrayList(); + this.clusterIPs = new ArrayList<>(); } this.clusterIPs.set(index, item); return (A) this; @@ -864,7 +867,7 @@ public A setToClusterIPs(int index,String item) { public A setToExternalIPs(int index,String item) { if (this.externalIPs == null) { - this.externalIPs = new ArrayList(); + this.externalIPs = new ArrayList<>(); } this.externalIPs.set(index, item); return (A) this; @@ -872,7 +875,7 @@ public A setToExternalIPs(int index,String item) { public A setToIpFamilies(int index,String item) { if (this.ipFamilies == null) { - this.ipFamilies = new ArrayList(); + this.ipFamilies = new ArrayList<>(); } this.ipFamilies.set(index, item); return (A) this; @@ -880,7 +883,7 @@ public A setToIpFamilies(int index,String item) { public A setToLoadBalancerSourceRanges(int index,String item) { if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new ArrayList(); + this.loadBalancerSourceRanges = new ArrayList<>(); } this.loadBalancerSourceRanges.set(index, item); return (A) this; @@ -888,7 +891,7 @@ public A setToLoadBalancerSourceRanges(int index,String item) { public A setToPorts(int index,V1ServicePort item) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } V1ServicePortBuilder builder = new V1ServicePortBuilder(item); if (index < 0 || index >= this.ports.size()) { @@ -1023,7 +1026,7 @@ public A withClusterIP(String clusterIP) { public A withClusterIPs(List clusterIPs) { if (clusterIPs != null) { - this.clusterIPs = new ArrayList(); + this.clusterIPs = new ArrayList<>(); for (String item : clusterIPs) { this.addToClusterIPs(item); } @@ -1048,7 +1051,7 @@ public A withClusterIPs(String... clusterIPs) { public A withExternalIPs(List externalIPs) { if (externalIPs != null) { - this.externalIPs = new ArrayList(); + this.externalIPs = new ArrayList<>(); for (String item : externalIPs) { this.addToExternalIPs(item); } @@ -1093,7 +1096,7 @@ public A withInternalTrafficPolicy(String internalTrafficPolicy) { public A withIpFamilies(List ipFamilies) { if (ipFamilies != null) { - this.ipFamilies = new ArrayList(); + this.ipFamilies = new ArrayList<>(); for (String item : ipFamilies) { this.addToIpFamilies(item); } @@ -1133,7 +1136,7 @@ public A withLoadBalancerIP(String loadBalancerIP) { public A withLoadBalancerSourceRanges(List loadBalancerSourceRanges) { if (loadBalancerSourceRanges != null) { - this.loadBalancerSourceRanges = new ArrayList(); + this.loadBalancerSourceRanges = new ArrayList<>(); for (String item : loadBalancerSourceRanges) { this.addToLoadBalancerSourceRanges(item); } @@ -1157,11 +1160,11 @@ public A withLoadBalancerSourceRanges(String... loadBalancerSourceRanges) { } public SessionAffinityConfigNested withNewSessionAffinityConfig() { - return new SessionAffinityConfigNested(null); + return new SessionAffinityConfigNested<>(null); } public SessionAffinityConfigNested withNewSessionAffinityConfigLike(V1SessionAffinityConfig item) { - return new SessionAffinityConfigNested(item); + return new SessionAffinityConfigNested<>(item); } public A withPorts(List ports) { @@ -1169,7 +1172,7 @@ public A withPorts(List ports) { this._visitables.get("ports").clear(); } if (ports != null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); for (V1ServicePort item : ports) { this.addToPorts(item); } @@ -1205,7 +1208,7 @@ public A withSelector(Map selector) { if (selector == null) { this.selector = null; } else { - this.selector = new LinkedHashMap(selector); + this.selector = new LinkedHashMap<>(selector); } return (A) this; } @@ -1221,8 +1224,8 @@ public A withSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig this.sessionAffinityConfig = new V1SessionAffinityConfigBuilder(sessionAffinityConfig); this._visitables.get("sessionAffinityConfig").add(this.sessionAffinityConfig); } else { - this.sessionAffinityConfig = null; this._visitables.get("sessionAffinityConfig").remove(this.sessionAffinityConfig); + this.sessionAffinityConfig = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java index 341c1acaae..fc945cbbe6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ServiceStatusBuilder extends V1ServiceStatusFluent implements VisitableBuilder{ V1ServiceStatusFluent fluent; 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 a8be8ee9f6..33269a92a5 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ServiceStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ServiceStatusFluent> extends BaseFluent{ private ArrayList conditions; private V1LoadBalancerStatusBuilder loadBalancer; @@ -45,7 +47,7 @@ public V1ServiceStatusFluent(V1ServiceStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -56,16 +58,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -77,7 +79,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -185,7 +187,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ServiceStatusFluent that = (V1ServiceStatusFluent) o; + V1ServiceStatusFluent that = (V1ServiceStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -245,6 +247,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -257,12 +260,12 @@ public A removeMatchingFromConditions(Predicate predicate) { } public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -296,7 +299,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } @@ -325,18 +328,18 @@ public A withLoadBalancer(V1LoadBalancerStatus loadBalancer) { this.loadBalancer = new V1LoadBalancerStatusBuilder(loadBalancer); this._visitables.get("loadBalancer").add(this.loadBalancer); } else { - this.loadBalancer = null; this._visitables.get("loadBalancer").remove(this.loadBalancer); + this.loadBalancer = null; } return (A) this; } public LoadBalancerNested withNewLoadBalancer() { - return new LoadBalancerNested(null); + return new LoadBalancerNested<>(null); } public LoadBalancerNested withNewLoadBalancerLike(V1LoadBalancerStatus item) { - return new LoadBalancerNested(item); + return new LoadBalancerNested<>(item); } public class ConditionsNested extends V1ConditionFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java index 5dc410bb9c..686d525005 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SessionAffinityConfigBuilder extends V1SessionAffinityConfigFluent implements VisitableBuilder{ V1SessionAffinityConfigFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java index 4a9521fb95..0345ee3b2a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SessionAffinityConfigFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SessionAffinityConfigFluent> extends BaseFluent{ private V1ClientIPConfigBuilder clientIP; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SessionAffinityConfigFluent that = (V1SessionAffinityConfigFluent) o; + V1SessionAffinityConfigFluent that = (V1SessionAffinityConfigFluent) o; if (!(Objects.equals(clientIP, that.clientIP))) { return false; } @@ -101,18 +103,18 @@ public A withClientIP(V1ClientIPConfig clientIP) { this.clientIP = new V1ClientIPConfigBuilder(clientIP); this._visitables.get("clientIP").add(this.clientIP); } else { - this.clientIP = null; this._visitables.get("clientIP").remove(this.clientIP); + this.clientIP = null; } return (A) this; } public ClientIPNested withNewClientIP() { - return new ClientIPNested(null); + return new ClientIPNested<>(null); } public ClientIPNested withNewClientIPLike(V1ClientIPConfig item) { - return new ClientIPNested(item); + return new ClientIPNested<>(item); } public class ClientIPNested extends V1ClientIPConfigFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoBuilder.java index 109b5ebcbd..b978aa4e2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ShardInfoBuilder extends V1ShardInfoFluent implements VisitableBuilder{ V1ShardInfoFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoFluent.java index 0072d7e8ad..b24595e563 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ShardInfoFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ShardInfoFluent> extends BaseFluent{ private String selector; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ShardInfoFluent that = (V1ShardInfoFluent) o; + V1ShardInfoFluent that = (V1ShardInfoFluent) o; if (!(Objects.equals(selector, that.selector))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java index d8bd56e138..e9be0d10f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SleepActionBuilder extends V1SleepActionFluent implements VisitableBuilder{ V1SleepActionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java index 02c483f06f..279820a880 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SleepActionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SleepActionFluent> extends BaseFluent{ private Long seconds; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SleepActionFluent that = (V1SleepActionFluent) o; + V1SleepActionFluent that = (V1SleepActionFluent) o; if (!(Objects.equals(seconds, that.seconds))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java index 04b9f9bb76..b7b2dc1da5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StatefulSetBuilder extends V1StatefulSetFluent implements VisitableBuilder{ V1StatefulSetFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java index 2869fa7918..169c6cd350 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StatefulSetConditionBuilder extends V1StatefulSetConditionFluent implements VisitableBuilder{ V1StatefulSetConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java index 696ad39f61..4fe3e9ad02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StatefulSetConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StatefulSetConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private String message; @@ -60,7 +62,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StatefulSetConditionFluent that = (V1StatefulSetConditionFluent) o; + V1StatefulSetConditionFluent that = (V1StatefulSetConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java index 57bbbb47a4..ac839bc4e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StatefulSetFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StatefulSetFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StatefulSetFluent that = (V1StatefulSetFluent) o; + V1StatefulSetFluent that = (V1StatefulSetFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1StatefulSetSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1StatefulSetStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1StatefulSetSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1StatefulSetSpec spec) { this.spec = new V1StatefulSetSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1StatefulSetStatus status) { this.status = new V1StatefulSetStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java index b8c5816aec..88f631b579 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StatefulSetListBuilder extends V1StatefulSetListFluent implements VisitableBuilder{ V1StatefulSetListFluent fluent; 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 b7fadfc8fb..7725cb81a5 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StatefulSetListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StatefulSetListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1StatefulSetListFluent(V1StatefulSetList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1StatefulSet item : items) { V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1StatefulSet item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1StatefulSet... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1StatefulSet item : items) { V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1StatefulSet... items) { public A addToItems(int index,V1StatefulSet item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StatefulSetListFluent that = (V1StatefulSetListFluent) o; + V1StatefulSetListFluent that = (V1StatefulSetListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1StatefulSetBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1StatefulSet item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1StatefulSet item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1StatefulSet item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1StatefulSetFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java index 0e34531f7a..5d30a1db01 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StatefulSetOrdinalsBuilder extends V1StatefulSetOrdinalsFluent implements VisitableBuilder{ V1StatefulSetOrdinalsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java index d8e8eeccb8..48b46e7f1c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StatefulSetOrdinalsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StatefulSetOrdinalsFluent> extends BaseFluent{ private Integer start; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StatefulSetOrdinalsFluent that = (V1StatefulSetOrdinalsFluent) o; + V1StatefulSetOrdinalsFluent that = (V1StatefulSetOrdinalsFluent) o; if (!(Objects.equals(start, that.start))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java index dff1d5c1e5..0a686f9bd3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent implements VisitableBuilder{ V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java index 5e5ae56827..689c6aa12f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent> extends BaseFluent{ private String whenDeleted; private String whenScaled; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent that = (V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent) o; + V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent that = (V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent) o; if (!(Objects.equals(whenDeleted, that.whenDeleted))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java index fc1659230e..c774f39c40 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StatefulSetSpecBuilder extends V1StatefulSetSpecFluent implements VisitableBuilder{ V1StatefulSetSpecFluent fluent; 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 0005037a1a..c1181b708a 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 @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StatefulSetSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StatefulSetSpecFluent> extends BaseFluent{ private Integer minReadySeconds; private V1StatefulSetOrdinalsBuilder ordinals; @@ -55,7 +57,7 @@ public V1StatefulSetSpecFluent(V1StatefulSetSpec instance) { public A addAllToVolumeClaimTemplates(Collection items) { if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = new ArrayList(); + this.volumeClaimTemplates = new ArrayList<>(); } for (V1PersistentVolumeClaim item : items) { V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); @@ -66,16 +68,16 @@ public A addAllToVolumeClaimTemplates(Collection items) } public VolumeClaimTemplatesNested addNewVolumeClaimTemplate() { - return new VolumeClaimTemplatesNested(-1, null); + return new VolumeClaimTemplatesNested<>(-1, null); } public VolumeClaimTemplatesNested addNewVolumeClaimTemplateLike(V1PersistentVolumeClaim item) { - return new VolumeClaimTemplatesNested(-1, item); + return new VolumeClaimTemplatesNested<>(-1, item); } public A addToVolumeClaimTemplates(V1PersistentVolumeClaim... items) { if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = new ArrayList(); + this.volumeClaimTemplates = new ArrayList<>(); } for (V1PersistentVolumeClaim item : items) { V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); @@ -87,7 +89,7 @@ public A addToVolumeClaimTemplates(V1PersistentVolumeClaim... items) { public A addToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = new ArrayList(); + this.volumeClaimTemplates = new ArrayList<>(); } V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); if (index < 0 || index >= this.volumeClaimTemplates.size()) { @@ -268,7 +270,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StatefulSetSpecFluent that = (V1StatefulSetSpecFluent) o; + V1StatefulSetSpecFluent that = (V1StatefulSetSpecFluent) o; if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { return false; } @@ -411,6 +413,7 @@ public A removeMatchingFromVolumeClaimTemplates(Predicate each = volumeClaimTemplates.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("volumeClaimTemplates"); while (each.hasNext()) { V1PersistentVolumeClaimBuilder builder = each.next(); @@ -423,12 +426,12 @@ public A removeMatchingFromVolumeClaimTemplates(Predicate setNewVolumeClaimTemplateLike(int index,V1PersistentVolumeClaim item) { - return new VolumeClaimTemplatesNested(index, item); + return new VolumeClaimTemplatesNested<>(index, item); } public A setToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = new ArrayList(); + this.volumeClaimTemplates = new ArrayList<>(); } V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); if (index < 0 || index >= this.volumeClaimTemplates.size()) { @@ -508,43 +511,43 @@ public A withMinReadySeconds(Integer minReadySeconds) { } public OrdinalsNested withNewOrdinals() { - return new OrdinalsNested(null); + return new OrdinalsNested<>(null); } public OrdinalsNested withNewOrdinalsLike(V1StatefulSetOrdinals item) { - return new OrdinalsNested(item); + return new OrdinalsNested<>(item); } public PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicy() { - return new PersistentVolumeClaimRetentionPolicyNested(null); + return new PersistentVolumeClaimRetentionPolicyNested<>(null); } public PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicyLike(V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { - return new PersistentVolumeClaimRetentionPolicyNested(item); + return new PersistentVolumeClaimRetentionPolicyNested<>(item); } public SelectorNested withNewSelector() { - return new SelectorNested(null); + return new SelectorNested<>(null); } public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + return new SelectorNested<>(item); } public TemplateNested withNewTemplate() { - return new TemplateNested(null); + return new TemplateNested<>(null); } public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); + return new TemplateNested<>(item); } public UpdateStrategyNested withNewUpdateStrategy() { - return new UpdateStrategyNested(null); + return new UpdateStrategyNested<>(null); } public UpdateStrategyNested withNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item) { - return new UpdateStrategyNested(item); + return new UpdateStrategyNested<>(item); } public A withOrdinals(V1StatefulSetOrdinals ordinals) { @@ -553,8 +556,8 @@ public A withOrdinals(V1StatefulSetOrdinals ordinals) { this.ordinals = new V1StatefulSetOrdinalsBuilder(ordinals); this._visitables.get("ordinals").add(this.ordinals); } else { - this.ordinals = null; this._visitables.get("ordinals").remove(this.ordinals); + this.ordinals = null; } return (A) this; } @@ -565,8 +568,8 @@ public A withPersistentVolumeClaimRetentionPolicy(V1StatefulSetPersistentVolumeC this.persistentVolumeClaimRetentionPolicy = new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(persistentVolumeClaimRetentionPolicy); this._visitables.get("persistentVolumeClaimRetentionPolicy").add(this.persistentVolumeClaimRetentionPolicy); } else { - this.persistentVolumeClaimRetentionPolicy = null; this._visitables.get("persistentVolumeClaimRetentionPolicy").remove(this.persistentVolumeClaimRetentionPolicy); + this.persistentVolumeClaimRetentionPolicy = null; } return (A) this; } @@ -592,8 +595,8 @@ public A withSelector(V1LabelSelector selector) { this.selector = new V1LabelSelectorBuilder(selector); this._visitables.get("selector").add(this.selector); } else { - this.selector = null; this._visitables.get("selector").remove(this.selector); + this.selector = null; } return (A) this; } @@ -609,8 +612,8 @@ public A withTemplate(V1PodTemplateSpec template) { this.template = new V1PodTemplateSpecBuilder(template); this._visitables.get("template").add(this.template); } else { - this.template = null; this._visitables.get("template").remove(this.template); + this.template = null; } return (A) this; } @@ -621,8 +624,8 @@ public A withUpdateStrategy(V1StatefulSetUpdateStrategy updateStrategy) { this.updateStrategy = new V1StatefulSetUpdateStrategyBuilder(updateStrategy); this._visitables.get("updateStrategy").add(this.updateStrategy); } else { - this.updateStrategy = null; this._visitables.get("updateStrategy").remove(this.updateStrategy); + this.updateStrategy = null; } return (A) this; } @@ -632,7 +635,7 @@ public A withVolumeClaimTemplates(List volumeClaimTempl this._visitables.get("volumeClaimTemplates").clear(); } if (volumeClaimTemplates != null) { - this.volumeClaimTemplates = new ArrayList(); + this.volumeClaimTemplates = new ArrayList<>(); for (V1PersistentVolumeClaim item : volumeClaimTemplates) { this.addToVolumeClaimTemplates(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java index ef0dfa19dc..666678b22e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StatefulSetStatusBuilder extends V1StatefulSetStatusFluent implements VisitableBuilder{ V1StatefulSetStatusFluent fluent; 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 a721495024..77d113921e 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 @@ -27,12 +27,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StatefulSetStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StatefulSetStatusFluent> extends BaseFluent{ private Integer availableReplicas; private Integer collisionCount; @@ -54,7 +56,7 @@ public V1StatefulSetStatusFluent(V1StatefulSetStatus instance) { public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1StatefulSetCondition item : items) { V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); @@ -65,16 +67,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1StatefulSetCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1StatefulSetCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1StatefulSetCondition item : items) { V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); @@ -86,7 +88,7 @@ public A addToConditions(V1StatefulSetCondition... items) { public A addToConditions(int index,V1StatefulSetCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -186,7 +188,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StatefulSetStatusFluent that = (V1StatefulSetStatusFluent) o; + V1StatefulSetStatusFluent that = (V1StatefulSetStatusFluent) o; if (!(Objects.equals(availableReplicas, that.availableReplicas))) { return false; } @@ -338,6 +340,7 @@ public A removeMatchingFromConditions(Predicate p return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1StatefulSetConditionBuilder builder = each.next(); @@ -350,12 +353,12 @@ public A removeMatchingFromConditions(Predicate p } public ConditionsNested setNewConditionLike(int index,V1StatefulSetCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1StatefulSetCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -439,7 +442,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1StatefulSetCondition item : conditions) { this.addToConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java index 640be28d44..d249146985 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StatefulSetUpdateStrategyBuilder extends V1StatefulSetUpdateStrategyFluent implements VisitableBuilder{ V1StatefulSetUpdateStrategyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java index 3efb858793..81d41b9647 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StatefulSetUpdateStrategyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StatefulSetUpdateStrategyFluent> extends BaseFluent{ private V1RollingUpdateStatefulSetStrategyBuilder rollingUpdate; private String type; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StatefulSetUpdateStrategyFluent that = (V1StatefulSetUpdateStrategyFluent) o; + V1StatefulSetUpdateStrategyFluent that = (V1StatefulSetUpdateStrategyFluent) o; if (!(Objects.equals(rollingUpdate, that.rollingUpdate))) { return false; } @@ -114,11 +116,11 @@ public String toString() { } public RollingUpdateNested withNewRollingUpdate() { - return new RollingUpdateNested(null); + return new RollingUpdateNested<>(null); } public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateStatefulSetStrategy item) { - return new RollingUpdateNested(item); + return new RollingUpdateNested<>(item); } public A withRollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate) { @@ -127,8 +129,8 @@ public A withRollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate) { this.rollingUpdate = new V1RollingUpdateStatefulSetStrategyBuilder(rollingUpdate); this._visitables.get("rollingUpdate").add(this.rollingUpdate); } else { - this.rollingUpdate = null; this._visitables.get("rollingUpdate").remove(this.rollingUpdate); + this.rollingUpdate = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java index 7c5031c532..f2eeaf9bc7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StatusBuilder extends V1StatusFluent implements VisitableBuilder{ V1StatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java index 388be21d0b..043365c2af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StatusCauseBuilder extends V1StatusCauseFluent implements VisitableBuilder{ V1StatusCauseFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java index c9e95a045c..9894565300 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StatusCauseFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StatusCauseFluent> extends BaseFluent{ private String field; private String message; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StatusCauseFluent that = (V1StatusCauseFluent) o; + V1StatusCauseFluent that = (V1StatusCauseFluent) o; if (!(Objects.equals(field, that.field))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java index 357e43bee9..7851bf839e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StatusDetailsBuilder extends V1StatusDetailsFluent implements VisitableBuilder{ V1StatusDetailsFluent fluent; 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 4d0730ef05..2b4af9d29d 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 @@ -26,12 +26,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StatusDetailsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StatusDetailsFluent> extends BaseFluent{ private ArrayList causes; private String group; @@ -49,7 +51,7 @@ public V1StatusDetailsFluent(V1StatusDetails instance) { public A addAllToCauses(Collection items) { if (this.causes == null) { - this.causes = new ArrayList(); + this.causes = new ArrayList<>(); } for (V1StatusCause item : items) { V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); @@ -60,16 +62,16 @@ public A addAllToCauses(Collection items) { } public CausesNested addNewCause() { - return new CausesNested(-1, null); + return new CausesNested<>(-1, null); } public CausesNested addNewCauseLike(V1StatusCause item) { - return new CausesNested(-1, item); + return new CausesNested<>(-1, item); } public A addToCauses(V1StatusCause... items) { if (this.causes == null) { - this.causes = new ArrayList(); + this.causes = new ArrayList<>(); } for (V1StatusCause item : items) { V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); @@ -81,7 +83,7 @@ public A addToCauses(V1StatusCause... items) { public A addToCauses(int index,V1StatusCause item) { if (this.causes == null) { - this.causes = new ArrayList(); + this.causes = new ArrayList<>(); } V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); if (index < 0 || index >= this.causes.size()) { @@ -177,7 +179,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StatusDetailsFluent that = (V1StatusDetailsFluent) o; + V1StatusDetailsFluent that = (V1StatusDetailsFluent) o; if (!(Objects.equals(causes, that.causes))) { return false; } @@ -285,6 +287,7 @@ public A removeMatchingFromCauses(Predicate predicate) { return (A) this; } Iterator each = causes.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("causes"); while (each.hasNext()) { V1StatusCauseBuilder builder = each.next(); @@ -297,12 +300,12 @@ public A removeMatchingFromCauses(Predicate predicate) { } public CausesNested setNewCauseLike(int index,V1StatusCause item) { - return new CausesNested(index, item); + return new CausesNested<>(index, item); } public A setToCauses(int index,V1StatusCause item) { if (this.causes == null) { - this.causes = new ArrayList(); + this.causes = new ArrayList<>(); } V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); if (index < 0 || index >= this.causes.size()) { @@ -356,7 +359,7 @@ public A withCauses(List causes) { this._visitables.get("causes").clear(); } if (causes != null) { - this.causes = new ArrayList(); + this.causes = new ArrayList<>(); for (V1StatusCause item : causes) { this.addToCauses(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java index 24c104ff3e..cabf5dbf22 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StatusFluent> extends BaseFluent{ private String apiVersion; private Integer code; @@ -100,7 +102,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StatusFluent that = (V1StatusFluent) o; + V1StatusFluent that = (V1StatusFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -250,8 +252,8 @@ public A withDetails(V1StatusDetails details) { this.details = new V1StatusDetailsBuilder(details); this._visitables.get("details").add(this.details); } else { - this.details = null; this._visitables.get("details").remove(this.details); + this.details = null; } return (A) this; } @@ -272,26 +274,26 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public DetailsNested withNewDetails() { - return new DetailsNested(null); + return new DetailsNested<>(null); } public DetailsNested withNewDetailsLike(V1StatusDetails item) { - return new DetailsNested(item); + return new DetailsNested<>(item); } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withReason(String reason) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java index aece33ff36..80c90fc3be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StorageClassBuilder extends V1StorageClassFluent implements VisitableBuilder{ V1StorageClassFluent fluent; 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 ba5edc29a1..073b619160 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 @@ -29,12 +29,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StorageClassFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StorageClassFluent> extends BaseFluent{ private Boolean allowVolumeExpansion; private ArrayList allowedTopologies; @@ -56,7 +58,7 @@ public V1StorageClassFluent(V1StorageClass instance) { public A addAllToAllowedTopologies(Collection items) { if (this.allowedTopologies == null) { - this.allowedTopologies = new ArrayList(); + this.allowedTopologies = new ArrayList<>(); } for (V1TopologySelectorTerm item : items) { V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); @@ -68,7 +70,7 @@ public A addAllToAllowedTopologies(Collection items) { public A addAllToMountOptions(Collection items) { if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); + this.mountOptions = new ArrayList<>(); } for (String item : items) { this.mountOptions.add(item); @@ -77,16 +79,16 @@ public A addAllToMountOptions(Collection items) { } public AllowedTopologiesNested addNewAllowedTopology() { - return new AllowedTopologiesNested(-1, null); + return new AllowedTopologiesNested<>(-1, null); } public AllowedTopologiesNested addNewAllowedTopologyLike(V1TopologySelectorTerm item) { - return new AllowedTopologiesNested(-1, item); + return new AllowedTopologiesNested<>(-1, item); } public A addToAllowedTopologies(V1TopologySelectorTerm... items) { if (this.allowedTopologies == null) { - this.allowedTopologies = new ArrayList(); + this.allowedTopologies = new ArrayList<>(); } for (V1TopologySelectorTerm item : items) { V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); @@ -98,7 +100,7 @@ public A addToAllowedTopologies(V1TopologySelectorTerm... items) { public A addToAllowedTopologies(int index,V1TopologySelectorTerm item) { if (this.allowedTopologies == null) { - this.allowedTopologies = new ArrayList(); + this.allowedTopologies = new ArrayList<>(); } V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); if (index < 0 || index >= this.allowedTopologies.size()) { @@ -113,7 +115,7 @@ public A addToAllowedTopologies(int index,V1TopologySelectorTerm item) { public A addToMountOptions(String... items) { if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); + this.mountOptions = new ArrayList<>(); } for (String item : items) { this.mountOptions.add(item); @@ -123,7 +125,7 @@ public A addToMountOptions(String... items) { public A addToMountOptions(int index,String item) { if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); + this.mountOptions = new ArrayList<>(); } this.mountOptions.add(index, item); return (A) this; @@ -131,7 +133,7 @@ public A addToMountOptions(int index,String item) { public A addToParameters(Map map) { if (this.parameters == null && map != null) { - this.parameters = new LinkedHashMap(); + this.parameters = new LinkedHashMap<>(); } if (map != null) { this.parameters.putAll(map); @@ -141,7 +143,7 @@ public A addToParameters(Map map) { public A addToParameters(String key,String value) { if (this.parameters == null && key != null && value != null) { - this.parameters = new LinkedHashMap(); + this.parameters = new LinkedHashMap<>(); } if (key != null && value != null) { this.parameters.put(key, value); @@ -252,7 +254,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StorageClassFluent that = (V1StorageClassFluent) o; + V1StorageClassFluent that = (V1StorageClassFluent) o; if (!(Objects.equals(allowVolumeExpansion, that.allowVolumeExpansion))) { return false; } @@ -474,6 +476,7 @@ public A removeMatchingFromAllowedTopologies(Predicate each = allowedTopologies.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("allowedTopologies"); while (each.hasNext()) { V1TopologySelectorTermBuilder builder = each.next(); @@ -486,12 +489,12 @@ public A removeMatchingFromAllowedTopologies(Predicate setNewAllowedTopologyLike(int index,V1TopologySelectorTerm item) { - return new AllowedTopologiesNested(index, item); + return new AllowedTopologiesNested<>(index, item); } public A setToAllowedTopologies(int index,V1TopologySelectorTerm item) { if (this.allowedTopologies == null) { - this.allowedTopologies = new ArrayList(); + this.allowedTopologies = new ArrayList<>(); } V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); if (index < 0 || index >= this.allowedTopologies.size()) { @@ -506,7 +509,7 @@ public A setToAllowedTopologies(int index,V1TopologySelectorTerm item) { public A setToMountOptions(int index,String item) { if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); + this.mountOptions = new ArrayList<>(); } this.mountOptions.set(index, item); return (A) this; @@ -582,7 +585,7 @@ public A withAllowedTopologies(List allowedTopologies) { this._visitables.get("allowedTopologies").clear(); } if (allowedTopologies != null) { - this.allowedTopologies = new ArrayList(); + this.allowedTopologies = new ArrayList<>(); for (V1TopologySelectorTerm item : allowedTopologies) { this.addToAllowedTopologies(item); } @@ -621,15 +624,15 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public A withMountOptions(List mountOptions) { if (mountOptions != null) { - this.mountOptions = new ArrayList(); + this.mountOptions = new ArrayList<>(); for (String item : mountOptions) { this.addToMountOptions(item); } @@ -653,18 +656,18 @@ public A withMountOptions(String... mountOptions) { } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withParameters(Map parameters) { if (parameters == null) { this.parameters = null; } else { - this.parameters = new LinkedHashMap(parameters); + this.parameters = new LinkedHashMap<>(parameters); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java index 989ccc0c0d..de06ef9092 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StorageClassListBuilder extends V1StorageClassListFluent implements VisitableBuilder{ V1StorageClassListFluent fluent; 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 5ba1ad31a9..559cf57b98 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StorageClassListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StorageClassListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1StorageClassListFluent(V1StorageClassList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1StorageClass item : items) { V1StorageClassBuilder builder = new V1StorageClassBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1StorageClass item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1StorageClass... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1StorageClass item : items) { V1StorageClassBuilder builder = new V1StorageClassBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1StorageClass... items) { public A addToItems(int index,V1StorageClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1StorageClassBuilder builder = new V1StorageClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StorageClassListFluent that = (V1StorageClassListFluent) o; + V1StorageClassListFluent that = (V1StorageClassListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1StorageClassBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) { } public ItemsNested setNewItemLike(int index,V1StorageClass item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1StorageClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1StorageClassBuilder builder = new V1StorageClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1StorageClass item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1StorageClassFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthBuilder.java similarity index 50% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthBuilder.java index dffe2ca031..7200d60e22 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthBuilder.java @@ -13,32 +13,34 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1beta1ServiceCIDRSpecBuilder extends V1beta1ServiceCIDRSpecFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1StorageHealthBuilder extends V1StorageHealthFluent implements VisitableBuilder{ - V1beta1ServiceCIDRSpecFluent fluent; + V1StorageHealthFluent fluent; - public V1beta1ServiceCIDRSpecBuilder() { - this(new V1beta1ServiceCIDRSpec()); + public V1StorageHealthBuilder() { + this(new V1StorageHealth()); } - public V1beta1ServiceCIDRSpecBuilder(V1beta1ServiceCIDRSpecFluent fluent) { - this(fluent, new V1beta1ServiceCIDRSpec()); + public V1StorageHealthBuilder(V1StorageHealthFluent fluent) { + this(fluent, new V1StorageHealth()); } - public V1beta1ServiceCIDRSpecBuilder(V1beta1ServiceCIDRSpec instance) { + public V1StorageHealthBuilder(V1StorageHealth instance) { this.fluent = this; this.copyInstance(instance); } - public V1beta1ServiceCIDRSpecBuilder(V1beta1ServiceCIDRSpecFluent fluent,V1beta1ServiceCIDRSpec instance) { + public V1StorageHealthBuilder(V1StorageHealthFluent fluent,V1StorageHealth instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1beta1ServiceCIDRSpec build() { - V1beta1ServiceCIDRSpec buildable = new V1beta1ServiceCIDRSpec(); - buildable.setCidrs(fluent.getCidrs()); + public V1StorageHealth build() { + V1StorageHealth buildable = new V1StorageHealth(); + buildable.setHealthConditions(fluent.buildHealthConditions()); + buildable.setName(fluent.getName()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthConditionBuilder.java new file mode 100644 index 0000000000..276449cb44 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthConditionBuilder.java @@ -0,0 +1,51 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1StorageHealthConditionBuilder extends V1StorageHealthConditionFluent implements VisitableBuilder{ + + V1StorageHealthConditionFluent fluent; + + public V1StorageHealthConditionBuilder() { + this(new V1StorageHealthCondition()); + } + + public V1StorageHealthConditionBuilder(V1StorageHealthConditionFluent fluent) { + this(fluent, new V1StorageHealthCondition()); + } + + public V1StorageHealthConditionBuilder(V1StorageHealthCondition instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1StorageHealthConditionBuilder(V1StorageHealthConditionFluent fluent,V1StorageHealthCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1StorageHealthCondition build() { + V1StorageHealthCondition buildable = new V1StorageHealthCondition(); + buildable.setAccessMode(fluent.getAccessMode()); + buildable.setLastTransitionTime(fluent.getLastTransitionTime()); + buildable.setMessage(fluent.getMessage()); + buildable.setReason(fluent.getReason()); + buildable.setStatus(fluent.getStatus()); + buildable.setVolumeMode(fluent.getVolumeMode()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthConditionFluent.java new file mode 100644 index 0000000000..54f97478d9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthConditionFluent.java @@ -0,0 +1,207 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StorageHealthConditionFluent> extends BaseFluent{ + + private String accessMode; + private OffsetDateTime lastTransitionTime; + private String message; + private String reason; + private String status; + private String volumeMode; + + public V1StorageHealthConditionFluent() { + } + + public V1StorageHealthConditionFluent(V1StorageHealthCondition instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1StorageHealthCondition instance) { + instance = instance != null ? instance : new V1StorageHealthCondition(); + if (instance != null) { + this.withAccessMode(instance.getAccessMode()); + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withVolumeMode(instance.getVolumeMode()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StorageHealthConditionFluent that = (V1StorageHealthConditionFluent) o; + if (!(Objects.equals(accessMode, that.accessMode))) { + return false; + } + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(volumeMode, that.volumeMode))) { + return false; + } + return true; + } + + public String getAccessMode() { + return this.accessMode; + } + + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public String getVolumeMode() { + return this.volumeMode; + } + + public boolean hasAccessMode() { + return this.accessMode != null; + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasVolumeMode() { + return this.volumeMode != null; + } + + public int hashCode() { + return Objects.hash(accessMode, lastTransitionTime, message, reason, status, volumeMode); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(accessMode == null)) { + sb.append("accessMode:"); + sb.append(accessMode); + sb.append(","); + } + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(volumeMode == null)) { + sb.append("volumeMode:"); + sb.append(volumeMode); + } + sb.append("}"); + return sb.toString(); + } + + public A withAccessMode(String accessMode) { + this.accessMode = accessMode; + return (A) this; + } + + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withVolumeMode(String volumeMode) { + this.volumeMode = volumeMode; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthFluent.java new file mode 100644 index 0000000000..5935d650da --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthFluent.java @@ -0,0 +1,335 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StorageHealthFluent> extends BaseFluent{ + + private ArrayList healthConditions; + private String name; + + public V1StorageHealthFluent() { + } + + public V1StorageHealthFluent(V1StorageHealth instance) { + this.copyInstance(instance); + } + + public A addAllToHealthConditions(Collection items) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + for (V1StorageHealthCondition item : items) { + V1StorageHealthConditionBuilder builder = new V1StorageHealthConditionBuilder(item); + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(builder); + } + return (A) this; + } + + public HealthConditionsNested addNewHealthCondition() { + return new HealthConditionsNested<>(-1, null); + } + + public HealthConditionsNested addNewHealthConditionLike(V1StorageHealthCondition item) { + return new HealthConditionsNested<>(-1, item); + } + + public A addToHealthConditions(V1StorageHealthCondition... items) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + for (V1StorageHealthCondition item : items) { + V1StorageHealthConditionBuilder builder = new V1StorageHealthConditionBuilder(item); + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(builder); + } + return (A) this; + } + + public A addToHealthConditions(int index,V1StorageHealthCondition item) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + V1StorageHealthConditionBuilder builder = new V1StorageHealthConditionBuilder(item); + if (index < 0 || index >= this.healthConditions.size()) { + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(builder); + } else { + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(index, builder); + } + return (A) this; + } + + public V1StorageHealthCondition buildFirstHealthCondition() { + return this.healthConditions.get(0).build(); + } + + public V1StorageHealthCondition buildHealthCondition(int index) { + return this.healthConditions.get(index).build(); + } + + public List buildHealthConditions() { + return this.healthConditions != null ? build(healthConditions) : null; + } + + public V1StorageHealthCondition buildLastHealthCondition() { + return this.healthConditions.get(healthConditions.size() - 1).build(); + } + + public V1StorageHealthCondition buildMatchingHealthCondition(Predicate predicate) { + for (V1StorageHealthConditionBuilder item : healthConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + protected void copyInstance(V1StorageHealth instance) { + instance = instance != null ? instance : new V1StorageHealth(); + if (instance != null) { + this.withHealthConditions(instance.getHealthConditions()); + this.withName(instance.getName()); + } + } + + public HealthConditionsNested editFirstHealthCondition() { + if (healthConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "healthConditions")); + } + return this.setNewHealthConditionLike(0, this.buildHealthCondition(0)); + } + + public HealthConditionsNested editHealthCondition(int index) { + if (healthConditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "healthConditions")); + } + return this.setNewHealthConditionLike(index, this.buildHealthCondition(index)); + } + + public HealthConditionsNested editLastHealthCondition() { + int index = healthConditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "healthConditions")); + } + return this.setNewHealthConditionLike(index, this.buildHealthCondition(index)); + } + + public HealthConditionsNested editMatchingHealthCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < healthConditions.size();i++) { + if (predicate.test(healthConditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "healthConditions")); + } + return this.setNewHealthConditionLike(index, this.buildHealthCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StorageHealthFluent that = (V1StorageHealthFluent) o; + if (!(Objects.equals(healthConditions, that.healthConditions))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public boolean hasHealthConditions() { + return this.healthConditions != null && !(this.healthConditions.isEmpty()); + } + + public boolean hasMatchingHealthCondition(Predicate predicate) { + for (V1StorageHealthConditionBuilder item : healthConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(healthConditions, name); + } + + public A removeAllFromHealthConditions(Collection items) { + if (this.healthConditions == null) { + return (A) this; + } + for (V1StorageHealthCondition item : items) { + V1StorageHealthConditionBuilder builder = new V1StorageHealthConditionBuilder(item); + _visitables.get("healthConditions").remove(builder); + this.healthConditions.remove(builder); + } + return (A) this; + } + + public A removeFromHealthConditions(V1StorageHealthCondition... items) { + if (this.healthConditions == null) { + return (A) this; + } + for (V1StorageHealthCondition item : items) { + V1StorageHealthConditionBuilder builder = new V1StorageHealthConditionBuilder(item); + _visitables.get("healthConditions").remove(builder); + this.healthConditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromHealthConditions(Predicate predicate) { + if (healthConditions == null) { + return (A) this; + } + Iterator each = healthConditions.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("healthConditions"); + while (each.hasNext()) { + V1StorageHealthConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public HealthConditionsNested setNewHealthConditionLike(int index,V1StorageHealthCondition item) { + return new HealthConditionsNested<>(index, item); + } + + public A setToHealthConditions(int index,V1StorageHealthCondition item) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + V1StorageHealthConditionBuilder builder = new V1StorageHealthConditionBuilder(item); + if (index < 0 || index >= this.healthConditions.size()) { + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(builder); + } else { + this._visitables.get("healthConditions").add(builder); + this.healthConditions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(healthConditions == null) && !(healthConditions.isEmpty())) { + sb.append("healthConditions:"); + sb.append(healthConditions); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withHealthConditions(List healthConditions) { + if (this.healthConditions != null) { + this._visitables.get("healthConditions").clear(); + } + if (healthConditions != null) { + this.healthConditions = new ArrayList<>(); + for (V1StorageHealthCondition item : healthConditions) { + this.addToHealthConditions(item); + } + } else { + this.healthConditions = null; + } + return (A) this; + } + + public A withHealthConditions(V1StorageHealthCondition... healthConditions) { + if (this.healthConditions != null) { + this.healthConditions.clear(); + _visitables.remove("healthConditions"); + } + if (healthConditions != null) { + for (V1StorageHealthCondition item : healthConditions) { + this.addToHealthConditions(item); + } + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public class HealthConditionsNested extends V1StorageHealthConditionFluent> implements Nested{ + + V1StorageHealthConditionBuilder builder; + int index; + + HealthConditionsNested(int index,V1StorageHealthCondition item) { + this.index = index; + this.builder = new V1StorageHealthConditionBuilder(this, item); + } + + public N and() { + return (N) V1StorageHealthFluent.this.setToHealthConditions(index, builder.build()); + } + + public N endHealthCondition() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java index d1aa6f495d..a672b5a279 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StorageOSPersistentVolumeSourceBuilder extends V1StorageOSPersistentVolumeSourceFluent implements VisitableBuilder{ V1StorageOSPersistentVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java index 63a3655cce..7528d1feec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StorageOSPersistentVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StorageOSPersistentVolumeSourceFluent> extends BaseFluent{ private String fsType; private Boolean readOnly; @@ -78,7 +80,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StorageOSPersistentVolumeSourceFluent that = (V1StorageOSPersistentVolumeSourceFluent) o; + V1StorageOSPersistentVolumeSourceFluent that = (V1StorageOSPersistentVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } @@ -174,11 +176,11 @@ public A withFsType(String fsType) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1ObjectReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withReadOnly() { @@ -196,8 +198,8 @@ public A withSecretRef(V1ObjectReference secretRef) { this.secretRef = new V1ObjectReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java index 13e70d17cc..43768ae746 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1StorageOSVolumeSourceBuilder extends V1StorageOSVolumeSourceFluent implements VisitableBuilder{ V1StorageOSVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java index 4e720ec505..8466d3ba05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1StorageOSVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StorageOSVolumeSourceFluent> extends BaseFluent{ private String fsType; private Boolean readOnly; @@ -78,7 +80,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1StorageOSVolumeSourceFluent that = (V1StorageOSVolumeSourceFluent) o; + V1StorageOSVolumeSourceFluent that = (V1StorageOSVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } @@ -174,11 +176,11 @@ public A withFsType(String fsType) { } public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + return new SecretRefNested<>(null); } public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + return new SecretRefNested<>(item); } public A withReadOnly() { @@ -196,8 +198,8 @@ public A withSecretRef(V1LocalObjectReference secretRef) { this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); this._visitables.get("secretRef").add(this.secretRef); } else { - this.secretRef = null; this._visitables.get("secretRef").remove(this.secretRef); + this.secretRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationBuilder.java new file mode 100644 index 0000000000..d27a1a79fd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationBuilder.java @@ -0,0 +1,50 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1StorageVersionMigrationBuilder extends V1StorageVersionMigrationFluent implements VisitableBuilder{ + + V1StorageVersionMigrationFluent fluent; + + public V1StorageVersionMigrationBuilder() { + this(new V1StorageVersionMigration()); + } + + public V1StorageVersionMigrationBuilder(V1StorageVersionMigrationFluent fluent) { + this(fluent, new V1StorageVersionMigration()); + } + + public V1StorageVersionMigrationBuilder(V1StorageVersionMigration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1StorageVersionMigrationBuilder(V1StorageVersionMigrationFluent fluent,V1StorageVersionMigration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1StorageVersionMigration build() { + V1StorageVersionMigration buildable = new V1StorageVersionMigration(); + 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/V1StorageVersionMigrationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationFluent.java new file mode 100644 index 0000000000..d9257e6a15 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationFluent.java @@ -0,0 +1,316 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StorageVersionMigrationFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1StorageVersionMigrationSpecBuilder spec; + private V1StorageVersionMigrationStatusBuilder status; + + public V1StorageVersionMigrationFluent() { + } + + public V1StorageVersionMigrationFluent(V1StorageVersionMigration instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1StorageVersionMigrationSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1StorageVersionMigrationStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + protected void copyInstance(V1StorageVersionMigration instance) { + instance = instance != null ? instance : new V1StorageVersionMigration(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1StorageVersionMigrationSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1StorageVersionMigrationSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1StorageVersionMigrationStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1StorageVersionMigrationStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StorageVersionMigrationFluent that = (V1StorageVersionMigrationFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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._visitables.get("metadata").remove(this.metadata); + this.metadata = null; + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested<>(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested<>(item); + } + + public SpecNested withNewSpec() { + return new SpecNested<>(null); + } + + public SpecNested withNewSpecLike(V1StorageVersionMigrationSpec item) { + return new SpecNested<>(item); + } + + public StatusNested withNewStatus() { + return new StatusNested<>(null); + } + + public StatusNested withNewStatusLike(V1StorageVersionMigrationStatus item) { + return new StatusNested<>(item); + } + + public A withSpec(V1StorageVersionMigrationSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1StorageVersionMigrationSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this._visitables.get("spec").remove(this.spec); + this.spec = null; + } + return (A) this; + } + + public A withStatus(V1StorageVersionMigrationStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1StorageVersionMigrationStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this._visitables.get("status").remove(this.status); + this.status = null; + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1StorageVersionMigrationFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1StorageVersionMigrationSpecFluent> implements Nested{ + + V1StorageVersionMigrationSpecBuilder builder; + + SpecNested(V1StorageVersionMigrationSpec item) { + this.builder = new V1StorageVersionMigrationSpecBuilder(this, item); + } + + public N and() { + return (N) V1StorageVersionMigrationFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1StorageVersionMigrationStatusFluent> implements Nested{ + + V1StorageVersionMigrationStatusBuilder builder; + + StatusNested(V1StorageVersionMigrationStatus item) { + this.builder = new V1StorageVersionMigrationStatusBuilder(this, item); + } + + public N and() { + return (N) V1StorageVersionMigrationFluent.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/V1StorageVersionMigrationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationListBuilder.java new file mode 100644 index 0000000000..4a9c29e44c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationListBuilder.java @@ -0,0 +1,49 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1StorageVersionMigrationListBuilder extends V1StorageVersionMigrationListFluent implements VisitableBuilder{ + + V1StorageVersionMigrationListFluent fluent; + + public V1StorageVersionMigrationListBuilder() { + this(new V1StorageVersionMigrationList()); + } + + public V1StorageVersionMigrationListBuilder(V1StorageVersionMigrationListFluent fluent) { + this(fluent, new V1StorageVersionMigrationList()); + } + + public V1StorageVersionMigrationListBuilder(V1StorageVersionMigrationList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1StorageVersionMigrationListBuilder(V1StorageVersionMigrationListFluent fluent,V1StorageVersionMigrationList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1StorageVersionMigrationList build() { + V1StorageVersionMigrationList buildable = new V1StorageVersionMigrationList(); + 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/V1alpha1ClusterTrustBundleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationListFluent.java similarity index 68% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationListFluent.java index aedc7069cd..393f258ad8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationListFluent.java @@ -26,31 +26,33 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1ClusterTrustBundleListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StorageVersionMigrationListFluent> extends BaseFluent{ private String apiVersion; - private ArrayList items; + private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public V1alpha1ClusterTrustBundleListFluent() { + public V1StorageVersionMigrationListFluent() { } - public V1alpha1ClusterTrustBundleListFluent(V1alpha1ClusterTrustBundleList instance) { + public V1StorageVersionMigrationListFluent(V1StorageVersionMigrationList instance) { this.copyInstance(instance); } - public A addAllToItems(Collection items) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - for (V1alpha1ClusterTrustBundle item : items) { - V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + for (V1StorageVersionMigration item : items) { + V1StorageVersionMigrationBuilder builder = new V1StorageVersionMigrationBuilder(item); this._visitables.get("items").add(builder); this.items.add(builder); } @@ -58,30 +60,30 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } - public ItemsNested addNewItemLike(V1alpha1ClusterTrustBundle item) { - return new ItemsNested(-1, item); + public ItemsNested addNewItemLike(V1StorageVersionMigration item) { + return new ItemsNested<>(-1, item); } - public A addToItems(V1alpha1ClusterTrustBundle... items) { + public A addToItems(V1StorageVersionMigration... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - for (V1alpha1ClusterTrustBundle item : items) { - V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + for (V1StorageVersionMigration item : items) { + V1StorageVersionMigrationBuilder builder = new V1StorageVersionMigrationBuilder(item); this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; } - public A addToItems(int index,V1alpha1ClusterTrustBundle item) { + public A addToItems(int index,V1StorageVersionMigration item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + V1StorageVersionMigrationBuilder builder = new V1StorageVersionMigrationBuilder(item); if (index < 0 || index >= this.items.size()) { this._visitables.get("items").add(builder); this.items.add(builder); @@ -92,24 +94,24 @@ public A addToItems(int index,V1alpha1ClusterTrustBundle item) { return (A) this; } - public V1alpha1ClusterTrustBundle buildFirstItem() { + public V1StorageVersionMigration buildFirstItem() { return this.items.get(0).build(); } - public V1alpha1ClusterTrustBundle buildItem(int index) { + public V1StorageVersionMigration buildItem(int index) { return this.items.get(index).build(); } - public List buildItems() { + public List buildItems() { return this.items != null ? build(items) : null; } - public V1alpha1ClusterTrustBundle buildLastItem() { + public V1StorageVersionMigration buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1alpha1ClusterTrustBundle buildMatchingItem(Predicate predicate) { - for (V1alpha1ClusterTrustBundleBuilder item : items) { + public V1StorageVersionMigration buildMatchingItem(Predicate predicate) { + for (V1StorageVersionMigrationBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -121,8 +123,8 @@ public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - protected void copyInstance(V1alpha1ClusterTrustBundleList instance) { - instance = instance != null ? instance : new V1alpha1ClusterTrustBundleList(); + protected void copyInstance(V1StorageVersionMigrationList instance) { + instance = instance != null ? instance : new V1StorageVersionMigrationList(); if (instance != null) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -153,7 +155,7 @@ public ItemsNested editLastItem() { return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editMatchingItem(Predicate predicate) { + public ItemsNested editMatchingItem(Predicate predicate) { int index = -1; for (int i = 0;i < items.size();i++) { if (predicate.test(items.get(i))) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1ClusterTrustBundleListFluent that = (V1alpha1ClusterTrustBundleListFluent) o; + V1StorageVersionMigrationListFluent that = (V1StorageVersionMigrationListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -225,8 +227,8 @@ public boolean hasKind() { return this.kind != null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha1ClusterTrustBundleBuilder item : items) { + public boolean hasMatchingItem(Predicate predicate) { + for (V1StorageVersionMigrationBuilder item : items) { if (predicate.test(item)) { return true; } @@ -242,38 +244,39 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - public A removeAllFromItems(Collection items) { + public A removeAllFromItems(Collection items) { if (this.items == null) { return (A) this; } - for (V1alpha1ClusterTrustBundle item : items) { - V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + for (V1StorageVersionMigration item : items) { + V1StorageVersionMigrationBuilder builder = new V1StorageVersionMigrationBuilder(item); _visitables.get("items").remove(builder); this.items.remove(builder); } return (A) this; } - public A removeFromItems(V1alpha1ClusterTrustBundle... items) { + public A removeFromItems(V1StorageVersionMigration... items) { if (this.items == null) { return (A) this; } - for (V1alpha1ClusterTrustBundle item : items) { - V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + for (V1StorageVersionMigration item : items) { + V1StorageVersionMigrationBuilder builder = new V1StorageVersionMigrationBuilder(item); _visitables.get("items").remove(builder); this.items.remove(builder); } return (A) this; } - public A removeMatchingFromItems(Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) { return (A) this; } - Iterator each = items.iterator(); + Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { - V1alpha1ClusterTrustBundleBuilder builder = each.next(); + V1StorageVersionMigrationBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -282,15 +285,15 @@ public A removeMatchingFromItems(Predicate pr return (A) this; } - public ItemsNested setNewItemLike(int index,V1alpha1ClusterTrustBundle item) { - return new ItemsNested(index, item); + public ItemsNested setNewItemLike(int index,V1StorageVersionMigration item) { + return new ItemsNested<>(index, item); } - public A setToItems(int index,V1alpha1ClusterTrustBundle item) { + public A setToItems(int index,V1StorageVersionMigration item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + V1StorageVersionMigrationBuilder builder = new V1StorageVersionMigrationBuilder(item); if (index < 0 || index >= this.items.size()) { this._visitables.get("items").add(builder); this.items.add(builder); @@ -332,13 +335,13 @@ public A withApiVersion(String apiVersion) { return (A) this; } - public A withItems(List items) { + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); - for (V1alpha1ClusterTrustBundle item : items) { + this.items = new ArrayList<>(); + for (V1StorageVersionMigration item : items) { this.addToItems(item); } } else { @@ -347,13 +350,13 @@ public A withItems(List items) { return (A) this; } - public A withItems(V1alpha1ClusterTrustBundle... items) { + public A withItems(V1StorageVersionMigration... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); } if (items != null) { - for (V1alpha1ClusterTrustBundle item : items) { + for (V1StorageVersionMigration item : items) { this.addToItems(item); } } @@ -371,31 +374,31 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } - public class ItemsNested extends V1alpha1ClusterTrustBundleFluent> implements Nested{ + public class ItemsNested extends V1StorageVersionMigrationFluent> implements Nested{ - V1alpha1ClusterTrustBundleBuilder builder; + V1StorageVersionMigrationBuilder builder; int index; - ItemsNested(int index,V1alpha1ClusterTrustBundle item) { + ItemsNested(int index,V1StorageVersionMigration item) { this.index = index; - this.builder = new V1alpha1ClusterTrustBundleBuilder(this, item); + this.builder = new V1StorageVersionMigrationBuilder(this, item); } public N and() { - return (N) V1alpha1ClusterTrustBundleListFluent.this.setToItems(index, builder.build()); + return (N) V1StorageVersionMigrationListFluent.this.setToItems(index, builder.build()); } public N endItem() { @@ -412,7 +415,7 @@ public class MetadataNested extends V1ListMetaFluent> imple } public N and() { - return (N) V1alpha1ClusterTrustBundleListFluent.this.withMetadata(builder.build()); + return (N) V1StorageVersionMigrationListFluent.this.withMetadata(builder.build()); } public N endMetadata() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationSpecBuilder.java new file mode 100644 index 0000000000..6494ad1285 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationSpecBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1StorageVersionMigrationSpecBuilder extends V1StorageVersionMigrationSpecFluent implements VisitableBuilder{ + + V1StorageVersionMigrationSpecFluent fluent; + + public V1StorageVersionMigrationSpecBuilder() { + this(new V1StorageVersionMigrationSpec()); + } + + public V1StorageVersionMigrationSpecBuilder(V1StorageVersionMigrationSpecFluent fluent) { + this(fluent, new V1StorageVersionMigrationSpec()); + } + + public V1StorageVersionMigrationSpecBuilder(V1StorageVersionMigrationSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1StorageVersionMigrationSpecBuilder(V1StorageVersionMigrationSpecFluent fluent,V1StorageVersionMigrationSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1StorageVersionMigrationSpec build() { + V1StorageVersionMigrationSpec buildable = new V1StorageVersionMigrationSpec(); + buildable.setResource(fluent.buildResource()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationSpecFluent.java new file mode 100644 index 0000000000..8d87bb7a47 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationSpecFluent.java @@ -0,0 +1,136 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StorageVersionMigrationSpecFluent> extends BaseFluent{ + + private V1GroupResourceBuilder resource; + + public V1StorageVersionMigrationSpecFluent() { + } + + public V1StorageVersionMigrationSpecFluent(V1StorageVersionMigrationSpec instance) { + this.copyInstance(instance); + } + + public V1GroupResource buildResource() { + return this.resource != null ? this.resource.build() : null; + } + + protected void copyInstance(V1StorageVersionMigrationSpec instance) { + instance = instance != null ? instance : new V1StorageVersionMigrationSpec(); + if (instance != null) { + this.withResource(instance.getResource()); + } + } + + public ResourceNested editOrNewResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(new V1GroupResourceBuilder().build())); + } + + public ResourceNested editOrNewResourceLike(V1GroupResource item) { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(item)); + } + + public ResourceNested editResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StorageVersionMigrationSpecFluent that = (V1StorageVersionMigrationSpecFluent) o; + if (!(Objects.equals(resource, that.resource))) { + return false; + } + return true; + } + + public boolean hasResource() { + return this.resource != null; + } + + public int hashCode() { + return Objects.hash(resource); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + } + sb.append("}"); + return sb.toString(); + } + + public ResourceNested withNewResource() { + return new ResourceNested<>(null); + } + + public ResourceNested withNewResourceLike(V1GroupResource item) { + return new ResourceNested<>(item); + } + + public A withResource(V1GroupResource resource) { + this._visitables.remove("resource"); + if (resource != null) { + this.resource = new V1GroupResourceBuilder(resource); + this._visitables.get("resource").add(this.resource); + } else { + this._visitables.get("resource").remove(this.resource); + this.resource = null; + } + return (A) this; + } + public class ResourceNested extends V1GroupResourceFluent> implements Nested{ + + V1GroupResourceBuilder builder; + + ResourceNested(V1GroupResource item) { + this.builder = new V1GroupResourceBuilder(this, item); + } + + public N and() { + return (N) V1StorageVersionMigrationSpecFluent.this.withResource(builder.build()); + } + + public N endResource() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationStatusBuilder.java new file mode 100644 index 0000000000..50acdf5400 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationStatusBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1StorageVersionMigrationStatusBuilder extends V1StorageVersionMigrationStatusFluent implements VisitableBuilder{ + + V1StorageVersionMigrationStatusFluent fluent; + + public V1StorageVersionMigrationStatusBuilder() { + this(new V1StorageVersionMigrationStatus()); + } + + public V1StorageVersionMigrationStatusBuilder(V1StorageVersionMigrationStatusFluent fluent) { + this(fluent, new V1StorageVersionMigrationStatus()); + } + + public V1StorageVersionMigrationStatusBuilder(V1StorageVersionMigrationStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1StorageVersionMigrationStatusBuilder(V1StorageVersionMigrationStatusFluent fluent,V1StorageVersionMigrationStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1StorageVersionMigrationStatus build() { + V1StorageVersionMigrationStatus buildable = new V1StorageVersionMigrationStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setResourceVersion(fluent.getResourceVersion()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationStatusFluent.java new file mode 100644 index 0000000000..59a78a491d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationStatusFluent.java @@ -0,0 +1,335 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1StorageVersionMigrationStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private String resourceVersion; + + public V1StorageVersionMigrationStatusFluent() { + } + + public V1StorageVersionMigrationStatusFluent(V1StorageVersionMigrationStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested<>(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested<>(-1, item); + } + + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); + } + return (A) this; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + 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; + } + + protected void copyInstance(V1StorageVersionMigrationStatus instance) { + instance = instance != null ? instance : new V1StorageVersionMigrationStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withResourceVersion(instance.getResourceVersion()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StorageVersionMigrationStatusFluent that = (V1StorageVersionMigrationStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(resourceVersion, that.resourceVersion))) { + return false; + } + return true; + } + + public String getResourceVersion() { + return this.resourceVersion; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResourceVersion() { + return this.resourceVersion != null; + } + + public int hashCode() { + return Objects.hash(conditions, resourceVersion); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested<>(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(resourceVersion == null)) { + sb.append("resourceVersion:"); + sb.append(resourceVersion); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 A withResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return (A) this; + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1StorageVersionMigrationStatusFluent.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/V1SubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java index 5dde48f026..d75d861600 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SubjectAccessReviewBuilder extends V1SubjectAccessReviewFluent implements VisitableBuilder{ V1SubjectAccessReviewFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java index d749efaa60..f636556922 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SubjectAccessReviewFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SubjectAccessReviewFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SubjectAccessReviewFluent that = (V1SubjectAccessReviewFluent) o; + V1SubjectAccessReviewFluent that = (V1SubjectAccessReviewFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1SubjectAccessReviewSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1SubjectAccessReviewSpec spec) { this.spec = new V1SubjectAccessReviewSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1SubjectAccessReviewStatus status) { this.status = new V1SubjectAccessReviewStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java index 77d8796175..122c8e4f1b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SubjectAccessReviewSpecBuilder extends V1SubjectAccessReviewSpecFluent implements VisitableBuilder{ V1SubjectAccessReviewSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java index f23aa73afe..0873ec9cbf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SubjectAccessReviewSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SubjectAccessReviewSpecFluent> extends BaseFluent{ private Map> extra; private List groups; @@ -49,7 +51,7 @@ public V1SubjectAccessReviewSpecFluent(V1SubjectAccessReviewSpec instance) { public A addAllToGroups(Collection items) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } for (String item : items) { this.groups.add(item); @@ -59,7 +61,7 @@ public A addAllToGroups(Collection items) { public A addToExtra(Map> map) { if (this.extra == null && map != null) { - this.extra = new LinkedHashMap(); + this.extra = new LinkedHashMap<>(); } if (map != null) { this.extra.putAll(map); @@ -69,7 +71,7 @@ public A addToExtra(Map> map) { public A addToExtra(String key,List value) { if (this.extra == null && key != null && value != null) { - this.extra = new LinkedHashMap(); + this.extra = new LinkedHashMap<>(); } if (key != null && value != null) { this.extra.put(key, value); @@ -79,7 +81,7 @@ public A addToExtra(String key,List value) { public A addToGroups(String... items) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } for (String item : items) { this.groups.add(item); @@ -89,7 +91,7 @@ public A addToGroups(String... items) { public A addToGroups(int index,String item) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } this.groups.add(index, item); return (A) this; @@ -149,7 +151,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SubjectAccessReviewSpecFluent that = (V1SubjectAccessReviewSpecFluent) o; + V1SubjectAccessReviewSpecFluent that = (V1SubjectAccessReviewSpecFluent) o; if (!(Objects.equals(extra, that.extra))) { return false; } @@ -291,7 +293,7 @@ public A removeFromGroups(String... items) { public A setToGroups(int index,String item) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } this.groups.set(index, item); return (A) this; @@ -337,14 +339,14 @@ public A withExtra(Map> extra) { if (extra == null) { this.extra = null; } else { - this.extra = new LinkedHashMap(extra); + this.extra = new LinkedHashMap<>(extra); } return (A) this; } public A withGroups(List groups) { if (groups != null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); for (String item : groups) { this.addToGroups(item); } @@ -368,19 +370,19 @@ public A withGroups(String... groups) { } public NonResourceAttributesNested withNewNonResourceAttributes() { - return new NonResourceAttributesNested(null); + return new NonResourceAttributesNested<>(null); } public NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item) { - return new NonResourceAttributesNested(item); + return new NonResourceAttributesNested<>(item); } public ResourceAttributesNested withNewResourceAttributes() { - return new ResourceAttributesNested(null); + return new ResourceAttributesNested<>(null); } public ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item) { - return new ResourceAttributesNested(item); + return new ResourceAttributesNested<>(item); } public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { @@ -389,8 +391,8 @@ public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes this.nonResourceAttributes = new V1NonResourceAttributesBuilder(nonResourceAttributes); this._visitables.get("nonResourceAttributes").add(this.nonResourceAttributes); } else { - this.nonResourceAttributes = null; this._visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); + this.nonResourceAttributes = null; } return (A) this; } @@ -401,8 +403,8 @@ public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { this.resourceAttributes = new V1ResourceAttributesBuilder(resourceAttributes); this._visitables.get("resourceAttributes").add(this.resourceAttributes); } else { - this.resourceAttributes = null; this._visitables.get("resourceAttributes").remove(this.resourceAttributes); + this.resourceAttributes = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java index f144f56b6e..d73f5e4939 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SubjectAccessReviewStatusBuilder extends V1SubjectAccessReviewStatusFluent implements VisitableBuilder{ V1SubjectAccessReviewStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java index af852d77af..c5475a6e77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SubjectAccessReviewStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SubjectAccessReviewStatusFluent> extends BaseFluent{ private Boolean allowed; private Boolean denied; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SubjectAccessReviewStatusFluent that = (V1SubjectAccessReviewStatusFluent) o; + V1SubjectAccessReviewStatusFluent that = (V1SubjectAccessReviewStatusFluent) o; if (!(Objects.equals(allowed, that.allowed))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java index 7209828c45..74c39fc9da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SubjectRulesReviewStatusBuilder extends V1SubjectRulesReviewStatusFluent implements VisitableBuilder{ V1SubjectRulesReviewStatusFluent fluent; 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 3c69c5a3cf..621e5d2750 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 @@ -26,12 +26,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SubjectRulesReviewStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SubjectRulesReviewStatusFluent> extends BaseFluent{ private String evaluationError; private Boolean incomplete; @@ -47,7 +49,7 @@ public V1SubjectRulesReviewStatusFluent(V1SubjectRulesReviewStatus instance) { public A addAllToNonResourceRules(Collection items) { if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); + this.nonResourceRules = new ArrayList<>(); } for (V1NonResourceRule item : items) { V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); @@ -59,7 +61,7 @@ public A addAllToNonResourceRules(Collection items) { public A addAllToResourceRules(Collection items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } for (V1ResourceRule item : items) { V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); @@ -70,24 +72,24 @@ public A addAllToResourceRules(Collection items) { } public NonResourceRulesNested addNewNonResourceRule() { - return new NonResourceRulesNested(-1, null); + return new NonResourceRulesNested<>(-1, null); } public NonResourceRulesNested addNewNonResourceRuleLike(V1NonResourceRule item) { - return new NonResourceRulesNested(-1, item); + return new NonResourceRulesNested<>(-1, item); } public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); + return new ResourceRulesNested<>(-1, null); } public ResourceRulesNested addNewResourceRuleLike(V1ResourceRule item) { - return new ResourceRulesNested(-1, item); + return new ResourceRulesNested<>(-1, item); } public A addToNonResourceRules(V1NonResourceRule... items) { if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); + this.nonResourceRules = new ArrayList<>(); } for (V1NonResourceRule item : items) { V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); @@ -99,7 +101,7 @@ public A addToNonResourceRules(V1NonResourceRule... items) { public A addToNonResourceRules(int index,V1NonResourceRule item) { if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); + this.nonResourceRules = new ArrayList<>(); } V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); if (index < 0 || index >= this.nonResourceRules.size()) { @@ -114,7 +116,7 @@ public A addToNonResourceRules(int index,V1NonResourceRule item) { public A addToResourceRules(V1ResourceRule... items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } for (V1ResourceRule item : items) { V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); @@ -126,7 +128,7 @@ public A addToResourceRules(V1ResourceRule... items) { public A addToResourceRules(int index,V1ResourceRule item) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); if (index < 0 || index >= this.resourceRules.size()) { @@ -281,7 +283,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SubjectRulesReviewStatusFluent that = (V1SubjectRulesReviewStatusFluent) o; + V1SubjectRulesReviewStatusFluent that = (V1SubjectRulesReviewStatusFluent) o; if (!(Objects.equals(evaluationError, that.evaluationError))) { return false; } @@ -396,6 +398,7 @@ public A removeMatchingFromNonResourceRules(Predicate return (A) this; } Iterator each = nonResourceRules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("nonResourceRules"); while (each.hasNext()) { V1NonResourceRuleBuilder builder = each.next(); @@ -412,6 +415,7 @@ public A removeMatchingFromResourceRules(Predicate predic return (A) this; } Iterator each = resourceRules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resourceRules"); while (each.hasNext()) { V1ResourceRuleBuilder builder = each.next(); @@ -424,16 +428,16 @@ public A removeMatchingFromResourceRules(Predicate predic } public NonResourceRulesNested setNewNonResourceRuleLike(int index,V1NonResourceRule item) { - return new NonResourceRulesNested(index, item); + return new NonResourceRulesNested<>(index, item); } public ResourceRulesNested setNewResourceRuleLike(int index,V1ResourceRule item) { - return new ResourceRulesNested(index, item); + return new ResourceRulesNested<>(index, item); } public A setToNonResourceRules(int index,V1NonResourceRule item) { if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); + this.nonResourceRules = new ArrayList<>(); } V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); if (index < 0 || index >= this.nonResourceRules.size()) { @@ -448,7 +452,7 @@ public A setToNonResourceRules(int index,V1NonResourceRule item) { public A setToResourceRules(int index,V1ResourceRule item) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); if (index < 0 || index >= this.resourceRules.size()) { @@ -506,7 +510,7 @@ public A withNonResourceRules(List nonResourceRules) { this._visitables.get("nonResourceRules").clear(); } if (nonResourceRules != null) { - this.nonResourceRules = new ArrayList(); + this.nonResourceRules = new ArrayList<>(); for (V1NonResourceRule item : nonResourceRules) { this.addToNonResourceRules(item); } @@ -534,7 +538,7 @@ public A withResourceRules(List resourceRules) { this._visitables.get("resourceRules").clear(); } if (resourceRules != null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); for (V1ResourceRule item : resourceRules) { this.addToResourceRules(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java index ff5f3d589b..2a367ae3f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SuccessPolicyBuilder extends V1SuccessPolicyFluent implements VisitableBuilder{ V1SuccessPolicyFluent fluent; 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 66417d9fca..bf82108762 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SuccessPolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SuccessPolicyFluent> extends BaseFluent{ private ArrayList rules; @@ -43,7 +45,7 @@ public V1SuccessPolicyFluent(V1SuccessPolicy instance) { public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1SuccessPolicyRule item : items) { V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); @@ -54,16 +56,16 @@ public A addAllToRules(Collection items) { } public RulesNested addNewRule() { - return new RulesNested(-1, null); + return new RulesNested<>(-1, null); } public RulesNested addNewRuleLike(V1SuccessPolicyRule item) { - return new RulesNested(-1, item); + return new RulesNested<>(-1, item); } public A addToRules(V1SuccessPolicyRule... items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1SuccessPolicyRule item : items) { V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); @@ -75,7 +77,7 @@ public A addToRules(V1SuccessPolicyRule... items) { public A addToRules(int index,V1SuccessPolicyRule item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SuccessPolicyFluent that = (V1SuccessPolicyFluent) o; + V1SuccessPolicyFluent that = (V1SuccessPolicyFluent) o; if (!(Objects.equals(rules, that.rules))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromRules(Predicate predicate return (A) this; } Iterator each = rules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1SuccessPolicyRuleBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromRules(Predicate predicate } public RulesNested setNewRuleLike(int index,V1SuccessPolicyRule item) { - return new RulesNested(index, item); + return new RulesNested<>(index, item); } public A setToRules(int index,V1SuccessPolicyRule item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -265,7 +268,7 @@ public A withRules(List rules) { this._visitables.get("rules").clear(); } if (rules != null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); for (V1SuccessPolicyRule item : rules) { this.addToRules(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java index bc517a5a73..749bc013a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SuccessPolicyRuleBuilder extends V1SuccessPolicyRuleFluent implements VisitableBuilder{ V1SuccessPolicyRuleFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java index d9187fddba..3a346739bf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SuccessPolicyRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SuccessPolicyRuleFluent> extends BaseFluent{ private Integer succeededCount; private String succeededIndexes; @@ -54,7 +56,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SuccessPolicyRuleFluent that = (V1SuccessPolicyRuleFluent) o; + V1SuccessPolicyRuleFluent that = (V1SuccessPolicyRuleFluent) o; if (!(Objects.equals(succeededCount, that.succeededCount))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java index 9722a9c160..6f4f3e2b83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1SysctlBuilder extends V1SysctlFluent implements VisitableBuilder{ V1SysctlFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java index 7c974d80d2..dafb112d58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1SysctlFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1SysctlFluent> extends BaseFluent{ private String name; private String value; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1SysctlFluent that = (V1SysctlFluent) o; + V1SysctlFluent that = (V1SysctlFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java index 406708fd71..849f417d10 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TCPSocketActionBuilder extends V1TCPSocketActionFluent implements VisitableBuilder{ V1TCPSocketActionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java index 338a33adbb..e6d13081b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TCPSocketActionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TCPSocketActionFluent> extends BaseFluent{ private String host; private IntOrString port; @@ -54,7 +56,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TCPSocketActionFluent that = (V1TCPSocketActionFluent) o; + V1TCPSocketActionFluent that = (V1TCPSocketActionFluent) o; if (!(Objects.equals(host, that.host))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java index f8f1196969..d624377317 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TaintBuilder extends V1TaintFluent implements VisitableBuilder{ V1TaintFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java index f3e84dea6e..94238e66c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TaintFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TaintFluent> extends BaseFluent{ private String effect; private String key; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TaintFluent that = (V1TaintFluent) o; + V1TaintFluent that = (V1TaintFluent) o; if (!(Objects.equals(effect, that.effect))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java index aea0124f43..df46442e2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TokenRequestSpecBuilder extends V1TokenRequestSpecFluent implements VisitableBuilder{ V1TokenRequestSpecFluent fluent; @@ -38,6 +39,7 @@ public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent,V1TokenReque public V1TokenRequestSpec build() { V1TokenRequestSpec buildable = new V1TokenRequestSpec(); + buildable.setAttestations(fluent.getAttestations()); buildable.setAudiences(fluent.getAudiences()); buildable.setBoundObjectRef(fluent.buildBoundObjectRef()); buildable.setExpirationSeconds(fluent.getExpirationSeconds()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java index 49723bbc03..46c5063d5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java @@ -21,17 +21,22 @@ import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; +import java.util.LinkedHashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TokenRequestSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TokenRequestSpecFluent> extends BaseFluent{ + private Map> attestations; private List audiences; private V1BoundObjectReferenceBuilder boundObjectRef; private Long expirationSeconds; @@ -45,7 +50,7 @@ public V1TokenRequestSpecFluent(V1TokenRequestSpec instance) { public A addAllToAudiences(Collection items) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } for (String item : items) { this.audiences.add(item); @@ -53,9 +58,29 @@ public A addAllToAudiences(Collection items) { return (A) this; } + public A addToAttestations(Map> map) { + if (this.attestations == null && map != null) { + this.attestations = new LinkedHashMap<>(); + } + if (map != null) { + this.attestations.putAll(map); + } + return (A) this; + } + + public A addToAttestations(String key,List value) { + if (this.attestations == null && key != null && value != null) { + this.attestations = new LinkedHashMap<>(); + } + if (key != null && value != null) { + this.attestations.put(key, value); + } + return (A) this; + } + public A addToAudiences(String... items) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } for (String item : items) { this.audiences.add(item); @@ -65,7 +90,7 @@ public A addToAudiences(String... items) { public A addToAudiences(int index,String item) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } this.audiences.add(index, item); return (A) this; @@ -78,6 +103,7 @@ public V1BoundObjectReference buildBoundObjectRef() { protected void copyInstance(V1TokenRequestSpec instance) { instance = instance != null ? instance : new V1TokenRequestSpec(); if (instance != null) { + this.withAttestations(instance.getAttestations()); this.withAudiences(instance.getAudiences()); this.withBoundObjectRef(instance.getBoundObjectRef()); this.withExpirationSeconds(instance.getExpirationSeconds()); @@ -106,7 +132,10 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TokenRequestSpecFluent that = (V1TokenRequestSpecFluent) o; + V1TokenRequestSpecFluent that = (V1TokenRequestSpecFluent) o; + if (!(Objects.equals(attestations, that.attestations))) { + return false; + } if (!(Objects.equals(audiences, that.audiences))) { return false; } @@ -119,6 +148,10 @@ public boolean equals(Object o) { return true; } + public Map> getAttestations() { + return this.attestations; + } + public String getAudience(int index) { return this.audiences.get(index); } @@ -148,6 +181,10 @@ public String getMatchingAudience(Predicate predicate) { return null; } + public boolean hasAttestations() { + return this.attestations != null; + } + public boolean hasAudiences() { return this.audiences != null && !(this.audiences.isEmpty()); } @@ -170,7 +207,7 @@ public boolean hasMatchingAudience(Predicate predicate) { } public int hashCode() { - return Objects.hash(audiences, boundObjectRef, expirationSeconds); + return Objects.hash(attestations, audiences, boundObjectRef, expirationSeconds); } public A removeAllFromAudiences(Collection items) { @@ -183,6 +220,30 @@ public A removeAllFromAudiences(Collection items) { return (A) this; } + public A removeFromAttestations(String key) { + if (this.attestations == null) { + return (A) this; + } + if (key != null && this.attestations != null) { + this.attestations.remove(key); + } + return (A) this; + } + + public A removeFromAttestations(Map> map) { + if (this.attestations == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.attestations != null) { + this.attestations.remove(key); + } + } + } + return (A) this; + } + public A removeFromAudiences(String... items) { if (this.audiences == null) { return (A) this; @@ -195,7 +256,7 @@ public A removeFromAudiences(String... items) { public A setToAudiences(int index,String item) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } this.audiences.set(index, item); return (A) this; @@ -204,6 +265,11 @@ public A setToAudiences(int index,String item) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (!(attestations == null) && !(attestations.isEmpty())) { + sb.append("attestations:"); + sb.append(attestations); + sb.append(","); + } if (!(audiences == null) && !(audiences.isEmpty())) { sb.append("audiences:"); sb.append(audiences); @@ -222,9 +288,18 @@ public String toString() { return sb.toString(); } + public A withAttestations(Map> attestations) { + if (attestations == null) { + this.attestations = null; + } else { + this.attestations = new LinkedHashMap<>(attestations); + } + return (A) this; + } + public A withAudiences(List audiences) { if (audiences != null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); for (String item : audiences) { this.addToAudiences(item); } @@ -253,8 +328,8 @@ public A withBoundObjectRef(V1BoundObjectReference boundObjectRef) { this.boundObjectRef = new V1BoundObjectReferenceBuilder(boundObjectRef); this._visitables.get("boundObjectRef").add(this.boundObjectRef); } else { - this.boundObjectRef = null; this._visitables.get("boundObjectRef").remove(this.boundObjectRef); + this.boundObjectRef = null; } return (A) this; } @@ -265,11 +340,11 @@ public A withExpirationSeconds(Long expirationSeconds) { } public BoundObjectRefNested withNewBoundObjectRef() { - return new BoundObjectRefNested(null); + return new BoundObjectRefNested<>(null); } public BoundObjectRefNested withNewBoundObjectRefLike(V1BoundObjectReference item) { - return new BoundObjectRefNested(item); + return new BoundObjectRefNested<>(item); } public class BoundObjectRefNested extends V1BoundObjectReferenceFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java index 3eccf074af..fd8d681067 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TokenRequestStatusBuilder extends V1TokenRequestStatusFluent implements VisitableBuilder{ V1TokenRequestStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java index dd457df77c..ad54887d8b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TokenRequestStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TokenRequestStatusFluent> extends BaseFluent{ private OffsetDateTime expirationTimestamp; private String token; @@ -54,7 +56,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TokenRequestStatusFluent that = (V1TokenRequestStatusFluent) o; + V1TokenRequestStatusFluent that = (V1TokenRequestStatusFluent) o; if (!(Objects.equals(expirationTimestamp, that.expirationTimestamp))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java index 423bdd2cdb..d7746f1e02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TokenReviewBuilder extends V1TokenReviewFluent implements VisitableBuilder{ V1TokenReviewFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java index 9d591376db..d26a484ab3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TokenReviewFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TokenReviewFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TokenReviewFluent that = (V1TokenReviewFluent) o; + V1TokenReviewFluent that = (V1TokenReviewFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1TokenReviewSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1TokenReviewStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1TokenReviewSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1TokenReviewSpec spec) { this.spec = new V1TokenReviewSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1TokenReviewStatus status) { this.status = new V1TokenReviewStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java index 82fd290ec7..56bb48dc79 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TokenReviewSpecBuilder extends V1TokenReviewSpecFluent implements VisitableBuilder{ V1TokenReviewSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java index 74613dfde3..f64d29bf24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TokenReviewSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TokenReviewSpecFluent> extends BaseFluent{ private List audiences; private String token; @@ -41,7 +43,7 @@ public V1TokenReviewSpecFluent(V1TokenReviewSpec instance) { public A addAllToAudiences(Collection items) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } for (String item : items) { this.audiences.add(item); @@ -51,7 +53,7 @@ public A addAllToAudiences(Collection items) { public A addToAudiences(String... items) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } for (String item : items) { this.audiences.add(item); @@ -61,7 +63,7 @@ public A addToAudiences(String... items) { public A addToAudiences(int index,String item) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } this.audiences.add(index, item); return (A) this; @@ -85,7 +87,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TokenReviewSpecFluent that = (V1TokenReviewSpecFluent) o; + V1TokenReviewSpecFluent that = (V1TokenReviewSpecFluent) o; if (!(Objects.equals(audiences, that.audiences))) { return false; } @@ -167,7 +169,7 @@ public A removeFromAudiences(String... items) { public A setToAudiences(int index,String item) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } this.audiences.set(index, item); return (A) this; @@ -191,7 +193,7 @@ public String toString() { public A withAudiences(List audiences) { if (audiences != null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); for (String item : audiences) { this.addToAudiences(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java index 9a2acc4876..337ceeb95d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TokenReviewStatusBuilder extends V1TokenReviewStatusFluent implements VisitableBuilder{ V1TokenReviewStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java index 0d52a434c7..b9f954f87f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java @@ -25,12 +25,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TokenReviewStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TokenReviewStatusFluent> extends BaseFluent{ private List audiences; private Boolean authenticated; @@ -46,7 +48,7 @@ public V1TokenReviewStatusFluent(V1TokenReviewStatus instance) { public A addAllToAudiences(Collection items) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } for (String item : items) { this.audiences.add(item); @@ -56,7 +58,7 @@ public A addAllToAudiences(Collection items) { public A addToAudiences(String... items) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } for (String item : items) { this.audiences.add(item); @@ -66,7 +68,7 @@ public A addToAudiences(String... items) { public A addToAudiences(int index,String item) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } this.audiences.add(index, item); return (A) this; @@ -108,7 +110,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TokenReviewStatusFluent that = (V1TokenReviewStatusFluent) o; + V1TokenReviewStatusFluent that = (V1TokenReviewStatusFluent) o; if (!(Objects.equals(audiences, that.audiences))) { return false; } @@ -208,7 +210,7 @@ public A removeFromAudiences(String... items) { public A setToAudiences(int index,String item) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } this.audiences.set(index, item); return (A) this; @@ -242,7 +244,7 @@ public String toString() { public A withAudiences(List audiences) { if (audiences != null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); for (String item : audiences) { this.addToAudiences(item); } @@ -280,11 +282,11 @@ public A withError(String error) { } public UserNested withNewUser() { - return new UserNested(null); + return new UserNested<>(null); } public UserNested withNewUserLike(V1UserInfo item) { - return new UserNested(item); + return new UserNested<>(item); } public A withUser(V1UserInfo user) { @@ -293,8 +295,8 @@ public A withUser(V1UserInfo user) { this.user = new V1UserInfoBuilder(user); this._visitables.get("user").add(this.user); } else { - this.user = null; this._visitables.get("user").remove(this.user); + this.user = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java index a5a84e7836..f21b6b565a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TolerationBuilder extends V1TolerationFluent implements VisitableBuilder{ V1TolerationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java index 42e8f370b0..6e65ea979e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TolerationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TolerationFluent> extends BaseFluent{ private String effect; private String key; @@ -60,7 +62,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TolerationFluent that = (V1TolerationFluent) o; + V1TolerationFluent that = (V1TolerationFluent) o; if (!(Objects.equals(effect, that.effect))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java index 9762a2d4b2..6ec456f757 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TopologySelectorLabelRequirementBuilder extends V1TopologySelectorLabelRequirementFluent implements VisitableBuilder{ V1TopologySelectorLabelRequirementFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java index 16e78f6c6e..0682702f0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TopologySelectorLabelRequirementFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TopologySelectorLabelRequirementFluent> extends BaseFluent{ private String key; private List values; @@ -41,7 +43,7 @@ public V1TopologySelectorLabelRequirementFluent(V1TopologySelectorLabelRequireme public A addAllToValues(Collection items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (String item : items) { this.values.add(item); @@ -51,7 +53,7 @@ public A addAllToValues(Collection items) { public A addToValues(String... items) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } for (String item : items) { this.values.add(item); @@ -61,7 +63,7 @@ public A addToValues(String... items) { public A addToValues(int index,String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.add(index, item); return (A) this; @@ -85,7 +87,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TopologySelectorLabelRequirementFluent that = (V1TopologySelectorLabelRequirementFluent) o; + V1TopologySelectorLabelRequirementFluent that = (V1TopologySelectorLabelRequirementFluent) o; if (!(Objects.equals(key, that.key))) { return false; } @@ -167,7 +169,7 @@ public A removeFromValues(String... items) { public A setToValues(int index,String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.set(index, item); return (A) this; @@ -196,7 +198,7 @@ public A withKey(String key) { public A withValues(List values) { if (values != null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); for (String item : values) { this.addToValues(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java index f5d4e3ac54..2d5499e199 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TopologySelectorTermBuilder extends V1TopologySelectorTermFluent implements VisitableBuilder{ V1TopologySelectorTermFluent fluent; 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 759ba76dc6..35dbf1817f 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TopologySelectorTermFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TopologySelectorTermFluent> extends BaseFluent{ private ArrayList matchLabelExpressions; @@ -43,7 +45,7 @@ public V1TopologySelectorTermFluent(V1TopologySelectorTerm instance) { public A addAllToMatchLabelExpressions(Collection items) { if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = new ArrayList(); + this.matchLabelExpressions = new ArrayList<>(); } for (V1TopologySelectorLabelRequirement item : items) { V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); @@ -54,16 +56,16 @@ public A addAllToMatchLabelExpressions(Collection addNewMatchLabelExpression() { - return new MatchLabelExpressionsNested(-1, null); + return new MatchLabelExpressionsNested<>(-1, null); } public MatchLabelExpressionsNested addNewMatchLabelExpressionLike(V1TopologySelectorLabelRequirement item) { - return new MatchLabelExpressionsNested(-1, item); + return new MatchLabelExpressionsNested<>(-1, item); } public A addToMatchLabelExpressions(V1TopologySelectorLabelRequirement... items) { if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = new ArrayList(); + this.matchLabelExpressions = new ArrayList<>(); } for (V1TopologySelectorLabelRequirement item : items) { V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); @@ -75,7 +77,7 @@ public A addToMatchLabelExpressions(V1TopologySelectorLabelRequirement... items) public A addToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement item) { if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = new ArrayList(); + this.matchLabelExpressions = new ArrayList<>(); } V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); if (index < 0 || index >= this.matchLabelExpressions.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TopologySelectorTermFluent that = (V1TopologySelectorTermFluent) o; + V1TopologySelectorTermFluent that = (V1TopologySelectorTermFluent) o; if (!(Objects.equals(matchLabelExpressions, that.matchLabelExpressions))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromMatchLabelExpressions(Predicate each = matchLabelExpressions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("matchLabelExpressions"); while (each.hasNext()) { V1TopologySelectorLabelRequirementBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromMatchLabelExpressions(Predicate setNewMatchLabelExpressionLike(int index,V1TopologySelectorLabelRequirement item) { - return new MatchLabelExpressionsNested(index, item); + return new MatchLabelExpressionsNested<>(index, item); } public A setToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement item) { if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = new ArrayList(); + this.matchLabelExpressions = new ArrayList<>(); } V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); if (index < 0 || index >= this.matchLabelExpressions.size()) { @@ -265,7 +268,7 @@ public A withMatchLabelExpressions(List matc this._visitables.get("matchLabelExpressions").clear(); } if (matchLabelExpressions != null) { - this.matchLabelExpressions = new ArrayList(); + this.matchLabelExpressions = new ArrayList<>(); for (V1TopologySelectorLabelRequirement item : matchLabelExpressions) { this.addToMatchLabelExpressions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java index 5ed5b6f5a4..b2d5c8f7ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TopologySpreadConstraintBuilder extends V1TopologySpreadConstraintFluent implements VisitableBuilder{ V1TopologySpreadConstraintFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java index d6e47c5857..64f324663f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java @@ -25,12 +25,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TopologySpreadConstraintFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TopologySpreadConstraintFluent> extends BaseFluent{ private V1LabelSelectorBuilder labelSelector; private List matchLabelKeys; @@ -50,7 +52,7 @@ public V1TopologySpreadConstraintFluent(V1TopologySpreadConstraint instance) { public A addAllToMatchLabelKeys(Collection items) { if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + this.matchLabelKeys = new ArrayList<>(); } for (String item : items) { this.matchLabelKeys.add(item); @@ -60,7 +62,7 @@ public A addAllToMatchLabelKeys(Collection items) { public A addToMatchLabelKeys(String... items) { if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + this.matchLabelKeys = new ArrayList<>(); } for (String item : items) { this.matchLabelKeys.add(item); @@ -70,7 +72,7 @@ public A addToMatchLabelKeys(String... items) { public A addToMatchLabelKeys(int index,String item) { if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + this.matchLabelKeys = new ArrayList<>(); } this.matchLabelKeys.add(index, item); return (A) this; @@ -116,7 +118,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TopologySpreadConstraintFluent that = (V1TopologySpreadConstraintFluent) o; + V1TopologySpreadConstraintFluent that = (V1TopologySpreadConstraintFluent) o; if (!(Objects.equals(labelSelector, that.labelSelector))) { return false; } @@ -260,7 +262,7 @@ public A removeFromMatchLabelKeys(String... items) { public A setToMatchLabelKeys(int index,String item) { if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + this.matchLabelKeys = new ArrayList<>(); } this.matchLabelKeys.set(index, item); return (A) this; @@ -318,15 +320,15 @@ public A withLabelSelector(V1LabelSelector labelSelector) { this.labelSelector = new V1LabelSelectorBuilder(labelSelector); this._visitables.get("labelSelector").add(this.labelSelector); } else { - this.labelSelector = null; this._visitables.get("labelSelector").remove(this.labelSelector); + this.labelSelector = null; } return (A) this; } public A withMatchLabelKeys(List matchLabelKeys) { if (matchLabelKeys != null) { - this.matchLabelKeys = new ArrayList(); + this.matchLabelKeys = new ArrayList<>(); for (String item : matchLabelKeys) { this.addToMatchLabelKeys(item); } @@ -360,11 +362,11 @@ public A withMinDomains(Integer minDomains) { } public LabelSelectorNested withNewLabelSelector() { - return new LabelSelectorNested(null); + return new LabelSelectorNested<>(null); } public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { - return new LabelSelectorNested(item); + return new LabelSelectorNested<>(item); } public A withNodeAffinityPolicy(String nodeAffinityPolicy) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java index 46035d251d..6344c56733 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TypeCheckingBuilder extends V1TypeCheckingFluent implements VisitableBuilder{ V1TypeCheckingFluent fluent; 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 58f31bffb5..7f93a5363e 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TypeCheckingFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TypeCheckingFluent> extends BaseFluent{ private ArrayList expressionWarnings; @@ -43,7 +45,7 @@ public V1TypeCheckingFluent(V1TypeChecking instance) { public A addAllToExpressionWarnings(Collection items) { if (this.expressionWarnings == null) { - this.expressionWarnings = new ArrayList(); + this.expressionWarnings = new ArrayList<>(); } for (V1ExpressionWarning item : items) { V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); @@ -54,16 +56,16 @@ public A addAllToExpressionWarnings(Collection items) { } public ExpressionWarningsNested addNewExpressionWarning() { - return new ExpressionWarningsNested(-1, null); + return new ExpressionWarningsNested<>(-1, null); } public ExpressionWarningsNested addNewExpressionWarningLike(V1ExpressionWarning item) { - return new ExpressionWarningsNested(-1, item); + return new ExpressionWarningsNested<>(-1, item); } public A addToExpressionWarnings(V1ExpressionWarning... items) { if (this.expressionWarnings == null) { - this.expressionWarnings = new ArrayList(); + this.expressionWarnings = new ArrayList<>(); } for (V1ExpressionWarning item : items) { V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); @@ -75,7 +77,7 @@ public A addToExpressionWarnings(V1ExpressionWarning... items) { public A addToExpressionWarnings(int index,V1ExpressionWarning item) { if (this.expressionWarnings == null) { - this.expressionWarnings = new ArrayList(); + this.expressionWarnings = new ArrayList<>(); } V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); if (index < 0 || index >= this.expressionWarnings.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TypeCheckingFluent that = (V1TypeCheckingFluent) o; + V1TypeCheckingFluent that = (V1TypeCheckingFluent) o; if (!(Objects.equals(expressionWarnings, that.expressionWarnings))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromExpressionWarnings(Predicate each = expressionWarnings.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("expressionWarnings"); while (each.hasNext()) { V1ExpressionWarningBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromExpressionWarnings(Predicate setNewExpressionWarningLike(int index,V1ExpressionWarning item) { - return new ExpressionWarningsNested(index, item); + return new ExpressionWarningsNested<>(index, item); } public A setToExpressionWarnings(int index,V1ExpressionWarning item) { if (this.expressionWarnings == null) { - this.expressionWarnings = new ArrayList(); + this.expressionWarnings = new ArrayList<>(); } V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); if (index < 0 || index >= this.expressionWarnings.size()) { @@ -265,7 +268,7 @@ public A withExpressionWarnings(List expressionWarnings) { this._visitables.get("expressionWarnings").clear(); } if (expressionWarnings != null) { - this.expressionWarnings = new ArrayList(); + this.expressionWarnings = new ArrayList<>(); for (V1ExpressionWarning item : expressionWarnings) { this.addToExpressionWarnings(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java index e0904a22fe..11b4ea4a0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TypedLocalObjectReferenceBuilder extends V1TypedLocalObjectReferenceFluent implements VisitableBuilder{ V1TypedLocalObjectReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java index b2cbe85d15..4a0976bc41 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TypedLocalObjectReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TypedLocalObjectReferenceFluent> extends BaseFluent{ private String apiGroup; private String kind; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TypedLocalObjectReferenceFluent that = (V1TypedLocalObjectReferenceFluent) o; + V1TypedLocalObjectReferenceFluent that = (V1TypedLocalObjectReferenceFluent) o; if (!(Objects.equals(apiGroup, that.apiGroup))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java index 3dd600e9a9..1760857258 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1TypedObjectReferenceBuilder extends V1TypedObjectReferenceFluent implements VisitableBuilder{ V1TypedObjectReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java index 5b8be3e34f..e86c7a6092 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1TypedObjectReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1TypedObjectReferenceFluent> extends BaseFluent{ private String apiGroup; private String kind; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1TypedObjectReferenceFluent that = (V1TypedObjectReferenceFluent) o; + V1TypedObjectReferenceFluent that = (V1TypedObjectReferenceFluent) o; if (!(Objects.equals(apiGroup, that.apiGroup))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java index 21116b0a97..0d50e203b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1UncountedTerminatedPodsBuilder extends V1UncountedTerminatedPodsFluent implements VisitableBuilder{ V1UncountedTerminatedPodsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java index d6358b888a..f2711607a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1UncountedTerminatedPodsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1UncountedTerminatedPodsFluent> extends BaseFluent{ private List failed; private List succeeded; @@ -41,7 +43,7 @@ public V1UncountedTerminatedPodsFluent(V1UncountedTerminatedPods instance) { public A addAllToFailed(Collection items) { if (this.failed == null) { - this.failed = new ArrayList(); + this.failed = new ArrayList<>(); } for (String item : items) { this.failed.add(item); @@ -51,7 +53,7 @@ public A addAllToFailed(Collection items) { public A addAllToSucceeded(Collection items) { if (this.succeeded == null) { - this.succeeded = new ArrayList(); + this.succeeded = new ArrayList<>(); } for (String item : items) { this.succeeded.add(item); @@ -61,7 +63,7 @@ public A addAllToSucceeded(Collection items) { public A addToFailed(String... items) { if (this.failed == null) { - this.failed = new ArrayList(); + this.failed = new ArrayList<>(); } for (String item : items) { this.failed.add(item); @@ -71,7 +73,7 @@ public A addToFailed(String... items) { public A addToFailed(int index,String item) { if (this.failed == null) { - this.failed = new ArrayList(); + this.failed = new ArrayList<>(); } this.failed.add(index, item); return (A) this; @@ -79,7 +81,7 @@ public A addToFailed(int index,String item) { public A addToSucceeded(String... items) { if (this.succeeded == null) { - this.succeeded = new ArrayList(); + this.succeeded = new ArrayList<>(); } for (String item : items) { this.succeeded.add(item); @@ -89,7 +91,7 @@ public A addToSucceeded(String... items) { public A addToSucceeded(int index,String item) { if (this.succeeded == null) { - this.succeeded = new ArrayList(); + this.succeeded = new ArrayList<>(); } this.succeeded.add(index, item); return (A) this; @@ -113,7 +115,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1UncountedTerminatedPodsFluent that = (V1UncountedTerminatedPodsFluent) o; + V1UncountedTerminatedPodsFluent that = (V1UncountedTerminatedPodsFluent) o; if (!(Objects.equals(failed, that.failed))) { return false; } @@ -245,7 +247,7 @@ public A removeFromSucceeded(String... items) { public A setToFailed(int index,String item) { if (this.failed == null) { - this.failed = new ArrayList(); + this.failed = new ArrayList<>(); } this.failed.set(index, item); return (A) this; @@ -253,7 +255,7 @@ public A setToFailed(int index,String item) { public A setToSucceeded(int index,String item) { if (this.succeeded == null) { - this.succeeded = new ArrayList(); + this.succeeded = new ArrayList<>(); } this.succeeded.set(index, item); return (A) this; @@ -277,7 +279,7 @@ public String toString() { public A withFailed(List failed) { if (failed != null) { - this.failed = new ArrayList(); + this.failed = new ArrayList<>(); for (String item : failed) { this.addToFailed(item); } @@ -302,7 +304,7 @@ public A withFailed(String... failed) { public A withSucceeded(List succeeded) { if (succeeded != null) { - this.succeeded = new ArrayList(); + this.succeeded = new ArrayList<>(); for (String item : succeeded) { this.addToSucceeded(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java index b6f277458b..ed013a3f3e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1UserInfoBuilder extends V1UserInfoFluent implements VisitableBuilder{ V1UserInfoFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java index 54c6ece983..8ec45aab18 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java @@ -24,12 +24,14 @@ import java.util.Map; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1UserInfoFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1UserInfoFluent> extends BaseFluent{ private Map> extra; private List groups; @@ -45,7 +47,7 @@ public V1UserInfoFluent(V1UserInfo instance) { public A addAllToGroups(Collection items) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } for (String item : items) { this.groups.add(item); @@ -55,7 +57,7 @@ public A addAllToGroups(Collection items) { public A addToExtra(Map> map) { if (this.extra == null && map != null) { - this.extra = new LinkedHashMap(); + this.extra = new LinkedHashMap<>(); } if (map != null) { this.extra.putAll(map); @@ -65,7 +67,7 @@ public A addToExtra(Map> map) { public A addToExtra(String key,List value) { if (this.extra == null && key != null && value != null) { - this.extra = new LinkedHashMap(); + this.extra = new LinkedHashMap<>(); } if (key != null && value != null) { this.extra.put(key, value); @@ -75,7 +77,7 @@ public A addToExtra(String key,List value) { public A addToGroups(String... items) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } for (String item : items) { this.groups.add(item); @@ -85,7 +87,7 @@ public A addToGroups(String... items) { public A addToGroups(int index,String item) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } this.groups.add(index, item); return (A) this; @@ -111,7 +113,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1UserInfoFluent that = (V1UserInfoFluent) o; + V1UserInfoFluent that = (V1UserInfoFluent) o; if (!(Objects.equals(extra, that.extra))) { return false; } @@ -239,7 +241,7 @@ public A removeFromGroups(String... items) { public A setToGroups(int index,String item) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } this.groups.set(index, item); return (A) this; @@ -275,14 +277,14 @@ public A withExtra(Map> extra) { if (extra == null) { this.extra = null; } else { - this.extra = new LinkedHashMap(extra); + this.extra = new LinkedHashMap<>(extra); } return (A) this; } public A withGroups(List groups) { if (groups != null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); for (String item : groups) { this.addToGroups(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java index 97d6e5b1b7..5d3c319e1d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1UserSubjectBuilder extends V1UserSubjectFluent implements VisitableBuilder{ V1UserSubjectFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java index ea08b15319..c07db5d89f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1UserSubjectFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1UserSubjectFluent> extends BaseFluent{ private String name; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1UserSubjectFluent that = (V1UserSubjectFluent) o; + V1UserSubjectFluent that = (V1UserSubjectFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java index e5c0499327..79eacd6019 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ValidatingAdmissionPolicyBindingBuilder extends V1ValidatingAdmissionPolicyBindingFluent implements VisitableBuilder{ V1ValidatingAdmissionPolicyBindingFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java index 94aec02678..b0aa8f8bde 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyBindingFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ValidatingAdmissionPolicyBindingFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ValidatingAdmissionPolicyBindingFluent that = (V1ValidatingAdmissionPolicyBindingFluent) o; + V1ValidatingAdmissionPolicyBindingFluent that = (V1ValidatingAdmissionPolicyBindingFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1ValidatingAdmissionPolicyBindingSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1ValidatingAdmissionPolicyBindingSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1ValidatingAdmissionPolicyBindingSpec spec) { this.spec = new V1ValidatingAdmissionPolicyBindingSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java index fa52ecff89..bf63e2d3b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ValidatingAdmissionPolicyBindingListBuilder extends V1ValidatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ V1ValidatingAdmissionPolicyBindingListFluent fluent; 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 4c8e22a65c..923d57dec1 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyBindingListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ValidatingAdmissionPolicyBindingListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ValidatingAdmissionPolicyBindingListFluent(V1ValidatingAdmissionPolicyB public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ValidatingAdmissionPolicyBinding item : items) { V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ValidatingAdmissionPolicyBinding item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ValidatingAdmissionPolicyBinding... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ValidatingAdmissionPolicyBinding item : items) { V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ValidatingAdmissionPolicyBinding... items) { public A addToItems(int index,V1ValidatingAdmissionPolicyBinding item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ValidatingAdmissionPolicyBindingListFluent that = (V1ValidatingAdmissionPolicyBindingListFluent) o; + V1ValidatingAdmissionPolicyBindingListFluent that = (V1ValidatingAdmissionPolicyBindingListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ValidatingAdmissionPolicyBindingBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate setNewItemLike(int index,V1ValidatingAdmissionPolicyBinding item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ValidatingAdmissionPolicyBinding item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ValidatingAdmissionPolicyBinding item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ValidatingAdmissionPolicyBindingFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java index 077729cbb0..af0d75171c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ValidatingAdmissionPolicyBindingSpecBuilder extends V1ValidatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ V1ValidatingAdmissionPolicyBindingSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java index 43ed027b96..807239529c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java @@ -24,12 +24,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ValidatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ private V1MatchResourcesBuilder matchResources; private V1ParamRefBuilder paramRef; @@ -45,7 +47,7 @@ public V1ValidatingAdmissionPolicyBindingSpecFluent(V1ValidatingAdmissionPolicyB public A addAllToValidationActions(Collection items) { if (this.validationActions == null) { - this.validationActions = new ArrayList(); + this.validationActions = new ArrayList<>(); } for (String item : items) { this.validationActions.add(item); @@ -55,7 +57,7 @@ public A addAllToValidationActions(Collection items) { public A addToValidationActions(String... items) { if (this.validationActions == null) { - this.validationActions = new ArrayList(); + this.validationActions = new ArrayList<>(); } for (String item : items) { this.validationActions.add(item); @@ -65,7 +67,7 @@ public A addToValidationActions(String... items) { public A addToValidationActions(int index,String item) { if (this.validationActions == null) { - this.validationActions = new ArrayList(); + this.validationActions = new ArrayList<>(); } this.validationActions.add(index, item); return (A) this; @@ -123,7 +125,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ValidatingAdmissionPolicyBindingSpecFluent that = (V1ValidatingAdmissionPolicyBindingSpecFluent) o; + V1ValidatingAdmissionPolicyBindingSpecFluent that = (V1ValidatingAdmissionPolicyBindingSpecFluent) o; if (!(Objects.equals(matchResources, that.matchResources))) { return false; } @@ -219,7 +221,7 @@ public A removeFromValidationActions(String... items) { public A setToValidationActions(int index,String item) { if (this.validationActions == null) { - this.validationActions = new ArrayList(); + this.validationActions = new ArrayList<>(); } this.validationActions.set(index, item); return (A) this; @@ -257,26 +259,26 @@ public A withMatchResources(V1MatchResources matchResources) { this.matchResources = new V1MatchResourcesBuilder(matchResources); this._visitables.get("matchResources").add(this.matchResources); } else { - this.matchResources = null; this._visitables.get("matchResources").remove(this.matchResources); + this.matchResources = null; } return (A) this; } public MatchResourcesNested withNewMatchResources() { - return new MatchResourcesNested(null); + return new MatchResourcesNested<>(null); } public MatchResourcesNested withNewMatchResourcesLike(V1MatchResources item) { - return new MatchResourcesNested(item); + return new MatchResourcesNested<>(item); } public ParamRefNested withNewParamRef() { - return new ParamRefNested(null); + return new ParamRefNested<>(null); } public ParamRefNested withNewParamRefLike(V1ParamRef item) { - return new ParamRefNested(item); + return new ParamRefNested<>(item); } public A withParamRef(V1ParamRef paramRef) { @@ -285,8 +287,8 @@ public A withParamRef(V1ParamRef paramRef) { this.paramRef = new V1ParamRefBuilder(paramRef); this._visitables.get("paramRef").add(this.paramRef); } else { - this.paramRef = null; this._visitables.get("paramRef").remove(this.paramRef); + this.paramRef = null; } return (A) this; } @@ -298,7 +300,7 @@ public A withPolicyName(String policyName) { public A withValidationActions(List validationActions) { if (validationActions != null) { - this.validationActions = new ArrayList(); + this.validationActions = new ArrayList<>(); for (String item : validationActions) { this.addToValidationActions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java index fc9314e74d..df6d8e86f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ValidatingAdmissionPolicyBuilder extends V1ValidatingAdmissionPolicyFluent implements VisitableBuilder{ V1ValidatingAdmissionPolicyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java index b0fa87ba08..fb4811c529 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ValidatingAdmissionPolicyFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ValidatingAdmissionPolicyFluent that = (V1ValidatingAdmissionPolicyFluent) o; + V1ValidatingAdmissionPolicyFluent that = (V1ValidatingAdmissionPolicyFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1ValidatingAdmissionPolicySpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1ValidatingAdmissionPolicyStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1ValidatingAdmissionPolicySpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1ValidatingAdmissionPolicySpec spec) { this.spec = new V1ValidatingAdmissionPolicySpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1ValidatingAdmissionPolicyStatus status) { this.status = new V1ValidatingAdmissionPolicyStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java index f7fdf90aba..1beb431d8f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ValidatingAdmissionPolicyListBuilder extends V1ValidatingAdmissionPolicyListFluent implements VisitableBuilder{ V1ValidatingAdmissionPolicyListFluent fluent; 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 c73bc2dad5..d07fd1b813 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ValidatingAdmissionPolicyListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ValidatingAdmissionPolicyListFluent(V1ValidatingAdmissionPolicyList ins public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ValidatingAdmissionPolicy item : items) { V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ValidatingAdmissionPolicy item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ValidatingAdmissionPolicy... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ValidatingAdmissionPolicy item : items) { V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ValidatingAdmissionPolicy... items) { public A addToItems(int index,V1ValidatingAdmissionPolicy item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ValidatingAdmissionPolicyListFluent that = (V1ValidatingAdmissionPolicyListFluent) o; + V1ValidatingAdmissionPolicyListFluent that = (V1ValidatingAdmissionPolicyListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate p return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ValidatingAdmissionPolicyBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate p } public ItemsNested setNewItemLike(int index,V1ValidatingAdmissionPolicy item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ValidatingAdmissionPolicy item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ValidatingAdmissionPolicy item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ValidatingAdmissionPolicyFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java index b9b6d5813a..0c0c007f24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ValidatingAdmissionPolicySpecBuilder extends V1ValidatingAdmissionPolicySpecFluent implements VisitableBuilder{ V1ValidatingAdmissionPolicySpecFluent fluent; 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 95297e6837..90191c1d3c 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicySpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ValidatingAdmissionPolicySpecFluent> extends BaseFluent{ private ArrayList auditAnnotations; private String failurePolicy; @@ -50,7 +52,7 @@ public V1ValidatingAdmissionPolicySpecFluent(V1ValidatingAdmissionPolicySpec ins public A addAllToAuditAnnotations(Collection items) { if (this.auditAnnotations == null) { - this.auditAnnotations = new ArrayList(); + this.auditAnnotations = new ArrayList<>(); } for (V1AuditAnnotation item : items) { V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); @@ -62,7 +64,7 @@ public A addAllToAuditAnnotations(Collection items) { public A addAllToMatchConditions(Collection items) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); @@ -74,7 +76,7 @@ public A addAllToMatchConditions(Collection items) { public A addAllToValidations(Collection items) { if (this.validations == null) { - this.validations = new ArrayList(); + this.validations = new ArrayList<>(); } for (V1Validation item : items) { V1ValidationBuilder builder = new V1ValidationBuilder(item); @@ -86,7 +88,7 @@ public A addAllToValidations(Collection items) { public A addAllToVariables(Collection items) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } for (V1Variable item : items) { V1VariableBuilder builder = new V1VariableBuilder(item); @@ -97,40 +99,40 @@ public A addAllToVariables(Collection items) { } public AuditAnnotationsNested addNewAuditAnnotation() { - return new AuditAnnotationsNested(-1, null); + return new AuditAnnotationsNested<>(-1, null); } public AuditAnnotationsNested addNewAuditAnnotationLike(V1AuditAnnotation item) { - return new AuditAnnotationsNested(-1, item); + return new AuditAnnotationsNested<>(-1, item); } public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); + return new MatchConditionsNested<>(-1, null); } public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { - return new MatchConditionsNested(-1, item); + return new MatchConditionsNested<>(-1, item); } public ValidationsNested addNewValidation() { - return new ValidationsNested(-1, null); + return new ValidationsNested<>(-1, null); } public ValidationsNested addNewValidationLike(V1Validation item) { - return new ValidationsNested(-1, item); + return new ValidationsNested<>(-1, item); } public VariablesNested addNewVariable() { - return new VariablesNested(-1, null); + return new VariablesNested<>(-1, null); } public VariablesNested addNewVariableLike(V1Variable item) { - return new VariablesNested(-1, item); + return new VariablesNested<>(-1, item); } public A addToAuditAnnotations(V1AuditAnnotation... items) { if (this.auditAnnotations == null) { - this.auditAnnotations = new ArrayList(); + this.auditAnnotations = new ArrayList<>(); } for (V1AuditAnnotation item : items) { V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); @@ -142,7 +144,7 @@ public A addToAuditAnnotations(V1AuditAnnotation... items) { public A addToAuditAnnotations(int index,V1AuditAnnotation item) { if (this.auditAnnotations == null) { - this.auditAnnotations = new ArrayList(); + this.auditAnnotations = new ArrayList<>(); } V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); if (index < 0 || index >= this.auditAnnotations.size()) { @@ -157,7 +159,7 @@ public A addToAuditAnnotations(int index,V1AuditAnnotation item) { public A addToMatchConditions(V1MatchCondition... items) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); @@ -169,7 +171,7 @@ public A addToMatchConditions(V1MatchCondition... items) { public A addToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= this.matchConditions.size()) { @@ -184,7 +186,7 @@ public A addToMatchConditions(int index,V1MatchCondition item) { public A addToValidations(V1Validation... items) { if (this.validations == null) { - this.validations = new ArrayList(); + this.validations = new ArrayList<>(); } for (V1Validation item : items) { V1ValidationBuilder builder = new V1ValidationBuilder(item); @@ -196,7 +198,7 @@ public A addToValidations(V1Validation... items) { public A addToValidations(int index,V1Validation item) { if (this.validations == null) { - this.validations = new ArrayList(); + this.validations = new ArrayList<>(); } V1ValidationBuilder builder = new V1ValidationBuilder(item); if (index < 0 || index >= this.validations.size()) { @@ -211,7 +213,7 @@ public A addToValidations(int index,V1Validation item) { public A addToVariables(V1Variable... items) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } for (V1Variable item : items) { V1VariableBuilder builder = new V1VariableBuilder(item); @@ -223,7 +225,7 @@ public A addToVariables(V1Variable... items) { public A addToVariables(int index,V1Variable item) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } V1VariableBuilder builder = new V1VariableBuilder(item); if (index < 0 || index >= this.variables.size()) { @@ -535,7 +537,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ValidatingAdmissionPolicySpecFluent that = (V1ValidatingAdmissionPolicySpecFluent) o; + V1ValidatingAdmissionPolicySpecFluent that = (V1ValidatingAdmissionPolicySpecFluent) o; if (!(Objects.equals(auditAnnotations, that.auditAnnotations))) { return false; } @@ -733,6 +735,7 @@ public A removeMatchingFromAuditAnnotations(Predicate return (A) this; } Iterator each = auditAnnotations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("auditAnnotations"); while (each.hasNext()) { V1AuditAnnotationBuilder builder = each.next(); @@ -749,6 +752,7 @@ public A removeMatchingFromMatchConditions(Predicate pr return (A) this; } Iterator each = matchConditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("matchConditions"); while (each.hasNext()) { V1MatchConditionBuilder builder = each.next(); @@ -765,6 +769,7 @@ public A removeMatchingFromValidations(Predicate predicate) return (A) this; } Iterator each = validations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("validations"); while (each.hasNext()) { V1ValidationBuilder builder = each.next(); @@ -781,6 +786,7 @@ public A removeMatchingFromVariables(Predicate predicate) { return (A) this; } Iterator each = variables.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("variables"); while (each.hasNext()) { V1VariableBuilder builder = each.next(); @@ -793,24 +799,24 @@ public A removeMatchingFromVariables(Predicate predicate) { } public AuditAnnotationsNested setNewAuditAnnotationLike(int index,V1AuditAnnotation item) { - return new AuditAnnotationsNested(index, item); + return new AuditAnnotationsNested<>(index, item); } public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { - return new MatchConditionsNested(index, item); + return new MatchConditionsNested<>(index, item); } public ValidationsNested setNewValidationLike(int index,V1Validation item) { - return new ValidationsNested(index, item); + return new ValidationsNested<>(index, item); } public VariablesNested setNewVariableLike(int index,V1Variable item) { - return new VariablesNested(index, item); + return new VariablesNested<>(index, item); } public A setToAuditAnnotations(int index,V1AuditAnnotation item) { if (this.auditAnnotations == null) { - this.auditAnnotations = new ArrayList(); + this.auditAnnotations = new ArrayList<>(); } V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); if (index < 0 || index >= this.auditAnnotations.size()) { @@ -825,7 +831,7 @@ public A setToAuditAnnotations(int index,V1AuditAnnotation item) { public A setToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= this.matchConditions.size()) { @@ -840,7 +846,7 @@ public A setToMatchConditions(int index,V1MatchCondition item) { public A setToValidations(int index,V1Validation item) { if (this.validations == null) { - this.validations = new ArrayList(); + this.validations = new ArrayList<>(); } V1ValidationBuilder builder = new V1ValidationBuilder(item); if (index < 0 || index >= this.validations.size()) { @@ -855,7 +861,7 @@ public A setToValidations(int index,V1Validation item) { public A setToVariables(int index,V1Variable item) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } V1VariableBuilder builder = new V1VariableBuilder(item); if (index < 0 || index >= this.variables.size()) { @@ -914,7 +920,7 @@ public A withAuditAnnotations(List auditAnnotations) { this._visitables.get("auditAnnotations").clear(); } if (auditAnnotations != null) { - this.auditAnnotations = new ArrayList(); + this.auditAnnotations = new ArrayList<>(); for (V1AuditAnnotation item : auditAnnotations) { this.addToAuditAnnotations(item); } @@ -947,7 +953,7 @@ public A withMatchConditions(List matchConditions) { this._visitables.get("matchConditions").clear(); } if (matchConditions != null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); for (V1MatchCondition item : matchConditions) { this.addToMatchConditions(item); } @@ -976,26 +982,26 @@ public A withMatchConstraints(V1MatchResources matchConstraints) { this.matchConstraints = new V1MatchResourcesBuilder(matchConstraints); this._visitables.get("matchConstraints").add(this.matchConstraints); } else { - this.matchConstraints = null; this._visitables.get("matchConstraints").remove(this.matchConstraints); + this.matchConstraints = null; } return (A) this; } public MatchConstraintsNested withNewMatchConstraints() { - return new MatchConstraintsNested(null); + return new MatchConstraintsNested<>(null); } public MatchConstraintsNested withNewMatchConstraintsLike(V1MatchResources item) { - return new MatchConstraintsNested(item); + return new MatchConstraintsNested<>(item); } public ParamKindNested withNewParamKind() { - return new ParamKindNested(null); + return new ParamKindNested<>(null); } public ParamKindNested withNewParamKindLike(V1ParamKind item) { - return new ParamKindNested(item); + return new ParamKindNested<>(item); } public A withParamKind(V1ParamKind paramKind) { @@ -1004,8 +1010,8 @@ public A withParamKind(V1ParamKind paramKind) { this.paramKind = new V1ParamKindBuilder(paramKind); this._visitables.get("paramKind").add(this.paramKind); } else { - this.paramKind = null; this._visitables.get("paramKind").remove(this.paramKind); + this.paramKind = null; } return (A) this; } @@ -1015,7 +1021,7 @@ public A withValidations(List validations) { this._visitables.get("validations").clear(); } if (validations != null) { - this.validations = new ArrayList(); + this.validations = new ArrayList<>(); for (V1Validation item : validations) { this.addToValidations(item); } @@ -1043,7 +1049,7 @@ public A withVariables(List variables) { this._visitables.get("variables").clear(); } if (variables != null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); for (V1Variable item : variables) { this.addToVariables(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java index 4bdf3d65f0..955fd54cc2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ValidatingAdmissionPolicyStatusBuilder extends V1ValidatingAdmissionPolicyStatusFluent implements VisitableBuilder{ V1ValidatingAdmissionPolicyStatusFluent fluent; 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 c9f1f504dc..320c3a0f62 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 @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ValidatingAdmissionPolicyStatusFluent> extends BaseFluent{ private ArrayList conditions; private Long observedGeneration; @@ -47,7 +49,7 @@ public V1ValidatingAdmissionPolicyStatusFluent(V1ValidatingAdmissionPolicyStatus public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -58,16 +60,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -79,7 +81,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -188,7 +190,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ValidatingAdmissionPolicyStatusFluent that = (V1ValidatingAdmissionPolicyStatusFluent) o; + V1ValidatingAdmissionPolicyStatusFluent that = (V1ValidatingAdmissionPolicyStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -259,6 +261,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -271,12 +274,12 @@ public A removeMatchingFromConditions(Predicate predicate) { } public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -315,7 +318,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } @@ -339,11 +342,11 @@ public A withConditions(V1Condition... conditions) { } public TypeCheckingNested withNewTypeChecking() { - return new TypeCheckingNested(null); + return new TypeCheckingNested<>(null); } public TypeCheckingNested withNewTypeCheckingLike(V1TypeChecking item) { - return new TypeCheckingNested(item); + return new TypeCheckingNested<>(item); } public A withObservedGeneration(Long observedGeneration) { @@ -357,8 +360,8 @@ public A withTypeChecking(V1TypeChecking typeChecking) { this.typeChecking = new V1TypeCheckingBuilder(typeChecking); this._visitables.get("typeChecking").add(this.typeChecking); } else { - this.typeChecking = null; this._visitables.get("typeChecking").remove(this.typeChecking); + this.typeChecking = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java index c1d9963632..978d7628cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ValidatingWebhookBuilder extends V1ValidatingWebhookFluent implements VisitableBuilder{ V1ValidatingWebhookFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java index 5484a4688b..e973cb2748 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ValidatingWebhookConfigurationBuilder extends V1ValidatingWebhookConfigurationFluent implements VisitableBuilder{ V1ValidatingWebhookConfigurationFluent fluent; 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 c4fe5a09c2..cd510b5213 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ValidatingWebhookConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ValidatingWebhookConfigurationFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -47,7 +49,7 @@ public V1ValidatingWebhookConfigurationFluent(V1ValidatingWebhookConfiguration i public A addAllToWebhooks(Collection items) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList<>(); } for (V1ValidatingWebhook item : items) { V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); @@ -58,16 +60,16 @@ public A addAllToWebhooks(Collection items) { } public WebhooksNested addNewWebhook() { - return new WebhooksNested(-1, null); + return new WebhooksNested<>(-1, null); } public WebhooksNested addNewWebhookLike(V1ValidatingWebhook item) { - return new WebhooksNested(-1, item); + return new WebhooksNested<>(-1, item); } public A addToWebhooks(V1ValidatingWebhook... items) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList<>(); } for (V1ValidatingWebhook item : items) { V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); @@ -79,7 +81,7 @@ public A addToWebhooks(V1ValidatingWebhook... items) { public A addToWebhooks(int index,V1ValidatingWebhook item) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList<>(); } V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); if (index < 0 || index >= this.webhooks.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ValidatingWebhookConfigurationFluent that = (V1ValidatingWebhookConfigurationFluent) o; + V1ValidatingWebhookConfigurationFluent that = (V1ValidatingWebhookConfigurationFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromWebhooks(Predicate predic return (A) this; } Iterator each = webhooks.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("webhooks"); while (each.hasNext()) { V1ValidatingWebhookBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromWebhooks(Predicate predic } public WebhooksNested setNewWebhookLike(int index,V1ValidatingWebhook item) { - return new WebhooksNested(index, item); + return new WebhooksNested<>(index, item); } public A setToWebhooks(int index,V1ValidatingWebhook item) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList<>(); } V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); if (index < 0 || index >= this.webhooks.size()) { @@ -343,18 +346,18 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withWebhooks(List webhooks) { @@ -362,7 +365,7 @@ public A withWebhooks(List webhooks) { this._visitables.get("webhooks").clear(); } if (webhooks != null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList<>(); for (V1ValidatingWebhook item : webhooks) { this.addToWebhooks(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java index 7d418d0be4..8d1bad293e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ValidatingWebhookConfigurationListBuilder extends V1ValidatingWebhookConfigurationListFluent implements VisitableBuilder{ V1ValidatingWebhookConfigurationListFluent fluent; 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 b89b5191a6..03e7ff5355 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ValidatingWebhookConfigurationListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ValidatingWebhookConfigurationListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1ValidatingWebhookConfigurationListFluent(V1ValidatingWebhookConfigurati public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ValidatingWebhookConfiguration item : items) { V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1ValidatingWebhookConfiguration item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1ValidatingWebhookConfiguration... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1ValidatingWebhookConfiguration item : items) { V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1ValidatingWebhookConfiguration... items) { public A addToItems(int index,V1ValidatingWebhookConfiguration item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ValidatingWebhookConfigurationListFluent that = (V1ValidatingWebhookConfigurationListFluent) o; + V1ValidatingWebhookConfigurationListFluent that = (V1ValidatingWebhookConfigurationListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ValidatingWebhookConfigurationBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate setNewItemLike(int index,V1ValidatingWebhookConfiguration item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1ValidatingWebhookConfiguration item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1ValidatingWebhookConfiguration item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1ValidatingWebhookConfigurationFluent> implements Nested{ 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 815b86e2a6..c72ad9950a 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 @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ValidatingWebhookFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ValidatingWebhookFluent> extends BaseFluent{ private List admissionReviewVersions; private AdmissionregistrationV1WebhookClientConfigBuilder clientConfig; @@ -55,7 +57,7 @@ public V1ValidatingWebhookFluent(V1ValidatingWebhook instance) { public A addAllToAdmissionReviewVersions(Collection items) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); + this.admissionReviewVersions = new ArrayList<>(); } for (String item : items) { this.admissionReviewVersions.add(item); @@ -65,7 +67,7 @@ public A addAllToAdmissionReviewVersions(Collection items) { public A addAllToMatchConditions(Collection items) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); @@ -77,7 +79,7 @@ public A addAllToMatchConditions(Collection items) { public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1RuleWithOperations item : items) { V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); @@ -88,24 +90,24 @@ public A addAllToRules(Collection items) { } public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); + return new MatchConditionsNested<>(-1, null); } public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { - return new MatchConditionsNested(-1, item); + return new MatchConditionsNested<>(-1, item); } public RulesNested addNewRule() { - return new RulesNested(-1, null); + return new RulesNested<>(-1, null); } public RulesNested addNewRuleLike(V1RuleWithOperations item) { - return new RulesNested(-1, item); + return new RulesNested<>(-1, item); } public A addToAdmissionReviewVersions(String... items) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); + this.admissionReviewVersions = new ArrayList<>(); } for (String item : items) { this.admissionReviewVersions.add(item); @@ -115,7 +117,7 @@ public A addToAdmissionReviewVersions(String... items) { public A addToAdmissionReviewVersions(int index,String item) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); + this.admissionReviewVersions = new ArrayList<>(); } this.admissionReviewVersions.add(index, item); return (A) this; @@ -123,7 +125,7 @@ public A addToAdmissionReviewVersions(int index,String item) { public A addToMatchConditions(V1MatchCondition... items) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); @@ -135,7 +137,7 @@ public A addToMatchConditions(V1MatchCondition... items) { public A addToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= this.matchConditions.size()) { @@ -150,7 +152,7 @@ public A addToMatchConditions(int index,V1MatchCondition item) { public A addToRules(V1RuleWithOperations... items) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } for (V1RuleWithOperations item : items) { V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); @@ -162,7 +164,7 @@ public A addToRules(V1RuleWithOperations... items) { public A addToRules(int index,V1RuleWithOperations item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -372,7 +374,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ValidatingWebhookFluent that = (V1ValidatingWebhookFluent) o; + V1ValidatingWebhookFluent that = (V1ValidatingWebhookFluent) o; if (!(Objects.equals(admissionReviewVersions, that.admissionReviewVersions))) { return false; } @@ -602,6 +604,7 @@ public A removeMatchingFromMatchConditions(Predicate pr return (A) this; } Iterator each = matchConditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("matchConditions"); while (each.hasNext()) { V1MatchConditionBuilder builder = each.next(); @@ -618,6 +621,7 @@ public A removeMatchingFromRules(Predicate predicat return (A) this; } Iterator each = rules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1RuleWithOperationsBuilder builder = each.next(); @@ -630,16 +634,16 @@ public A removeMatchingFromRules(Predicate predicat } public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { - return new MatchConditionsNested(index, item); + return new MatchConditionsNested<>(index, item); } public RulesNested setNewRuleLike(int index,V1RuleWithOperations item) { - return new RulesNested(index, item); + return new RulesNested<>(index, item); } public A setToAdmissionReviewVersions(int index,String item) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); + this.admissionReviewVersions = new ArrayList<>(); } this.admissionReviewVersions.set(index, item); return (A) this; @@ -647,7 +651,7 @@ public A setToAdmissionReviewVersions(int index,String item) { public A setToMatchConditions(int index,V1MatchCondition item) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= this.matchConditions.size()) { @@ -662,7 +666,7 @@ public A setToMatchConditions(int index,V1MatchCondition item) { public A setToRules(int index,V1RuleWithOperations item) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); if (index < 0 || index >= this.rules.size()) { @@ -738,7 +742,7 @@ public String toString() { public A withAdmissionReviewVersions(List admissionReviewVersions) { if (admissionReviewVersions != null) { - this.admissionReviewVersions = new ArrayList(); + this.admissionReviewVersions = new ArrayList<>(); for (String item : admissionReviewVersions) { this.addToAdmissionReviewVersions(item); } @@ -767,8 +771,8 @@ public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfi this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); this._visitables.get("clientConfig").add(this.clientConfig); } else { - this.clientConfig = null; this._visitables.get("clientConfig").remove(this.clientConfig); + this.clientConfig = null; } return (A) this; } @@ -783,7 +787,7 @@ public A withMatchConditions(List matchConditions) { this._visitables.get("matchConditions").clear(); } if (matchConditions != null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); for (V1MatchCondition item : matchConditions) { this.addToMatchConditions(item); } @@ -822,34 +826,34 @@ public A withNamespaceSelector(V1LabelSelector namespaceSelector) { this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); this._visitables.get("namespaceSelector").add(this.namespaceSelector); } else { - this.namespaceSelector = null; this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + this.namespaceSelector = null; } return (A) this; } public ClientConfigNested withNewClientConfig() { - return new ClientConfigNested(null); + return new ClientConfigNested<>(null); } public ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { - return new ClientConfigNested(item); + return new ClientConfigNested<>(item); } public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); + return new NamespaceSelectorNested<>(null); } public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); + return new NamespaceSelectorNested<>(item); } public ObjectSelectorNested withNewObjectSelector() { - return new ObjectSelectorNested(null); + return new ObjectSelectorNested<>(null); } public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { - return new ObjectSelectorNested(item); + return new ObjectSelectorNested<>(item); } public A withObjectSelector(V1LabelSelector objectSelector) { @@ -858,8 +862,8 @@ public A withObjectSelector(V1LabelSelector objectSelector) { this.objectSelector = new V1LabelSelectorBuilder(objectSelector); this._visitables.get("objectSelector").add(this.objectSelector); } else { - this.objectSelector = null; this._visitables.get("objectSelector").remove(this.objectSelector); + this.objectSelector = null; } return (A) this; } @@ -869,7 +873,7 @@ public A withRules(List rules) { this._visitables.get("rules").clear(); } if (rules != null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); for (V1RuleWithOperations item : rules) { this.addToRules(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java index 28912aa17d..8e1c71d39e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ValidationBuilder extends V1ValidationFluent implements VisitableBuilder{ V1ValidationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java index f10b1e88e9..f27b536fe6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ValidationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ValidationFluent> extends BaseFluent{ private String expression; private String message; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ValidationFluent that = (V1ValidationFluent) o; + V1ValidationFluent that = (V1ValidationFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java index da523cd57a..5c2f79f039 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1ValidationRuleBuilder extends V1ValidationRuleFluent implements VisitableBuilder{ V1ValidationRuleFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java index 4bc27a4aec..a4d90c3568 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1ValidationRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1ValidationRuleFluent> extends BaseFluent{ private String fieldPath; private String message; @@ -62,7 +64,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1ValidationRuleFluent that = (V1ValidationRuleFluent) o; + V1ValidationRuleFluent that = (V1ValidationRuleFluent) o; if (!(Objects.equals(fieldPath, that.fieldPath))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java index ff3780be52..51923c4217 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VariableBuilder extends V1VariableFluent implements VisitableBuilder{ V1VariableFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java index cfc06cc44e..8968d021af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VariableFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VariableFluent> extends BaseFluent{ private String expression; private String name; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VariableFluent that = (V1VariableFluent) o; + V1VariableFluent that = (V1VariableFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java index 1bd9f27f3b..01baaa88b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeAttachmentBuilder extends V1VolumeAttachmentFluent implements VisitableBuilder{ V1VolumeAttachmentFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java index 81f91bdf5a..bec2d6cd4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeAttachmentFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeAttachmentFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeAttachmentFluent that = (V1VolumeAttachmentFluent) o; + V1VolumeAttachmentFluent that = (V1VolumeAttachmentFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1VolumeAttachmentSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1VolumeAttachmentStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1VolumeAttachmentSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1VolumeAttachmentSpec spec) { this.spec = new V1VolumeAttachmentSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1VolumeAttachmentStatus status) { this.status = new V1VolumeAttachmentStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java index 40a6bf708f..8f35a1fd11 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeAttachmentListBuilder extends V1VolumeAttachmentListFluent implements VisitableBuilder{ V1VolumeAttachmentListFluent fluent; 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 efbaf9211a..a4d39afc46 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeAttachmentListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeAttachmentListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1VolumeAttachmentListFluent(V1VolumeAttachmentList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1VolumeAttachment item : items) { V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1VolumeAttachment item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1VolumeAttachment... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1VolumeAttachment item : items) { V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1VolumeAttachment... items) { public A addToItems(int index,V1VolumeAttachment item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeAttachmentListFluent that = (V1VolumeAttachmentListFluent) o; + V1VolumeAttachmentListFluent that = (V1VolumeAttachmentListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1VolumeAttachmentBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) } public ItemsNested setNewItemLike(int index,V1VolumeAttachment item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1VolumeAttachment item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1VolumeAttachment item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1VolumeAttachmentFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java index 6ef81185b9..e40e5772d9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeAttachmentSourceBuilder extends V1VolumeAttachmentSourceFluent implements VisitableBuilder{ V1VolumeAttachmentSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java index dddb9ee2d3..10537faf2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeAttachmentSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeAttachmentSourceFluent> extends BaseFluent{ private V1PersistentVolumeSpecBuilder inlineVolumeSpec; private String persistentVolumeName; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeAttachmentSourceFluent that = (V1VolumeAttachmentSourceFluent) o; + V1VolumeAttachmentSourceFluent that = (V1VolumeAttachmentSourceFluent) o; if (!(Objects.equals(inlineVolumeSpec, that.inlineVolumeSpec))) { return false; } @@ -119,18 +121,18 @@ public A withInlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { this.inlineVolumeSpec = new V1PersistentVolumeSpecBuilder(inlineVolumeSpec); this._visitables.get("inlineVolumeSpec").add(this.inlineVolumeSpec); } else { - this.inlineVolumeSpec = null; this._visitables.get("inlineVolumeSpec").remove(this.inlineVolumeSpec); + this.inlineVolumeSpec = null; } return (A) this; } public InlineVolumeSpecNested withNewInlineVolumeSpec() { - return new InlineVolumeSpecNested(null); + return new InlineVolumeSpecNested<>(null); } public InlineVolumeSpecNested withNewInlineVolumeSpecLike(V1PersistentVolumeSpec item) { - return new InlineVolumeSpecNested(item); + return new InlineVolumeSpecNested<>(item); } public A withPersistentVolumeName(String persistentVolumeName) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java index c5d22882be..84dcff2bac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeAttachmentSpecBuilder extends V1VolumeAttachmentSpecFluent implements VisitableBuilder{ V1VolumeAttachmentSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java index 8673b5a42e..e2ac0fab7e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeAttachmentSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeAttachmentSpecFluent> extends BaseFluent{ private String attacher; private String nodeName; @@ -73,7 +75,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeAttachmentSpecFluent that = (V1VolumeAttachmentSpecFluent) o; + V1VolumeAttachmentSpecFluent that = (V1VolumeAttachmentSpecFluent) o; if (!(Objects.equals(attacher, that.attacher))) { return false; } @@ -137,11 +139,11 @@ public A withAttacher(String attacher) { } public SourceNested withNewSource() { - return new SourceNested(null); + return new SourceNested<>(null); } public SourceNested withNewSourceLike(V1VolumeAttachmentSource item) { - return new SourceNested(item); + return new SourceNested<>(item); } public A withNodeName(String nodeName) { @@ -155,8 +157,8 @@ public A withSource(V1VolumeAttachmentSource source) { this.source = new V1VolumeAttachmentSourceBuilder(source); this._visitables.get("source").add(this.source); } else { - this.source = null; this._visitables.get("source").remove(this.source); + this.source = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java index 412fa4c2cf..a9cd3bb29c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeAttachmentStatusBuilder extends V1VolumeAttachmentStatusFluent implements VisitableBuilder{ V1VolumeAttachmentStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java index 1d8daaa922..9aeb2f9969 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java @@ -23,12 +23,14 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeAttachmentStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeAttachmentStatusFluent> extends BaseFluent{ private V1VolumeErrorBuilder attachError; private Boolean attached; @@ -44,7 +46,7 @@ public V1VolumeAttachmentStatusFluent(V1VolumeAttachmentStatus instance) { public A addToAttachmentMetadata(Map map) { if (this.attachmentMetadata == null && map != null) { - this.attachmentMetadata = new LinkedHashMap(); + this.attachmentMetadata = new LinkedHashMap<>(); } if (map != null) { this.attachmentMetadata.putAll(map); @@ -54,7 +56,7 @@ public A addToAttachmentMetadata(Map map) { public A addToAttachmentMetadata(String key,String value) { if (this.attachmentMetadata == null && key != null && value != null) { - this.attachmentMetadata = new LinkedHashMap(); + this.attachmentMetadata = new LinkedHashMap<>(); } if (key != null && value != null) { this.attachmentMetadata.put(key, value); @@ -114,7 +116,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeAttachmentStatusFluent that = (V1VolumeAttachmentStatusFluent) o; + V1VolumeAttachmentStatusFluent that = (V1VolumeAttachmentStatusFluent) o; if (!(Objects.equals(attachError, that.attachError))) { return false; } @@ -214,8 +216,8 @@ public A withAttachError(V1VolumeError attachError) { this.attachError = new V1VolumeErrorBuilder(attachError); this._visitables.get("attachError").add(this.attachError); } else { - this.attachError = null; this._visitables.get("attachError").remove(this.attachError); + this.attachError = null; } return (A) this; } @@ -233,7 +235,7 @@ public A withAttachmentMetadata(Map attachmentMetadata) { if (attachmentMetadata == null) { this.attachmentMetadata = null; } else { - this.attachmentMetadata = new LinkedHashMap(attachmentMetadata); + this.attachmentMetadata = new LinkedHashMap<>(attachmentMetadata); } return (A) this; } @@ -244,26 +246,26 @@ public A withDetachError(V1VolumeError detachError) { this.detachError = new V1VolumeErrorBuilder(detachError); this._visitables.get("detachError").add(this.detachError); } else { - this.detachError = null; this._visitables.get("detachError").remove(this.detachError); + this.detachError = null; } return (A) this; } public AttachErrorNested withNewAttachError() { - return new AttachErrorNested(null); + return new AttachErrorNested<>(null); } public AttachErrorNested withNewAttachErrorLike(V1VolumeError item) { - return new AttachErrorNested(item); + return new AttachErrorNested<>(item); } public DetachErrorNested withNewDetachError() { - return new DetachErrorNested(null); + return new DetachErrorNested<>(null); } public DetachErrorNested withNewDetachErrorLike(V1VolumeError item) { - return new DetachErrorNested(item); + return new DetachErrorNested<>(item); } public class AttachErrorNested extends V1VolumeErrorFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java index 5717dab9c4..2eafc523f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeAttributesClassBuilder extends V1VolumeAttributesClassFluent implements VisitableBuilder{ V1VolumeAttributesClassFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java index 3ae7f425b8..809c91231f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java @@ -22,12 +22,14 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeAttributesClassFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeAttributesClassFluent> extends BaseFluent{ private String apiVersion; private String driverName; @@ -44,7 +46,7 @@ public V1VolumeAttributesClassFluent(V1VolumeAttributesClass instance) { public A addToParameters(Map map) { if (this.parameters == null && map != null) { - this.parameters = new LinkedHashMap(); + this.parameters = new LinkedHashMap<>(); } if (map != null) { this.parameters.putAll(map); @@ -54,7 +56,7 @@ public A addToParameters(Map map) { public A addToParameters(String key,String value) { if (this.parameters == null && key != null && value != null) { - this.parameters = new LinkedHashMap(); + this.parameters = new LinkedHashMap<>(); } if (key != null && value != null) { this.parameters.put(key, value); @@ -99,7 +101,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeAttributesClassFluent that = (V1VolumeAttributesClassFluent) o; + V1VolumeAttributesClassFluent that = (V1VolumeAttributesClassFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -234,25 +236,25 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withParameters(Map parameters) { if (parameters == null) { this.parameters = null; } else { - this.parameters = new LinkedHashMap(parameters); + this.parameters = new LinkedHashMap<>(parameters); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java index ac7653a441..da6aa2b8fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeAttributesClassListBuilder extends V1VolumeAttributesClassListFluent implements VisitableBuilder{ V1VolumeAttributesClassListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java index 5397cecafe..4303bbc4ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeAttributesClassListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeAttributesClassListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1VolumeAttributesClassListFluent(V1VolumeAttributesClassList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1VolumeAttributesClass item : items) { V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1VolumeAttributesClass item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1VolumeAttributesClass... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1VolumeAttributesClass item : items) { V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1VolumeAttributesClass... items) { public A addToItems(int index,V1VolumeAttributesClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeAttributesClassListFluent that = (V1VolumeAttributesClassListFluent) o; + V1VolumeAttributesClassListFluent that = (V1VolumeAttributesClassListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1VolumeAttributesClassBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predi } public ItemsNested setNewItemLike(int index,V1VolumeAttributesClass item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1VolumeAttributesClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1VolumeAttributesClass item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1VolumeAttributesClassFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java index 9403383803..a4b218d928 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeBuilder extends V1VolumeFluent implements VisitableBuilder{ V1VolumeFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java index 00263c076c..2556cd6a8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeDeviceBuilder extends V1VolumeDeviceFluent implements VisitableBuilder{ V1VolumeDeviceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java index 6e21e102c5..a5999e3903 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeDeviceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeDeviceFluent> extends BaseFluent{ private String devicePath; private String name; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeDeviceFluent that = (V1VolumeDeviceFluent) o; + V1VolumeDeviceFluent that = (V1VolumeDeviceFluent) o; if (!(Objects.equals(devicePath, that.devicePath))) { return false; } 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 0a8b0d4eeb..c19e4b723b 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeErrorBuilder extends V1VolumeErrorFluent implements VisitableBuilder{ V1VolumeErrorFluent fluent; 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 70fdd770be..729effbfc3 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 @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeErrorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeErrorFluent> extends BaseFluent{ private Integer errorCode; private String message; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeErrorFluent that = (V1VolumeErrorFluent) o; + V1VolumeErrorFluent that = (V1VolumeErrorFluent) o; if (!(Objects.equals(errorCode, that.errorCode))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java index 5d34668814..41a6fbd20e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeFluent> extends BaseFluent{ private V1AWSElasticBlockStoreVolumeSourceBuilder awsElasticBlockStore; private V1AzureDiskVolumeSourceBuilder azureDisk; @@ -593,7 +595,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeFluent that = (V1VolumeFluent) o; + V1VolumeFluent that = (V1VolumeFluent) o; if (!(Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore))) { return false; } @@ -989,8 +991,8 @@ public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticB this.awsElasticBlockStore = new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); this._visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); } else { - this.awsElasticBlockStore = null; this._visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); + this.awsElasticBlockStore = null; } return (A) this; } @@ -1001,8 +1003,8 @@ public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); this._visitables.get("azureDisk").add(this.azureDisk); } else { - this.azureDisk = null; this._visitables.get("azureDisk").remove(this.azureDisk); + this.azureDisk = null; } return (A) this; } @@ -1013,8 +1015,8 @@ public A withAzureFile(V1AzureFileVolumeSource azureFile) { this.azureFile = new V1AzureFileVolumeSourceBuilder(azureFile); this._visitables.get("azureFile").add(this.azureFile); } else { - this.azureFile = null; this._visitables.get("azureFile").remove(this.azureFile); + this.azureFile = null; } return (A) this; } @@ -1025,8 +1027,8 @@ public A withCephfs(V1CephFSVolumeSource cephfs) { this.cephfs = new V1CephFSVolumeSourceBuilder(cephfs); this._visitables.get("cephfs").add(this.cephfs); } else { - this.cephfs = null; this._visitables.get("cephfs").remove(this.cephfs); + this.cephfs = null; } return (A) this; } @@ -1037,8 +1039,8 @@ public A withCinder(V1CinderVolumeSource cinder) { this.cinder = new V1CinderVolumeSourceBuilder(cinder); this._visitables.get("cinder").add(this.cinder); } else { - this.cinder = null; this._visitables.get("cinder").remove(this.cinder); + this.cinder = null; } return (A) this; } @@ -1049,8 +1051,8 @@ public A withConfigMap(V1ConfigMapVolumeSource configMap) { this.configMap = new V1ConfigMapVolumeSourceBuilder(configMap); this._visitables.get("configMap").add(this.configMap); } else { - this.configMap = null; this._visitables.get("configMap").remove(this.configMap); + this.configMap = null; } return (A) this; } @@ -1061,8 +1063,8 @@ public A withCsi(V1CSIVolumeSource csi) { this.csi = new V1CSIVolumeSourceBuilder(csi); this._visitables.get("csi").add(this.csi); } else { - this.csi = null; this._visitables.get("csi").remove(this.csi); + this.csi = null; } return (A) this; } @@ -1073,8 +1075,8 @@ public A withDownwardAPI(V1DownwardAPIVolumeSource downwardAPI) { this.downwardAPI = new V1DownwardAPIVolumeSourceBuilder(downwardAPI); this._visitables.get("downwardAPI").add(this.downwardAPI); } else { - this.downwardAPI = null; this._visitables.get("downwardAPI").remove(this.downwardAPI); + this.downwardAPI = null; } return (A) this; } @@ -1085,8 +1087,8 @@ public A withEmptyDir(V1EmptyDirVolumeSource emptyDir) { this.emptyDir = new V1EmptyDirVolumeSourceBuilder(emptyDir); this._visitables.get("emptyDir").add(this.emptyDir); } else { - this.emptyDir = null; this._visitables.get("emptyDir").remove(this.emptyDir); + this.emptyDir = null; } return (A) this; } @@ -1097,8 +1099,8 @@ public A withEphemeral(V1EphemeralVolumeSource ephemeral) { this.ephemeral = new V1EphemeralVolumeSourceBuilder(ephemeral); this._visitables.get("ephemeral").add(this.ephemeral); } else { - this.ephemeral = null; this._visitables.get("ephemeral").remove(this.ephemeral); + this.ephemeral = null; } return (A) this; } @@ -1109,8 +1111,8 @@ public A withFc(V1FCVolumeSource fc) { this.fc = new V1FCVolumeSourceBuilder(fc); this._visitables.get("fc").add(this.fc); } else { - this.fc = null; this._visitables.get("fc").remove(this.fc); + this.fc = null; } return (A) this; } @@ -1121,8 +1123,8 @@ public A withFlexVolume(V1FlexVolumeSource flexVolume) { this.flexVolume = new V1FlexVolumeSourceBuilder(flexVolume); this._visitables.get("flexVolume").add(this.flexVolume); } else { - this.flexVolume = null; this._visitables.get("flexVolume").remove(this.flexVolume); + this.flexVolume = null; } return (A) this; } @@ -1133,8 +1135,8 @@ public A withFlocker(V1FlockerVolumeSource flocker) { this.flocker = new V1FlockerVolumeSourceBuilder(flocker); this._visitables.get("flocker").add(this.flocker); } else { - this.flocker = null; this._visitables.get("flocker").remove(this.flocker); + this.flocker = null; } return (A) this; } @@ -1145,8 +1147,8 @@ public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); this._visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); } else { - this.gcePersistentDisk = null; this._visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); + this.gcePersistentDisk = null; } return (A) this; } @@ -1157,8 +1159,8 @@ public A withGitRepo(V1GitRepoVolumeSource gitRepo) { this.gitRepo = new V1GitRepoVolumeSourceBuilder(gitRepo); this._visitables.get("gitRepo").add(this.gitRepo); } else { - this.gitRepo = null; this._visitables.get("gitRepo").remove(this.gitRepo); + this.gitRepo = null; } return (A) this; } @@ -1169,8 +1171,8 @@ public A withGlusterfs(V1GlusterfsVolumeSource glusterfs) { this.glusterfs = new V1GlusterfsVolumeSourceBuilder(glusterfs); this._visitables.get("glusterfs").add(this.glusterfs); } else { - this.glusterfs = null; this._visitables.get("glusterfs").remove(this.glusterfs); + this.glusterfs = null; } return (A) this; } @@ -1181,8 +1183,8 @@ public A withHostPath(V1HostPathVolumeSource hostPath) { this.hostPath = new V1HostPathVolumeSourceBuilder(hostPath); this._visitables.get("hostPath").add(this.hostPath); } else { - this.hostPath = null; this._visitables.get("hostPath").remove(this.hostPath); + this.hostPath = null; } return (A) this; } @@ -1193,8 +1195,8 @@ public A withImage(V1ImageVolumeSource image) { this.image = new V1ImageVolumeSourceBuilder(image); this._visitables.get("image").add(this.image); } else { - this.image = null; this._visitables.get("image").remove(this.image); + this.image = null; } return (A) this; } @@ -1205,8 +1207,8 @@ public A withIscsi(V1ISCSIVolumeSource iscsi) { this.iscsi = new V1ISCSIVolumeSourceBuilder(iscsi); this._visitables.get("iscsi").add(this.iscsi); } else { - this.iscsi = null; this._visitables.get("iscsi").remove(this.iscsi); + this.iscsi = null; } return (A) this; } @@ -1217,243 +1219,243 @@ public A withName(String name) { } public AwsElasticBlockStoreNested withNewAwsElasticBlockStore() { - return new AwsElasticBlockStoreNested(null); + return new AwsElasticBlockStoreNested<>(null); } public AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { - return new AwsElasticBlockStoreNested(item); + return new AwsElasticBlockStoreNested<>(item); } public AzureDiskNested withNewAzureDisk() { - return new AzureDiskNested(null); + return new AzureDiskNested<>(null); } public AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { - return new AzureDiskNested(item); + return new AzureDiskNested<>(item); } public AzureFileNested withNewAzureFile() { - return new AzureFileNested(null); + return new AzureFileNested<>(null); } public AzureFileNested withNewAzureFileLike(V1AzureFileVolumeSource item) { - return new AzureFileNested(item); + return new AzureFileNested<>(item); } public CephfsNested withNewCephfs() { - return new CephfsNested(null); + return new CephfsNested<>(null); } public CephfsNested withNewCephfsLike(V1CephFSVolumeSource item) { - return new CephfsNested(item); + return new CephfsNested<>(item); } public CinderNested withNewCinder() { - return new CinderNested(null); + return new CinderNested<>(null); } public CinderNested withNewCinderLike(V1CinderVolumeSource item) { - return new CinderNested(item); + return new CinderNested<>(item); } public ConfigMapNested withNewConfigMap() { - return new ConfigMapNested(null); + return new ConfigMapNested<>(null); } public ConfigMapNested withNewConfigMapLike(V1ConfigMapVolumeSource item) { - return new ConfigMapNested(item); + return new ConfigMapNested<>(item); } public CsiNested withNewCsi() { - return new CsiNested(null); + return new CsiNested<>(null); } public CsiNested withNewCsiLike(V1CSIVolumeSource item) { - return new CsiNested(item); + return new CsiNested<>(item); } public DownwardAPINested withNewDownwardAPI() { - return new DownwardAPINested(null); + return new DownwardAPINested<>(null); } public DownwardAPINested withNewDownwardAPILike(V1DownwardAPIVolumeSource item) { - return new DownwardAPINested(item); + return new DownwardAPINested<>(item); } public EmptyDirNested withNewEmptyDir() { - return new EmptyDirNested(null); + return new EmptyDirNested<>(null); } public EmptyDirNested withNewEmptyDirLike(V1EmptyDirVolumeSource item) { - return new EmptyDirNested(item); + return new EmptyDirNested<>(item); } public EphemeralNested withNewEphemeral() { - return new EphemeralNested(null); + return new EphemeralNested<>(null); } public EphemeralNested withNewEphemeralLike(V1EphemeralVolumeSource item) { - return new EphemeralNested(item); + return new EphemeralNested<>(item); } public FcNested withNewFc() { - return new FcNested(null); + return new FcNested<>(null); } public FcNested withNewFcLike(V1FCVolumeSource item) { - return new FcNested(item); + return new FcNested<>(item); } public FlexVolumeNested withNewFlexVolume() { - return new FlexVolumeNested(null); + return new FlexVolumeNested<>(null); } public FlexVolumeNested withNewFlexVolumeLike(V1FlexVolumeSource item) { - return new FlexVolumeNested(item); + return new FlexVolumeNested<>(item); } public FlockerNested withNewFlocker() { - return new FlockerNested(null); + return new FlockerNested<>(null); } public FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { - return new FlockerNested(item); + return new FlockerNested<>(item); } public GcePersistentDiskNested withNewGcePersistentDisk() { - return new GcePersistentDiskNested(null); + return new GcePersistentDiskNested<>(null); } public GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { - return new GcePersistentDiskNested(item); + return new GcePersistentDiskNested<>(item); } public GitRepoNested withNewGitRepo() { - return new GitRepoNested(null); + return new GitRepoNested<>(null); } public GitRepoNested withNewGitRepoLike(V1GitRepoVolumeSource item) { - return new GitRepoNested(item); + return new GitRepoNested<>(item); } public GlusterfsNested withNewGlusterfs() { - return new GlusterfsNested(null); + return new GlusterfsNested<>(null); } public GlusterfsNested withNewGlusterfsLike(V1GlusterfsVolumeSource item) { - return new GlusterfsNested(item); + return new GlusterfsNested<>(item); } public HostPathNested withNewHostPath() { - return new HostPathNested(null); + return new HostPathNested<>(null); } public HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { - return new HostPathNested(item); + return new HostPathNested<>(item); } public ImageNested withNewImage() { - return new ImageNested(null); + return new ImageNested<>(null); } public ImageNested withNewImageLike(V1ImageVolumeSource item) { - return new ImageNested(item); + return new ImageNested<>(item); } public IscsiNested withNewIscsi() { - return new IscsiNested(null); + return new IscsiNested<>(null); } public IscsiNested withNewIscsiLike(V1ISCSIVolumeSource item) { - return new IscsiNested(item); + return new IscsiNested<>(item); } public NfsNested withNewNfs() { - return new NfsNested(null); + return new NfsNested<>(null); } public NfsNested withNewNfsLike(V1NFSVolumeSource item) { - return new NfsNested(item); + return new NfsNested<>(item); } public PersistentVolumeClaimNested withNewPersistentVolumeClaim() { - return new PersistentVolumeClaimNested(null); + return new PersistentVolumeClaimNested<>(null); } public PersistentVolumeClaimNested withNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item) { - return new PersistentVolumeClaimNested(item); + return new PersistentVolumeClaimNested<>(item); } public PhotonPersistentDiskNested withNewPhotonPersistentDisk() { - return new PhotonPersistentDiskNested(null); + return new PhotonPersistentDiskNested<>(null); } public PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { - return new PhotonPersistentDiskNested(item); + return new PhotonPersistentDiskNested<>(item); } public PortworxVolumeNested withNewPortworxVolume() { - return new PortworxVolumeNested(null); + return new PortworxVolumeNested<>(null); } public PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item) { - return new PortworxVolumeNested(item); + return new PortworxVolumeNested<>(item); } public ProjectedNested withNewProjected() { - return new ProjectedNested(null); + return new ProjectedNested<>(null); } public ProjectedNested withNewProjectedLike(V1ProjectedVolumeSource item) { - return new ProjectedNested(item); + return new ProjectedNested<>(item); } public QuobyteNested withNewQuobyte() { - return new QuobyteNested(null); + return new QuobyteNested<>(null); } public QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { - return new QuobyteNested(item); + return new QuobyteNested<>(item); } public RbdNested withNewRbd() { - return new RbdNested(null); + return new RbdNested<>(null); } public RbdNested withNewRbdLike(V1RBDVolumeSource item) { - return new RbdNested(item); + return new RbdNested<>(item); } public ScaleIONested withNewScaleIO() { - return new ScaleIONested(null); + return new ScaleIONested<>(null); } public ScaleIONested withNewScaleIOLike(V1ScaleIOVolumeSource item) { - return new ScaleIONested(item); + return new ScaleIONested<>(item); } public SecretNested withNewSecret() { - return new SecretNested(null); + return new SecretNested<>(null); } public SecretNested withNewSecretLike(V1SecretVolumeSource item) { - return new SecretNested(item); + return new SecretNested<>(item); } public StorageosNested withNewStorageos() { - return new StorageosNested(null); + return new StorageosNested<>(null); } public StorageosNested withNewStorageosLike(V1StorageOSVolumeSource item) { - return new StorageosNested(item); + return new StorageosNested<>(item); } public VsphereVolumeNested withNewVsphereVolume() { - return new VsphereVolumeNested(null); + return new VsphereVolumeNested<>(null); } public VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { - return new VsphereVolumeNested(item); + return new VsphereVolumeNested<>(item); } public A withNfs(V1NFSVolumeSource nfs) { @@ -1462,8 +1464,8 @@ public A withNfs(V1NFSVolumeSource nfs) { this.nfs = new V1NFSVolumeSourceBuilder(nfs); this._visitables.get("nfs").add(this.nfs); } else { - this.nfs = null; this._visitables.get("nfs").remove(this.nfs); + this.nfs = null; } return (A) this; } @@ -1474,8 +1476,8 @@ public A withPersistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persisten this.persistentVolumeClaim = new V1PersistentVolumeClaimVolumeSourceBuilder(persistentVolumeClaim); this._visitables.get("persistentVolumeClaim").add(this.persistentVolumeClaim); } else { - this.persistentVolumeClaim = null; this._visitables.get("persistentVolumeClaim").remove(this.persistentVolumeClaim); + this.persistentVolumeClaim = null; } return (A) this; } @@ -1486,8 +1488,8 @@ public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersi this.photonPersistentDisk = new V1PhotonPersistentDiskVolumeSourceBuilder(photonPersistentDisk); this._visitables.get("photonPersistentDisk").add(this.photonPersistentDisk); } else { - this.photonPersistentDisk = null; this._visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); + this.photonPersistentDisk = null; } return (A) this; } @@ -1498,8 +1500,8 @@ public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { this.portworxVolume = new V1PortworxVolumeSourceBuilder(portworxVolume); this._visitables.get("portworxVolume").add(this.portworxVolume); } else { - this.portworxVolume = null; this._visitables.get("portworxVolume").remove(this.portworxVolume); + this.portworxVolume = null; } return (A) this; } @@ -1510,8 +1512,8 @@ public A withProjected(V1ProjectedVolumeSource projected) { this.projected = new V1ProjectedVolumeSourceBuilder(projected); this._visitables.get("projected").add(this.projected); } else { - this.projected = null; this._visitables.get("projected").remove(this.projected); + this.projected = null; } return (A) this; } @@ -1522,8 +1524,8 @@ public A withQuobyte(V1QuobyteVolumeSource quobyte) { this.quobyte = new V1QuobyteVolumeSourceBuilder(quobyte); this._visitables.get("quobyte").add(this.quobyte); } else { - this.quobyte = null; this._visitables.get("quobyte").remove(this.quobyte); + this.quobyte = null; } return (A) this; } @@ -1534,8 +1536,8 @@ public A withRbd(V1RBDVolumeSource rbd) { this.rbd = new V1RBDVolumeSourceBuilder(rbd); this._visitables.get("rbd").add(this.rbd); } else { - this.rbd = null; this._visitables.get("rbd").remove(this.rbd); + this.rbd = null; } return (A) this; } @@ -1546,8 +1548,8 @@ public A withScaleIO(V1ScaleIOVolumeSource scaleIO) { this.scaleIO = new V1ScaleIOVolumeSourceBuilder(scaleIO); this._visitables.get("scaleIO").add(this.scaleIO); } else { - this.scaleIO = null; this._visitables.get("scaleIO").remove(this.scaleIO); + this.scaleIO = null; } return (A) this; } @@ -1558,8 +1560,8 @@ public A withSecret(V1SecretVolumeSource secret) { this.secret = new V1SecretVolumeSourceBuilder(secret); this._visitables.get("secret").add(this.secret); } else { - this.secret = null; this._visitables.get("secret").remove(this.secret); + this.secret = null; } return (A) this; } @@ -1570,8 +1572,8 @@ public A withStorageos(V1StorageOSVolumeSource storageos) { this.storageos = new V1StorageOSVolumeSourceBuilder(storageos); this._visitables.get("storageos").add(this.storageos); } else { - this.storageos = null; this._visitables.get("storageos").remove(this.storageos); + this.storageos = null; } return (A) this; } @@ -1582,8 +1584,8 @@ public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { this.vsphereVolume = new V1VsphereVirtualDiskVolumeSourceBuilder(vsphereVolume); this._visitables.get("vsphereVolume").add(this.vsphereVolume); } else { - this.vsphereVolume = null; this._visitables.get("vsphereVolume").remove(this.vsphereVolume); + this.vsphereVolume = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthConditionBuilder.java new file mode 100644 index 0000000000..e96d01b5ce --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthConditionBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1VolumeHealthConditionBuilder extends V1VolumeHealthConditionFluent implements VisitableBuilder{ + + V1VolumeHealthConditionFluent fluent; + + public V1VolumeHealthConditionBuilder() { + this(new V1VolumeHealthCondition()); + } + + public V1VolumeHealthConditionBuilder(V1VolumeHealthConditionFluent fluent) { + this(fluent, new V1VolumeHealthCondition()); + } + + public V1VolumeHealthConditionBuilder(V1VolumeHealthCondition instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1VolumeHealthConditionBuilder(V1VolumeHealthConditionFluent fluent,V1VolumeHealthCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1VolumeHealthCondition build() { + V1VolumeHealthCondition buildable = new V1VolumeHealthCondition(); + buildable.setMessage(fluent.getMessage()); + buildable.setReason(fluent.getReason()); + buildable.setStatus(fluent.getStatus()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthConditionFluent.java new file mode 100644 index 0000000000..e3c6819fee --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthConditionFluent.java @@ -0,0 +1,137 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeHealthConditionFluent> extends BaseFluent{ + + private String message; + private String reason; + private String status; + + public V1VolumeHealthConditionFluent() { + } + + public V1VolumeHealthConditionFluent(V1VolumeHealthCondition instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1VolumeHealthCondition instance) { + instance = instance != null ? instance : new V1VolumeHealthCondition(); + if (instance != null) { + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeHealthConditionFluent that = (V1VolumeHealthConditionFluent) o; + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(message, reason, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthStatusBuilder.java new file mode 100644 index 0000000000..ec5c2a1335 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthStatusBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1VolumeHealthStatusBuilder extends V1VolumeHealthStatusFluent implements VisitableBuilder{ + + V1VolumeHealthStatusFluent fluent; + + public V1VolumeHealthStatusBuilder() { + this(new V1VolumeHealthStatus()); + } + + public V1VolumeHealthStatusBuilder(V1VolumeHealthStatusFluent fluent) { + this(fluent, new V1VolumeHealthStatus()); + } + + public V1VolumeHealthStatusBuilder(V1VolumeHealthStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1VolumeHealthStatusBuilder(V1VolumeHealthStatusFluent fluent,V1VolumeHealthStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1VolumeHealthStatus build() { + V1VolumeHealthStatus buildable = new V1VolumeHealthStatus(); + buildable.setHealthConditions(fluent.buildHealthConditions()); + buildable.setLastTransitionTime(fluent.getLastTransitionTime()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthStatusFluent.java new file mode 100644 index 0000000000..cdfea74f22 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthStatusFluent.java @@ -0,0 +1,336 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeHealthStatusFluent> extends BaseFluent{ + + private ArrayList healthConditions; + private OffsetDateTime lastTransitionTime; + + public V1VolumeHealthStatusFluent() { + } + + public V1VolumeHealthStatusFluent(V1VolumeHealthStatus instance) { + this.copyInstance(instance); + } + + public A addAllToHealthConditions(Collection items) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + for (V1VolumeHealthCondition item : items) { + V1VolumeHealthConditionBuilder builder = new V1VolumeHealthConditionBuilder(item); + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(builder); + } + return (A) this; + } + + public HealthConditionsNested addNewHealthCondition() { + return new HealthConditionsNested<>(-1, null); + } + + public HealthConditionsNested addNewHealthConditionLike(V1VolumeHealthCondition item) { + return new HealthConditionsNested<>(-1, item); + } + + public A addToHealthConditions(V1VolumeHealthCondition... items) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + for (V1VolumeHealthCondition item : items) { + V1VolumeHealthConditionBuilder builder = new V1VolumeHealthConditionBuilder(item); + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(builder); + } + return (A) this; + } + + public A addToHealthConditions(int index,V1VolumeHealthCondition item) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + V1VolumeHealthConditionBuilder builder = new V1VolumeHealthConditionBuilder(item); + if (index < 0 || index >= this.healthConditions.size()) { + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(builder); + } else { + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(index, builder); + } + return (A) this; + } + + public V1VolumeHealthCondition buildFirstHealthCondition() { + return this.healthConditions.get(0).build(); + } + + public V1VolumeHealthCondition buildHealthCondition(int index) { + return this.healthConditions.get(index).build(); + } + + public List buildHealthConditions() { + return this.healthConditions != null ? build(healthConditions) : null; + } + + public V1VolumeHealthCondition buildLastHealthCondition() { + return this.healthConditions.get(healthConditions.size() - 1).build(); + } + + public V1VolumeHealthCondition buildMatchingHealthCondition(Predicate predicate) { + for (V1VolumeHealthConditionBuilder item : healthConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + protected void copyInstance(V1VolumeHealthStatus instance) { + instance = instance != null ? instance : new V1VolumeHealthStatus(); + if (instance != null) { + this.withHealthConditions(instance.getHealthConditions()); + this.withLastTransitionTime(instance.getLastTransitionTime()); + } + } + + public HealthConditionsNested editFirstHealthCondition() { + if (healthConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "healthConditions")); + } + return this.setNewHealthConditionLike(0, this.buildHealthCondition(0)); + } + + public HealthConditionsNested editHealthCondition(int index) { + if (healthConditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "healthConditions")); + } + return this.setNewHealthConditionLike(index, this.buildHealthCondition(index)); + } + + public HealthConditionsNested editLastHealthCondition() { + int index = healthConditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "healthConditions")); + } + return this.setNewHealthConditionLike(index, this.buildHealthCondition(index)); + } + + public HealthConditionsNested editMatchingHealthCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < healthConditions.size();i++) { + if (predicate.test(healthConditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "healthConditions")); + } + return this.setNewHealthConditionLike(index, this.buildHealthCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeHealthStatusFluent that = (V1VolumeHealthStatusFluent) o; + if (!(Objects.equals(healthConditions, that.healthConditions))) { + return false; + } + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + return true; + } + + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public boolean hasHealthConditions() { + return this.healthConditions != null && !(this.healthConditions.isEmpty()); + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMatchingHealthCondition(Predicate predicate) { + for (V1VolumeHealthConditionBuilder item : healthConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(healthConditions, lastTransitionTime); + } + + public A removeAllFromHealthConditions(Collection items) { + if (this.healthConditions == null) { + return (A) this; + } + for (V1VolumeHealthCondition item : items) { + V1VolumeHealthConditionBuilder builder = new V1VolumeHealthConditionBuilder(item); + _visitables.get("healthConditions").remove(builder); + this.healthConditions.remove(builder); + } + return (A) this; + } + + public A removeFromHealthConditions(V1VolumeHealthCondition... items) { + if (this.healthConditions == null) { + return (A) this; + } + for (V1VolumeHealthCondition item : items) { + V1VolumeHealthConditionBuilder builder = new V1VolumeHealthConditionBuilder(item); + _visitables.get("healthConditions").remove(builder); + this.healthConditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromHealthConditions(Predicate predicate) { + if (healthConditions == null) { + return (A) this; + } + Iterator each = healthConditions.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("healthConditions"); + while (each.hasNext()) { + V1VolumeHealthConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public HealthConditionsNested setNewHealthConditionLike(int index,V1VolumeHealthCondition item) { + return new HealthConditionsNested<>(index, item); + } + + public A setToHealthConditions(int index,V1VolumeHealthCondition item) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + V1VolumeHealthConditionBuilder builder = new V1VolumeHealthConditionBuilder(item); + if (index < 0 || index >= this.healthConditions.size()) { + this._visitables.get("healthConditions").add(builder); + this.healthConditions.add(builder); + } else { + this._visitables.get("healthConditions").add(builder); + this.healthConditions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(healthConditions == null) && !(healthConditions.isEmpty())) { + sb.append("healthConditions:"); + sb.append(healthConditions); + sb.append(","); + } + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + } + sb.append("}"); + return sb.toString(); + } + + public A withHealthConditions(List healthConditions) { + if (this.healthConditions != null) { + this._visitables.get("healthConditions").clear(); + } + if (healthConditions != null) { + this.healthConditions = new ArrayList<>(); + for (V1VolumeHealthCondition item : healthConditions) { + this.addToHealthConditions(item); + } + } else { + this.healthConditions = null; + } + return (A) this; + } + + public A withHealthConditions(V1VolumeHealthCondition... healthConditions) { + if (this.healthConditions != null) { + this.healthConditions.clear(); + _visitables.remove("healthConditions"); + } + if (healthConditions != null) { + for (V1VolumeHealthCondition item : healthConditions) { + this.addToHealthConditions(item); + } + } + return (A) this; + } + + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + public class HealthConditionsNested extends V1VolumeHealthConditionFluent> implements Nested{ + + V1VolumeHealthConditionBuilder builder; + int index; + + HealthConditionsNested(int index,V1VolumeHealthCondition item) { + this.index = index; + this.builder = new V1VolumeHealthConditionBuilder(this, item); + } + + public N and() { + return (N) V1VolumeHealthStatusFluent.this.setToHealthConditions(index, builder.build()); + } + + public N endHealthCondition() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java index 35dd668f98..e03f355fb5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeMountBuilder extends V1VolumeMountFluent implements VisitableBuilder{ V1VolumeMountFluent fluent; @@ -38,6 +39,7 @@ public V1VolumeMountBuilder(V1VolumeMountFluent fluent,V1VolumeMount instance public V1VolumeMount build() { V1VolumeMount buildable = new V1VolumeMount(); + buildable.setBindMountOptions(fluent.getBindMountOptions()); buildable.setMountPath(fluent.getMountPath()); buildable.setMountPropagation(fluent.getMountPropagation()); buildable.setName(fluent.getName()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java index c48c05d55c..def341668a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java @@ -18,14 +18,21 @@ import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeMountFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeMountFluent> extends BaseFluent{ + private List bindMountOptions; private String mountPath; private String mountPropagation; private String name; @@ -41,9 +48,38 @@ public V1VolumeMountFluent(V1VolumeMount instance) { this.copyInstance(instance); } + public A addAllToBindMountOptions(Collection items) { + if (this.bindMountOptions == null) { + this.bindMountOptions = new ArrayList<>(); + } + for (String item : items) { + this.bindMountOptions.add(item); + } + return (A) this; + } + + public A addToBindMountOptions(String... items) { + if (this.bindMountOptions == null) { + this.bindMountOptions = new ArrayList<>(); + } + for (String item : items) { + this.bindMountOptions.add(item); + } + return (A) this; + } + + public A addToBindMountOptions(int index,String item) { + if (this.bindMountOptions == null) { + this.bindMountOptions = new ArrayList<>(); + } + this.bindMountOptions.add(index, item); + return (A) this; + } + protected void copyInstance(V1VolumeMount instance) { instance = instance != null ? instance : new V1VolumeMount(); if (instance != null) { + this.withBindMountOptions(instance.getBindMountOptions()); this.withMountPath(instance.getMountPath()); this.withMountPropagation(instance.getMountPropagation()); this.withName(instance.getName()); @@ -64,7 +100,10 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeMountFluent that = (V1VolumeMountFluent) o; + V1VolumeMountFluent that = (V1VolumeMountFluent) o; + if (!(Objects.equals(bindMountOptions, that.bindMountOptions))) { + return false; + } if (!(Objects.equals(mountPath, that.mountPath))) { return false; } @@ -89,6 +128,31 @@ public boolean equals(Object o) { return true; } + public String getBindMountOption(int index) { + return this.bindMountOptions.get(index); + } + + public List getBindMountOptions() { + return this.bindMountOptions; + } + + public String getFirstBindMountOption() { + return this.bindMountOptions.get(0); + } + + public String getLastBindMountOption() { + return this.bindMountOptions.get(bindMountOptions.size() - 1); + } + + public String getMatchingBindMountOption(Predicate predicate) { + for (String item : bindMountOptions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + public String getMountPath() { return this.mountPath; } @@ -117,6 +181,19 @@ public String getSubPathExpr() { return this.subPathExpr; } + public boolean hasBindMountOptions() { + return this.bindMountOptions != null && !(this.bindMountOptions.isEmpty()); + } + + public boolean hasMatchingBindMountOption(Predicate predicate) { + for (String item : bindMountOptions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMountPath() { return this.mountPath != null; } @@ -146,12 +223,45 @@ public boolean hasSubPathExpr() { } public int hashCode() { - return Objects.hash(mountPath, mountPropagation, name, readOnly, recursiveReadOnly, subPath, subPathExpr); + return Objects.hash(bindMountOptions, mountPath, mountPropagation, name, readOnly, recursiveReadOnly, subPath, subPathExpr); + } + + public A removeAllFromBindMountOptions(Collection items) { + if (this.bindMountOptions == null) { + return (A) this; + } + for (String item : items) { + this.bindMountOptions.remove(item); + } + return (A) this; + } + + public A removeFromBindMountOptions(String... items) { + if (this.bindMountOptions == null) { + return (A) this; + } + for (String item : items) { + this.bindMountOptions.remove(item); + } + return (A) this; + } + + public A setToBindMountOptions(int index,String item) { + if (this.bindMountOptions == null) { + this.bindMountOptions = new ArrayList<>(); + } + this.bindMountOptions.set(index, item); + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (!(bindMountOptions == null) && !(bindMountOptions.isEmpty())) { + sb.append("bindMountOptions:"); + sb.append(bindMountOptions); + sb.append(","); + } if (!(mountPath == null)) { sb.append("mountPath:"); sb.append(mountPath); @@ -190,6 +300,31 @@ public String toString() { return sb.toString(); } + public A withBindMountOptions(List bindMountOptions) { + if (bindMountOptions != null) { + this.bindMountOptions = new ArrayList<>(); + for (String item : bindMountOptions) { + this.addToBindMountOptions(item); + } + } else { + this.bindMountOptions = null; + } + return (A) this; + } + + public A withBindMountOptions(String... bindMountOptions) { + if (this.bindMountOptions != null) { + this.bindMountOptions.clear(); + _visitables.remove("bindMountOptions"); + } + if (bindMountOptions != null) { + for (String item : bindMountOptions) { + this.addToBindMountOptions(item); + } + } + return (A) this; + } + public A withMountPath(String mountPath) { this.mountPath = mountPath; return (A) this; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java index 4553e5a8f1..5f2394701c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeMountStatusBuilder extends V1VolumeMountStatusFluent implements VisitableBuilder{ V1VolumeMountStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java index dd1e9fb61b..69fe366bd8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeMountStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeMountStatusFluent> extends BaseFluent{ private String mountPath; private String name; @@ -78,7 +80,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeMountStatusFluent that = (V1VolumeMountStatusFluent) o; + V1VolumeMountStatusFluent that = (V1VolumeMountStatusFluent) o; if (!(Objects.equals(mountPath, that.mountPath))) { return false; } @@ -179,11 +181,11 @@ public A withName(String name) { } public VolumeStatusNested withNewVolumeStatus() { - return new VolumeStatusNested(null); + return new VolumeStatusNested<>(null); } public VolumeStatusNested withNewVolumeStatusLike(V1VolumeStatus item) { - return new VolumeStatusNested(item); + return new VolumeStatusNested<>(item); } public A withReadOnly() { @@ -206,8 +208,8 @@ public A withVolumeStatus(V1VolumeStatus volumeStatus) { this.volumeStatus = new V1VolumeStatusBuilder(volumeStatus); this._visitables.get("volumeStatus").add(this.volumeStatus); } else { - this.volumeStatus = null; this._visitables.get("volumeStatus").remove(this.volumeStatus); + this.volumeStatus = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java index 9e17094f71..4241cac866 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeNodeAffinityBuilder extends V1VolumeNodeAffinityFluent implements VisitableBuilder{ V1VolumeNodeAffinityFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java index 7c17e46a89..84673d90c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeNodeAffinityFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeNodeAffinityFluent> extends BaseFluent{ private V1NodeSelectorBuilder required; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeNodeAffinityFluent that = (V1VolumeNodeAffinityFluent) o; + V1VolumeNodeAffinityFluent that = (V1VolumeNodeAffinityFluent) o; if (!(Objects.equals(required, that.required))) { return false; } @@ -96,11 +98,11 @@ public String toString() { } public RequiredNested withNewRequired() { - return new RequiredNested(null); + return new RequiredNested<>(null); } public RequiredNested withNewRequiredLike(V1NodeSelector item) { - return new RequiredNested(item); + return new RequiredNested<>(item); } public A withRequired(V1NodeSelector required) { @@ -109,8 +111,8 @@ public A withRequired(V1NodeSelector required) { this.required = new V1NodeSelectorBuilder(required); this._visitables.get("required").add(this.required); } else { - this.required = null; this._visitables.get("required").remove(this.required); + this.required = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java index f1380dbc50..b07926cf81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeNodeResourcesBuilder extends V1VolumeNodeResourcesFluent implements VisitableBuilder{ V1VolumeNodeResourcesFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java index 21b5b31b92..06bffb8d4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeNodeResourcesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeNodeResourcesFluent> extends BaseFluent{ private Integer count; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeNodeResourcesFluent that = (V1VolumeNodeResourcesFluent) o; + V1VolumeNodeResourcesFluent that = (V1VolumeNodeResourcesFluent) o; if (!(Objects.equals(count, that.count))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java index 7d2d206dbf..e029c61300 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeProjectionBuilder extends V1VolumeProjectionFluent implements VisitableBuilder{ V1VolumeProjectionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java index cc9f876df4..53fe6b0202 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeProjectionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeProjectionFluent> extends BaseFluent{ private V1ClusterTrustBundleProjectionBuilder clusterTrustBundle; private V1ConfigMapProjectionBuilder configMap; @@ -159,7 +161,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeProjectionFluent that = (V1VolumeProjectionFluent) o; + V1VolumeProjectionFluent that = (V1VolumeProjectionFluent) o; if (!(Objects.equals(clusterTrustBundle, that.clusterTrustBundle))) { return false; } @@ -251,8 +253,8 @@ public A withClusterTrustBundle(V1ClusterTrustBundleProjection clusterTrustBundl this.clusterTrustBundle = new V1ClusterTrustBundleProjectionBuilder(clusterTrustBundle); this._visitables.get("clusterTrustBundle").add(this.clusterTrustBundle); } else { - this.clusterTrustBundle = null; this._visitables.get("clusterTrustBundle").remove(this.clusterTrustBundle); + this.clusterTrustBundle = null; } return (A) this; } @@ -263,8 +265,8 @@ public A withConfigMap(V1ConfigMapProjection configMap) { this.configMap = new V1ConfigMapProjectionBuilder(configMap); this._visitables.get("configMap").add(this.configMap); } else { - this.configMap = null; this._visitables.get("configMap").remove(this.configMap); + this.configMap = null; } return (A) this; } @@ -275,58 +277,58 @@ public A withDownwardAPI(V1DownwardAPIProjection downwardAPI) { this.downwardAPI = new V1DownwardAPIProjectionBuilder(downwardAPI); this._visitables.get("downwardAPI").add(this.downwardAPI); } else { - this.downwardAPI = null; this._visitables.get("downwardAPI").remove(this.downwardAPI); + this.downwardAPI = null; } return (A) this; } public ClusterTrustBundleNested withNewClusterTrustBundle() { - return new ClusterTrustBundleNested(null); + return new ClusterTrustBundleNested<>(null); } public ClusterTrustBundleNested withNewClusterTrustBundleLike(V1ClusterTrustBundleProjection item) { - return new ClusterTrustBundleNested(item); + return new ClusterTrustBundleNested<>(item); } public ConfigMapNested withNewConfigMap() { - return new ConfigMapNested(null); + return new ConfigMapNested<>(null); } public ConfigMapNested withNewConfigMapLike(V1ConfigMapProjection item) { - return new ConfigMapNested(item); + return new ConfigMapNested<>(item); } public DownwardAPINested withNewDownwardAPI() { - return new DownwardAPINested(null); + return new DownwardAPINested<>(null); } public DownwardAPINested withNewDownwardAPILike(V1DownwardAPIProjection item) { - return new DownwardAPINested(item); + return new DownwardAPINested<>(item); } public PodCertificateNested withNewPodCertificate() { - return new PodCertificateNested(null); + return new PodCertificateNested<>(null); } public PodCertificateNested withNewPodCertificateLike(V1PodCertificateProjection item) { - return new PodCertificateNested(item); + return new PodCertificateNested<>(item); } public SecretNested withNewSecret() { - return new SecretNested(null); + return new SecretNested<>(null); } public SecretNested withNewSecretLike(V1SecretProjection item) { - return new SecretNested(item); + return new SecretNested<>(item); } public ServiceAccountTokenNested withNewServiceAccountToken() { - return new ServiceAccountTokenNested(null); + return new ServiceAccountTokenNested<>(null); } public ServiceAccountTokenNested withNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item) { - return new ServiceAccountTokenNested(item); + return new ServiceAccountTokenNested<>(item); } public A withPodCertificate(V1PodCertificateProjection podCertificate) { @@ -335,8 +337,8 @@ public A withPodCertificate(V1PodCertificateProjection podCertificate) { this.podCertificate = new V1PodCertificateProjectionBuilder(podCertificate); this._visitables.get("podCertificate").add(this.podCertificate); } else { - this.podCertificate = null; this._visitables.get("podCertificate").remove(this.podCertificate); + this.podCertificate = null; } return (A) this; } @@ -347,8 +349,8 @@ public A withSecret(V1SecretProjection secret) { this.secret = new V1SecretProjectionBuilder(secret); this._visitables.get("secret").add(this.secret); } else { - this.secret = null; this._visitables.get("secret").remove(this.secret); + this.secret = null; } return (A) this; } @@ -359,8 +361,8 @@ public A withServiceAccountToken(V1ServiceAccountTokenProjection serviceAccountT this.serviceAccountToken = new V1ServiceAccountTokenProjectionBuilder(serviceAccountToken); this._visitables.get("serviceAccountToken").add(this.serviceAccountToken); } else { - this.serviceAccountToken = null; this._visitables.get("serviceAccountToken").remove(this.serviceAccountToken); + this.serviceAccountToken = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java index a8a656218f..cb4e0db1b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeResourceRequirementsBuilder extends V1VolumeResourceRequirementsFluent implements VisitableBuilder{ V1VolumeResourceRequirementsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java index 4114218db9..dd01482823 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java @@ -21,12 +21,14 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeResourceRequirementsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeResourceRequirementsFluent> extends BaseFluent{ private Map limits; private Map requests; @@ -40,7 +42,7 @@ public V1VolumeResourceRequirementsFluent(V1VolumeResourceRequirements instance) public A addToLimits(Map map) { if (this.limits == null && map != null) { - this.limits = new LinkedHashMap(); + this.limits = new LinkedHashMap<>(); } if (map != null) { this.limits.putAll(map); @@ -50,7 +52,7 @@ public A addToLimits(Map map) { public A addToLimits(String key,Quantity value) { if (this.limits == null && key != null && value != null) { - this.limits = new LinkedHashMap(); + this.limits = new LinkedHashMap<>(); } if (key != null && value != null) { this.limits.put(key, value); @@ -60,7 +62,7 @@ public A addToLimits(String key,Quantity value) { public A addToRequests(Map map) { if (this.requests == null && map != null) { - this.requests = new LinkedHashMap(); + this.requests = new LinkedHashMap<>(); } if (map != null) { this.requests.putAll(map); @@ -70,7 +72,7 @@ public A addToRequests(Map map) { public A addToRequests(String key,Quantity value) { if (this.requests == null && key != null && value != null) { - this.requests = new LinkedHashMap(); + this.requests = new LinkedHashMap<>(); } if (key != null && value != null) { this.requests.put(key, value); @@ -96,7 +98,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeResourceRequirementsFluent that = (V1VolumeResourceRequirementsFluent) o; + V1VolumeResourceRequirementsFluent that = (V1VolumeResourceRequirementsFluent) o; if (!(Objects.equals(limits, that.limits))) { return false; } @@ -194,7 +196,7 @@ public A withLimits(Map limits) { if (limits == null) { this.limits = null; } else { - this.limits = new LinkedHashMap(limits); + this.limits = new LinkedHashMap<>(limits); } return (A) this; } @@ -203,7 +205,7 @@ public A withRequests(Map requests) { if (requests == null) { this.requests = null; } else { - this.requests = new LinkedHashMap(requests); + this.requests = new LinkedHashMap<>(requests); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusBuilder.java index 0dceb7012e..19b7a1cf2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VolumeStatusBuilder extends V1VolumeStatusFluent implements VisitableBuilder{ V1VolumeStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusFluent.java index cacfcf5cdb..707af5af6b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VolumeStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VolumeStatusFluent> extends BaseFluent{ private V1ImageVolumeStatusBuilder image; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VolumeStatusFluent that = (V1VolumeStatusFluent) o; + V1VolumeStatusFluent that = (V1VolumeStatusFluent) o; if (!(Objects.equals(image, that.image))) { return false; } @@ -101,18 +103,18 @@ public A withImage(V1ImageVolumeStatus image) { this.image = new V1ImageVolumeStatusBuilder(image); this._visitables.get("image").add(this.image); } else { - this.image = null; this._visitables.get("image").remove(this.image); + this.image = null; } return (A) this; } public ImageNested withNewImage() { - return new ImageNested(null); + return new ImageNested<>(null); } public ImageNested withNewImageLike(V1ImageVolumeStatus item) { - return new ImageNested(item); + return new ImageNested<>(item); } public class ImageNested extends V1ImageVolumeStatusFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java index 7aeb63c1b4..90582b07f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1VsphereVirtualDiskVolumeSourceBuilder extends V1VsphereVirtualDiskVolumeSourceFluent implements VisitableBuilder{ V1VsphereVirtualDiskVolumeSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java index 768aa80815..b608e02860 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1VsphereVirtualDiskVolumeSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1VsphereVirtualDiskVolumeSourceFluent> extends BaseFluent{ private String fsType; private String storagePolicyID; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1VsphereVirtualDiskVolumeSourceFluent that = (V1VsphereVirtualDiskVolumeSourceFluent) o; + V1VsphereVirtualDiskVolumeSourceFluent that = (V1VsphereVirtualDiskVolumeSourceFluent) o; if (!(Objects.equals(fsType, that.fsType))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java index c2475455e7..c879927bf6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1WatchEventBuilder extends V1WatchEventFluent implements VisitableBuilder{ V1WatchEventFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java index 6f1a557eae..e5fc3023f0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1WatchEventFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1WatchEventFluent> extends BaseFluent{ private Object _object; private String type; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1WatchEventFluent that = (V1WatchEventFluent) o; + V1WatchEventFluent that = (V1WatchEventFluent) o; if (!(Objects.equals(_object, that._object))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java index 32b0ea164c..b6481ebe17 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1WebhookConversionBuilder extends V1WebhookConversionFluent implements VisitableBuilder{ V1WebhookConversionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java index 00b97bbff0..533db1f532 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java @@ -24,12 +24,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1WebhookConversionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1WebhookConversionFluent> extends BaseFluent{ private ApiextensionsV1WebhookClientConfigBuilder clientConfig; private List conversionReviewVersions; @@ -43,7 +45,7 @@ public V1WebhookConversionFluent(V1WebhookConversion instance) { public A addAllToConversionReviewVersions(Collection items) { if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); + this.conversionReviewVersions = new ArrayList<>(); } for (String item : items) { this.conversionReviewVersions.add(item); @@ -53,7 +55,7 @@ public A addAllToConversionReviewVersions(Collection items) { public A addToConversionReviewVersions(String... items) { if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); + this.conversionReviewVersions = new ArrayList<>(); } for (String item : items) { this.conversionReviewVersions.add(item); @@ -63,7 +65,7 @@ public A addToConversionReviewVersions(String... items) { public A addToConversionReviewVersions(int index,String item) { if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); + this.conversionReviewVersions = new ArrayList<>(); } this.conversionReviewVersions.add(index, item); return (A) this; @@ -103,7 +105,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1WebhookConversionFluent that = (V1WebhookConversionFluent) o; + V1WebhookConversionFluent that = (V1WebhookConversionFluent) o; if (!(Objects.equals(clientConfig, that.clientConfig))) { return false; } @@ -181,7 +183,7 @@ public A removeFromConversionReviewVersions(String... items) { public A setToConversionReviewVersions(int index,String item) { if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); + this.conversionReviewVersions = new ArrayList<>(); } this.conversionReviewVersions.set(index, item); return (A) this; @@ -209,15 +211,15 @@ public A withClientConfig(ApiextensionsV1WebhookClientConfig clientConfig) { this.clientConfig = new ApiextensionsV1WebhookClientConfigBuilder(clientConfig); this._visitables.get("clientConfig").add(this.clientConfig); } else { - this.clientConfig = null; this._visitables.get("clientConfig").remove(this.clientConfig); + this.clientConfig = null; } return (A) this; } public A withConversionReviewVersions(List conversionReviewVersions) { if (conversionReviewVersions != null) { - this.conversionReviewVersions = new ArrayList(); + this.conversionReviewVersions = new ArrayList<>(); for (String item : conversionReviewVersions) { this.addToConversionReviewVersions(item); } @@ -241,11 +243,11 @@ public A withConversionReviewVersions(String... conversionReviewVersions) { } public ClientConfigNested withNewClientConfig() { - return new ClientConfigNested(null); + return new ClientConfigNested<>(null); } public ClientConfigNested withNewClientConfigLike(ApiextensionsV1WebhookClientConfig item) { - return new ClientConfigNested(item); + return new ClientConfigNested<>(item); } public class ClientConfigNested extends ApiextensionsV1WebhookClientConfigFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java index 8f6331f1e6..8746935e4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1WeightedPodAffinityTermBuilder extends V1WeightedPodAffinityTermFluent implements VisitableBuilder{ V1WeightedPodAffinityTermFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java index 198e04f02f..68571b4190 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1WeightedPodAffinityTermFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1WeightedPodAffinityTermFluent> extends BaseFluent{ private V1PodAffinityTermBuilder podAffinityTerm; private Integer weight; @@ -72,7 +74,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1WeightedPodAffinityTermFluent that = (V1WeightedPodAffinityTermFluent) o; + V1WeightedPodAffinityTermFluent that = (V1WeightedPodAffinityTermFluent) o; if (!(Objects.equals(podAffinityTerm, that.podAffinityTerm))) { return false; } @@ -115,11 +117,11 @@ public String toString() { } public PodAffinityTermNested withNewPodAffinityTerm() { - return new PodAffinityTermNested(null); + return new PodAffinityTermNested<>(null); } public PodAffinityTermNested withNewPodAffinityTermLike(V1PodAffinityTerm item) { - return new PodAffinityTermNested(item); + return new PodAffinityTermNested<>(item); } public A withPodAffinityTerm(V1PodAffinityTerm podAffinityTerm) { @@ -128,8 +130,8 @@ public A withPodAffinityTerm(V1PodAffinityTerm podAffinityTerm) { this.podAffinityTerm = new V1PodAffinityTermBuilder(podAffinityTerm); this._visitables.get("podAffinityTerm").add(this.podAffinityTerm); } else { - this.podAffinityTerm = null; this._visitables.get("podAffinityTerm").remove(this.podAffinityTerm); + this.podAffinityTerm = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java index 419451dfbe..67af02062c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1WindowsSecurityContextOptionsBuilder extends V1WindowsSecurityContextOptionsFluent implements VisitableBuilder{ V1WindowsSecurityContextOptionsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java index 24c9f8c5e5..b33a468a49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1WindowsSecurityContextOptionsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1WindowsSecurityContextOptionsFluent> extends BaseFluent{ private String gmsaCredentialSpec; private String gmsaCredentialSpecName; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1WindowsSecurityContextOptionsFluent that = (V1WindowsSecurityContextOptionsFluent) o; + V1WindowsSecurityContextOptionsFluent that = (V1WindowsSecurityContextOptionsFluent) o; if (!(Objects.equals(gmsaCredentialSpec, that.gmsaCredentialSpec))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java index e258347e04..82fa7e12eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1ApplyConfigurationBuilder extends V1alpha1ApplyConfigurationFluent implements VisitableBuilder{ V1alpha1ApplyConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java index 02f8303ea7..51439da494 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1ApplyConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1ApplyConfigurationFluent> extends BaseFluent{ private String expression; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1ApplyConfigurationFluent that = (V1alpha1ApplyConfigurationFluent) o; + V1alpha1ApplyConfigurationFluent that = (V1alpha1ApplyConfigurationFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionBuilder.java similarity index 59% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionBuilder.java index c08803146f..0c894c9c2a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1beta1ServiceCIDRBuilder extends V1beta1ServiceCIDRFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1EvictionBuilder extends V1alpha1EvictionFluent implements VisitableBuilder{ - V1beta1ServiceCIDRFluent fluent; + V1alpha1EvictionFluent fluent; - public V1beta1ServiceCIDRBuilder() { - this(new V1beta1ServiceCIDR()); + public V1alpha1EvictionBuilder() { + this(new V1alpha1Eviction()); } - public V1beta1ServiceCIDRBuilder(V1beta1ServiceCIDRFluent fluent) { - this(fluent, new V1beta1ServiceCIDR()); + public V1alpha1EvictionBuilder(V1alpha1EvictionFluent fluent) { + this(fluent, new V1alpha1Eviction()); } - public V1beta1ServiceCIDRBuilder(V1beta1ServiceCIDR instance) { + public V1alpha1EvictionBuilder(V1alpha1Eviction instance) { this.fluent = this; this.copyInstance(instance); } - public V1beta1ServiceCIDRBuilder(V1beta1ServiceCIDRFluent fluent,V1beta1ServiceCIDR instance) { + public V1alpha1EvictionBuilder(V1alpha1EvictionFluent fluent,V1alpha1Eviction instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1beta1ServiceCIDR build() { - V1beta1ServiceCIDR buildable = new V1beta1ServiceCIDR(); + public V1alpha1Eviction build() { + V1alpha1Eviction buildable = new V1alpha1Eviction(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); buildable.setMetadata(fluent.buildMetadata()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionFluent.java similarity index 74% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionFluent.java index ede7304e34..d15f82f07a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionFluent.java @@ -20,23 +20,25 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ServiceCIDRFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1EvictionFluent> extends BaseFluent{ private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; - private V1beta1ServiceCIDRSpecBuilder spec; - private V1beta1ServiceCIDRStatusBuilder status; + private V1alpha1EvictionSpecBuilder spec; + private V1alpha1EvictionStatusBuilder status; - public V1beta1ServiceCIDRFluent() { + public V1alpha1EvictionFluent() { } - public V1beta1ServiceCIDRFluent(V1beta1ServiceCIDR instance) { + public V1alpha1EvictionFluent(V1alpha1Eviction instance) { this.copyInstance(instance); } @@ -44,16 +46,16 @@ public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public V1beta1ServiceCIDRSpec buildSpec() { + public V1alpha1EvictionSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public V1beta1ServiceCIDRStatus buildStatus() { + public V1alpha1EvictionStatus buildStatus() { return this.status != null ? this.status.build() : null; } - protected void copyInstance(V1beta1ServiceCIDR instance) { - instance = instance != null ? instance : new V1beta1ServiceCIDR(); + protected void copyInstance(V1alpha1Eviction instance) { + instance = instance != null ? instance : new V1alpha1Eviction(); if (instance != null) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -76,18 +78,18 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { } public SpecNested editOrNewSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ServiceCIDRSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1EvictionSpecBuilder().build())); } - public SpecNested editOrNewSpecLike(V1beta1ServiceCIDRSpec item) { + public SpecNested editOrNewSpecLike(V1alpha1EvictionSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta1ServiceCIDRStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha1EvictionStatusBuilder().build())); } - public StatusNested editOrNewStatusLike(V1beta1ServiceCIDRStatus item) { + public StatusNested editOrNewStatusLike(V1alpha1EvictionStatus item) { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ServiceCIDRFluent that = (V1beta1ServiceCIDRFluent) o; + V1alpha1EvictionFluent that = (V1alpha1EvictionFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,56 +209,56 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } - public SpecNested withNewSpecLike(V1beta1ServiceCIDRSpec item) { - return new SpecNested(item); + public SpecNested withNewSpecLike(V1alpha1EvictionSpec item) { + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } - public StatusNested withNewStatusLike(V1beta1ServiceCIDRStatus item) { - return new StatusNested(item); + public StatusNested withNewStatusLike(V1alpha1EvictionStatus item) { + return new StatusNested<>(item); } - public A withSpec(V1beta1ServiceCIDRSpec spec) { + public A withSpec(V1alpha1EvictionSpec spec) { this._visitables.remove("spec"); if (spec != null) { - this.spec = new V1beta1ServiceCIDRSpecBuilder(spec); + this.spec = new V1alpha1EvictionSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } - public A withStatus(V1beta1ServiceCIDRStatus status) { + public A withStatus(V1alpha1EvictionStatus status) { this._visitables.remove("status"); if (status != null) { - this.status = new V1beta1ServiceCIDRStatusBuilder(status); + this.status = new V1alpha1EvictionStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } @@ -269,7 +271,7 @@ public class MetadataNested extends V1ObjectMetaFluent> imp } public N and() { - return (N) V1beta1ServiceCIDRFluent.this.withMetadata(builder.build()); + return (N) V1alpha1EvictionFluent.this.withMetadata(builder.build()); } public N endMetadata() { @@ -277,16 +279,16 @@ public N endMetadata() { } } - public class SpecNested extends V1beta1ServiceCIDRSpecFluent> implements Nested{ + public class SpecNested extends V1alpha1EvictionSpecFluent> implements Nested{ - V1beta1ServiceCIDRSpecBuilder builder; + V1alpha1EvictionSpecBuilder builder; - SpecNested(V1beta1ServiceCIDRSpec item) { - this.builder = new V1beta1ServiceCIDRSpecBuilder(this, item); + SpecNested(V1alpha1EvictionSpec item) { + this.builder = new V1alpha1EvictionSpecBuilder(this, item); } public N and() { - return (N) V1beta1ServiceCIDRFluent.this.withSpec(builder.build()); + return (N) V1alpha1EvictionFluent.this.withSpec(builder.build()); } public N endSpec() { @@ -294,16 +296,16 @@ public N endSpec() { } } - public class StatusNested extends V1beta1ServiceCIDRStatusFluent> implements Nested{ + public class StatusNested extends V1alpha1EvictionStatusFluent> implements Nested{ - V1beta1ServiceCIDRStatusBuilder builder; + V1alpha1EvictionStatusBuilder builder; - StatusNested(V1beta1ServiceCIDRStatus item) { - this.builder = new V1beta1ServiceCIDRStatusBuilder(this, item); + StatusNested(V1alpha1EvictionStatus item) { + this.builder = new V1alpha1EvictionStatusBuilder(this, item); } public N and() { - return (N) V1beta1ServiceCIDRFluent.this.withStatus(builder.build()); + return (N) V1alpha1EvictionFluent.this.withStatus(builder.build()); } public N endStatus() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionListBuilder.java similarity index 57% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupListBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionListBuilder.java index b5862109f2..16bf129ead 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionListBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2PodGroupListBuilder extends V1alpha2PodGroupListFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1EvictionListBuilder extends V1alpha1EvictionListFluent implements VisitableBuilder{ - V1alpha2PodGroupListFluent fluent; + V1alpha1EvictionListFluent fluent; - public V1alpha2PodGroupListBuilder() { - this(new V1alpha2PodGroupList()); + public V1alpha1EvictionListBuilder() { + this(new V1alpha1EvictionList()); } - public V1alpha2PodGroupListBuilder(V1alpha2PodGroupListFluent fluent) { - this(fluent, new V1alpha2PodGroupList()); + public V1alpha1EvictionListBuilder(V1alpha1EvictionListFluent fluent) { + this(fluent, new V1alpha1EvictionList()); } - public V1alpha2PodGroupListBuilder(V1alpha2PodGroupList instance) { + public V1alpha1EvictionListBuilder(V1alpha1EvictionList instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2PodGroupListBuilder(V1alpha2PodGroupListFluent fluent,V1alpha2PodGroupList instance) { + public V1alpha1EvictionListBuilder(V1alpha1EvictionListFluent fluent,V1alpha1EvictionList instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2PodGroupList build() { - V1alpha2PodGroupList buildable = new V1alpha2PodGroupList(); + public V1alpha1EvictionList build() { + V1alpha1EvictionList buildable = new V1alpha1EvictionList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.buildItems()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionListFluent.java similarity index 72% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionListFluent.java index 12e84eb62b..542d94489e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionListFluent.java @@ -26,31 +26,33 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1IPAddressListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1EvictionListFluent> extends BaseFluent{ private String apiVersion; - private ArrayList items; + private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public V1beta1IPAddressListFluent() { + public V1alpha1EvictionListFluent() { } - public V1beta1IPAddressListFluent(V1beta1IPAddressList instance) { + public V1alpha1EvictionListFluent(V1alpha1EvictionList instance) { this.copyInstance(instance); } - public A addAllToItems(Collection items) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - for (V1beta1IPAddress item : items) { - V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + for (V1alpha1Eviction item : items) { + V1alpha1EvictionBuilder builder = new V1alpha1EvictionBuilder(item); this._visitables.get("items").add(builder); this.items.add(builder); } @@ -58,30 +60,30 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } - public ItemsNested addNewItemLike(V1beta1IPAddress item) { - return new ItemsNested(-1, item); + public ItemsNested addNewItemLike(V1alpha1Eviction item) { + return new ItemsNested<>(-1, item); } - public A addToItems(V1beta1IPAddress... items) { + public A addToItems(V1alpha1Eviction... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - for (V1beta1IPAddress item : items) { - V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + for (V1alpha1Eviction item : items) { + V1alpha1EvictionBuilder builder = new V1alpha1EvictionBuilder(item); this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; } - public A addToItems(int index,V1beta1IPAddress item) { + public A addToItems(int index,V1alpha1Eviction item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + V1alpha1EvictionBuilder builder = new V1alpha1EvictionBuilder(item); if (index < 0 || index >= this.items.size()) { this._visitables.get("items").add(builder); this.items.add(builder); @@ -92,24 +94,24 @@ public A addToItems(int index,V1beta1IPAddress item) { return (A) this; } - public V1beta1IPAddress buildFirstItem() { + public V1alpha1Eviction buildFirstItem() { return this.items.get(0).build(); } - public V1beta1IPAddress buildItem(int index) { + public V1alpha1Eviction buildItem(int index) { return this.items.get(index).build(); } - public List buildItems() { + public List buildItems() { return this.items != null ? build(items) : null; } - public V1beta1IPAddress buildLastItem() { + public V1alpha1Eviction buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1beta1IPAddress buildMatchingItem(Predicate predicate) { - for (V1beta1IPAddressBuilder item : items) { + public V1alpha1Eviction buildMatchingItem(Predicate predicate) { + for (V1alpha1EvictionBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -121,8 +123,8 @@ public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - protected void copyInstance(V1beta1IPAddressList instance) { - instance = instance != null ? instance : new V1beta1IPAddressList(); + protected void copyInstance(V1alpha1EvictionList instance) { + instance = instance != null ? instance : new V1alpha1EvictionList(); if (instance != null) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -153,7 +155,7 @@ public ItemsNested editLastItem() { return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editMatchingItem(Predicate predicate) { + public ItemsNested editMatchingItem(Predicate predicate) { int index = -1; for (int i = 0;i < items.size();i++) { if (predicate.test(items.get(i))) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1IPAddressListFluent that = (V1beta1IPAddressListFluent) o; + V1alpha1EvictionListFluent that = (V1alpha1EvictionListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -225,8 +227,8 @@ public boolean hasKind() { return this.kind != null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta1IPAddressBuilder item : items) { + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1EvictionBuilder item : items) { if (predicate.test(item)) { return true; } @@ -242,38 +244,39 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - public A removeAllFromItems(Collection items) { + public A removeAllFromItems(Collection items) { if (this.items == null) { return (A) this; } - for (V1beta1IPAddress item : items) { - V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + for (V1alpha1Eviction item : items) { + V1alpha1EvictionBuilder builder = new V1alpha1EvictionBuilder(item); _visitables.get("items").remove(builder); this.items.remove(builder); } return (A) this; } - public A removeFromItems(V1beta1IPAddress... items) { + public A removeFromItems(V1alpha1Eviction... items) { if (this.items == null) { return (A) this; } - for (V1beta1IPAddress item : items) { - V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + for (V1alpha1Eviction item : items) { + V1alpha1EvictionBuilder builder = new V1alpha1EvictionBuilder(item); _visitables.get("items").remove(builder); this.items.remove(builder); } return (A) this; } - public A removeMatchingFromItems(Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) { return (A) this; } - Iterator each = items.iterator(); + Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { - V1beta1IPAddressBuilder builder = each.next(); + V1alpha1EvictionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -282,15 +285,15 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } - public ItemsNested setNewItemLike(int index,V1beta1IPAddress item) { - return new ItemsNested(index, item); + public ItemsNested setNewItemLike(int index,V1alpha1Eviction item) { + return new ItemsNested<>(index, item); } - public A setToItems(int index,V1beta1IPAddress item) { + public A setToItems(int index,V1alpha1Eviction item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + V1alpha1EvictionBuilder builder = new V1alpha1EvictionBuilder(item); if (index < 0 || index >= this.items.size()) { this._visitables.get("items").add(builder); this.items.add(builder); @@ -332,13 +335,13 @@ public A withApiVersion(String apiVersion) { return (A) this; } - public A withItems(List items) { + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); - for (V1beta1IPAddress item : items) { + this.items = new ArrayList<>(); + for (V1alpha1Eviction item : items) { this.addToItems(item); } } else { @@ -347,13 +350,13 @@ public A withItems(List items) { return (A) this; } - public A withItems(V1beta1IPAddress... items) { + public A withItems(V1alpha1Eviction... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); } if (items != null) { - for (V1beta1IPAddress item : items) { + for (V1alpha1Eviction item : items) { this.addToItems(item); } } @@ -371,31 +374,31 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } - public class ItemsNested extends V1beta1IPAddressFluent> implements Nested{ + public class ItemsNested extends V1alpha1EvictionFluent> implements Nested{ - V1beta1IPAddressBuilder builder; + V1alpha1EvictionBuilder builder; int index; - ItemsNested(int index,V1beta1IPAddress item) { + ItemsNested(int index,V1alpha1Eviction item) { this.index = index; - this.builder = new V1beta1IPAddressBuilder(this, item); + this.builder = new V1alpha1EvictionBuilder(this, item); } public N and() { - return (N) V1beta1IPAddressListFluent.this.setToItems(index, builder.build()); + return (N) V1alpha1EvictionListFluent.this.setToItems(index, builder.build()); } public N endItem() { @@ -412,7 +415,7 @@ public class MetadataNested extends V1ListMetaFluent> imple } public N and() { - return (N) V1beta1IPAddressListFluent.this.withMetadata(builder.build()); + return (N) V1alpha1EvictionListFluent.this.withMetadata(builder.build()); } public N endMetadata() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionPodReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionPodReferenceBuilder.java new file mode 100644 index 0000000000..ba0396182f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionPodReferenceBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1EvictionPodReferenceBuilder extends V1alpha1EvictionPodReferenceFluent implements VisitableBuilder{ + + V1alpha1EvictionPodReferenceFluent fluent; + + public V1alpha1EvictionPodReferenceBuilder() { + this(new V1alpha1EvictionPodReference()); + } + + public V1alpha1EvictionPodReferenceBuilder(V1alpha1EvictionPodReferenceFluent fluent) { + this(fluent, new V1alpha1EvictionPodReference()); + } + + public V1alpha1EvictionPodReferenceBuilder(V1alpha1EvictionPodReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1EvictionPodReferenceBuilder(V1alpha1EvictionPodReferenceFluent fluent,V1alpha1EvictionPodReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1EvictionPodReference build() { + V1alpha1EvictionPodReference buildable = new V1alpha1EvictionPodReference(); + buildable.setName(fluent.getName()); + buildable.setUid(fluent.getUid()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionPodReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionPodReferenceFluent.java new file mode 100644 index 0000000000..ca1ecf27dc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionPodReferenceFluent.java @@ -0,0 +1,114 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1EvictionPodReferenceFluent> extends BaseFluent{ + + private String name; + private String uid; + + public V1alpha1EvictionPodReferenceFluent() { + } + + public V1alpha1EvictionPodReferenceFluent(V1alpha1EvictionPodReference instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha1EvictionPodReference instance) { + instance = instance != null ? instance : new V1alpha1EvictionPodReference(); + if (instance != null) { + this.withName(instance.getName()); + this.withUid(instance.getUid()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1EvictionPodReferenceFluent that = (V1alpha1EvictionPodReferenceFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public String getUid() { + return this.uid; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasUid() { + return this.uid != null; + } + + public int hashCode() { + return Objects.hash(name, uid); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestBuilder.java similarity index 54% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestBuilder.java index 1b86e30001..ed3308fe67 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestBuilder.java @@ -13,35 +13,37 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha1ClusterTrustBundleBuilder extends V1alpha1ClusterTrustBundleFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1EvictionRequestBuilder extends V1alpha1EvictionRequestFluent implements VisitableBuilder{ - V1alpha1ClusterTrustBundleFluent fluent; + V1alpha1EvictionRequestFluent fluent; - public V1alpha1ClusterTrustBundleBuilder() { - this(new V1alpha1ClusterTrustBundle()); + public V1alpha1EvictionRequestBuilder() { + this(new V1alpha1EvictionRequest()); } - public V1alpha1ClusterTrustBundleBuilder(V1alpha1ClusterTrustBundleFluent fluent) { - this(fluent, new V1alpha1ClusterTrustBundle()); + public V1alpha1EvictionRequestBuilder(V1alpha1EvictionRequestFluent fluent) { + this(fluent, new V1alpha1EvictionRequest()); } - public V1alpha1ClusterTrustBundleBuilder(V1alpha1ClusterTrustBundle instance) { + public V1alpha1EvictionRequestBuilder(V1alpha1EvictionRequest instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha1ClusterTrustBundleBuilder(V1alpha1ClusterTrustBundleFluent fluent,V1alpha1ClusterTrustBundle instance) { + public V1alpha1EvictionRequestBuilder(V1alpha1EvictionRequestFluent fluent,V1alpha1EvictionRequest instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha1ClusterTrustBundle build() { - V1alpha1ClusterTrustBundle buildable = new V1alpha1ClusterTrustBundle(); + public V1alpha1EvictionRequest build() { + V1alpha1EvictionRequest buildable = new V1alpha1EvictionRequest(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); buildable.setMetadata(fluent.buildMetadata()); buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestFluent.java new file mode 100644 index 0000000000..c648bd6736 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestFluent.java @@ -0,0 +1,316 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1EvictionRequestFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha1EvictionRequestSpecBuilder spec; + private V1alpha1EvictionRequestStatusBuilder status; + + public V1alpha1EvictionRequestFluent() { + } + + public V1alpha1EvictionRequestFluent(V1alpha1EvictionRequest instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha1EvictionRequestSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1alpha1EvictionRequestStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + protected void copyInstance(V1alpha1EvictionRequest instance) { + instance = instance != null ? instance : new V1alpha1EvictionRequest(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1EvictionRequestSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha1EvictionRequestSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha1EvictionRequestStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1alpha1EvictionRequestStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1EvictionRequestFluent that = (V1alpha1EvictionRequestFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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._visitables.get("metadata").remove(this.metadata); + this.metadata = null; + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested<>(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested<>(item); + } + + public SpecNested withNewSpec() { + return new SpecNested<>(null); + } + + public SpecNested withNewSpecLike(V1alpha1EvictionRequestSpec item) { + return new SpecNested<>(item); + } + + public StatusNested withNewStatus() { + return new StatusNested<>(null); + } + + public StatusNested withNewStatusLike(V1alpha1EvictionRequestStatus item) { + return new StatusNested<>(item); + } + + public A withSpec(V1alpha1EvictionRequestSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha1EvictionRequestSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this._visitables.get("spec").remove(this.spec); + this.spec = null; + } + return (A) this; + } + + public A withStatus(V1alpha1EvictionRequestStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1alpha1EvictionRequestStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this._visitables.get("status").remove(this.status); + this.status = null; + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionRequestFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1alpha1EvictionRequestSpecFluent> implements Nested{ + + V1alpha1EvictionRequestSpecBuilder builder; + + SpecNested(V1alpha1EvictionRequestSpec item) { + this.builder = new V1alpha1EvictionRequestSpecBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionRequestFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1alpha1EvictionRequestStatusFluent> implements Nested{ + + V1alpha1EvictionRequestStatusBuilder builder; + + StatusNested(V1alpha1EvictionRequestStatus item) { + this.builder = new V1alpha1EvictionRequestStatusBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionRequestFluent.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/V1alpha1EvictionRequestListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestListBuilder.java new file mode 100644 index 0000000000..5380911e52 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestListBuilder.java @@ -0,0 +1,49 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1EvictionRequestListBuilder extends V1alpha1EvictionRequestListFluent implements VisitableBuilder{ + + V1alpha1EvictionRequestListFluent fluent; + + public V1alpha1EvictionRequestListBuilder() { + this(new V1alpha1EvictionRequestList()); + } + + public V1alpha1EvictionRequestListBuilder(V1alpha1EvictionRequestListFluent fluent) { + this(fluent, new V1alpha1EvictionRequestList()); + } + + public V1alpha1EvictionRequestListBuilder(V1alpha1EvictionRequestList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1EvictionRequestListBuilder(V1alpha1EvictionRequestListFluent fluent,V1alpha1EvictionRequestList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1EvictionRequestList build() { + V1alpha1EvictionRequestList buildable = new V1alpha1EvictionRequestList(); + 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/V1alpha1EvictionRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestListFluent.java new file mode 100644 index 0000000000..099920707c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestListFluent.java @@ -0,0 +1,426 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1EvictionRequestListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1alpha1EvictionRequestListFluent() { + } + + public V1alpha1EvictionRequestListFluent(V1alpha1EvictionRequestList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + for (V1alpha1EvictionRequest item : items) { + V1alpha1EvictionRequestBuilder builder = new V1alpha1EvictionRequestBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested<>(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1EvictionRequest item) { + return new ItemsNested<>(-1, item); + } + + public A addToItems(V1alpha1EvictionRequest... items) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + for (V1alpha1EvictionRequest item : items) { + V1alpha1EvictionRequestBuilder builder = new V1alpha1EvictionRequestBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1alpha1EvictionRequest item) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + V1alpha1EvictionRequestBuilder builder = new V1alpha1EvictionRequestBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.add(index, builder); + } + return (A) this; + } + + public V1alpha1EvictionRequest buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha1EvictionRequest buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha1EvictionRequest buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha1EvictionRequest buildMatchingItem(Predicate predicate) { + for (V1alpha1EvictionRequestBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1alpha1EvictionRequestList instance) { + instance = instance != null ? instance : new V1alpha1EvictionRequestList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1EvictionRequestListFluent that = (V1alpha1EvictionRequestListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1EvictionRequestBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1EvictionRequest item : items) { + V1alpha1EvictionRequestBuilder builder = new V1alpha1EvictionRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha1EvictionRequest... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1EvictionRequest item : items) { + V1alpha1EvictionRequestBuilder builder = new V1alpha1EvictionRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("items"); + while (each.hasNext()) { + V1alpha1EvictionRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha1EvictionRequest item) { + return new ItemsNested<>(index, item); + } + + public A setToItems(int index,V1alpha1EvictionRequest item) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + V1alpha1EvictionRequestBuilder builder = new V1alpha1EvictionRequestBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList<>(); + for (V1alpha1EvictionRequest item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha1EvictionRequest... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1EvictionRequest item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested<>(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested<>(item); + } + public class ItemsNested extends V1alpha1EvictionRequestFluent> implements Nested{ + + V1alpha1EvictionRequestBuilder builder; + int index; + + ItemsNested(int index,V1alpha1EvictionRequest item) { + this.index = index; + this.builder = new V1alpha1EvictionRequestBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionRequestListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionRequestListFluent.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/V1alpha1EvictionRequestPodReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestPodReferenceBuilder.java new file mode 100644 index 0000000000..3f71eee602 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestPodReferenceBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1EvictionRequestPodReferenceBuilder extends V1alpha1EvictionRequestPodReferenceFluent implements VisitableBuilder{ + + V1alpha1EvictionRequestPodReferenceFluent fluent; + + public V1alpha1EvictionRequestPodReferenceBuilder() { + this(new V1alpha1EvictionRequestPodReference()); + } + + public V1alpha1EvictionRequestPodReferenceBuilder(V1alpha1EvictionRequestPodReferenceFluent fluent) { + this(fluent, new V1alpha1EvictionRequestPodReference()); + } + + public V1alpha1EvictionRequestPodReferenceBuilder(V1alpha1EvictionRequestPodReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1EvictionRequestPodReferenceBuilder(V1alpha1EvictionRequestPodReferenceFluent fluent,V1alpha1EvictionRequestPodReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1EvictionRequestPodReference build() { + V1alpha1EvictionRequestPodReference buildable = new V1alpha1EvictionRequestPodReference(); + buildable.setName(fluent.getName()); + buildable.setUid(fluent.getUid()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestPodReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestPodReferenceFluent.java new file mode 100644 index 0000000000..e73e9448b7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestPodReferenceFluent.java @@ -0,0 +1,114 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1EvictionRequestPodReferenceFluent> extends BaseFluent{ + + private String name; + private String uid; + + public V1alpha1EvictionRequestPodReferenceFluent() { + } + + public V1alpha1EvictionRequestPodReferenceFluent(V1alpha1EvictionRequestPodReference instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha1EvictionRequestPodReference instance) { + instance = instance != null ? instance : new V1alpha1EvictionRequestPodReference(); + if (instance != null) { + this.withName(instance.getName()); + this.withUid(instance.getUid()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1EvictionRequestPodReferenceFluent that = (V1alpha1EvictionRequestPodReferenceFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public String getUid() { + return this.uid; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasUid() { + return this.uid != null; + } + + public int hashCode() { + return Objects.hash(name, uid); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestSpecBuilder.java new file mode 100644 index 0000000000..3c0c4879a6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestSpecBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1EvictionRequestSpecBuilder extends V1alpha1EvictionRequestSpecFluent implements VisitableBuilder{ + + V1alpha1EvictionRequestSpecFluent fluent; + + public V1alpha1EvictionRequestSpecBuilder() { + this(new V1alpha1EvictionRequestSpec()); + } + + public V1alpha1EvictionRequestSpecBuilder(V1alpha1EvictionRequestSpecFluent fluent) { + this(fluent, new V1alpha1EvictionRequestSpec()); + } + + public V1alpha1EvictionRequestSpecBuilder(V1alpha1EvictionRequestSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1EvictionRequestSpecBuilder(V1alpha1EvictionRequestSpecFluent fluent,V1alpha1EvictionRequestSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1EvictionRequestSpec build() { + V1alpha1EvictionRequestSpec buildable = new V1alpha1EvictionRequestSpec(); + buildable.setIntent(fluent.getIntent()); + buildable.setRequester(fluent.getRequester()); + buildable.setTarget(fluent.buildTarget()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestSpecFluent.java new file mode 100644 index 0000000000..ac22591703 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestSpecFluent.java @@ -0,0 +1,182 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1EvictionRequestSpecFluent> extends BaseFluent{ + + private String intent; + private String requester; + private V1alpha1EvictionRequestTargetBuilder target; + + public V1alpha1EvictionRequestSpecFluent() { + } + + public V1alpha1EvictionRequestSpecFluent(V1alpha1EvictionRequestSpec instance) { + this.copyInstance(instance); + } + + public V1alpha1EvictionRequestTarget buildTarget() { + return this.target != null ? this.target.build() : null; + } + + protected void copyInstance(V1alpha1EvictionRequestSpec instance) { + instance = instance != null ? instance : new V1alpha1EvictionRequestSpec(); + if (instance != null) { + this.withIntent(instance.getIntent()); + this.withRequester(instance.getRequester()); + this.withTarget(instance.getTarget()); + } + } + + public TargetNested editOrNewTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V1alpha1EvictionRequestTargetBuilder().build())); + } + + public TargetNested editOrNewTargetLike(V1alpha1EvictionRequestTarget item) { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); + } + + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1EvictionRequestSpecFluent that = (V1alpha1EvictionRequestSpecFluent) o; + if (!(Objects.equals(intent, that.intent))) { + return false; + } + if (!(Objects.equals(requester, that.requester))) { + return false; + } + if (!(Objects.equals(target, that.target))) { + return false; + } + return true; + } + + public String getIntent() { + return this.intent; + } + + public String getRequester() { + return this.requester; + } + + public boolean hasIntent() { + return this.intent != null; + } + + public boolean hasRequester() { + return this.requester != null; + } + + public boolean hasTarget() { + return this.target != null; + } + + public int hashCode() { + return Objects.hash(intent, requester, target); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(intent == null)) { + sb.append("intent:"); + sb.append(intent); + sb.append(","); + } + if (!(requester == null)) { + sb.append("requester:"); + sb.append(requester); + sb.append(","); + } + if (!(target == null)) { + sb.append("target:"); + sb.append(target); + } + sb.append("}"); + return sb.toString(); + } + + public A withIntent(String intent) { + this.intent = intent; + return (A) this; + } + + public TargetNested withNewTarget() { + return new TargetNested<>(null); + } + + public TargetNested withNewTargetLike(V1alpha1EvictionRequestTarget item) { + return new TargetNested<>(item); + } + + public A withRequester(String requester) { + this.requester = requester; + return (A) this; + } + + public A withTarget(V1alpha1EvictionRequestTarget target) { + this._visitables.remove("target"); + if (target != null) { + this.target = new V1alpha1EvictionRequestTargetBuilder(target); + this._visitables.get("target").add(this.target); + } else { + this._visitables.get("target").remove(this.target); + this.target = null; + } + return (A) this; + } + public class TargetNested extends V1alpha1EvictionRequestTargetFluent> implements Nested{ + + V1alpha1EvictionRequestTargetBuilder builder; + + TargetNested(V1alpha1EvictionRequestTarget item) { + this.builder = new V1alpha1EvictionRequestTargetBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionRequestSpecFluent.this.withTarget(builder.build()); + } + + public N endTarget() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestStatusBuilder.java new file mode 100644 index 0000000000..3323283ebf --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestStatusBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1EvictionRequestStatusBuilder extends V1alpha1EvictionRequestStatusFluent implements VisitableBuilder{ + + V1alpha1EvictionRequestStatusFluent fluent; + + public V1alpha1EvictionRequestStatusBuilder() { + this(new V1alpha1EvictionRequestStatus()); + } + + public V1alpha1EvictionRequestStatusBuilder(V1alpha1EvictionRequestStatusFluent fluent) { + this(fluent, new V1alpha1EvictionRequestStatus()); + } + + public V1alpha1EvictionRequestStatusBuilder(V1alpha1EvictionRequestStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1EvictionRequestStatusBuilder(V1alpha1EvictionRequestStatusFluent fluent,V1alpha1EvictionRequestStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1EvictionRequestStatus build() { + V1alpha1EvictionRequestStatus buildable = new V1alpha1EvictionRequestStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setObservedGeneration(fluent.getObservedGeneration()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestStatusFluent.java new file mode 100644 index 0000000000..4017e76084 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestStatusFluent.java @@ -0,0 +1,336 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1EvictionRequestStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private Long observedGeneration; + + public V1alpha1EvictionRequestStatusFluent() { + } + + public V1alpha1EvictionRequestStatusFluent(V1alpha1EvictionRequestStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested<>(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested<>(-1, item); + } + + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); + } + return (A) this; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + 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; + } + + protected void copyInstance(V1alpha1EvictionRequestStatus instance) { + instance = instance != null ? instance : new V1alpha1EvictionRequestStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withObservedGeneration(instance.getObservedGeneration()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1EvictionRequestStatusFluent that = (V1alpha1EvictionRequestStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + return true; + } + + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + + public int hashCode() { + return Objects.hash(conditions, observedGeneration); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested<>(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionRequestStatusFluent.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/V1alpha1EvictionRequestTargetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestTargetBuilder.java new file mode 100644 index 0000000000..a364b22973 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestTargetBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1EvictionRequestTargetBuilder extends V1alpha1EvictionRequestTargetFluent implements VisitableBuilder{ + + V1alpha1EvictionRequestTargetFluent fluent; + + public V1alpha1EvictionRequestTargetBuilder() { + this(new V1alpha1EvictionRequestTarget()); + } + + public V1alpha1EvictionRequestTargetBuilder(V1alpha1EvictionRequestTargetFluent fluent) { + this(fluent, new V1alpha1EvictionRequestTarget()); + } + + public V1alpha1EvictionRequestTargetBuilder(V1alpha1EvictionRequestTarget instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1EvictionRequestTargetBuilder(V1alpha1EvictionRequestTargetFluent fluent,V1alpha1EvictionRequestTarget instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1EvictionRequestTarget build() { + V1alpha1EvictionRequestTarget buildable = new V1alpha1EvictionRequestTarget(); + buildable.setPod(fluent.buildPod()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestTargetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestTargetFluent.java new file mode 100644 index 0000000000..be46b096ab --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestTargetFluent.java @@ -0,0 +1,136 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1EvictionRequestTargetFluent> extends BaseFluent{ + + private V1alpha1EvictionRequestPodReferenceBuilder pod; + + public V1alpha1EvictionRequestTargetFluent() { + } + + public V1alpha1EvictionRequestTargetFluent(V1alpha1EvictionRequestTarget instance) { + this.copyInstance(instance); + } + + public V1alpha1EvictionRequestPodReference buildPod() { + return this.pod != null ? this.pod.build() : null; + } + + protected void copyInstance(V1alpha1EvictionRequestTarget instance) { + instance = instance != null ? instance : new V1alpha1EvictionRequestTarget(); + if (instance != null) { + this.withPod(instance.getPod()); + } + } + + public PodNested editOrNewPod() { + return this.withNewPodLike(Optional.ofNullable(this.buildPod()).orElse(new V1alpha1EvictionRequestPodReferenceBuilder().build())); + } + + public PodNested editOrNewPodLike(V1alpha1EvictionRequestPodReference item) { + return this.withNewPodLike(Optional.ofNullable(this.buildPod()).orElse(item)); + } + + public PodNested editPod() { + return this.withNewPodLike(Optional.ofNullable(this.buildPod()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1EvictionRequestTargetFluent that = (V1alpha1EvictionRequestTargetFluent) o; + if (!(Objects.equals(pod, that.pod))) { + return false; + } + return true; + } + + public boolean hasPod() { + return this.pod != null; + } + + public int hashCode() { + return Objects.hash(pod); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(pod == null)) { + sb.append("pod:"); + sb.append(pod); + } + sb.append("}"); + return sb.toString(); + } + + public PodNested withNewPod() { + return new PodNested<>(null); + } + + public PodNested withNewPodLike(V1alpha1EvictionRequestPodReference item) { + return new PodNested<>(item); + } + + public A withPod(V1alpha1EvictionRequestPodReference pod) { + this._visitables.remove("pod"); + if (pod != null) { + this.pod = new V1alpha1EvictionRequestPodReferenceBuilder(pod); + this._visitables.get("pod").add(this.pod); + } else { + this._visitables.get("pod").remove(this.pod); + this.pod = null; + } + return (A) this; + } + public class PodNested extends V1alpha1EvictionRequestPodReferenceFluent> implements Nested{ + + V1alpha1EvictionRequestPodReferenceBuilder builder; + + PodNested(V1alpha1EvictionRequestPodReference item) { + this.builder = new V1alpha1EvictionRequestPodReferenceBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionRequestTargetFluent.this.withPod(builder.build()); + } + + public N endPod() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionSpecBuilder.java new file mode 100644 index 0000000000..980c934e42 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionSpecBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1EvictionSpecBuilder extends V1alpha1EvictionSpecFluent implements VisitableBuilder{ + + V1alpha1EvictionSpecFluent fluent; + + public V1alpha1EvictionSpecBuilder() { + this(new V1alpha1EvictionSpec()); + } + + public V1alpha1EvictionSpecBuilder(V1alpha1EvictionSpecFluent fluent) { + this(fluent, new V1alpha1EvictionSpec()); + } + + public V1alpha1EvictionSpecBuilder(V1alpha1EvictionSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1EvictionSpecBuilder(V1alpha1EvictionSpecFluent fluent,V1alpha1EvictionSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1EvictionSpec build() { + V1alpha1EvictionSpec buildable = new V1alpha1EvictionSpec(); + buildable.setTarget(fluent.buildTarget()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionSpecFluent.java new file mode 100644 index 0000000000..cd0669f566 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionSpecFluent.java @@ -0,0 +1,136 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1EvictionSpecFluent> extends BaseFluent{ + + private V1alpha1EvictionTargetBuilder target; + + public V1alpha1EvictionSpecFluent() { + } + + public V1alpha1EvictionSpecFluent(V1alpha1EvictionSpec instance) { + this.copyInstance(instance); + } + + public V1alpha1EvictionTarget buildTarget() { + return this.target != null ? this.target.build() : null; + } + + protected void copyInstance(V1alpha1EvictionSpec instance) { + instance = instance != null ? instance : new V1alpha1EvictionSpec(); + if (instance != null) { + this.withTarget(instance.getTarget()); + } + } + + public TargetNested editOrNewTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V1alpha1EvictionTargetBuilder().build())); + } + + public TargetNested editOrNewTargetLike(V1alpha1EvictionTarget item) { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); + } + + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1EvictionSpecFluent that = (V1alpha1EvictionSpecFluent) o; + if (!(Objects.equals(target, that.target))) { + return false; + } + return true; + } + + public boolean hasTarget() { + return this.target != null; + } + + public int hashCode() { + return Objects.hash(target); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(target == null)) { + sb.append("target:"); + sb.append(target); + } + sb.append("}"); + return sb.toString(); + } + + public TargetNested withNewTarget() { + return new TargetNested<>(null); + } + + public TargetNested withNewTargetLike(V1alpha1EvictionTarget item) { + return new TargetNested<>(item); + } + + public A withTarget(V1alpha1EvictionTarget target) { + this._visitables.remove("target"); + if (target != null) { + this.target = new V1alpha1EvictionTargetBuilder(target); + this._visitables.get("target").add(this.target); + } else { + this._visitables.get("target").remove(this.target); + this.target = null; + } + return (A) this; + } + public class TargetNested extends V1alpha1EvictionTargetFluent> implements Nested{ + + V1alpha1EvictionTargetBuilder builder; + + TargetNested(V1alpha1EvictionTarget item) { + this.builder = new V1alpha1EvictionTargetBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionSpecFluent.this.withTarget(builder.build()); + } + + public N endTarget() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionStatusBuilder.java new file mode 100644 index 0000000000..7cc86a9f54 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionStatusBuilder.java @@ -0,0 +1,50 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1EvictionStatusBuilder extends V1alpha1EvictionStatusFluent implements VisitableBuilder{ + + V1alpha1EvictionStatusFluent fluent; + + public V1alpha1EvictionStatusBuilder() { + this(new V1alpha1EvictionStatus()); + } + + public V1alpha1EvictionStatusBuilder(V1alpha1EvictionStatusFluent fluent) { + this(fluent, new V1alpha1EvictionStatus()); + } + + public V1alpha1EvictionStatusBuilder(V1alpha1EvictionStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1EvictionStatusBuilder(V1alpha1EvictionStatusFluent fluent,V1alpha1EvictionStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1EvictionStatus build() { + V1alpha1EvictionStatus buildable = new V1alpha1EvictionStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setObservedGeneration(fluent.getObservedGeneration()); + buildable.setRequesters(fluent.buildRequesters()); + buildable.setResponders(fluent.buildResponders()); + buildable.setTargetResponders(fluent.buildTargetResponders()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionStatusFluent.java new file mode 100644 index 0000000000..a42d529aa8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionStatusFluent.java @@ -0,0 +1,1050 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1EvictionStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private Long observedGeneration; + private ArrayList requesters; + private ArrayList responders; + private ArrayList targetResponders; + + public V1alpha1EvictionStatusFluent() { + } + + public V1alpha1EvictionStatusFluent(V1alpha1EvictionStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addAllToRequesters(Collection items) { + if (this.requesters == null) { + this.requesters = new ArrayList<>(); + } + for (V1alpha1Requester item : items) { + V1alpha1RequesterBuilder builder = new V1alpha1RequesterBuilder(item); + this._visitables.get("requesters").add(builder); + this.requesters.add(builder); + } + return (A) this; + } + + public A addAllToResponders(Collection items) { + if (this.responders == null) { + this.responders = new ArrayList<>(); + } + for (V1alpha1ResponderStatus item : items) { + V1alpha1ResponderStatusBuilder builder = new V1alpha1ResponderStatusBuilder(item); + this._visitables.get("responders").add(builder); + this.responders.add(builder); + } + return (A) this; + } + + public A addAllToTargetResponders(Collection items) { + if (this.targetResponders == null) { + this.targetResponders = new ArrayList<>(); + } + for (V1alpha1TargetResponder item : items) { + V1alpha1TargetResponderBuilder builder = new V1alpha1TargetResponderBuilder(item); + this._visitables.get("targetResponders").add(builder); + this.targetResponders.add(builder); + } + return (A) this; + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested<>(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested<>(-1, item); + } + + public RequestersNested addNewRequester() { + return new RequestersNested<>(-1, null); + } + + public RequestersNested addNewRequesterLike(V1alpha1Requester item) { + return new RequestersNested<>(-1, item); + } + + public RespondersNested addNewResponder() { + return new RespondersNested<>(-1, null); + } + + public RespondersNested addNewResponderLike(V1alpha1ResponderStatus item) { + return new RespondersNested<>(-1, item); + } + + public TargetRespondersNested addNewTargetResponder() { + return new TargetRespondersNested<>(-1, null); + } + + public TargetRespondersNested addNewTargetResponderLike(V1alpha1TargetResponder item) { + return new TargetRespondersNested<>(-1, item); + } + + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); + } + return (A) this; + } + + public A addToRequesters(V1alpha1Requester... items) { + if (this.requesters == null) { + this.requesters = new ArrayList<>(); + } + for (V1alpha1Requester item : items) { + V1alpha1RequesterBuilder builder = new V1alpha1RequesterBuilder(item); + this._visitables.get("requesters").add(builder); + this.requesters.add(builder); + } + return (A) this; + } + + public A addToRequesters(int index,V1alpha1Requester item) { + if (this.requesters == null) { + this.requesters = new ArrayList<>(); + } + V1alpha1RequesterBuilder builder = new V1alpha1RequesterBuilder(item); + if (index < 0 || index >= this.requesters.size()) { + this._visitables.get("requesters").add(builder); + this.requesters.add(builder); + } else { + this._visitables.get("requesters").add(builder); + this.requesters.add(index, builder); + } + return (A) this; + } + + public A addToResponders(V1alpha1ResponderStatus... items) { + if (this.responders == null) { + this.responders = new ArrayList<>(); + } + for (V1alpha1ResponderStatus item : items) { + V1alpha1ResponderStatusBuilder builder = new V1alpha1ResponderStatusBuilder(item); + this._visitables.get("responders").add(builder); + this.responders.add(builder); + } + return (A) this; + } + + public A addToResponders(int index,V1alpha1ResponderStatus item) { + if (this.responders == null) { + this.responders = new ArrayList<>(); + } + V1alpha1ResponderStatusBuilder builder = new V1alpha1ResponderStatusBuilder(item); + if (index < 0 || index >= this.responders.size()) { + this._visitables.get("responders").add(builder); + this.responders.add(builder); + } else { + this._visitables.get("responders").add(builder); + this.responders.add(index, builder); + } + return (A) this; + } + + public A addToTargetResponders(V1alpha1TargetResponder... items) { + if (this.targetResponders == null) { + this.targetResponders = new ArrayList<>(); + } + for (V1alpha1TargetResponder item : items) { + V1alpha1TargetResponderBuilder builder = new V1alpha1TargetResponderBuilder(item); + this._visitables.get("targetResponders").add(builder); + this.targetResponders.add(builder); + } + return (A) this; + } + + public A addToTargetResponders(int index,V1alpha1TargetResponder item) { + if (this.targetResponders == null) { + this.targetResponders = new ArrayList<>(); + } + V1alpha1TargetResponderBuilder builder = new V1alpha1TargetResponderBuilder(item); + if (index < 0 || index >= this.targetResponders.size()) { + this._visitables.get("targetResponders").add(builder); + this.targetResponders.add(builder); + } else { + this._visitables.get("targetResponders").add(builder); + this.targetResponders.add(index, builder); + } + return (A) this; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1alpha1Requester buildFirstRequester() { + return this.requesters.get(0).build(); + } + + public V1alpha1ResponderStatus buildFirstResponder() { + return this.responders.get(0).build(); + } + + public V1alpha1TargetResponder buildFirstTargetResponder() { + return this.targetResponders.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1alpha1Requester buildLastRequester() { + return this.requesters.get(requesters.size() - 1).build(); + } + + public V1alpha1ResponderStatus buildLastResponder() { + return this.responders.get(responders.size() - 1).build(); + } + + public V1alpha1TargetResponder buildLastTargetResponder() { + return this.targetResponders.get(targetResponders.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha1Requester buildMatchingRequester(Predicate predicate) { + for (V1alpha1RequesterBuilder item : requesters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha1ResponderStatus buildMatchingResponder(Predicate predicate) { + for (V1alpha1ResponderStatusBuilder item : responders) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha1TargetResponder buildMatchingTargetResponder(Predicate predicate) { + for (V1alpha1TargetResponderBuilder item : targetResponders) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha1Requester buildRequester(int index) { + return this.requesters.get(index).build(); + } + + public List buildRequesters() { + return this.requesters != null ? build(requesters) : null; + } + + public V1alpha1ResponderStatus buildResponder(int index) { + return this.responders.get(index).build(); + } + + public List buildResponders() { + return this.responders != null ? build(responders) : null; + } + + public V1alpha1TargetResponder buildTargetResponder(int index) { + return this.targetResponders.get(index).build(); + } + + public List buildTargetResponders() { + return this.targetResponders != null ? build(targetResponders) : null; + } + + protected void copyInstance(V1alpha1EvictionStatus instance) { + instance = instance != null ? instance : new V1alpha1EvictionStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withRequesters(instance.getRequesters()); + this.withResponders(instance.getResponders()); + this.withTargetResponders(instance.getTargetResponders()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public RequestersNested editFirstRequester() { + if (requesters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requesters")); + } + return this.setNewRequesterLike(0, this.buildRequester(0)); + } + + public RespondersNested editFirstResponder() { + if (responders.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "responders")); + } + return this.setNewResponderLike(0, this.buildResponder(0)); + } + + public TargetRespondersNested editFirstTargetResponder() { + if (targetResponders.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "targetResponders")); + } + return this.setNewTargetResponderLike(0, this.buildTargetResponder(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public RequestersNested editLastRequester() { + int index = requesters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requesters")); + } + return this.setNewRequesterLike(index, this.buildRequester(index)); + } + + public RespondersNested editLastResponder() { + int index = responders.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "responders")); + } + return this.setNewResponderLike(index, this.buildResponder(index)); + } + + public TargetRespondersNested editLastTargetResponder() { + int index = targetResponders.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "targetResponders")); + } + return this.setNewTargetResponderLike(index, this.buildTargetResponder(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public RequestersNested editMatchingRequester(Predicate predicate) { + int index = -1; + for (int i = 0;i < requesters.size();i++) { + if (predicate.test(requesters.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requesters")); + } + return this.setNewRequesterLike(index, this.buildRequester(index)); + } + + public RespondersNested editMatchingResponder(Predicate predicate) { + int index = -1; + for (int i = 0;i < responders.size();i++) { + if (predicate.test(responders.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "responders")); + } + return this.setNewResponderLike(index, this.buildResponder(index)); + } + + public TargetRespondersNested editMatchingTargetResponder(Predicate predicate) { + int index = -1; + for (int i = 0;i < targetResponders.size();i++) { + if (predicate.test(targetResponders.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "targetResponders")); + } + return this.setNewTargetResponderLike(index, this.buildTargetResponder(index)); + } + + public RequestersNested editRequester(int index) { + if (requesters.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requesters")); + } + return this.setNewRequesterLike(index, this.buildRequester(index)); + } + + public RespondersNested editResponder(int index) { + if (responders.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "responders")); + } + return this.setNewResponderLike(index, this.buildResponder(index)); + } + + public TargetRespondersNested editTargetResponder(int index) { + if (targetResponders.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "targetResponders")); + } + return this.setNewTargetResponderLike(index, this.buildTargetResponder(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1EvictionStatusFluent that = (V1alpha1EvictionStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(requesters, that.requesters))) { + return false; + } + if (!(Objects.equals(responders, that.responders))) { + return false; + } + if (!(Objects.equals(targetResponders, that.targetResponders))) { + return false; + } + return true; + } + + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingRequester(Predicate predicate) { + for (V1alpha1RequesterBuilder item : requesters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResponder(Predicate predicate) { + for (V1alpha1ResponderStatusBuilder item : responders) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingTargetResponder(Predicate predicate) { + for (V1alpha1TargetResponderBuilder item : targetResponders) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + + public boolean hasRequesters() { + return this.requesters != null && !(this.requesters.isEmpty()); + } + + public boolean hasResponders() { + return this.responders != null && !(this.responders.isEmpty()); + } + + public boolean hasTargetResponders() { + return this.targetResponders != null && !(this.targetResponders.isEmpty()); + } + + public int hashCode() { + return Objects.hash(conditions, observedGeneration, requesters, responders, targetResponders); + } + + 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 removeAllFromRequesters(Collection items) { + if (this.requesters == null) { + return (A) this; + } + for (V1alpha1Requester item : items) { + V1alpha1RequesterBuilder builder = new V1alpha1RequesterBuilder(item); + _visitables.get("requesters").remove(builder); + this.requesters.remove(builder); + } + return (A) this; + } + + public A removeAllFromResponders(Collection items) { + if (this.responders == null) { + return (A) this; + } + for (V1alpha1ResponderStatus item : items) { + V1alpha1ResponderStatusBuilder builder = new V1alpha1ResponderStatusBuilder(item); + _visitables.get("responders").remove(builder); + this.responders.remove(builder); + } + return (A) this; + } + + public A removeAllFromTargetResponders(Collection items) { + if (this.targetResponders == null) { + return (A) this; + } + for (V1alpha1TargetResponder item : items) { + V1alpha1TargetResponderBuilder builder = new V1alpha1TargetResponderBuilder(item); + _visitables.get("targetResponders").remove(builder); + this.targetResponders.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(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 removeFromRequesters(V1alpha1Requester... items) { + if (this.requesters == null) { + return (A) this; + } + for (V1alpha1Requester item : items) { + V1alpha1RequesterBuilder builder = new V1alpha1RequesterBuilder(item); + _visitables.get("requesters").remove(builder); + this.requesters.remove(builder); + } + return (A) this; + } + + public A removeFromResponders(V1alpha1ResponderStatus... items) { + if (this.responders == null) { + return (A) this; + } + for (V1alpha1ResponderStatus item : items) { + V1alpha1ResponderStatusBuilder builder = new V1alpha1ResponderStatusBuilder(item); + _visitables.get("responders").remove(builder); + this.responders.remove(builder); + } + return (A) this; + } + + public A removeFromTargetResponders(V1alpha1TargetResponder... items) { + if (this.targetResponders == null) { + return (A) this; + } + for (V1alpha1TargetResponder item : items) { + V1alpha1TargetResponderBuilder builder = new V1alpha1TargetResponderBuilder(item); + _visitables.get("targetResponders").remove(builder); + this.targetResponders.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromRequesters(Predicate predicate) { + if (requesters == null) { + return (A) this; + } + Iterator each = requesters.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("requesters"); + while (each.hasNext()) { + V1alpha1RequesterBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromResponders(Predicate predicate) { + if (responders == null) { + return (A) this; + } + Iterator each = responders.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("responders"); + while (each.hasNext()) { + V1alpha1ResponderStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromTargetResponders(Predicate predicate) { + if (targetResponders == null) { + return (A) this; + } + Iterator each = targetResponders.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("targetResponders"); + while (each.hasNext()) { + V1alpha1TargetResponderBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested<>(index, item); + } + + public RequestersNested setNewRequesterLike(int index,V1alpha1Requester item) { + return new RequestersNested<>(index, item); + } + + public RespondersNested setNewResponderLike(int index,V1alpha1ResponderStatus item) { + return new RespondersNested<>(index, item); + } + + public TargetRespondersNested setNewTargetResponderLike(int index,V1alpha1TargetResponder item) { + return new TargetRespondersNested<>(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); + } + return (A) this; + } + + public A setToRequesters(int index,V1alpha1Requester item) { + if (this.requesters == null) { + this.requesters = new ArrayList<>(); + } + V1alpha1RequesterBuilder builder = new V1alpha1RequesterBuilder(item); + if (index < 0 || index >= this.requesters.size()) { + this._visitables.get("requesters").add(builder); + this.requesters.add(builder); + } else { + this._visitables.get("requesters").add(builder); + this.requesters.set(index, builder); + } + return (A) this; + } + + public A setToResponders(int index,V1alpha1ResponderStatus item) { + if (this.responders == null) { + this.responders = new ArrayList<>(); + } + V1alpha1ResponderStatusBuilder builder = new V1alpha1ResponderStatusBuilder(item); + if (index < 0 || index >= this.responders.size()) { + this._visitables.get("responders").add(builder); + this.responders.add(builder); + } else { + this._visitables.get("responders").add(builder); + this.responders.set(index, builder); + } + return (A) this; + } + + public A setToTargetResponders(int index,V1alpha1TargetResponder item) { + if (this.targetResponders == null) { + this.targetResponders = new ArrayList<>(); + } + V1alpha1TargetResponderBuilder builder = new V1alpha1TargetResponderBuilder(item); + if (index < 0 || index >= this.targetResponders.size()) { + this._visitables.get("targetResponders").add(builder); + this.targetResponders.add(builder); + } else { + this._visitables.get("targetResponders").add(builder); + this.targetResponders.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(requesters == null) && !(requesters.isEmpty())) { + sb.append("requesters:"); + sb.append(requesters); + sb.append(","); + } + if (!(responders == null) && !(responders.isEmpty())) { + sb.append("responders:"); + sb.append(responders); + sb.append(","); + } + if (!(targetResponders == null) && !(targetResponders.isEmpty())) { + sb.append("targetResponders:"); + sb.append(targetResponders); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withRequesters(List requesters) { + if (this.requesters != null) { + this._visitables.get("requesters").clear(); + } + if (requesters != null) { + this.requesters = new ArrayList<>(); + for (V1alpha1Requester item : requesters) { + this.addToRequesters(item); + } + } else { + this.requesters = null; + } + return (A) this; + } + + public A withRequesters(V1alpha1Requester... requesters) { + if (this.requesters != null) { + this.requesters.clear(); + _visitables.remove("requesters"); + } + if (requesters != null) { + for (V1alpha1Requester item : requesters) { + this.addToRequesters(item); + } + } + return (A) this; + } + + public A withResponders(List responders) { + if (this.responders != null) { + this._visitables.get("responders").clear(); + } + if (responders != null) { + this.responders = new ArrayList<>(); + for (V1alpha1ResponderStatus item : responders) { + this.addToResponders(item); + } + } else { + this.responders = null; + } + return (A) this; + } + + public A withResponders(V1alpha1ResponderStatus... responders) { + if (this.responders != null) { + this.responders.clear(); + _visitables.remove("responders"); + } + if (responders != null) { + for (V1alpha1ResponderStatus item : responders) { + this.addToResponders(item); + } + } + return (A) this; + } + + public A withTargetResponders(List targetResponders) { + if (this.targetResponders != null) { + this._visitables.get("targetResponders").clear(); + } + if (targetResponders != null) { + this.targetResponders = new ArrayList<>(); + for (V1alpha1TargetResponder item : targetResponders) { + this.addToTargetResponders(item); + } + } else { + this.targetResponders = null; + } + return (A) this; + } + + public A withTargetResponders(V1alpha1TargetResponder... targetResponders) { + if (this.targetResponders != null) { + this.targetResponders.clear(); + _visitables.remove("targetResponders"); + } + if (targetResponders != null) { + for (V1alpha1TargetResponder item : targetResponders) { + this.addToTargetResponders(item); + } + } + return (A) this; + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionStatusFluent.this.setToConditions(index, builder.build()); + } + + public N endCondition() { + return and(); + } + + } + public class RequestersNested extends V1alpha1RequesterFluent> implements Nested{ + + V1alpha1RequesterBuilder builder; + int index; + + RequestersNested(int index,V1alpha1Requester item) { + this.index = index; + this.builder = new V1alpha1RequesterBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionStatusFluent.this.setToRequesters(index, builder.build()); + } + + public N endRequester() { + return and(); + } + + } + public class RespondersNested extends V1alpha1ResponderStatusFluent> implements Nested{ + + V1alpha1ResponderStatusBuilder builder; + int index; + + RespondersNested(int index,V1alpha1ResponderStatus item) { + this.index = index; + this.builder = new V1alpha1ResponderStatusBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionStatusFluent.this.setToResponders(index, builder.build()); + } + + public N endResponder() { + return and(); + } + + } + public class TargetRespondersNested extends V1alpha1TargetResponderFluent> implements Nested{ + + V1alpha1TargetResponderBuilder builder; + int index; + + TargetRespondersNested(int index,V1alpha1TargetResponder item) { + this.index = index; + this.builder = new V1alpha1TargetResponderBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionStatusFluent.this.setToTargetResponders(index, builder.build()); + } + + public N endTargetResponder() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionTargetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionTargetBuilder.java new file mode 100644 index 0000000000..39d150ec68 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionTargetBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1EvictionTargetBuilder extends V1alpha1EvictionTargetFluent implements VisitableBuilder{ + + V1alpha1EvictionTargetFluent fluent; + + public V1alpha1EvictionTargetBuilder() { + this(new V1alpha1EvictionTarget()); + } + + public V1alpha1EvictionTargetBuilder(V1alpha1EvictionTargetFluent fluent) { + this(fluent, new V1alpha1EvictionTarget()); + } + + public V1alpha1EvictionTargetBuilder(V1alpha1EvictionTarget instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1EvictionTargetBuilder(V1alpha1EvictionTargetFluent fluent,V1alpha1EvictionTarget instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1EvictionTarget build() { + V1alpha1EvictionTarget buildable = new V1alpha1EvictionTarget(); + buildable.setPod(fluent.buildPod()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionTargetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionTargetFluent.java new file mode 100644 index 0000000000..61c171e6a6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionTargetFluent.java @@ -0,0 +1,136 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1EvictionTargetFluent> extends BaseFluent{ + + private V1alpha1EvictionPodReferenceBuilder pod; + + public V1alpha1EvictionTargetFluent() { + } + + public V1alpha1EvictionTargetFluent(V1alpha1EvictionTarget instance) { + this.copyInstance(instance); + } + + public V1alpha1EvictionPodReference buildPod() { + return this.pod != null ? this.pod.build() : null; + } + + protected void copyInstance(V1alpha1EvictionTarget instance) { + instance = instance != null ? instance : new V1alpha1EvictionTarget(); + if (instance != null) { + this.withPod(instance.getPod()); + } + } + + public PodNested editOrNewPod() { + return this.withNewPodLike(Optional.ofNullable(this.buildPod()).orElse(new V1alpha1EvictionPodReferenceBuilder().build())); + } + + public PodNested editOrNewPodLike(V1alpha1EvictionPodReference item) { + return this.withNewPodLike(Optional.ofNullable(this.buildPod()).orElse(item)); + } + + public PodNested editPod() { + return this.withNewPodLike(Optional.ofNullable(this.buildPod()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1EvictionTargetFluent that = (V1alpha1EvictionTargetFluent) o; + if (!(Objects.equals(pod, that.pod))) { + return false; + } + return true; + } + + public boolean hasPod() { + return this.pod != null; + } + + public int hashCode() { + return Objects.hash(pod); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(pod == null)) { + sb.append("pod:"); + sb.append(pod); + } + sb.append("}"); + return sb.toString(); + } + + public PodNested withNewPod() { + return new PodNested<>(null); + } + + public PodNested withNewPodLike(V1alpha1EvictionPodReference item) { + return new PodNested<>(item); + } + + public A withPod(V1alpha1EvictionPodReference pod) { + this._visitables.remove("pod"); + if (pod != null) { + this.pod = new V1alpha1EvictionPodReferenceBuilder(pod); + this._visitables.get("pod").add(this.pod); + } else { + this._visitables.get("pod").remove(this.pod); + this.pod = null; + } + return (A) this; + } + public class PodNested extends V1alpha1EvictionPodReferenceFluent> implements Nested{ + + V1alpha1EvictionPodReferenceBuilder builder; + + PodNested(V1alpha1EvictionPodReference item) { + this.builder = new V1alpha1EvictionPodReferenceBuilder(this, item); + } + + public N and() { + return (N) V1alpha1EvictionTargetFluent.this.withPod(builder.build()); + } + + public N endPod() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java index 4dd3bed817..bdfdc684a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1JSONPatchBuilder extends V1alpha1JSONPatchFluent implements VisitableBuilder{ V1alpha1JSONPatchFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java index b90a96a325..89a9bd068f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1JSONPatchFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1JSONPatchFluent> extends BaseFluent{ private String expression; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1JSONPatchFluent that = (V1alpha1JSONPatchFluent) o; + V1alpha1JSONPatchFluent that = (V1alpha1JSONPatchFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java index 93027adc23..847ef90871 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1MatchConditionBuilder extends V1alpha1MatchConditionFluent implements VisitableBuilder{ V1alpha1MatchConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java index 043d28b97b..681c599bd9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1MatchConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1MatchConditionFluent> extends BaseFluent{ private String expression; private String name; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1MatchConditionFluent that = (V1alpha1MatchConditionFluent) o; + V1alpha1MatchConditionFluent that = (V1alpha1MatchConditionFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java index 5b95b89fec..9d9adcdec7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1MatchResourcesBuilder extends V1alpha1MatchResourcesFluent implements VisitableBuilder{ V1alpha1MatchResourcesFluent fluent; 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 ba1c653ad8..01173c1308 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1MatchResourcesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1MatchResourcesFluent> extends BaseFluent{ private ArrayList excludeResourceRules; private String matchPolicy; @@ -48,7 +50,7 @@ public V1alpha1MatchResourcesFluent(V1alpha1MatchResources instance) { public A addAllToExcludeResourceRules(Collection items) { if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); } for (V1alpha1NamedRuleWithOperations item : items) { V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); @@ -60,7 +62,7 @@ public A addAllToExcludeResourceRules(Collection items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } for (V1alpha1NamedRuleWithOperations item : items) { V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); @@ -71,24 +73,24 @@ public A addAllToResourceRules(Collection items } public ExcludeResourceRulesNested addNewExcludeResourceRule() { - return new ExcludeResourceRulesNested(-1, null); + return new ExcludeResourceRulesNested<>(-1, null); } public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1alpha1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(-1, item); + return new ExcludeResourceRulesNested<>(-1, item); } public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); + return new ResourceRulesNested<>(-1, null); } public ResourceRulesNested addNewResourceRuleLike(V1alpha1NamedRuleWithOperations item) { - return new ResourceRulesNested(-1, item); + return new ResourceRulesNested<>(-1, item); } public A addToExcludeResourceRules(V1alpha1NamedRuleWithOperations... items) { if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); } for (V1alpha1NamedRuleWithOperations item : items) { V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); @@ -100,7 +102,7 @@ public A addToExcludeResourceRules(V1alpha1NamedRuleWithOperations... items) { public A addToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); } V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= this.excludeResourceRules.size()) { @@ -115,7 +117,7 @@ public A addToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations ite public A addToResourceRules(V1alpha1NamedRuleWithOperations... items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } for (V1alpha1NamedRuleWithOperations item : items) { V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); @@ -127,7 +129,7 @@ public A addToResourceRules(V1alpha1NamedRuleWithOperations... items) { public A addToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= this.resourceRules.size()) { @@ -315,7 +317,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1MatchResourcesFluent that = (V1alpha1MatchResourcesFluent) o; + V1alpha1MatchResourcesFluent that = (V1alpha1MatchResourcesFluent) o; if (!(Objects.equals(excludeResourceRules, that.excludeResourceRules))) { return false; } @@ -433,6 +435,7 @@ public A removeMatchingFromExcludeResourceRules(Predicate each = excludeResourceRules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("excludeResourceRules"); while (each.hasNext()) { V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); @@ -449,6 +452,7 @@ public A removeMatchingFromResourceRules(Predicate each = resourceRules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resourceRules"); while (each.hasNext()) { V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); @@ -461,16 +465,16 @@ public A removeMatchingFromResourceRules(Predicate setNewExcludeResourceRuleLike(int index,V1alpha1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(index, item); + return new ExcludeResourceRulesNested<>(index, item); } public ResourceRulesNested setNewResourceRuleLike(int index,V1alpha1NamedRuleWithOperations item) { - return new ResourceRulesNested(index, item); + return new ResourceRulesNested<>(index, item); } public A setToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); } V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= this.excludeResourceRules.size()) { @@ -485,7 +489,7 @@ public A setToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations ite public A setToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= this.resourceRules.size()) { @@ -534,7 +538,7 @@ public A withExcludeResourceRules(List excludeR this._visitables.get("excludeResourceRules").clear(); } if (excludeResourceRules != null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); for (V1alpha1NamedRuleWithOperations item : excludeResourceRules) { this.addToExcludeResourceRules(item); } @@ -568,26 +572,26 @@ public A withNamespaceSelector(V1LabelSelector namespaceSelector) { this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); this._visitables.get("namespaceSelector").add(this.namespaceSelector); } else { - this.namespaceSelector = null; this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + this.namespaceSelector = null; } return (A) this; } public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); + return new NamespaceSelectorNested<>(null); } public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); + return new NamespaceSelectorNested<>(item); } public ObjectSelectorNested withNewObjectSelector() { - return new ObjectSelectorNested(null); + return new ObjectSelectorNested<>(null); } public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { - return new ObjectSelectorNested(item); + return new ObjectSelectorNested<>(item); } public A withObjectSelector(V1LabelSelector objectSelector) { @@ -596,8 +600,8 @@ public A withObjectSelector(V1LabelSelector objectSelector) { this.objectSelector = new V1LabelSelectorBuilder(objectSelector); this._visitables.get("objectSelector").add(this.objectSelector); } else { - this.objectSelector = null; this._visitables.get("objectSelector").remove(this.objectSelector); + this.objectSelector = null; } return (A) this; } @@ -607,7 +611,7 @@ public A withResourceRules(List resourceRules) this._visitables.get("resourceRules").clear(); } if (resourceRules != null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); for (V1alpha1NamedRuleWithOperations item : resourceRules) { this.addToResourceRules(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java index d8469a0490..bf89dfdee9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1MutatingAdmissionPolicyBindingBuilder extends V1alpha1MutatingAdmissionPolicyBindingFluent implements VisitableBuilder{ V1alpha1MutatingAdmissionPolicyBindingFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java index 7e92a19f48..0ab76ef982 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1MutatingAdmissionPolicyBindingFluent that = (V1alpha1MutatingAdmissionPolicyBindingFluent) o; + V1alpha1MutatingAdmissionPolicyBindingFluent that = (V1alpha1MutatingAdmissionPolicyBindingFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1alpha1MutatingAdmissionPolicyBindingSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1alpha1MutatingAdmissionPolicyBindingSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1alpha1MutatingAdmissionPolicyBindingSpec spec) { this.spec = new V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java index 05cc0bdd28..4c901e6b07 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1MutatingAdmissionPolicyBindingListBuilder extends V1alpha1MutatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ V1alpha1MutatingAdmissionPolicyBindingListFluent fluent; 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 b7b9289c94..6191247e7a 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1alpha1MutatingAdmissionPolicyBindingListFluent(V1alpha1MutatingAdmissio public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1alpha1MutatingAdmissionPolicyBinding item : items) { V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1alpha1MutatingAdmissionPolicyBinding item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1alpha1MutatingAdmissionPolicyBinding... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1alpha1MutatingAdmissionPolicyBinding item : items) { V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1alpha1MutatingAdmissionPolicyBinding... items) { public A addToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1MutatingAdmissionPolicyBindingListFluent that = (V1alpha1MutatingAdmissionPolicyBindingListFluent) o; + V1alpha1MutatingAdmissionPolicyBindingListFluent that = (V1alpha1MutatingAdmissionPolicyBindingListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1alpha1MutatingAdmissionPolicyBindingBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate setNewItemLike(int index,V1alpha1MutatingAdmissionPolicyBinding item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1alpha1MutatingAdmissionPolicyBinding item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1alpha1MutatingAdmissionPolicyBindingFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java index 68e429bb8c..aa4b73ffba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1MutatingAdmissionPolicyBindingSpecBuilder extends V1alpha1MutatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ V1alpha1MutatingAdmissionPolicyBindingSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java index d97d4ab40a..a764f75289 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ private V1alpha1MatchResourcesBuilder matchResources; private V1alpha1ParamRefBuilder paramRef; @@ -89,7 +91,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1MutatingAdmissionPolicyBindingSpecFluent that = (V1alpha1MutatingAdmissionPolicyBindingSpecFluent) o; + V1alpha1MutatingAdmissionPolicyBindingSpecFluent that = (V1alpha1MutatingAdmissionPolicyBindingSpecFluent) o; if (!(Objects.equals(matchResources, that.matchResources))) { return false; } @@ -149,26 +151,26 @@ public A withMatchResources(V1alpha1MatchResources matchResources) { this.matchResources = new V1alpha1MatchResourcesBuilder(matchResources); this._visitables.get("matchResources").add(this.matchResources); } else { - this.matchResources = null; this._visitables.get("matchResources").remove(this.matchResources); + this.matchResources = null; } return (A) this; } public MatchResourcesNested withNewMatchResources() { - return new MatchResourcesNested(null); + return new MatchResourcesNested<>(null); } public MatchResourcesNested withNewMatchResourcesLike(V1alpha1MatchResources item) { - return new MatchResourcesNested(item); + return new MatchResourcesNested<>(item); } public ParamRefNested withNewParamRef() { - return new ParamRefNested(null); + return new ParamRefNested<>(null); } public ParamRefNested withNewParamRefLike(V1alpha1ParamRef item) { - return new ParamRefNested(item); + return new ParamRefNested<>(item); } public A withParamRef(V1alpha1ParamRef paramRef) { @@ -177,8 +179,8 @@ public A withParamRef(V1alpha1ParamRef paramRef) { this.paramRef = new V1alpha1ParamRefBuilder(paramRef); this._visitables.get("paramRef").add(this.paramRef); } else { - this.paramRef = null; this._visitables.get("paramRef").remove(this.paramRef); + this.paramRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java index a60f1a940c..00ef7a140f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1MutatingAdmissionPolicyBuilder extends V1alpha1MutatingAdmissionPolicyFluent implements VisitableBuilder{ V1alpha1MutatingAdmissionPolicyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java index f14ea37be6..e999351628 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1MutatingAdmissionPolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1MutatingAdmissionPolicyFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1MutatingAdmissionPolicyFluent that = (V1alpha1MutatingAdmissionPolicyFluent) o; + V1alpha1MutatingAdmissionPolicyFluent that = (V1alpha1MutatingAdmissionPolicyFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1alpha1MutatingAdmissionPolicySpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1alpha1MutatingAdmissionPolicySpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1alpha1MutatingAdmissionPolicySpec spec) { this.spec = new V1alpha1MutatingAdmissionPolicySpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java index c83c86d57f..203e10a99b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1MutatingAdmissionPolicyListBuilder extends V1alpha1MutatingAdmissionPolicyListFluent implements VisitableBuilder{ V1alpha1MutatingAdmissionPolicyListFluent fluent; 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 94bdc33ea7..bb9337466e 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1MutatingAdmissionPolicyListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1MutatingAdmissionPolicyListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1alpha1MutatingAdmissionPolicyListFluent(V1alpha1MutatingAdmissionPolicy public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1alpha1MutatingAdmissionPolicy item : items) { V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1alpha1MutatingAdmissionPolicy item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1alpha1MutatingAdmissionPolicy... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1alpha1MutatingAdmissionPolicy item : items) { V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1alpha1MutatingAdmissionPolicy... items) { public A addToItems(int index,V1alpha1MutatingAdmissionPolicy item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1MutatingAdmissionPolicyListFluent that = (V1alpha1MutatingAdmissionPolicyListFluent) o; + V1alpha1MutatingAdmissionPolicyListFluent that = (V1alpha1MutatingAdmissionPolicyListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1alpha1MutatingAdmissionPolicyBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate setNewItemLike(int index,V1alpha1MutatingAdmissionPolicy item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1alpha1MutatingAdmissionPolicy item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1alpha1MutatingAdmissionPolicy item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1alpha1MutatingAdmissionPolicyFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java index 793c4fb25f..79c6148a3e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1MutatingAdmissionPolicySpecBuilder extends V1alpha1MutatingAdmissionPolicySpecFluent implements VisitableBuilder{ V1alpha1MutatingAdmissionPolicySpecFluent fluent; 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 c53bd864c2..ee40d795a8 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ private String failurePolicy; private ArrayList matchConditions; @@ -50,7 +52,7 @@ public V1alpha1MutatingAdmissionPolicySpecFluent(V1alpha1MutatingAdmissionPolicy public A addAllToMatchConditions(Collection items) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } for (V1alpha1MatchCondition item : items) { V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); @@ -62,7 +64,7 @@ public A addAllToMatchConditions(Collection items) { public A addAllToMutations(Collection items) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); } for (V1alpha1Mutation item : items) { V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); @@ -74,7 +76,7 @@ public A addAllToMutations(Collection items) { public A addAllToVariables(Collection items) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } for (V1alpha1Variable item : items) { V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); @@ -85,32 +87,32 @@ public A addAllToVariables(Collection items) { } public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); + return new MatchConditionsNested<>(-1, null); } public MatchConditionsNested addNewMatchConditionLike(V1alpha1MatchCondition item) { - return new MatchConditionsNested(-1, item); + return new MatchConditionsNested<>(-1, item); } public MutationsNested addNewMutation() { - return new MutationsNested(-1, null); + return new MutationsNested<>(-1, null); } public MutationsNested addNewMutationLike(V1alpha1Mutation item) { - return new MutationsNested(-1, item); + return new MutationsNested<>(-1, item); } public VariablesNested addNewVariable() { - return new VariablesNested(-1, null); + return new VariablesNested<>(-1, null); } public VariablesNested addNewVariableLike(V1alpha1Variable item) { - return new VariablesNested(-1, item); + return new VariablesNested<>(-1, item); } public A addToMatchConditions(V1alpha1MatchCondition... items) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } for (V1alpha1MatchCondition item : items) { V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); @@ -122,7 +124,7 @@ public A addToMatchConditions(V1alpha1MatchCondition... items) { public A addToMatchConditions(int index,V1alpha1MatchCondition item) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); if (index < 0 || index >= this.matchConditions.size()) { @@ -137,7 +139,7 @@ public A addToMatchConditions(int index,V1alpha1MatchCondition item) { public A addToMutations(V1alpha1Mutation... items) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); } for (V1alpha1Mutation item : items) { V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); @@ -149,7 +151,7 @@ public A addToMutations(V1alpha1Mutation... items) { public A addToMutations(int index,V1alpha1Mutation item) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); } V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); if (index < 0 || index >= this.mutations.size()) { @@ -164,7 +166,7 @@ public A addToMutations(int index,V1alpha1Mutation item) { public A addToVariables(V1alpha1Variable... items) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } for (V1alpha1Variable item : items) { V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); @@ -176,7 +178,7 @@ public A addToVariables(V1alpha1Variable... items) { public A addToVariables(int index,V1alpha1Variable item) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); if (index < 0 || index >= this.variables.size()) { @@ -427,7 +429,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1MutatingAdmissionPolicySpecFluent that = (V1alpha1MutatingAdmissionPolicySpecFluent) o; + V1alpha1MutatingAdmissionPolicySpecFluent that = (V1alpha1MutatingAdmissionPolicySpecFluent) o; if (!(Objects.equals(failurePolicy, that.failurePolicy))) { return false; } @@ -596,6 +598,7 @@ public A removeMatchingFromMatchConditions(Predicate each = matchConditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("matchConditions"); while (each.hasNext()) { V1alpha1MatchConditionBuilder builder = each.next(); @@ -612,6 +615,7 @@ public A removeMatchingFromMutations(Predicate predicat return (A) this; } Iterator each = mutations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("mutations"); while (each.hasNext()) { V1alpha1MutationBuilder builder = each.next(); @@ -628,6 +632,7 @@ public A removeMatchingFromVariables(Predicate predicat return (A) this; } Iterator each = variables.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("variables"); while (each.hasNext()) { V1alpha1VariableBuilder builder = each.next(); @@ -640,20 +645,20 @@ public A removeMatchingFromVariables(Predicate predicat } public MatchConditionsNested setNewMatchConditionLike(int index,V1alpha1MatchCondition item) { - return new MatchConditionsNested(index, item); + return new MatchConditionsNested<>(index, item); } public MutationsNested setNewMutationLike(int index,V1alpha1Mutation item) { - return new MutationsNested(index, item); + return new MutationsNested<>(index, item); } public VariablesNested setNewVariableLike(int index,V1alpha1Variable item) { - return new VariablesNested(index, item); + return new VariablesNested<>(index, item); } public A setToMatchConditions(int index,V1alpha1MatchCondition item) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); if (index < 0 || index >= this.matchConditions.size()) { @@ -668,7 +673,7 @@ public A setToMatchConditions(int index,V1alpha1MatchCondition item) { public A setToMutations(int index,V1alpha1Mutation item) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); } V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); if (index < 0 || index >= this.mutations.size()) { @@ -683,7 +688,7 @@ public A setToMutations(int index,V1alpha1Mutation item) { public A setToVariables(int index,V1alpha1Variable item) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); if (index < 0 || index >= this.variables.size()) { @@ -747,7 +752,7 @@ public A withMatchConditions(List matchConditions) { this._visitables.get("matchConditions").clear(); } if (matchConditions != null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); for (V1alpha1MatchCondition item : matchConditions) { this.addToMatchConditions(item); } @@ -776,8 +781,8 @@ public A withMatchConstraints(V1alpha1MatchResources matchConstraints) { this.matchConstraints = new V1alpha1MatchResourcesBuilder(matchConstraints); this._visitables.get("matchConstraints").add(this.matchConstraints); } else { - this.matchConstraints = null; this._visitables.get("matchConstraints").remove(this.matchConstraints); + this.matchConstraints = null; } return (A) this; } @@ -787,7 +792,7 @@ public A withMutations(List mutations) { this._visitables.get("mutations").clear(); } if (mutations != null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); for (V1alpha1Mutation item : mutations) { this.addToMutations(item); } @@ -811,19 +816,19 @@ public A withMutations(V1alpha1Mutation... mutations) { } public MatchConstraintsNested withNewMatchConstraints() { - return new MatchConstraintsNested(null); + return new MatchConstraintsNested<>(null); } public MatchConstraintsNested withNewMatchConstraintsLike(V1alpha1MatchResources item) { - return new MatchConstraintsNested(item); + return new MatchConstraintsNested<>(item); } public ParamKindNested withNewParamKind() { - return new ParamKindNested(null); + return new ParamKindNested<>(null); } public ParamKindNested withNewParamKindLike(V1alpha1ParamKind item) { - return new ParamKindNested(item); + return new ParamKindNested<>(item); } public A withParamKind(V1alpha1ParamKind paramKind) { @@ -832,8 +837,8 @@ public A withParamKind(V1alpha1ParamKind paramKind) { this.paramKind = new V1alpha1ParamKindBuilder(paramKind); this._visitables.get("paramKind").add(this.paramKind); } else { - this.paramKind = null; this._visitables.get("paramKind").remove(this.paramKind); + this.paramKind = null; } return (A) this; } @@ -848,7 +853,7 @@ public A withVariables(List variables) { this._visitables.get("variables").clear(); } if (variables != null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); for (V1alpha1Variable item : variables) { this.addToVariables(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java index bdd518293e..12d3ee7719 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1MutationBuilder extends V1alpha1MutationFluent implements VisitableBuilder{ V1alpha1MutationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java index e2a39405b1..db40419105 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1MutationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1MutationFluent> extends BaseFluent{ private V1alpha1ApplyConfigurationBuilder applyConfiguration; private V1alpha1JSONPatchBuilder jsonPatch; @@ -89,7 +91,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1MutationFluent that = (V1alpha1MutationFluent) o; + V1alpha1MutationFluent that = (V1alpha1MutationFluent) o; if (!(Objects.equals(applyConfiguration, that.applyConfiguration))) { return false; } @@ -149,8 +151,8 @@ public A withApplyConfiguration(V1alpha1ApplyConfiguration applyConfiguration) { this.applyConfiguration = new V1alpha1ApplyConfigurationBuilder(applyConfiguration); this._visitables.get("applyConfiguration").add(this.applyConfiguration); } else { - this.applyConfiguration = null; this._visitables.get("applyConfiguration").remove(this.applyConfiguration); + this.applyConfiguration = null; } return (A) this; } @@ -161,26 +163,26 @@ public A withJsonPatch(V1alpha1JSONPatch jsonPatch) { this.jsonPatch = new V1alpha1JSONPatchBuilder(jsonPatch); this._visitables.get("jsonPatch").add(this.jsonPatch); } else { - this.jsonPatch = null; this._visitables.get("jsonPatch").remove(this.jsonPatch); + this.jsonPatch = null; } return (A) this; } public ApplyConfigurationNested withNewApplyConfiguration() { - return new ApplyConfigurationNested(null); + return new ApplyConfigurationNested<>(null); } public ApplyConfigurationNested withNewApplyConfigurationLike(V1alpha1ApplyConfiguration item) { - return new ApplyConfigurationNested(item); + return new ApplyConfigurationNested<>(item); } public JsonPatchNested withNewJsonPatch() { - return new JsonPatchNested(null); + return new JsonPatchNested<>(null); } public JsonPatchNested withNewJsonPatchLike(V1alpha1JSONPatch item) { - return new JsonPatchNested(item); + return new JsonPatchNested<>(item); } public A withPatchType(String patchType) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java index d50f612b7d..afcd6ea6f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1NamedRuleWithOperationsBuilder extends V1alpha1NamedRuleWithOperationsFluent implements VisitableBuilder{ V1alpha1NamedRuleWithOperationsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java index c1cb60011f..86026c16ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1NamedRuleWithOperationsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1NamedRuleWithOperationsFluent> extends BaseFluent{ private List apiGroups; private List apiVersions; @@ -45,7 +47,7 @@ public V1alpha1NamedRuleWithOperationsFluent(V1alpha1NamedRuleWithOperations ins public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -55,7 +57,7 @@ public A addAllToApiGroups(Collection items) { public A addAllToApiVersions(Collection items) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } for (String item : items) { this.apiVersions.add(item); @@ -65,7 +67,7 @@ public A addAllToApiVersions(Collection items) { public A addAllToOperations(Collection items) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } for (String item : items) { this.operations.add(item); @@ -75,7 +77,7 @@ public A addAllToOperations(Collection items) { public A addAllToResourceNames(Collection items) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } for (String item : items) { this.resourceNames.add(item); @@ -85,7 +87,7 @@ public A addAllToResourceNames(Collection items) { public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -95,7 +97,7 @@ public A addAllToResources(Collection items) { public A addToApiGroups(String... items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -105,7 +107,7 @@ public A addToApiGroups(String... items) { public A addToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(index, item); return (A) this; @@ -113,7 +115,7 @@ public A addToApiGroups(int index,String item) { public A addToApiVersions(String... items) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } for (String item : items) { this.apiVersions.add(item); @@ -123,7 +125,7 @@ public A addToApiVersions(String... items) { public A addToApiVersions(int index,String item) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } this.apiVersions.add(index, item); return (A) this; @@ -131,7 +133,7 @@ public A addToApiVersions(int index,String item) { public A addToOperations(String... items) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } for (String item : items) { this.operations.add(item); @@ -141,7 +143,7 @@ public A addToOperations(String... items) { public A addToOperations(int index,String item) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } this.operations.add(index, item); return (A) this; @@ -149,7 +151,7 @@ public A addToOperations(int index,String item) { public A addToResourceNames(String... items) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } for (String item : items) { this.resourceNames.add(item); @@ -159,7 +161,7 @@ public A addToResourceNames(String... items) { public A addToResourceNames(int index,String item) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.add(index, item); return (A) this; @@ -167,7 +169,7 @@ public A addToResourceNames(int index,String item) { public A addToResources(String... items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -177,7 +179,7 @@ public A addToResources(String... items) { public A addToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(index, item); return (A) this; @@ -205,7 +207,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1NamedRuleWithOperationsFluent that = (V1alpha1NamedRuleWithOperationsFluent) o; + V1alpha1NamedRuleWithOperationsFluent that = (V1alpha1NamedRuleWithOperationsFluent) o; if (!(Objects.equals(apiGroups, that.apiGroups))) { return false; } @@ -531,7 +533,7 @@ public A removeFromResources(String... items) { public A setToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.set(index, item); return (A) this; @@ -539,7 +541,7 @@ public A setToApiGroups(int index,String item) { public A setToApiVersions(int index,String item) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } this.apiVersions.set(index, item); return (A) this; @@ -547,7 +549,7 @@ public A setToApiVersions(int index,String item) { public A setToOperations(int index,String item) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } this.operations.set(index, item); return (A) this; @@ -555,7 +557,7 @@ public A setToOperations(int index,String item) { public A setToResourceNames(int index,String item) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.set(index, item); return (A) this; @@ -563,7 +565,7 @@ public A setToResourceNames(int index,String item) { public A setToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.set(index, item); return (A) this; @@ -607,7 +609,7 @@ public String toString() { public A withApiGroups(List apiGroups) { if (apiGroups != null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); for (String item : apiGroups) { this.addToApiGroups(item); } @@ -632,7 +634,7 @@ public A withApiGroups(String... apiGroups) { public A withApiVersions(List apiVersions) { if (apiVersions != null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); for (String item : apiVersions) { this.addToApiVersions(item); } @@ -657,7 +659,7 @@ public A withApiVersions(String... apiVersions) { public A withOperations(List operations) { if (operations != null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); for (String item : operations) { this.addToOperations(item); } @@ -682,7 +684,7 @@ public A withOperations(String... operations) { public A withResourceNames(List resourceNames) { if (resourceNames != null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); for (String item : resourceNames) { this.addToResourceNames(item); } @@ -707,7 +709,7 @@ public A withResourceNames(String... resourceNames) { public A withResources(List resources) { if (resources != null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); for (String item : resources) { this.addToResources(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java index b843b38ba5..32bff5fccc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1ParamKindBuilder extends V1alpha1ParamKindFluent implements VisitableBuilder{ V1alpha1ParamKindFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java index 12dbcfcf30..a850bd7c47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1ParamKindFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1ParamKindFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1ParamKindFluent that = (V1alpha1ParamKindFluent) o; + V1alpha1ParamKindFluent that = (V1alpha1ParamKindFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java index 762255699e..4b33e3253d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1ParamRefBuilder extends V1alpha1ParamRefFluent implements VisitableBuilder{ V1alpha1ParamRefFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java index 349536cbb5..7a6bb164cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1ParamRefFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1ParamRefFluent> extends BaseFluent{ private String name; private String namespace; @@ -75,7 +77,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1ParamRefFluent that = (V1alpha1ParamRefFluent) o; + V1alpha1ParamRefFluent that = (V1alpha1ParamRefFluent) o; if (!(Objects.equals(name, that.name))) { return false; } @@ -160,11 +162,11 @@ public A withNamespace(String namespace) { } public SelectorNested withNewSelector() { - return new SelectorNested(null); + return new SelectorNested<>(null); } public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + return new SelectorNested<>(item); } public A withParameterNotFoundAction(String parameterNotFoundAction) { @@ -178,8 +180,8 @@ public A withSelector(V1LabelSelector selector) { this.selector = new V1LabelSelectorBuilder(selector); this._visitables.get("selector").add(this.selector); } else { - this.selector = null; this._visitables.get("selector").remove(this.selector); + this.selector = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RequesterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RequesterBuilder.java new file mode 100644 index 0000000000..142ac46020 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RequesterBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1RequesterBuilder extends V1alpha1RequesterFluent implements VisitableBuilder{ + + V1alpha1RequesterFluent fluent; + + public V1alpha1RequesterBuilder() { + this(new V1alpha1Requester()); + } + + public V1alpha1RequesterBuilder(V1alpha1RequesterFluent fluent) { + this(fluent, new V1alpha1Requester()); + } + + public V1alpha1RequesterBuilder(V1alpha1Requester instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1RequesterBuilder(V1alpha1RequesterFluent fluent,V1alpha1Requester instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1Requester build() { + V1alpha1Requester buildable = new V1alpha1Requester(); + buildable.setIntent(fluent.getIntent()); + buildable.setName(fluent.getName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RequesterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RequesterFluent.java new file mode 100644 index 0000000000..331558f866 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RequesterFluent.java @@ -0,0 +1,114 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1RequesterFluent> extends BaseFluent{ + + private String intent; + private String name; + + public V1alpha1RequesterFluent() { + } + + public V1alpha1RequesterFluent(V1alpha1Requester instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha1Requester instance) { + instance = instance != null ? instance : new V1alpha1Requester(); + if (instance != null) { + this.withIntent(instance.getIntent()); + this.withName(instance.getName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1RequesterFluent that = (V1alpha1RequesterFluent) o; + if (!(Objects.equals(intent, that.intent))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public String getIntent() { + return this.intent; + } + + public String getName() { + return this.name; + } + + public boolean hasIntent() { + return this.intent != null; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(intent, name); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(intent == null)) { + sb.append("intent:"); + sb.append(intent); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withIntent(String intent) { + this.intent = intent; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResponderStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResponderStatusBuilder.java new file mode 100644 index 0000000000..e6bcba1fbf --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResponderStatusBuilder.java @@ -0,0 +1,51 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1ResponderStatusBuilder extends V1alpha1ResponderStatusFluent implements VisitableBuilder{ + + V1alpha1ResponderStatusFluent fluent; + + public V1alpha1ResponderStatusBuilder() { + this(new V1alpha1ResponderStatus()); + } + + public V1alpha1ResponderStatusBuilder(V1alpha1ResponderStatusFluent fluent) { + this(fluent, new V1alpha1ResponderStatus()); + } + + public V1alpha1ResponderStatusBuilder(V1alpha1ResponderStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1ResponderStatusBuilder(V1alpha1ResponderStatusFluent fluent,V1alpha1ResponderStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1ResponderStatus build() { + V1alpha1ResponderStatus buildable = new V1alpha1ResponderStatus(); + buildable.setCompletionTime(fluent.getCompletionTime()); + buildable.setExpectedCompletionTime(fluent.getExpectedCompletionTime()); + buildable.setHeartbeatTime(fluent.getHeartbeatTime()); + buildable.setMessage(fluent.getMessage()); + buildable.setName(fluent.getName()); + buildable.setStartTime(fluent.getStartTime()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResponderStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResponderStatusFluent.java new file mode 100644 index 0000000000..af807366f4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResponderStatusFluent.java @@ -0,0 +1,207 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1ResponderStatusFluent> extends BaseFluent{ + + private OffsetDateTime completionTime; + private OffsetDateTime expectedCompletionTime; + private OffsetDateTime heartbeatTime; + private String message; + private String name; + private OffsetDateTime startTime; + + public V1alpha1ResponderStatusFluent() { + } + + public V1alpha1ResponderStatusFluent(V1alpha1ResponderStatus instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha1ResponderStatus instance) { + instance = instance != null ? instance : new V1alpha1ResponderStatus(); + if (instance != null) { + this.withCompletionTime(instance.getCompletionTime()); + this.withExpectedCompletionTime(instance.getExpectedCompletionTime()); + this.withHeartbeatTime(instance.getHeartbeatTime()); + this.withMessage(instance.getMessage()); + this.withName(instance.getName()); + this.withStartTime(instance.getStartTime()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1ResponderStatusFluent that = (V1alpha1ResponderStatusFluent) o; + if (!(Objects.equals(completionTime, that.completionTime))) { + return false; + } + if (!(Objects.equals(expectedCompletionTime, that.expectedCompletionTime))) { + return false; + } + if (!(Objects.equals(heartbeatTime, that.heartbeatTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(startTime, that.startTime))) { + return false; + } + return true; + } + + public OffsetDateTime getCompletionTime() { + return this.completionTime; + } + + public OffsetDateTime getExpectedCompletionTime() { + return this.expectedCompletionTime; + } + + public OffsetDateTime getHeartbeatTime() { + return this.heartbeatTime; + } + + public String getMessage() { + return this.message; + } + + public String getName() { + return this.name; + } + + public OffsetDateTime getStartTime() { + return this.startTime; + } + + public boolean hasCompletionTime() { + return this.completionTime != null; + } + + public boolean hasExpectedCompletionTime() { + return this.expectedCompletionTime != null; + } + + public boolean hasHeartbeatTime() { + return this.heartbeatTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasStartTime() { + return this.startTime != null; + } + + public int hashCode() { + return Objects.hash(completionTime, expectedCompletionTime, heartbeatTime, message, name, startTime); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(completionTime == null)) { + sb.append("completionTime:"); + sb.append(completionTime); + sb.append(","); + } + if (!(expectedCompletionTime == null)) { + sb.append("expectedCompletionTime:"); + sb.append(expectedCompletionTime); + sb.append(","); + } + if (!(heartbeatTime == null)) { + sb.append("heartbeatTime:"); + sb.append(heartbeatTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(startTime == null)) { + sb.append("startTime:"); + sb.append(startTime); + } + sb.append("}"); + return sb.toString(); + } + + public A withCompletionTime(OffsetDateTime completionTime) { + this.completionTime = completionTime; + return (A) this; + } + + public A withExpectedCompletionTime(OffsetDateTime expectedCompletionTime) { + this.expectedCompletionTime = expectedCompletionTime; + return (A) this; + } + + public A withHeartbeatTime(OffsetDateTime heartbeatTime) { + this.heartbeatTime = heartbeatTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withStartTime(OffsetDateTime startTime) { + this.startTime = startTime; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java index 517ec83ce8..58c54c7709 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1ServerStorageVersionBuilder extends V1alpha1ServerStorageVersionFluent implements VisitableBuilder{ V1alpha1ServerStorageVersionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java index c8e8f46f3e..78acc1a75a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1ServerStorageVersionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1ServerStorageVersionFluent> extends BaseFluent{ private String apiServerID; private List decodableVersions; @@ -43,7 +45,7 @@ public V1alpha1ServerStorageVersionFluent(V1alpha1ServerStorageVersion instance) public A addAllToDecodableVersions(Collection items) { if (this.decodableVersions == null) { - this.decodableVersions = new ArrayList(); + this.decodableVersions = new ArrayList<>(); } for (String item : items) { this.decodableVersions.add(item); @@ -53,7 +55,7 @@ public A addAllToDecodableVersions(Collection items) { public A addAllToServedVersions(Collection items) { if (this.servedVersions == null) { - this.servedVersions = new ArrayList(); + this.servedVersions = new ArrayList<>(); } for (String item : items) { this.servedVersions.add(item); @@ -63,7 +65,7 @@ public A addAllToServedVersions(Collection items) { public A addToDecodableVersions(String... items) { if (this.decodableVersions == null) { - this.decodableVersions = new ArrayList(); + this.decodableVersions = new ArrayList<>(); } for (String item : items) { this.decodableVersions.add(item); @@ -73,7 +75,7 @@ public A addToDecodableVersions(String... items) { public A addToDecodableVersions(int index,String item) { if (this.decodableVersions == null) { - this.decodableVersions = new ArrayList(); + this.decodableVersions = new ArrayList<>(); } this.decodableVersions.add(index, item); return (A) this; @@ -81,7 +83,7 @@ public A addToDecodableVersions(int index,String item) { public A addToServedVersions(String... items) { if (this.servedVersions == null) { - this.servedVersions = new ArrayList(); + this.servedVersions = new ArrayList<>(); } for (String item : items) { this.servedVersions.add(item); @@ -91,7 +93,7 @@ public A addToServedVersions(String... items) { public A addToServedVersions(int index,String item) { if (this.servedVersions == null) { - this.servedVersions = new ArrayList(); + this.servedVersions = new ArrayList<>(); } this.servedVersions.add(index, item); return (A) this; @@ -117,7 +119,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1ServerStorageVersionFluent that = (V1alpha1ServerStorageVersionFluent) o; + V1alpha1ServerStorageVersionFluent that = (V1alpha1ServerStorageVersionFluent) o; if (!(Objects.equals(apiServerID, that.apiServerID))) { return false; } @@ -271,7 +273,7 @@ public A removeFromServedVersions(String... items) { public A setToDecodableVersions(int index,String item) { if (this.decodableVersions == null) { - this.decodableVersions = new ArrayList(); + this.decodableVersions = new ArrayList<>(); } this.decodableVersions.set(index, item); return (A) this; @@ -279,7 +281,7 @@ public A setToDecodableVersions(int index,String item) { public A setToServedVersions(int index,String item) { if (this.servedVersions == null) { - this.servedVersions = new ArrayList(); + this.servedVersions = new ArrayList<>(); } this.servedVersions.set(index, item); return (A) this; @@ -318,7 +320,7 @@ public A withApiServerID(String apiServerID) { public A withDecodableVersions(List decodableVersions) { if (decodableVersions != null) { - this.decodableVersions = new ArrayList(); + this.decodableVersions = new ArrayList<>(); for (String item : decodableVersions) { this.addToDecodableVersions(item); } @@ -348,7 +350,7 @@ public A withEncodingVersion(String encodingVersion) { public A withServedVersions(List servedVersions) { if (servedVersions != null) { - this.servedVersions = new ArrayList(); + this.servedVersions = new ArrayList<>(); for (String item : servedVersions) { this.addToServedVersions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java index a2f9a762bb..1e2a097529 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1StorageVersionBuilder extends V1alpha1StorageVersionFluent implements VisitableBuilder{ V1alpha1StorageVersionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java index 643d2280f8..91ceadfc25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1StorageVersionConditionBuilder extends V1alpha1StorageVersionConditionFluent implements VisitableBuilder{ V1alpha1StorageVersionConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java index 134c7304ec..6c5098f73f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1StorageVersionConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1StorageVersionConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private String message; @@ -63,7 +65,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1StorageVersionConditionFluent that = (V1alpha1StorageVersionConditionFluent) o; + V1alpha1StorageVersionConditionFluent that = (V1alpha1StorageVersionConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java index 2bbc76e4ca..4f8bb435df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1StorageVersionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1StorageVersionFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -93,7 +95,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1StorageVersionFluent that = (V1alpha1StorageVersionFluent) o; + V1alpha1StorageVersionFluent that = (V1alpha1StorageVersionFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -195,26 +197,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1alpha1StorageVersionStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(Object spec) { @@ -228,8 +230,8 @@ public A withStatus(V1alpha1StorageVersionStatus status) { this.status = new V1alpha1StorageVersionStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java index ec178da2e3..d0bb587413 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1StorageVersionListBuilder extends V1alpha1StorageVersionListFluent implements VisitableBuilder{ V1alpha1StorageVersionListFluent fluent; 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 f933af1d72..78432ee358 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1StorageVersionListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1StorageVersionListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1alpha1StorageVersionListFluent(V1alpha1StorageVersionList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1alpha1StorageVersion item : items) { V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1alpha1StorageVersion item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1alpha1StorageVersion... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1alpha1StorageVersion item : items) { V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1alpha1StorageVersion... items) { public A addToItems(int index,V1alpha1StorageVersion item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1StorageVersionListFluent that = (V1alpha1StorageVersionListFluent) o; + V1alpha1StorageVersionListFluent that = (V1alpha1StorageVersionListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predic return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1alpha1StorageVersionBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predic } public ItemsNested setNewItemLike(int index,V1alpha1StorageVersion item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1alpha1StorageVersion item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1alpha1StorageVersion item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1alpha1StorageVersionFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java index e6ba7547a2..14df1fdb2e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1StorageVersionStatusBuilder extends V1alpha1StorageVersionStatusFluent implements VisitableBuilder{ V1alpha1StorageVersionStatusFluent fluent; 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 e6bd979540..f640eee1f3 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1StorageVersionStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1StorageVersionStatusFluent> extends BaseFluent{ private String commonEncodingVersion; private ArrayList conditions; @@ -45,7 +47,7 @@ public V1alpha1StorageVersionStatusFluent(V1alpha1StorageVersionStatus instance) public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1alpha1StorageVersionCondition item : items) { V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); @@ -57,7 +59,7 @@ public A addAllToConditions(Collection items) { public A addAllToStorageVersions(Collection items) { if (this.storageVersions == null) { - this.storageVersions = new ArrayList(); + this.storageVersions = new ArrayList<>(); } for (V1alpha1ServerStorageVersion item : items) { V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); @@ -68,24 +70,24 @@ public A addAllToStorageVersions(Collection items) } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1alpha1StorageVersionCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public StorageVersionsNested addNewStorageVersion() { - return new StorageVersionsNested(-1, null); + return new StorageVersionsNested<>(-1, null); } public StorageVersionsNested addNewStorageVersionLike(V1alpha1ServerStorageVersion item) { - return new StorageVersionsNested(-1, item); + return new StorageVersionsNested<>(-1, item); } public A addToConditions(V1alpha1StorageVersionCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1alpha1StorageVersionCondition item : items) { V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); @@ -97,7 +99,7 @@ public A addToConditions(V1alpha1StorageVersionCondition... items) { public A addToConditions(int index,V1alpha1StorageVersionCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -112,7 +114,7 @@ public A addToConditions(int index,V1alpha1StorageVersionCondition item) { public A addToStorageVersions(V1alpha1ServerStorageVersion... items) { if (this.storageVersions == null) { - this.storageVersions = new ArrayList(); + this.storageVersions = new ArrayList<>(); } for (V1alpha1ServerStorageVersion item : items) { V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); @@ -124,7 +126,7 @@ public A addToStorageVersions(V1alpha1ServerStorageVersion... items) { public A addToStorageVersions(int index,V1alpha1ServerStorageVersion item) { if (this.storageVersions == null) { - this.storageVersions = new ArrayList(); + this.storageVersions = new ArrayList<>(); } V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); if (index < 0 || index >= this.storageVersions.size()) { @@ -278,7 +280,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1StorageVersionStatusFluent that = (V1alpha1StorageVersionStatusFluent) o; + V1alpha1StorageVersionStatusFluent that = (V1alpha1StorageVersionStatusFluent) o; if (!(Objects.equals(commonEncodingVersion, that.commonEncodingVersion))) { return false; } @@ -382,6 +384,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1alpha1StorageVersionConditionBuilder builder = each.next(); @@ -398,6 +401,7 @@ public A removeMatchingFromStorageVersions(Predicate each = storageVersions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("storageVersions"); while (each.hasNext()) { V1alpha1ServerStorageVersionBuilder builder = each.next(); @@ -410,16 +414,16 @@ public A removeMatchingFromStorageVersions(Predicate setNewConditionLike(int index,V1alpha1StorageVersionCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public StorageVersionsNested setNewStorageVersionLike(int index,V1alpha1ServerStorageVersion item) { - return new StorageVersionsNested(index, item); + return new StorageVersionsNested<>(index, item); } public A setToConditions(int index,V1alpha1StorageVersionCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -434,7 +438,7 @@ public A setToConditions(int index,V1alpha1StorageVersionCondition item) { public A setToStorageVersions(int index,V1alpha1ServerStorageVersion item) { if (this.storageVersions == null) { - this.storageVersions = new ArrayList(); + this.storageVersions = new ArrayList<>(); } V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); if (index < 0 || index >= this.storageVersions.size()) { @@ -478,7 +482,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1alpha1StorageVersionCondition item : conditions) { this.addToConditions(item); } @@ -506,7 +510,7 @@ public A withStorageVersions(List storageVersions) this._visitables.get("storageVersions").clear(); } if (storageVersions != null) { - this.storageVersions = new ArrayList(); + this.storageVersions = new ArrayList<>(); for (V1alpha1ServerStorageVersion item : storageVersions) { this.addToStorageVersions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TargetResponderBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TargetResponderBuilder.java new file mode 100644 index 0000000000..369a1eb217 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TargetResponderBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha1TargetResponderBuilder extends V1alpha1TargetResponderFluent implements VisitableBuilder{ + + V1alpha1TargetResponderFluent fluent; + + public V1alpha1TargetResponderBuilder() { + this(new V1alpha1TargetResponder()); + } + + public V1alpha1TargetResponderBuilder(V1alpha1TargetResponderFluent fluent) { + this(fluent, new V1alpha1TargetResponder()); + } + + public V1alpha1TargetResponderBuilder(V1alpha1TargetResponder instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1TargetResponderBuilder(V1alpha1TargetResponderFluent fluent,V1alpha1TargetResponder instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1TargetResponder build() { + V1alpha1TargetResponder buildable = new V1alpha1TargetResponder(); + buildable.setName(fluent.getName()); + buildable.setPriority(fluent.getPriority()); + buildable.setState(fluent.getState()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TargetResponderFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TargetResponderFluent.java new file mode 100644 index 0000000000..0fab1f6aed --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TargetResponderFluent.java @@ -0,0 +1,138 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1TargetResponderFluent> extends BaseFluent{ + + private String name; + private Integer priority; + private String state; + + public V1alpha1TargetResponderFluent() { + } + + public V1alpha1TargetResponderFluent(V1alpha1TargetResponder instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha1TargetResponder instance) { + instance = instance != null ? instance : new V1alpha1TargetResponder(); + if (instance != null) { + this.withName(instance.getName()); + this.withPriority(instance.getPriority()); + this.withState(instance.getState()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1TargetResponderFluent that = (V1alpha1TargetResponderFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + if (!(Objects.equals(state, that.state))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public Integer getPriority() { + return this.priority; + } + + public String getState() { + return this.state; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasPriority() { + return this.priority != null; + } + + public boolean hasState() { + return this.state != null; + } + + public int hashCode() { + return Objects.hash(name, priority, state); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(priority == null)) { + sb.append("priority:"); + sb.append(priority); + sb.append(","); + } + if (!(state == null)) { + sb.append("state:"); + sb.append(state); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withPriority(Integer priority) { + this.priority = priority; + return (A) this; + } + + public A withState(String state) { + this.state = state; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java index f396247462..b684547998 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha1VariableBuilder extends V1alpha1VariableFluent implements VisitableBuilder{ V1alpha1VariableFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java index 019805b376..f18c4e1596 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha1VariableFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha1VariableFluent> extends BaseFluent{ private String expression; private String name; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1VariableFluent that = (V1alpha1VariableFluent) o; + V1alpha1VariableFluent that = (V1alpha1VariableFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java index f4021b4159..2491a3d4ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha2LeaseCandidateBuilder extends V1alpha2LeaseCandidateFluent implements VisitableBuilder{ V1alpha2LeaseCandidateFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java index 17d5b33e14..9dfa70bd38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2LeaseCandidateFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha2LeaseCandidateFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2LeaseCandidateFluent that = (V1alpha2LeaseCandidateFluent) o; + V1alpha2LeaseCandidateFluent that = (V1alpha2LeaseCandidateFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1alpha2LeaseCandidateSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1alpha2LeaseCandidateSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1alpha2LeaseCandidateSpec spec) { this.spec = new V1alpha2LeaseCandidateSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java index 243cf9d6ec..ed0223582a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha2LeaseCandidateListBuilder extends V1alpha2LeaseCandidateListFluent implements VisitableBuilder{ V1alpha2LeaseCandidateListFluent fluent; 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 42b4e0b31d..66697506af 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2LeaseCandidateListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha2LeaseCandidateListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1alpha2LeaseCandidateListFluent(V1alpha2LeaseCandidateList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1alpha2LeaseCandidate item : items) { V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1alpha2LeaseCandidate item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1alpha2LeaseCandidate... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1alpha2LeaseCandidate item : items) { V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1alpha2LeaseCandidate... items) { public A addToItems(int index,V1alpha2LeaseCandidate item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2LeaseCandidateListFluent that = (V1alpha2LeaseCandidateListFluent) o; + V1alpha2LeaseCandidateListFluent that = (V1alpha2LeaseCandidateListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predic return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1alpha2LeaseCandidateBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predic } public ItemsNested setNewItemLike(int index,V1alpha2LeaseCandidate item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1alpha2LeaseCandidate item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1alpha2LeaseCandidate item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1alpha2LeaseCandidateFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java index a6d55532f5..364afd3250 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha2LeaseCandidateSpecBuilder extends V1alpha2LeaseCandidateSpecFluent implements VisitableBuilder{ V1alpha2LeaseCandidateSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java index a8204a6e25..ab635ab02a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2LeaseCandidateSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha2LeaseCandidateSpecFluent> extends BaseFluent{ private String binaryVersion; private String emulationVersion; @@ -62,7 +64,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2LeaseCandidateSpecFluent that = (V1alpha2LeaseCandidateSpecFluent) o; + V1alpha2LeaseCandidateSpecFluent that = (V1alpha2LeaseCandidateSpecFluent) o; if (!(Objects.equals(binaryVersion, that.binaryVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReferenceBuilder.java deleted file mode 100644 index 1365147484..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReferenceBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2PodGroupTemplateReferenceBuilder extends V1alpha2PodGroupTemplateReferenceFluent implements VisitableBuilder{ - - V1alpha2PodGroupTemplateReferenceFluent fluent; - - public V1alpha2PodGroupTemplateReferenceBuilder() { - this(new V1alpha2PodGroupTemplateReference()); - } - - public V1alpha2PodGroupTemplateReferenceBuilder(V1alpha2PodGroupTemplateReferenceFluent fluent) { - this(fluent, new V1alpha2PodGroupTemplateReference()); - } - - public V1alpha2PodGroupTemplateReferenceBuilder(V1alpha2PodGroupTemplateReference instance) { - this.fluent = this; - this.copyInstance(instance); - } - - public V1alpha2PodGroupTemplateReferenceBuilder(V1alpha2PodGroupTemplateReferenceFluent fluent,V1alpha2PodGroupTemplateReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2PodGroupTemplateReference build() { - V1alpha2PodGroupTemplateReference buildable = new V1alpha2PodGroupTemplateReference(); - buildable.setWorkload(fluent.buildWorkload()); - return buildable; - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReferenceFluent.java deleted file mode 100644 index b600a6464a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReferenceFluent.java +++ /dev/null @@ -1,134 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2PodGroupTemplateReferenceFluent> extends BaseFluent{ - - private V1alpha2WorkloadPodGroupTemplateReferenceBuilder workload; - - public V1alpha2PodGroupTemplateReferenceFluent() { - } - - public V1alpha2PodGroupTemplateReferenceFluent(V1alpha2PodGroupTemplateReference instance) { - this.copyInstance(instance); - } - - public V1alpha2WorkloadPodGroupTemplateReference buildWorkload() { - return this.workload != null ? this.workload.build() : null; - } - - protected void copyInstance(V1alpha2PodGroupTemplateReference instance) { - instance = instance != null ? instance : new V1alpha2PodGroupTemplateReference(); - if (instance != null) { - this.withWorkload(instance.getWorkload()); - } - } - - public WorkloadNested editOrNewWorkload() { - return this.withNewWorkloadLike(Optional.ofNullable(this.buildWorkload()).orElse(new V1alpha2WorkloadPodGroupTemplateReferenceBuilder().build())); - } - - public WorkloadNested editOrNewWorkloadLike(V1alpha2WorkloadPodGroupTemplateReference item) { - return this.withNewWorkloadLike(Optional.ofNullable(this.buildWorkload()).orElse(item)); - } - - public WorkloadNested editWorkload() { - return this.withNewWorkloadLike(Optional.ofNullable(this.buildWorkload()).orElse(null)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1alpha2PodGroupTemplateReferenceFluent that = (V1alpha2PodGroupTemplateReferenceFluent) o; - if (!(Objects.equals(workload, that.workload))) { - return false; - } - return true; - } - - public boolean hasWorkload() { - return this.workload != null; - } - - public int hashCode() { - return Objects.hash(workload); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(workload == null)) { - sb.append("workload:"); - sb.append(workload); - } - sb.append("}"); - return sb.toString(); - } - - public WorkloadNested withNewWorkload() { - return new WorkloadNested(null); - } - - public WorkloadNested withNewWorkloadLike(V1alpha2WorkloadPodGroupTemplateReference item) { - return new WorkloadNested(item); - } - - public A withWorkload(V1alpha2WorkloadPodGroupTemplateReference workload) { - this._visitables.remove("workload"); - if (workload != null) { - this.workload = new V1alpha2WorkloadPodGroupTemplateReferenceBuilder(workload); - this._visitables.get("workload").add(this.workload); - } else { - this.workload = null; - this._visitables.get("workload").remove(this.workload); - } - return (A) this; - } - public class WorkloadNested extends V1alpha2WorkloadPodGroupTemplateReferenceFluent> implements Nested{ - - V1alpha2WorkloadPodGroupTemplateReferenceBuilder builder; - - WorkloadNested(V1alpha2WorkloadPodGroupTemplateReference item) { - this.builder = new V1alpha2WorkloadPodGroupTemplateReferenceBuilder(this, item); - } - - public N and() { - return (N) V1alpha2PodGroupTemplateReferenceFluent.this.withWorkload(builder.build()); - } - - public N endWorkload() { - return and(); - } - - } -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReferenceBuilder.java deleted file mode 100644 index 1b470d62e9..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReferenceBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2WorkloadPodGroupTemplateReferenceBuilder extends V1alpha2WorkloadPodGroupTemplateReferenceFluent implements VisitableBuilder{ - - V1alpha2WorkloadPodGroupTemplateReferenceFluent fluent; - - public V1alpha2WorkloadPodGroupTemplateReferenceBuilder() { - this(new V1alpha2WorkloadPodGroupTemplateReference()); - } - - public V1alpha2WorkloadPodGroupTemplateReferenceBuilder(V1alpha2WorkloadPodGroupTemplateReferenceFluent fluent) { - this(fluent, new V1alpha2WorkloadPodGroupTemplateReference()); - } - - public V1alpha2WorkloadPodGroupTemplateReferenceBuilder(V1alpha2WorkloadPodGroupTemplateReference instance) { - this.fluent = this; - this.copyInstance(instance); - } - - public V1alpha2WorkloadPodGroupTemplateReferenceBuilder(V1alpha2WorkloadPodGroupTemplateReferenceFluent fluent,V1alpha2WorkloadPodGroupTemplateReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2WorkloadPodGroupTemplateReference build() { - V1alpha2WorkloadPodGroupTemplateReference buildable = new V1alpha2WorkloadPodGroupTemplateReference(); - buildable.setPodGroupTemplateName(fluent.getPodGroupTemplateName()); - buildable.setWorkloadName(fluent.getWorkloadName()); - return buildable; - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpecFluent.java deleted file mode 100644 index bedbcb0cc7..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpecFluent.java +++ /dev/null @@ -1,377 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.RuntimeException; -import java.lang.String; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import java.util.function.Predicate; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2WorkloadSpecFluent> extends BaseFluent{ - - private V1alpha2TypedLocalObjectReferenceBuilder controllerRef; - private ArrayList podGroupTemplates; - - public V1alpha2WorkloadSpecFluent() { - } - - public V1alpha2WorkloadSpecFluent(V1alpha2WorkloadSpec instance) { - this.copyInstance(instance); - } - - public A addAllToPodGroupTemplates(Collection items) { - if (this.podGroupTemplates == null) { - this.podGroupTemplates = new ArrayList(); - } - for (V1alpha2PodGroupTemplate item : items) { - V1alpha2PodGroupTemplateBuilder builder = new V1alpha2PodGroupTemplateBuilder(item); - this._visitables.get("podGroupTemplates").add(builder); - this.podGroupTemplates.add(builder); - } - return (A) this; - } - - public PodGroupTemplatesNested addNewPodGroupTemplate() { - return new PodGroupTemplatesNested(-1, null); - } - - public PodGroupTemplatesNested addNewPodGroupTemplateLike(V1alpha2PodGroupTemplate item) { - return new PodGroupTemplatesNested(-1, item); - } - - public A addToPodGroupTemplates(V1alpha2PodGroupTemplate... items) { - if (this.podGroupTemplates == null) { - this.podGroupTemplates = new ArrayList(); - } - for (V1alpha2PodGroupTemplate item : items) { - V1alpha2PodGroupTemplateBuilder builder = new V1alpha2PodGroupTemplateBuilder(item); - this._visitables.get("podGroupTemplates").add(builder); - this.podGroupTemplates.add(builder); - } - return (A) this; - } - - public A addToPodGroupTemplates(int index,V1alpha2PodGroupTemplate item) { - if (this.podGroupTemplates == null) { - this.podGroupTemplates = new ArrayList(); - } - V1alpha2PodGroupTemplateBuilder builder = new V1alpha2PodGroupTemplateBuilder(item); - if (index < 0 || index >= this.podGroupTemplates.size()) { - this._visitables.get("podGroupTemplates").add(builder); - this.podGroupTemplates.add(builder); - } else { - this._visitables.get("podGroupTemplates").add(builder); - this.podGroupTemplates.add(index, builder); - } - return (A) this; - } - - public V1alpha2TypedLocalObjectReference buildControllerRef() { - return this.controllerRef != null ? this.controllerRef.build() : null; - } - - public V1alpha2PodGroupTemplate buildFirstPodGroupTemplate() { - return this.podGroupTemplates.get(0).build(); - } - - public V1alpha2PodGroupTemplate buildLastPodGroupTemplate() { - return this.podGroupTemplates.get(podGroupTemplates.size() - 1).build(); - } - - public V1alpha2PodGroupTemplate buildMatchingPodGroupTemplate(Predicate predicate) { - for (V1alpha2PodGroupTemplateBuilder item : podGroupTemplates) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public V1alpha2PodGroupTemplate buildPodGroupTemplate(int index) { - return this.podGroupTemplates.get(index).build(); - } - - public List buildPodGroupTemplates() { - return this.podGroupTemplates != null ? build(podGroupTemplates) : null; - } - - protected void copyInstance(V1alpha2WorkloadSpec instance) { - instance = instance != null ? instance : new V1alpha2WorkloadSpec(); - if (instance != null) { - this.withControllerRef(instance.getControllerRef()); - this.withPodGroupTemplates(instance.getPodGroupTemplates()); - } - } - - public ControllerRefNested editControllerRef() { - return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(null)); - } - - public PodGroupTemplatesNested editFirstPodGroupTemplate() { - if (podGroupTemplates.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "podGroupTemplates")); - } - return this.setNewPodGroupTemplateLike(0, this.buildPodGroupTemplate(0)); - } - - public PodGroupTemplatesNested editLastPodGroupTemplate() { - int index = podGroupTemplates.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "podGroupTemplates")); - } - return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); - } - - public PodGroupTemplatesNested editMatchingPodGroupTemplate(Predicate predicate) { - int index = -1; - for (int i = 0;i < podGroupTemplates.size();i++) { - if (predicate.test(podGroupTemplates.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "podGroupTemplates")); - } - return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); - } - - public ControllerRefNested editOrNewControllerRef() { - return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(new V1alpha2TypedLocalObjectReferenceBuilder().build())); - } - - public ControllerRefNested editOrNewControllerRefLike(V1alpha2TypedLocalObjectReference item) { - return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(item)); - } - - public PodGroupTemplatesNested editPodGroupTemplate(int index) { - if (podGroupTemplates.size() <= index) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "podGroupTemplates")); - } - return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1alpha2WorkloadSpecFluent that = (V1alpha2WorkloadSpecFluent) o; - if (!(Objects.equals(controllerRef, that.controllerRef))) { - return false; - } - if (!(Objects.equals(podGroupTemplates, that.podGroupTemplates))) { - return false; - } - return true; - } - - public boolean hasControllerRef() { - return this.controllerRef != null; - } - - public boolean hasMatchingPodGroupTemplate(Predicate predicate) { - for (V1alpha2PodGroupTemplateBuilder item : podGroupTemplates) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public boolean hasPodGroupTemplates() { - return this.podGroupTemplates != null && !(this.podGroupTemplates.isEmpty()); - } - - public int hashCode() { - return Objects.hash(controllerRef, podGroupTemplates); - } - - public A removeAllFromPodGroupTemplates(Collection items) { - if (this.podGroupTemplates == null) { - return (A) this; - } - for (V1alpha2PodGroupTemplate item : items) { - V1alpha2PodGroupTemplateBuilder builder = new V1alpha2PodGroupTemplateBuilder(item); - _visitables.get("podGroupTemplates").remove(builder); - this.podGroupTemplates.remove(builder); - } - return (A) this; - } - - public A removeFromPodGroupTemplates(V1alpha2PodGroupTemplate... items) { - if (this.podGroupTemplates == null) { - return (A) this; - } - for (V1alpha2PodGroupTemplate item : items) { - V1alpha2PodGroupTemplateBuilder builder = new V1alpha2PodGroupTemplateBuilder(item); - _visitables.get("podGroupTemplates").remove(builder); - this.podGroupTemplates.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromPodGroupTemplates(Predicate predicate) { - if (podGroupTemplates == null) { - return (A) this; - } - Iterator each = podGroupTemplates.iterator(); - List visitables = this._visitables.get("podGroupTemplates"); - while (each.hasNext()) { - V1alpha2PodGroupTemplateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - public PodGroupTemplatesNested setNewPodGroupTemplateLike(int index,V1alpha2PodGroupTemplate item) { - return new PodGroupTemplatesNested(index, item); - } - - public A setToPodGroupTemplates(int index,V1alpha2PodGroupTemplate item) { - if (this.podGroupTemplates == null) { - this.podGroupTemplates = new ArrayList(); - } - V1alpha2PodGroupTemplateBuilder builder = new V1alpha2PodGroupTemplateBuilder(item); - if (index < 0 || index >= this.podGroupTemplates.size()) { - this._visitables.get("podGroupTemplates").add(builder); - this.podGroupTemplates.add(builder); - } else { - this._visitables.get("podGroupTemplates").add(builder); - this.podGroupTemplates.set(index, builder); - } - return (A) this; - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(controllerRef == null)) { - sb.append("controllerRef:"); - sb.append(controllerRef); - sb.append(","); - } - if (!(podGroupTemplates == null) && !(podGroupTemplates.isEmpty())) { - sb.append("podGroupTemplates:"); - sb.append(podGroupTemplates); - } - sb.append("}"); - return sb.toString(); - } - - public A withControllerRef(V1alpha2TypedLocalObjectReference controllerRef) { - this._visitables.remove("controllerRef"); - if (controllerRef != null) { - this.controllerRef = new V1alpha2TypedLocalObjectReferenceBuilder(controllerRef); - this._visitables.get("controllerRef").add(this.controllerRef); - } else { - this.controllerRef = null; - this._visitables.get("controllerRef").remove(this.controllerRef); - } - return (A) this; - } - - public ControllerRefNested withNewControllerRef() { - return new ControllerRefNested(null); - } - - public ControllerRefNested withNewControllerRefLike(V1alpha2TypedLocalObjectReference item) { - return new ControllerRefNested(item); - } - - public A withPodGroupTemplates(List podGroupTemplates) { - if (this.podGroupTemplates != null) { - this._visitables.get("podGroupTemplates").clear(); - } - if (podGroupTemplates != null) { - this.podGroupTemplates = new ArrayList(); - for (V1alpha2PodGroupTemplate item : podGroupTemplates) { - this.addToPodGroupTemplates(item); - } - } else { - this.podGroupTemplates = null; - } - return (A) this; - } - - public A withPodGroupTemplates(V1alpha2PodGroupTemplate... podGroupTemplates) { - if (this.podGroupTemplates != null) { - this.podGroupTemplates.clear(); - _visitables.remove("podGroupTemplates"); - } - if (podGroupTemplates != null) { - for (V1alpha2PodGroupTemplate item : podGroupTemplates) { - this.addToPodGroupTemplates(item); - } - } - return (A) this; - } - public class ControllerRefNested extends V1alpha2TypedLocalObjectReferenceFluent> implements Nested{ - - V1alpha2TypedLocalObjectReferenceBuilder builder; - - ControllerRefNested(V1alpha2TypedLocalObjectReference item) { - this.builder = new V1alpha2TypedLocalObjectReferenceBuilder(this, item); - } - - public N and() { - return (N) V1alpha2WorkloadSpecFluent.this.withControllerRef(builder.build()); - } - - public N endControllerRef() { - return and(); - } - - } - public class PodGroupTemplatesNested extends V1alpha2PodGroupTemplateFluent> implements Nested{ - - V1alpha2PodGroupTemplateBuilder builder; - int index; - - PodGroupTemplatesNested(int index,V1alpha2PodGroupTemplate item) { - this.index = index; - this.builder = new V1alpha2PodGroupTemplateBuilder(this, item); - } - - public N and() { - return (N) V1alpha2WorkloadSpecFluent.this.setToPodGroupTemplates(index, builder.build()); - } - - public N endPodGroupTemplate() { - return and(); - } - - } -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeDisruptionModeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeDisruptionModeBuilder.java new file mode 100644 index 0000000000..477366af0e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeDisruptionModeBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3CompositeDisruptionModeBuilder extends V1alpha3CompositeDisruptionModeFluent implements VisitableBuilder{ + + V1alpha3CompositeDisruptionModeFluent fluent; + + public V1alpha3CompositeDisruptionModeBuilder() { + this(new V1alpha3CompositeDisruptionMode()); + } + + public V1alpha3CompositeDisruptionModeBuilder(V1alpha3CompositeDisruptionModeFluent fluent) { + this(fluent, new V1alpha3CompositeDisruptionMode()); + } + + public V1alpha3CompositeDisruptionModeBuilder(V1alpha3CompositeDisruptionMode instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3CompositeDisruptionModeBuilder(V1alpha3CompositeDisruptionModeFluent fluent,V1alpha3CompositeDisruptionMode instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CompositeDisruptionMode build() { + V1alpha3CompositeDisruptionMode buildable = new V1alpha3CompositeDisruptionMode(); + buildable.setAll(fluent.getAll()); + buildable.setSingle(fluent.getSingle()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeDisruptionModeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeDisruptionModeFluent.java new file mode 100644 index 0000000000..11596db066 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeDisruptionModeFluent.java @@ -0,0 +1,114 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3CompositeDisruptionModeFluent> extends BaseFluent{ + + private Object all; + private Object single; + + public V1alpha3CompositeDisruptionModeFluent() { + } + + public V1alpha3CompositeDisruptionModeFluent(V1alpha3CompositeDisruptionMode instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha3CompositeDisruptionMode instance) { + instance = instance != null ? instance : new V1alpha3CompositeDisruptionMode(); + if (instance != null) { + this.withAll(instance.getAll()); + this.withSingle(instance.getSingle()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3CompositeDisruptionModeFluent that = (V1alpha3CompositeDisruptionModeFluent) o; + if (!(Objects.equals(all, that.all))) { + return false; + } + if (!(Objects.equals(single, that.single))) { + return false; + } + return true; + } + + public Object getAll() { + return this.all; + } + + public Object getSingle() { + return this.single; + } + + public boolean hasAll() { + return this.all != null; + } + + public boolean hasSingle() { + return this.single != null; + } + + public int hashCode() { + return Objects.hash(all, single); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(all == null)) { + sb.append("all:"); + sb.append(all); + sb.append(","); + } + if (!(single == null)) { + sb.append("single:"); + sb.append(single); + } + sb.append("}"); + return sb.toString(); + } + + public A withAll(Object all) { + this.all = all; + return (A) this; + } + + public A withSingle(Object single) { + this.single = single; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeGangSchedulingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeGangSchedulingPolicyBuilder.java new file mode 100644 index 0000000000..acd81a0f28 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeGangSchedulingPolicyBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3CompositeGangSchedulingPolicyBuilder extends V1alpha3CompositeGangSchedulingPolicyFluent implements VisitableBuilder{ + + V1alpha3CompositeGangSchedulingPolicyFluent fluent; + + public V1alpha3CompositeGangSchedulingPolicyBuilder() { + this(new V1alpha3CompositeGangSchedulingPolicy()); + } + + public V1alpha3CompositeGangSchedulingPolicyBuilder(V1alpha3CompositeGangSchedulingPolicyFluent fluent) { + this(fluent, new V1alpha3CompositeGangSchedulingPolicy()); + } + + public V1alpha3CompositeGangSchedulingPolicyBuilder(V1alpha3CompositeGangSchedulingPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3CompositeGangSchedulingPolicyBuilder(V1alpha3CompositeGangSchedulingPolicyFluent fluent,V1alpha3CompositeGangSchedulingPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CompositeGangSchedulingPolicy build() { + V1alpha3CompositeGangSchedulingPolicy buildable = new V1alpha3CompositeGangSchedulingPolicy(); + buildable.setMinGroupCount(fluent.getMinGroupCount()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeGangSchedulingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeGangSchedulingPolicyFluent.java new file mode 100644 index 0000000000..6cd96f278b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeGangSchedulingPolicyFluent.java @@ -0,0 +1,92 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3CompositeGangSchedulingPolicyFluent> extends BaseFluent{ + + private Integer minGroupCount; + + public V1alpha3CompositeGangSchedulingPolicyFluent() { + } + + public V1alpha3CompositeGangSchedulingPolicyFluent(V1alpha3CompositeGangSchedulingPolicy instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha3CompositeGangSchedulingPolicy instance) { + instance = instance != null ? instance : new V1alpha3CompositeGangSchedulingPolicy(); + if (instance != null) { + this.withMinGroupCount(instance.getMinGroupCount()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3CompositeGangSchedulingPolicyFluent that = (V1alpha3CompositeGangSchedulingPolicyFluent) o; + if (!(Objects.equals(minGroupCount, that.minGroupCount))) { + return false; + } + return true; + } + + public Integer getMinGroupCount() { + return this.minGroupCount; + } + + public boolean hasMinGroupCount() { + return this.minGroupCount != null; + } + + public int hashCode() { + return Objects.hash(minGroupCount); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(minGroupCount == null)) { + sb.append("minGroupCount:"); + sb.append(minGroupCount); + } + sb.append("}"); + return sb.toString(); + } + + public A withMinGroupCount(Integer minGroupCount) { + this.minGroupCount = minGroupCount; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupBuilder.java new file mode 100644 index 0000000000..375101efde --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupBuilder.java @@ -0,0 +1,50 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3CompositePodGroupBuilder extends V1alpha3CompositePodGroupFluent implements VisitableBuilder{ + + V1alpha3CompositePodGroupFluent fluent; + + public V1alpha3CompositePodGroupBuilder() { + this(new V1alpha3CompositePodGroup()); + } + + public V1alpha3CompositePodGroupBuilder(V1alpha3CompositePodGroupFluent fluent) { + this(fluent, new V1alpha3CompositePodGroup()); + } + + public V1alpha3CompositePodGroupBuilder(V1alpha3CompositePodGroup instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3CompositePodGroupBuilder(V1alpha3CompositePodGroupFluent fluent,V1alpha3CompositePodGroup instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CompositePodGroup build() { + V1alpha3CompositePodGroup buildable = new V1alpha3CompositePodGroup(); + 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/V1alpha3CompositePodGroupFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupFluent.java new file mode 100644 index 0000000000..e5f254727c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupFluent.java @@ -0,0 +1,316 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3CompositePodGroupFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha3CompositePodGroupSpecBuilder spec; + private V1alpha3CompositePodGroupStatusBuilder status; + + public V1alpha3CompositePodGroupFluent() { + } + + public V1alpha3CompositePodGroupFluent(V1alpha3CompositePodGroup instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha3CompositePodGroupSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1alpha3CompositePodGroupStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + protected void copyInstance(V1alpha3CompositePodGroup instance) { + instance = instance != null ? instance : new V1alpha3CompositePodGroup(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha3CompositePodGroupSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha3CompositePodGroupSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha3CompositePodGroupStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1alpha3CompositePodGroupStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3CompositePodGroupFluent that = (V1alpha3CompositePodGroupFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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._visitables.get("metadata").remove(this.metadata); + this.metadata = null; + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested<>(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested<>(item); + } + + public SpecNested withNewSpec() { + return new SpecNested<>(null); + } + + public SpecNested withNewSpecLike(V1alpha3CompositePodGroupSpec item) { + return new SpecNested<>(item); + } + + public StatusNested withNewStatus() { + return new StatusNested<>(null); + } + + public StatusNested withNewStatusLike(V1alpha3CompositePodGroupStatus item) { + return new StatusNested<>(item); + } + + public A withSpec(V1alpha3CompositePodGroupSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha3CompositePodGroupSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this._visitables.get("spec").remove(this.spec); + this.spec = null; + } + return (A) this; + } + + public A withStatus(V1alpha3CompositePodGroupStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1alpha3CompositePodGroupStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this._visitables.get("status").remove(this.status); + this.status = null; + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1alpha3CompositePodGroupSpecFluent> implements Nested{ + + V1alpha3CompositePodGroupSpecBuilder builder; + + SpecNested(V1alpha3CompositePodGroupSpec item) { + this.builder = new V1alpha3CompositePodGroupSpecBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1alpha3CompositePodGroupStatusFluent> implements Nested{ + + V1alpha3CompositePodGroupStatusBuilder builder; + + StatusNested(V1alpha3CompositePodGroupStatus item) { + this.builder = new V1alpha3CompositePodGroupStatusBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupFluent.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/V1alpha3CompositePodGroupListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupListBuilder.java new file mode 100644 index 0000000000..673a460c5d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupListBuilder.java @@ -0,0 +1,49 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3CompositePodGroupListBuilder extends V1alpha3CompositePodGroupListFluent implements VisitableBuilder{ + + V1alpha3CompositePodGroupListFluent fluent; + + public V1alpha3CompositePodGroupListBuilder() { + this(new V1alpha3CompositePodGroupList()); + } + + public V1alpha3CompositePodGroupListBuilder(V1alpha3CompositePodGroupListFluent fluent) { + this(fluent, new V1alpha3CompositePodGroupList()); + } + + public V1alpha3CompositePodGroupListBuilder(V1alpha3CompositePodGroupList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3CompositePodGroupListBuilder(V1alpha3CompositePodGroupListFluent fluent,V1alpha3CompositePodGroupList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CompositePodGroupList build() { + V1alpha3CompositePodGroupList buildable = new V1alpha3CompositePodGroupList(); + 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/V1alpha3CompositePodGroupListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupListFluent.java new file mode 100644 index 0000000000..7aa6d5c014 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupListFluent.java @@ -0,0 +1,426 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3CompositePodGroupListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1alpha3CompositePodGroupListFluent() { + } + + public V1alpha3CompositePodGroupListFluent(V1alpha3CompositePodGroupList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + for (V1alpha3CompositePodGroup item : items) { + V1alpha3CompositePodGroupBuilder builder = new V1alpha3CompositePodGroupBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested<>(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha3CompositePodGroup item) { + return new ItemsNested<>(-1, item); + } + + public A addToItems(V1alpha3CompositePodGroup... items) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + for (V1alpha3CompositePodGroup item : items) { + V1alpha3CompositePodGroupBuilder builder = new V1alpha3CompositePodGroupBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1alpha3CompositePodGroup item) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + V1alpha3CompositePodGroupBuilder builder = new V1alpha3CompositePodGroupBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.add(index, builder); + } + return (A) this; + } + + public V1alpha3CompositePodGroup buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha3CompositePodGroup buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha3CompositePodGroup buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha3CompositePodGroup buildMatchingItem(Predicate predicate) { + for (V1alpha3CompositePodGroupBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1alpha3CompositePodGroupList instance) { + instance = instance != null ? instance : new V1alpha3CompositePodGroupList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3CompositePodGroupListFluent that = (V1alpha3CompositePodGroupListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha3CompositePodGroupBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha3CompositePodGroup item : items) { + V1alpha3CompositePodGroupBuilder builder = new V1alpha3CompositePodGroupBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha3CompositePodGroup... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha3CompositePodGroup item : items) { + V1alpha3CompositePodGroupBuilder builder = new V1alpha3CompositePodGroupBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("items"); + while (each.hasNext()) { + V1alpha3CompositePodGroupBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha3CompositePodGroup item) { + return new ItemsNested<>(index, item); + } + + public A setToItems(int index,V1alpha3CompositePodGroup item) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + V1alpha3CompositePodGroupBuilder builder = new V1alpha3CompositePodGroupBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList<>(); + for (V1alpha3CompositePodGroup item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha3CompositePodGroup... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha3CompositePodGroup item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested<>(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested<>(item); + } + public class ItemsNested extends V1alpha3CompositePodGroupFluent> implements Nested{ + + V1alpha3CompositePodGroupBuilder builder; + int index; + + ItemsNested(int index,V1alpha3CompositePodGroup item) { + this.index = index; + this.builder = new V1alpha3CompositePodGroupBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupListFluent.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/V1alpha3CompositePodGroupSchedulingConstraintsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingConstraintsBuilder.java new file mode 100644 index 0000000000..c993661ad1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingConstraintsBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3CompositePodGroupSchedulingConstraintsBuilder extends V1alpha3CompositePodGroupSchedulingConstraintsFluent implements VisitableBuilder{ + + V1alpha3CompositePodGroupSchedulingConstraintsFluent fluent; + + public V1alpha3CompositePodGroupSchedulingConstraintsBuilder() { + this(new V1alpha3CompositePodGroupSchedulingConstraints()); + } + + public V1alpha3CompositePodGroupSchedulingConstraintsBuilder(V1alpha3CompositePodGroupSchedulingConstraintsFluent fluent) { + this(fluent, new V1alpha3CompositePodGroupSchedulingConstraints()); + } + + public V1alpha3CompositePodGroupSchedulingConstraintsBuilder(V1alpha3CompositePodGroupSchedulingConstraints instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3CompositePodGroupSchedulingConstraintsBuilder(V1alpha3CompositePodGroupSchedulingConstraintsFluent fluent,V1alpha3CompositePodGroupSchedulingConstraints instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CompositePodGroupSchedulingConstraints build() { + V1alpha3CompositePodGroupSchedulingConstraints buildable = new V1alpha3CompositePodGroupSchedulingConstraints(); + buildable.setTopology(fluent.buildTopology()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingConstraintsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingConstraintsFluent.java new file mode 100644 index 0000000000..25a703c8ad --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingConstraintsFluent.java @@ -0,0 +1,312 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3CompositePodGroupSchedulingConstraintsFluent> extends BaseFluent{ + + private ArrayList topology; + + public V1alpha3CompositePodGroupSchedulingConstraintsFluent() { + } + + public V1alpha3CompositePodGroupSchedulingConstraintsFluent(V1alpha3CompositePodGroupSchedulingConstraints instance) { + this.copyInstance(instance); + } + + public A addAllToTopology(Collection items) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + for (V1alpha3TopologyConstraint item : items) { + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } + return (A) this; + } + + public TopologyNested addNewTopology() { + return new TopologyNested<>(-1, null); + } + + public TopologyNested addNewTopologyLike(V1alpha3TopologyConstraint item) { + return new TopologyNested<>(-1, item); + } + + public A addToTopology(V1alpha3TopologyConstraint... items) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + for (V1alpha3TopologyConstraint item : items) { + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } + return (A) this; + } + + public A addToTopology(int index,V1alpha3TopologyConstraint item) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); + if (index < 0 || index >= this.topology.size()) { + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } else { + this._visitables.get("topology").add(builder); + this.topology.add(index, builder); + } + return (A) this; + } + + public V1alpha3TopologyConstraint buildFirstTopology() { + return this.topology.get(0).build(); + } + + public V1alpha3TopologyConstraint buildLastTopology() { + return this.topology.get(topology.size() - 1).build(); + } + + public V1alpha3TopologyConstraint buildMatchingTopology(Predicate predicate) { + for (V1alpha3TopologyConstraintBuilder item : topology) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public List buildTopology() { + return this.topology != null ? build(topology) : null; + } + + public V1alpha3TopologyConstraint buildTopology(int index) { + return this.topology.get(index).build(); + } + + protected void copyInstance(V1alpha3CompositePodGroupSchedulingConstraints instance) { + instance = instance != null ? instance : new V1alpha3CompositePodGroupSchedulingConstraints(); + if (instance != null) { + this.withTopology(instance.getTopology()); + } + } + + public TopologyNested editFirstTopology() { + if (topology.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "topology")); + } + return this.setNewTopologyLike(0, this.buildTopology(0)); + } + + public TopologyNested editLastTopology() { + int index = topology.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public TopologyNested editMatchingTopology(Predicate predicate) { + int index = -1; + for (int i = 0;i < topology.size();i++) { + if (predicate.test(topology.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public TopologyNested editTopology(int index) { + if (topology.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3CompositePodGroupSchedulingConstraintsFluent that = (V1alpha3CompositePodGroupSchedulingConstraintsFluent) o; + if (!(Objects.equals(topology, that.topology))) { + return false; + } + return true; + } + + public boolean hasMatchingTopology(Predicate predicate) { + for (V1alpha3TopologyConstraintBuilder item : topology) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasTopology() { + return this.topology != null && !(this.topology.isEmpty()); + } + + public int hashCode() { + return Objects.hash(topology); + } + + public A removeAllFromTopology(Collection items) { + if (this.topology == null) { + return (A) this; + } + for (V1alpha3TopologyConstraint item : items) { + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); + _visitables.get("topology").remove(builder); + this.topology.remove(builder); + } + return (A) this; + } + + public A removeFromTopology(V1alpha3TopologyConstraint... items) { + if (this.topology == null) { + return (A) this; + } + for (V1alpha3TopologyConstraint item : items) { + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); + _visitables.get("topology").remove(builder); + this.topology.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromTopology(Predicate predicate) { + if (topology == null) { + return (A) this; + } + Iterator each = topology.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("topology"); + while (each.hasNext()) { + V1alpha3TopologyConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public TopologyNested setNewTopologyLike(int index,V1alpha3TopologyConstraint item) { + return new TopologyNested<>(index, item); + } + + public A setToTopology(int index,V1alpha3TopologyConstraint item) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); + if (index < 0 || index >= this.topology.size()) { + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } else { + this._visitables.get("topology").add(builder); + this.topology.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(topology == null) && !(topology.isEmpty())) { + sb.append("topology:"); + sb.append(topology); + } + sb.append("}"); + return sb.toString(); + } + + public A withTopology(List topology) { + if (this.topology != null) { + this._visitables.get("topology").clear(); + } + if (topology != null) { + this.topology = new ArrayList<>(); + for (V1alpha3TopologyConstraint item : topology) { + this.addToTopology(item); + } + } else { + this.topology = null; + } + return (A) this; + } + + public A withTopology(V1alpha3TopologyConstraint... topology) { + if (this.topology != null) { + this.topology.clear(); + _visitables.remove("topology"); + } + if (topology != null) { + for (V1alpha3TopologyConstraint item : topology) { + this.addToTopology(item); + } + } + return (A) this; + } + public class TopologyNested extends V1alpha3TopologyConstraintFluent> implements Nested{ + + V1alpha3TopologyConstraintBuilder builder; + int index; + + TopologyNested(int index,V1alpha3TopologyConstraint item) { + this.index = index; + this.builder = new V1alpha3TopologyConstraintBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupSchedulingConstraintsFluent.this.setToTopology(index, builder.build()); + } + + public N endTopology() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingPolicyBuilder.java new file mode 100644 index 0000000000..483e39ecd1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingPolicyBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3CompositePodGroupSchedulingPolicyBuilder extends V1alpha3CompositePodGroupSchedulingPolicyFluent implements VisitableBuilder{ + + V1alpha3CompositePodGroupSchedulingPolicyFluent fluent; + + public V1alpha3CompositePodGroupSchedulingPolicyBuilder() { + this(new V1alpha3CompositePodGroupSchedulingPolicy()); + } + + public V1alpha3CompositePodGroupSchedulingPolicyBuilder(V1alpha3CompositePodGroupSchedulingPolicyFluent fluent) { + this(fluent, new V1alpha3CompositePodGroupSchedulingPolicy()); + } + + public V1alpha3CompositePodGroupSchedulingPolicyBuilder(V1alpha3CompositePodGroupSchedulingPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3CompositePodGroupSchedulingPolicyBuilder(V1alpha3CompositePodGroupSchedulingPolicyFluent fluent,V1alpha3CompositePodGroupSchedulingPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CompositePodGroupSchedulingPolicy build() { + V1alpha3CompositePodGroupSchedulingPolicy buildable = new V1alpha3CompositePodGroupSchedulingPolicy(); + buildable.setBasic(fluent.getBasic()); + buildable.setGang(fluent.buildGang()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingPolicyFluent.java new file mode 100644 index 0000000000..91f35eaa18 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingPolicyFluent.java @@ -0,0 +1,159 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3CompositePodGroupSchedulingPolicyFluent> extends BaseFluent{ + + private Object basic; + private V1alpha3CompositeGangSchedulingPolicyBuilder gang; + + public V1alpha3CompositePodGroupSchedulingPolicyFluent() { + } + + public V1alpha3CompositePodGroupSchedulingPolicyFluent(V1alpha3CompositePodGroupSchedulingPolicy instance) { + this.copyInstance(instance); + } + + public V1alpha3CompositeGangSchedulingPolicy buildGang() { + return this.gang != null ? this.gang.build() : null; + } + + protected void copyInstance(V1alpha3CompositePodGroupSchedulingPolicy instance) { + instance = instance != null ? instance : new V1alpha3CompositePodGroupSchedulingPolicy(); + if (instance != null) { + this.withBasic(instance.getBasic()); + this.withGang(instance.getGang()); + } + } + + public GangNested editGang() { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(null)); + } + + public GangNested editOrNewGang() { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(new V1alpha3CompositeGangSchedulingPolicyBuilder().build())); + } + + public GangNested editOrNewGangLike(V1alpha3CompositeGangSchedulingPolicy item) { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3CompositePodGroupSchedulingPolicyFluent that = (V1alpha3CompositePodGroupSchedulingPolicyFluent) o; + if (!(Objects.equals(basic, that.basic))) { + return false; + } + if (!(Objects.equals(gang, that.gang))) { + return false; + } + return true; + } + + public Object getBasic() { + return this.basic; + } + + public boolean hasBasic() { + return this.basic != null; + } + + public boolean hasGang() { + return this.gang != null; + } + + public int hashCode() { + return Objects.hash(basic, gang); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(basic == null)) { + sb.append("basic:"); + sb.append(basic); + sb.append(","); + } + if (!(gang == null)) { + sb.append("gang:"); + sb.append(gang); + } + sb.append("}"); + return sb.toString(); + } + + public A withBasic(Object basic) { + this.basic = basic; + return (A) this; + } + + public A withGang(V1alpha3CompositeGangSchedulingPolicy gang) { + this._visitables.remove("gang"); + if (gang != null) { + this.gang = new V1alpha3CompositeGangSchedulingPolicyBuilder(gang); + this._visitables.get("gang").add(this.gang); + } else { + this._visitables.get("gang").remove(this.gang); + this.gang = null; + } + return (A) this; + } + + public GangNested withNewGang() { + return new GangNested<>(null); + } + + public GangNested withNewGangLike(V1alpha3CompositeGangSchedulingPolicy item) { + return new GangNested<>(item); + } + public class GangNested extends V1alpha3CompositeGangSchedulingPolicyFluent> implements Nested{ + + V1alpha3CompositeGangSchedulingPolicyBuilder builder; + + GangNested(V1alpha3CompositeGangSchedulingPolicy item) { + this.builder = new V1alpha3CompositeGangSchedulingPolicyBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupSchedulingPolicyFluent.this.withGang(builder.build()); + } + + public N endGang() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSpecBuilder.java new file mode 100644 index 0000000000..6223ed4eaa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSpecBuilder.java @@ -0,0 +1,53 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3CompositePodGroupSpecBuilder extends V1alpha3CompositePodGroupSpecFluent implements VisitableBuilder{ + + V1alpha3CompositePodGroupSpecFluent fluent; + + public V1alpha3CompositePodGroupSpecBuilder() { + this(new V1alpha3CompositePodGroupSpec()); + } + + public V1alpha3CompositePodGroupSpecBuilder(V1alpha3CompositePodGroupSpecFluent fluent) { + this(fluent, new V1alpha3CompositePodGroupSpec()); + } + + public V1alpha3CompositePodGroupSpecBuilder(V1alpha3CompositePodGroupSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3CompositePodGroupSpecBuilder(V1alpha3CompositePodGroupSpecFluent fluent,V1alpha3CompositePodGroupSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CompositePodGroupSpec build() { + V1alpha3CompositePodGroupSpec buildable = new V1alpha3CompositePodGroupSpec(); + buildable.setDisruptionMode(fluent.buildDisruptionMode()); + buildable.setParentCompositePodGroupName(fluent.getParentCompositePodGroupName()); + buildable.setPreemptionPolicy(fluent.getPreemptionPolicy()); + buildable.setPriority(fluent.getPriority()); + buildable.setPriorityClassName(fluent.getPriorityClassName()); + buildable.setSchedulingConstraints(fluent.buildSchedulingConstraints()); + buildable.setSchedulingPolicy(fluent.buildSchedulingPolicy()); + buildable.setWorkloadRef(fluent.buildWorkloadRef()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSpecFluent.java new file mode 100644 index 0000000000..467c8cf7f0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSpecFluent.java @@ -0,0 +1,430 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3CompositePodGroupSpecFluent> extends BaseFluent{ + + private V1alpha3CompositeDisruptionModeBuilder disruptionMode; + private String parentCompositePodGroupName; + private String preemptionPolicy; + private Integer priority; + private String priorityClassName; + private V1alpha3CompositePodGroupSchedulingConstraintsBuilder schedulingConstraints; + private V1alpha3CompositePodGroupSchedulingPolicyBuilder schedulingPolicy; + private V1alpha3WorkloadReferenceBuilder workloadRef; + + public V1alpha3CompositePodGroupSpecFluent() { + } + + public V1alpha3CompositePodGroupSpecFluent(V1alpha3CompositePodGroupSpec instance) { + this.copyInstance(instance); + } + + public V1alpha3CompositeDisruptionMode buildDisruptionMode() { + return this.disruptionMode != null ? this.disruptionMode.build() : null; + } + + public V1alpha3CompositePodGroupSchedulingConstraints buildSchedulingConstraints() { + return this.schedulingConstraints != null ? this.schedulingConstraints.build() : null; + } + + public V1alpha3CompositePodGroupSchedulingPolicy buildSchedulingPolicy() { + return this.schedulingPolicy != null ? this.schedulingPolicy.build() : null; + } + + public V1alpha3WorkloadReference buildWorkloadRef() { + return this.workloadRef != null ? this.workloadRef.build() : null; + } + + protected void copyInstance(V1alpha3CompositePodGroupSpec instance) { + instance = instance != null ? instance : new V1alpha3CompositePodGroupSpec(); + if (instance != null) { + this.withDisruptionMode(instance.getDisruptionMode()); + this.withParentCompositePodGroupName(instance.getParentCompositePodGroupName()); + this.withPreemptionPolicy(instance.getPreemptionPolicy()); + this.withPriority(instance.getPriority()); + this.withPriorityClassName(instance.getPriorityClassName()); + this.withSchedulingConstraints(instance.getSchedulingConstraints()); + this.withSchedulingPolicy(instance.getSchedulingPolicy()); + this.withWorkloadRef(instance.getWorkloadRef()); + } + } + + public DisruptionModeNested editDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(null)); + } + + public DisruptionModeNested editOrNewDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(new V1alpha3CompositeDisruptionModeBuilder().build())); + } + + public DisruptionModeNested editOrNewDisruptionModeLike(V1alpha3CompositeDisruptionMode item) { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(item)); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(new V1alpha3CompositePodGroupSchedulingConstraintsBuilder().build())); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraintsLike(V1alpha3CompositePodGroupSchedulingConstraints item) { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(item)); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(new V1alpha3CompositePodGroupSchedulingPolicyBuilder().build())); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicyLike(V1alpha3CompositePodGroupSchedulingPolicy item) { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(item)); + } + + public WorkloadRefNested editOrNewWorkloadRef() { + return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(new V1alpha3WorkloadReferenceBuilder().build())); + } + + public WorkloadRefNested editOrNewWorkloadRefLike(V1alpha3WorkloadReference item) { + return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(item)); + } + + public SchedulingConstraintsNested editSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(null)); + } + + public SchedulingPolicyNested editSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(null)); + } + + public WorkloadRefNested editWorkloadRef() { + return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3CompositePodGroupSpecFluent that = (V1alpha3CompositePodGroupSpecFluent) o; + if (!(Objects.equals(disruptionMode, that.disruptionMode))) { + return false; + } + if (!(Objects.equals(parentCompositePodGroupName, that.parentCompositePodGroupName))) { + return false; + } + if (!(Objects.equals(preemptionPolicy, that.preemptionPolicy))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + if (!(Objects.equals(priorityClassName, that.priorityClassName))) { + return false; + } + if (!(Objects.equals(schedulingConstraints, that.schedulingConstraints))) { + return false; + } + if (!(Objects.equals(schedulingPolicy, that.schedulingPolicy))) { + return false; + } + if (!(Objects.equals(workloadRef, that.workloadRef))) { + return false; + } + return true; + } + + public String getParentCompositePodGroupName() { + return this.parentCompositePodGroupName; + } + + public String getPreemptionPolicy() { + return this.preemptionPolicy; + } + + public Integer getPriority() { + return this.priority; + } + + public String getPriorityClassName() { + return this.priorityClassName; + } + + public boolean hasDisruptionMode() { + return this.disruptionMode != null; + } + + public boolean hasParentCompositePodGroupName() { + return this.parentCompositePodGroupName != null; + } + + public boolean hasPreemptionPolicy() { + return this.preemptionPolicy != null; + } + + public boolean hasPriority() { + return this.priority != null; + } + + public boolean hasPriorityClassName() { + return this.priorityClassName != null; + } + + public boolean hasSchedulingConstraints() { + return this.schedulingConstraints != null; + } + + public boolean hasSchedulingPolicy() { + return this.schedulingPolicy != null; + } + + public boolean hasWorkloadRef() { + return this.workloadRef != null; + } + + public int hashCode() { + return Objects.hash(disruptionMode, parentCompositePodGroupName, preemptionPolicy, priority, priorityClassName, schedulingConstraints, schedulingPolicy, workloadRef); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(disruptionMode == null)) { + sb.append("disruptionMode:"); + sb.append(disruptionMode); + sb.append(","); + } + if (!(parentCompositePodGroupName == null)) { + sb.append("parentCompositePodGroupName:"); + sb.append(parentCompositePodGroupName); + sb.append(","); + } + if (!(preemptionPolicy == null)) { + sb.append("preemptionPolicy:"); + sb.append(preemptionPolicy); + sb.append(","); + } + if (!(priority == null)) { + sb.append("priority:"); + sb.append(priority); + sb.append(","); + } + if (!(priorityClassName == null)) { + sb.append("priorityClassName:"); + sb.append(priorityClassName); + sb.append(","); + } + if (!(schedulingConstraints == null)) { + sb.append("schedulingConstraints:"); + sb.append(schedulingConstraints); + sb.append(","); + } + if (!(schedulingPolicy == null)) { + sb.append("schedulingPolicy:"); + sb.append(schedulingPolicy); + sb.append(","); + } + if (!(workloadRef == null)) { + sb.append("workloadRef:"); + sb.append(workloadRef); + } + sb.append("}"); + return sb.toString(); + } + + public A withDisruptionMode(V1alpha3CompositeDisruptionMode disruptionMode) { + this._visitables.remove("disruptionMode"); + if (disruptionMode != null) { + this.disruptionMode = new V1alpha3CompositeDisruptionModeBuilder(disruptionMode); + this._visitables.get("disruptionMode").add(this.disruptionMode); + } else { + this._visitables.get("disruptionMode").remove(this.disruptionMode); + this.disruptionMode = null; + } + return (A) this; + } + + public DisruptionModeNested withNewDisruptionMode() { + return new DisruptionModeNested<>(null); + } + + public DisruptionModeNested withNewDisruptionModeLike(V1alpha3CompositeDisruptionMode item) { + return new DisruptionModeNested<>(item); + } + + public SchedulingConstraintsNested withNewSchedulingConstraints() { + return new SchedulingConstraintsNested<>(null); + } + + public SchedulingConstraintsNested withNewSchedulingConstraintsLike(V1alpha3CompositePodGroupSchedulingConstraints item) { + return new SchedulingConstraintsNested<>(item); + } + + public SchedulingPolicyNested withNewSchedulingPolicy() { + return new SchedulingPolicyNested<>(null); + } + + public SchedulingPolicyNested withNewSchedulingPolicyLike(V1alpha3CompositePodGroupSchedulingPolicy item) { + return new SchedulingPolicyNested<>(item); + } + + public WorkloadRefNested withNewWorkloadRef() { + return new WorkloadRefNested<>(null); + } + + public WorkloadRefNested withNewWorkloadRefLike(V1alpha3WorkloadReference item) { + return new WorkloadRefNested<>(item); + } + + public A withParentCompositePodGroupName(String parentCompositePodGroupName) { + this.parentCompositePodGroupName = parentCompositePodGroupName; + return (A) this; + } + + public A withPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return (A) this; + } + + public A withPriority(Integer priority) { + this.priority = priority; + return (A) this; + } + + public A withPriorityClassName(String priorityClassName) { + this.priorityClassName = priorityClassName; + return (A) this; + } + + public A withSchedulingConstraints(V1alpha3CompositePodGroupSchedulingConstraints schedulingConstraints) { + this._visitables.remove("schedulingConstraints"); + if (schedulingConstraints != null) { + this.schedulingConstraints = new V1alpha3CompositePodGroupSchedulingConstraintsBuilder(schedulingConstraints); + this._visitables.get("schedulingConstraints").add(this.schedulingConstraints); + } else { + this._visitables.get("schedulingConstraints").remove(this.schedulingConstraints); + this.schedulingConstraints = null; + } + return (A) this; + } + + public A withSchedulingPolicy(V1alpha3CompositePodGroupSchedulingPolicy schedulingPolicy) { + this._visitables.remove("schedulingPolicy"); + if (schedulingPolicy != null) { + this.schedulingPolicy = new V1alpha3CompositePodGroupSchedulingPolicyBuilder(schedulingPolicy); + this._visitables.get("schedulingPolicy").add(this.schedulingPolicy); + } else { + this._visitables.get("schedulingPolicy").remove(this.schedulingPolicy); + this.schedulingPolicy = null; + } + return (A) this; + } + + public A withWorkloadRef(V1alpha3WorkloadReference workloadRef) { + this._visitables.remove("workloadRef"); + if (workloadRef != null) { + this.workloadRef = new V1alpha3WorkloadReferenceBuilder(workloadRef); + this._visitables.get("workloadRef").add(this.workloadRef); + } else { + this._visitables.get("workloadRef").remove(this.workloadRef); + this.workloadRef = null; + } + return (A) this; + } + public class DisruptionModeNested extends V1alpha3CompositeDisruptionModeFluent> implements Nested{ + + V1alpha3CompositeDisruptionModeBuilder builder; + + DisruptionModeNested(V1alpha3CompositeDisruptionMode item) { + this.builder = new V1alpha3CompositeDisruptionModeBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupSpecFluent.this.withDisruptionMode(builder.build()); + } + + public N endDisruptionMode() { + return and(); + } + + } + public class SchedulingConstraintsNested extends V1alpha3CompositePodGroupSchedulingConstraintsFluent> implements Nested{ + + V1alpha3CompositePodGroupSchedulingConstraintsBuilder builder; + + SchedulingConstraintsNested(V1alpha3CompositePodGroupSchedulingConstraints item) { + this.builder = new V1alpha3CompositePodGroupSchedulingConstraintsBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupSpecFluent.this.withSchedulingConstraints(builder.build()); + } + + public N endSchedulingConstraints() { + return and(); + } + + } + public class SchedulingPolicyNested extends V1alpha3CompositePodGroupSchedulingPolicyFluent> implements Nested{ + + V1alpha3CompositePodGroupSchedulingPolicyBuilder builder; + + SchedulingPolicyNested(V1alpha3CompositePodGroupSchedulingPolicy item) { + this.builder = new V1alpha3CompositePodGroupSchedulingPolicyBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupSpecFluent.this.withSchedulingPolicy(builder.build()); + } + + public N endSchedulingPolicy() { + return and(); + } + + } + public class WorkloadRefNested extends V1alpha3WorkloadReferenceFluent> implements Nested{ + + V1alpha3WorkloadReferenceBuilder builder; + + WorkloadRefNested(V1alpha3WorkloadReference item) { + this.builder = new V1alpha3WorkloadReferenceBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupSpecFluent.this.withWorkloadRef(builder.build()); + } + + public N endWorkloadRef() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupStatusBuilder.java new file mode 100644 index 0000000000..29eb135a33 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupStatusBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3CompositePodGroupStatusBuilder extends V1alpha3CompositePodGroupStatusFluent implements VisitableBuilder{ + + V1alpha3CompositePodGroupStatusFluent fluent; + + public V1alpha3CompositePodGroupStatusBuilder() { + this(new V1alpha3CompositePodGroupStatus()); + } + + public V1alpha3CompositePodGroupStatusBuilder(V1alpha3CompositePodGroupStatusFluent fluent) { + this(fluent, new V1alpha3CompositePodGroupStatus()); + } + + public V1alpha3CompositePodGroupStatusBuilder(V1alpha3CompositePodGroupStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3CompositePodGroupStatusBuilder(V1alpha3CompositePodGroupStatusFluent fluent,V1alpha3CompositePodGroupStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CompositePodGroupStatus build() { + V1alpha3CompositePodGroupStatus buildable = new V1alpha3CompositePodGroupStatus(); + buildable.setConditions(fluent.buildConditions()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupStatusFluent.java new file mode 100644 index 0000000000..e80a9a7f29 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupStatusFluent.java @@ -0,0 +1,312 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3CompositePodGroupStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + + public V1alpha3CompositePodGroupStatusFluent() { + } + + public V1alpha3CompositePodGroupStatusFluent(V1alpha3CompositePodGroupStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested<>(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested<>(-1, item); + } + + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); + } + return (A) this; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + 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; + } + + protected void copyInstance(V1alpha3CompositePodGroupStatus instance) { + instance = instance != null ? instance : new V1alpha3CompositePodGroupStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3CompositePodGroupStatusFluent that = (V1alpha3CompositePodGroupStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + return true; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(conditions); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested<>(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupStatusFluent.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/V1alpha3CompositePodGroupTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupTemplateBuilder.java new file mode 100644 index 0000000000..09163fd1f3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupTemplateBuilder.java @@ -0,0 +1,54 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3CompositePodGroupTemplateBuilder extends V1alpha3CompositePodGroupTemplateFluent implements VisitableBuilder{ + + V1alpha3CompositePodGroupTemplateFluent fluent; + + public V1alpha3CompositePodGroupTemplateBuilder() { + this(new V1alpha3CompositePodGroupTemplate()); + } + + public V1alpha3CompositePodGroupTemplateBuilder(V1alpha3CompositePodGroupTemplateFluent fluent) { + this(fluent, new V1alpha3CompositePodGroupTemplate()); + } + + public V1alpha3CompositePodGroupTemplateBuilder(V1alpha3CompositePodGroupTemplate instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3CompositePodGroupTemplateBuilder(V1alpha3CompositePodGroupTemplateFluent fluent,V1alpha3CompositePodGroupTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3CompositePodGroupTemplate build() { + V1alpha3CompositePodGroupTemplate buildable = new V1alpha3CompositePodGroupTemplate(); + buildable.setCompositePodGroupTemplates(fluent.buildCompositePodGroupTemplates()); + buildable.setDisruptionMode(fluent.buildDisruptionMode()); + buildable.setName(fluent.getName()); + buildable.setPodGroupTemplates(fluent.buildPodGroupTemplates()); + buildable.setPreemptionPolicy(fluent.getPreemptionPolicy()); + buildable.setPriority(fluent.getPriority()); + buildable.setPriorityClassName(fluent.getPriorityClassName()); + buildable.setSchedulingConstraints(fluent.buildSchedulingConstraints()); + buildable.setSchedulingPolicy(fluent.buildSchedulingPolicy()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupTemplateFluent.java new file mode 100644 index 0000000000..da565b01d2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupTemplateFluent.java @@ -0,0 +1,845 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3CompositePodGroupTemplateFluent> extends BaseFluent{ + + private ArrayList compositePodGroupTemplates; + private V1alpha3CompositeDisruptionModeBuilder disruptionMode; + private String name; + private ArrayList podGroupTemplates; + private String preemptionPolicy; + private Integer priority; + private String priorityClassName; + private V1alpha3CompositePodGroupSchedulingConstraintsBuilder schedulingConstraints; + private V1alpha3CompositePodGroupSchedulingPolicyBuilder schedulingPolicy; + + public V1alpha3CompositePodGroupTemplateFluent() { + } + + public V1alpha3CompositePodGroupTemplateFluent(V1alpha3CompositePodGroupTemplate instance) { + this.copyInstance(instance); + } + + public A addAllToCompositePodGroupTemplates(Collection items) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + for (V1alpha3CompositePodGroupTemplate item : items) { + V1alpha3CompositePodGroupTemplateBuilder builder = new V1alpha3CompositePodGroupTemplateBuilder(item); + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } + return (A) this; + } + + public A addAllToPodGroupTemplates(Collection items) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + for (V1alpha3PodGroupTemplate item : items) { + V1alpha3PodGroupTemplateBuilder builder = new V1alpha3PodGroupTemplateBuilder(item); + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } + return (A) this; + } + + public CompositePodGroupTemplatesNested addNewCompositePodGroupTemplate() { + return new CompositePodGroupTemplatesNested<>(-1, null); + } + + public CompositePodGroupTemplatesNested addNewCompositePodGroupTemplateLike(V1alpha3CompositePodGroupTemplate item) { + return new CompositePodGroupTemplatesNested<>(-1, item); + } + + public PodGroupTemplatesNested addNewPodGroupTemplate() { + return new PodGroupTemplatesNested<>(-1, null); + } + + public PodGroupTemplatesNested addNewPodGroupTemplateLike(V1alpha3PodGroupTemplate item) { + return new PodGroupTemplatesNested<>(-1, item); + } + + public A addToCompositePodGroupTemplates(V1alpha3CompositePodGroupTemplate... items) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + for (V1alpha3CompositePodGroupTemplate item : items) { + V1alpha3CompositePodGroupTemplateBuilder builder = new V1alpha3CompositePodGroupTemplateBuilder(item); + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } + return (A) this; + } + + public A addToCompositePodGroupTemplates(int index,V1alpha3CompositePodGroupTemplate item) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + V1alpha3CompositePodGroupTemplateBuilder builder = new V1alpha3CompositePodGroupTemplateBuilder(item); + if (index < 0 || index >= this.compositePodGroupTemplates.size()) { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } else { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(index, builder); + } + return (A) this; + } + + public A addToPodGroupTemplates(V1alpha3PodGroupTemplate... items) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + for (V1alpha3PodGroupTemplate item : items) { + V1alpha3PodGroupTemplateBuilder builder = new V1alpha3PodGroupTemplateBuilder(item); + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } + return (A) this; + } + + public A addToPodGroupTemplates(int index,V1alpha3PodGroupTemplate item) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + V1alpha3PodGroupTemplateBuilder builder = new V1alpha3PodGroupTemplateBuilder(item); + if (index < 0 || index >= this.podGroupTemplates.size()) { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } else { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(index, builder); + } + return (A) this; + } + + public V1alpha3CompositePodGroupTemplate buildCompositePodGroupTemplate(int index) { + return this.compositePodGroupTemplates.get(index).build(); + } + + public List buildCompositePodGroupTemplates() { + return this.compositePodGroupTemplates != null ? build(compositePodGroupTemplates) : null; + } + + public V1alpha3CompositeDisruptionMode buildDisruptionMode() { + return this.disruptionMode != null ? this.disruptionMode.build() : null; + } + + public V1alpha3CompositePodGroupTemplate buildFirstCompositePodGroupTemplate() { + return this.compositePodGroupTemplates.get(0).build(); + } + + public V1alpha3PodGroupTemplate buildFirstPodGroupTemplate() { + return this.podGroupTemplates.get(0).build(); + } + + public V1alpha3CompositePodGroupTemplate buildLastCompositePodGroupTemplate() { + return this.compositePodGroupTemplates.get(compositePodGroupTemplates.size() - 1).build(); + } + + public V1alpha3PodGroupTemplate buildLastPodGroupTemplate() { + return this.podGroupTemplates.get(podGroupTemplates.size() - 1).build(); + } + + public V1alpha3CompositePodGroupTemplate buildMatchingCompositePodGroupTemplate(Predicate predicate) { + for (V1alpha3CompositePodGroupTemplateBuilder item : compositePodGroupTemplates) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha3PodGroupTemplate buildMatchingPodGroupTemplate(Predicate predicate) { + for (V1alpha3PodGroupTemplateBuilder item : podGroupTemplates) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha3PodGroupTemplate buildPodGroupTemplate(int index) { + return this.podGroupTemplates.get(index).build(); + } + + public List buildPodGroupTemplates() { + return this.podGroupTemplates != null ? build(podGroupTemplates) : null; + } + + public V1alpha3CompositePodGroupSchedulingConstraints buildSchedulingConstraints() { + return this.schedulingConstraints != null ? this.schedulingConstraints.build() : null; + } + + public V1alpha3CompositePodGroupSchedulingPolicy buildSchedulingPolicy() { + return this.schedulingPolicy != null ? this.schedulingPolicy.build() : null; + } + + protected void copyInstance(V1alpha3CompositePodGroupTemplate instance) { + instance = instance != null ? instance : new V1alpha3CompositePodGroupTemplate(); + if (instance != null) { + this.withCompositePodGroupTemplates(instance.getCompositePodGroupTemplates()); + this.withDisruptionMode(instance.getDisruptionMode()); + this.withName(instance.getName()); + this.withPodGroupTemplates(instance.getPodGroupTemplates()); + this.withPreemptionPolicy(instance.getPreemptionPolicy()); + this.withPriority(instance.getPriority()); + this.withPriorityClassName(instance.getPriorityClassName()); + this.withSchedulingConstraints(instance.getSchedulingConstraints()); + this.withSchedulingPolicy(instance.getSchedulingPolicy()); + } + } + + public CompositePodGroupTemplatesNested editCompositePodGroupTemplate(int index) { + if (compositePodGroupTemplates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(index, this.buildCompositePodGroupTemplate(index)); + } + + public DisruptionModeNested editDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(null)); + } + + public CompositePodGroupTemplatesNested editFirstCompositePodGroupTemplate() { + if (compositePodGroupTemplates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(0, this.buildCompositePodGroupTemplate(0)); + } + + public PodGroupTemplatesNested editFirstPodGroupTemplate() { + if (podGroupTemplates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(0, this.buildPodGroupTemplate(0)); + } + + public CompositePodGroupTemplatesNested editLastCompositePodGroupTemplate() { + int index = compositePodGroupTemplates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(index, this.buildCompositePodGroupTemplate(index)); + } + + public PodGroupTemplatesNested editLastPodGroupTemplate() { + int index = podGroupTemplates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public CompositePodGroupTemplatesNested editMatchingCompositePodGroupTemplate(Predicate predicate) { + int index = -1; + for (int i = 0;i < compositePodGroupTemplates.size();i++) { + if (predicate.test(compositePodGroupTemplates.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(index, this.buildCompositePodGroupTemplate(index)); + } + + public PodGroupTemplatesNested editMatchingPodGroupTemplate(Predicate predicate) { + int index = -1; + for (int i = 0;i < podGroupTemplates.size();i++) { + if (predicate.test(podGroupTemplates.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public DisruptionModeNested editOrNewDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(new V1alpha3CompositeDisruptionModeBuilder().build())); + } + + public DisruptionModeNested editOrNewDisruptionModeLike(V1alpha3CompositeDisruptionMode item) { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(item)); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(new V1alpha3CompositePodGroupSchedulingConstraintsBuilder().build())); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraintsLike(V1alpha3CompositePodGroupSchedulingConstraints item) { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(item)); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(new V1alpha3CompositePodGroupSchedulingPolicyBuilder().build())); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicyLike(V1alpha3CompositePodGroupSchedulingPolicy item) { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(item)); + } + + public PodGroupTemplatesNested editPodGroupTemplate(int index) { + if (podGroupTemplates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public SchedulingConstraintsNested editSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(null)); + } + + public SchedulingPolicyNested editSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3CompositePodGroupTemplateFluent that = (V1alpha3CompositePodGroupTemplateFluent) o; + if (!(Objects.equals(compositePodGroupTemplates, that.compositePodGroupTemplates))) { + return false; + } + if (!(Objects.equals(disruptionMode, that.disruptionMode))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(podGroupTemplates, that.podGroupTemplates))) { + return false; + } + if (!(Objects.equals(preemptionPolicy, that.preemptionPolicy))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + if (!(Objects.equals(priorityClassName, that.priorityClassName))) { + return false; + } + if (!(Objects.equals(schedulingConstraints, that.schedulingConstraints))) { + return false; + } + if (!(Objects.equals(schedulingPolicy, that.schedulingPolicy))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public String getPreemptionPolicy() { + return this.preemptionPolicy; + } + + public Integer getPriority() { + return this.priority; + } + + public String getPriorityClassName() { + return this.priorityClassName; + } + + public boolean hasCompositePodGroupTemplates() { + return this.compositePodGroupTemplates != null && !(this.compositePodGroupTemplates.isEmpty()); + } + + public boolean hasDisruptionMode() { + return this.disruptionMode != null; + } + + public boolean hasMatchingCompositePodGroupTemplate(Predicate predicate) { + for (V1alpha3CompositePodGroupTemplateBuilder item : compositePodGroupTemplates) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingPodGroupTemplate(Predicate predicate) { + for (V1alpha3PodGroupTemplateBuilder item : podGroupTemplates) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasPodGroupTemplates() { + return this.podGroupTemplates != null && !(this.podGroupTemplates.isEmpty()); + } + + public boolean hasPreemptionPolicy() { + return this.preemptionPolicy != null; + } + + public boolean hasPriority() { + return this.priority != null; + } + + public boolean hasPriorityClassName() { + return this.priorityClassName != null; + } + + public boolean hasSchedulingConstraints() { + return this.schedulingConstraints != null; + } + + public boolean hasSchedulingPolicy() { + return this.schedulingPolicy != null; + } + + public int hashCode() { + return Objects.hash(compositePodGroupTemplates, disruptionMode, name, podGroupTemplates, preemptionPolicy, priority, priorityClassName, schedulingConstraints, schedulingPolicy); + } + + public A removeAllFromCompositePodGroupTemplates(Collection items) { + if (this.compositePodGroupTemplates == null) { + return (A) this; + } + for (V1alpha3CompositePodGroupTemplate item : items) { + V1alpha3CompositePodGroupTemplateBuilder builder = new V1alpha3CompositePodGroupTemplateBuilder(item); + _visitables.get("compositePodGroupTemplates").remove(builder); + this.compositePodGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeAllFromPodGroupTemplates(Collection items) { + if (this.podGroupTemplates == null) { + return (A) this; + } + for (V1alpha3PodGroupTemplate item : items) { + V1alpha3PodGroupTemplateBuilder builder = new V1alpha3PodGroupTemplateBuilder(item); + _visitables.get("podGroupTemplates").remove(builder); + this.podGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeFromCompositePodGroupTemplates(V1alpha3CompositePodGroupTemplate... items) { + if (this.compositePodGroupTemplates == null) { + return (A) this; + } + for (V1alpha3CompositePodGroupTemplate item : items) { + V1alpha3CompositePodGroupTemplateBuilder builder = new V1alpha3CompositePodGroupTemplateBuilder(item); + _visitables.get("compositePodGroupTemplates").remove(builder); + this.compositePodGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeFromPodGroupTemplates(V1alpha3PodGroupTemplate... items) { + if (this.podGroupTemplates == null) { + return (A) this; + } + for (V1alpha3PodGroupTemplate item : items) { + V1alpha3PodGroupTemplateBuilder builder = new V1alpha3PodGroupTemplateBuilder(item); + _visitables.get("podGroupTemplates").remove(builder); + this.podGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromCompositePodGroupTemplates(Predicate predicate) { + if (compositePodGroupTemplates == null) { + return (A) this; + } + Iterator each = compositePodGroupTemplates.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("compositePodGroupTemplates"); + while (each.hasNext()) { + V1alpha3CompositePodGroupTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromPodGroupTemplates(Predicate predicate) { + if (podGroupTemplates == null) { + return (A) this; + } + Iterator each = podGroupTemplates.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("podGroupTemplates"); + while (each.hasNext()) { + V1alpha3PodGroupTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public CompositePodGroupTemplatesNested setNewCompositePodGroupTemplateLike(int index,V1alpha3CompositePodGroupTemplate item) { + return new CompositePodGroupTemplatesNested<>(index, item); + } + + public PodGroupTemplatesNested setNewPodGroupTemplateLike(int index,V1alpha3PodGroupTemplate item) { + return new PodGroupTemplatesNested<>(index, item); + } + + public A setToCompositePodGroupTemplates(int index,V1alpha3CompositePodGroupTemplate item) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + V1alpha3CompositePodGroupTemplateBuilder builder = new V1alpha3CompositePodGroupTemplateBuilder(item); + if (index < 0 || index >= this.compositePodGroupTemplates.size()) { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } else { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.set(index, builder); + } + return (A) this; + } + + public A setToPodGroupTemplates(int index,V1alpha3PodGroupTemplate item) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + V1alpha3PodGroupTemplateBuilder builder = new V1alpha3PodGroupTemplateBuilder(item); + if (index < 0 || index >= this.podGroupTemplates.size()) { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } else { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(compositePodGroupTemplates == null) && !(compositePodGroupTemplates.isEmpty())) { + sb.append("compositePodGroupTemplates:"); + sb.append(compositePodGroupTemplates); + sb.append(","); + } + if (!(disruptionMode == null)) { + sb.append("disruptionMode:"); + sb.append(disruptionMode); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(podGroupTemplates == null) && !(podGroupTemplates.isEmpty())) { + sb.append("podGroupTemplates:"); + sb.append(podGroupTemplates); + sb.append(","); + } + if (!(preemptionPolicy == null)) { + sb.append("preemptionPolicy:"); + sb.append(preemptionPolicy); + sb.append(","); + } + if (!(priority == null)) { + sb.append("priority:"); + sb.append(priority); + sb.append(","); + } + if (!(priorityClassName == null)) { + sb.append("priorityClassName:"); + sb.append(priorityClassName); + sb.append(","); + } + if (!(schedulingConstraints == null)) { + sb.append("schedulingConstraints:"); + sb.append(schedulingConstraints); + sb.append(","); + } + if (!(schedulingPolicy == null)) { + sb.append("schedulingPolicy:"); + sb.append(schedulingPolicy); + } + sb.append("}"); + return sb.toString(); + } + + public A withCompositePodGroupTemplates(List compositePodGroupTemplates) { + if (this.compositePodGroupTemplates != null) { + this._visitables.get("compositePodGroupTemplates").clear(); + } + if (compositePodGroupTemplates != null) { + this.compositePodGroupTemplates = new ArrayList<>(); + for (V1alpha3CompositePodGroupTemplate item : compositePodGroupTemplates) { + this.addToCompositePodGroupTemplates(item); + } + } else { + this.compositePodGroupTemplates = null; + } + return (A) this; + } + + public A withCompositePodGroupTemplates(V1alpha3CompositePodGroupTemplate... compositePodGroupTemplates) { + if (this.compositePodGroupTemplates != null) { + this.compositePodGroupTemplates.clear(); + _visitables.remove("compositePodGroupTemplates"); + } + if (compositePodGroupTemplates != null) { + for (V1alpha3CompositePodGroupTemplate item : compositePodGroupTemplates) { + this.addToCompositePodGroupTemplates(item); + } + } + return (A) this; + } + + public A withDisruptionMode(V1alpha3CompositeDisruptionMode disruptionMode) { + this._visitables.remove("disruptionMode"); + if (disruptionMode != null) { + this.disruptionMode = new V1alpha3CompositeDisruptionModeBuilder(disruptionMode); + this._visitables.get("disruptionMode").add(this.disruptionMode); + } else { + this._visitables.get("disruptionMode").remove(this.disruptionMode); + this.disruptionMode = null; + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public DisruptionModeNested withNewDisruptionMode() { + return new DisruptionModeNested<>(null); + } + + public DisruptionModeNested withNewDisruptionModeLike(V1alpha3CompositeDisruptionMode item) { + return new DisruptionModeNested<>(item); + } + + public SchedulingConstraintsNested withNewSchedulingConstraints() { + return new SchedulingConstraintsNested<>(null); + } + + public SchedulingConstraintsNested withNewSchedulingConstraintsLike(V1alpha3CompositePodGroupSchedulingConstraints item) { + return new SchedulingConstraintsNested<>(item); + } + + public SchedulingPolicyNested withNewSchedulingPolicy() { + return new SchedulingPolicyNested<>(null); + } + + public SchedulingPolicyNested withNewSchedulingPolicyLike(V1alpha3CompositePodGroupSchedulingPolicy item) { + return new SchedulingPolicyNested<>(item); + } + + public A withPodGroupTemplates(List podGroupTemplates) { + if (this.podGroupTemplates != null) { + this._visitables.get("podGroupTemplates").clear(); + } + if (podGroupTemplates != null) { + this.podGroupTemplates = new ArrayList<>(); + for (V1alpha3PodGroupTemplate item : podGroupTemplates) { + this.addToPodGroupTemplates(item); + } + } else { + this.podGroupTemplates = null; + } + return (A) this; + } + + public A withPodGroupTemplates(V1alpha3PodGroupTemplate... podGroupTemplates) { + if (this.podGroupTemplates != null) { + this.podGroupTemplates.clear(); + _visitables.remove("podGroupTemplates"); + } + if (podGroupTemplates != null) { + for (V1alpha3PodGroupTemplate item : podGroupTemplates) { + this.addToPodGroupTemplates(item); + } + } + return (A) this; + } + + public A withPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return (A) this; + } + + public A withPriority(Integer priority) { + this.priority = priority; + return (A) this; + } + + public A withPriorityClassName(String priorityClassName) { + this.priorityClassName = priorityClassName; + return (A) this; + } + + public A withSchedulingConstraints(V1alpha3CompositePodGroupSchedulingConstraints schedulingConstraints) { + this._visitables.remove("schedulingConstraints"); + if (schedulingConstraints != null) { + this.schedulingConstraints = new V1alpha3CompositePodGroupSchedulingConstraintsBuilder(schedulingConstraints); + this._visitables.get("schedulingConstraints").add(this.schedulingConstraints); + } else { + this._visitables.get("schedulingConstraints").remove(this.schedulingConstraints); + this.schedulingConstraints = null; + } + return (A) this; + } + + public A withSchedulingPolicy(V1alpha3CompositePodGroupSchedulingPolicy schedulingPolicy) { + this._visitables.remove("schedulingPolicy"); + if (schedulingPolicy != null) { + this.schedulingPolicy = new V1alpha3CompositePodGroupSchedulingPolicyBuilder(schedulingPolicy); + this._visitables.get("schedulingPolicy").add(this.schedulingPolicy); + } else { + this._visitables.get("schedulingPolicy").remove(this.schedulingPolicy); + this.schedulingPolicy = null; + } + return (A) this; + } + public class CompositePodGroupTemplatesNested extends V1alpha3CompositePodGroupTemplateFluent> implements Nested{ + + V1alpha3CompositePodGroupTemplateBuilder builder; + int index; + + CompositePodGroupTemplatesNested(int index,V1alpha3CompositePodGroupTemplate item) { + this.index = index; + this.builder = new V1alpha3CompositePodGroupTemplateBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupTemplateFluent.this.setToCompositePodGroupTemplates(index, builder.build()); + } + + public N endCompositePodGroupTemplate() { + return and(); + } + + } + public class DisruptionModeNested extends V1alpha3CompositeDisruptionModeFluent> implements Nested{ + + V1alpha3CompositeDisruptionModeBuilder builder; + + DisruptionModeNested(V1alpha3CompositeDisruptionMode item) { + this.builder = new V1alpha3CompositeDisruptionModeBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupTemplateFluent.this.withDisruptionMode(builder.build()); + } + + public N endDisruptionMode() { + return and(); + } + + } + public class PodGroupTemplatesNested extends V1alpha3PodGroupTemplateFluent> implements Nested{ + + V1alpha3PodGroupTemplateBuilder builder; + int index; + + PodGroupTemplatesNested(int index,V1alpha3PodGroupTemplate item) { + this.index = index; + this.builder = new V1alpha3PodGroupTemplateBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupTemplateFluent.this.setToPodGroupTemplates(index, builder.build()); + } + + public N endPodGroupTemplate() { + return and(); + } + + } + public class SchedulingConstraintsNested extends V1alpha3CompositePodGroupSchedulingConstraintsFluent> implements Nested{ + + V1alpha3CompositePodGroupSchedulingConstraintsBuilder builder; + + SchedulingConstraintsNested(V1alpha3CompositePodGroupSchedulingConstraints item) { + this.builder = new V1alpha3CompositePodGroupSchedulingConstraintsBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupTemplateFluent.this.withSchedulingConstraints(builder.build()); + } + + public N endSchedulingConstraints() { + return and(); + } + + } + public class SchedulingPolicyNested extends V1alpha3CompositePodGroupSchedulingPolicyFluent> implements Nested{ + + V1alpha3CompositePodGroupSchedulingPolicyBuilder builder; + + SchedulingPolicyNested(V1alpha3CompositePodGroupSchedulingPolicy item) { + this.builder = new V1alpha3CompositePodGroupSchedulingPolicyBuilder(this, item); + } + + public N and() { + return (N) V1alpha3CompositePodGroupTemplateFluent.this.withSchedulingPolicy(builder.build()); + } + + public N endSchedulingPolicy() { + 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 index f049b7a446..d2a05b8638 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha3DeviceTaintBuilder extends V1alpha3DeviceTaintFluent implements VisitableBuilder{ V1alpha3DeviceTaintFluent fluent; 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 index 030d9a550f..9f1983c031 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceTaintFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3DeviceTaintFluent> extends BaseFluent{ private String effect; private String key; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha3DeviceTaintFluent that = (V1alpha3DeviceTaintFluent) o; + V1alpha3DeviceTaintFluent that = (V1alpha3DeviceTaintFluent) o; if (!(Objects.equals(effect, that.effect))) { return false; } 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 index b9b035d9ef..71caa5e4b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha3DeviceTaintRuleBuilder extends V1alpha3DeviceTaintRuleFluent implements VisitableBuilder{ V1alpha3DeviceTaintRuleFluent fluent; 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 index d6612e5630..952d679002 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceTaintRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3DeviceTaintRuleFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha3DeviceTaintRuleFluent that = (V1alpha3DeviceTaintRuleFluent) o; + V1alpha3DeviceTaintRuleFluent that = (V1alpha3DeviceTaintRuleFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1alpha3DeviceTaintRuleSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1alpha3DeviceTaintRuleStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1alpha3DeviceTaintRuleSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1alpha3DeviceTaintRuleSpec spec) { this.spec = new V1alpha3DeviceTaintRuleSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1alpha3DeviceTaintRuleStatus status) { this.status = new V1alpha3DeviceTaintRuleStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } 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 index 3e43ea4be4..42c2715b83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha3DeviceTaintRuleListBuilder extends V1alpha3DeviceTaintRuleListFluent implements VisitableBuilder{ V1alpha3DeviceTaintRuleListFluent fluent; 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 index 32eeef7f4a..53e3bb76dd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceTaintRuleListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3DeviceTaintRuleListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1alpha3DeviceTaintRuleListFluent(V1alpha3DeviceTaintRuleList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1alpha3DeviceTaintRule item : items) { V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1alpha3DeviceTaintRule item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1alpha3DeviceTaintRule... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1alpha3DeviceTaintRule item : items) { V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1alpha3DeviceTaintRule... items) { public A addToItems(int index,V1alpha3DeviceTaintRule item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha3DeviceTaintRuleListFluent that = (V1alpha3DeviceTaintRuleListFluent) o; + V1alpha3DeviceTaintRuleListFluent that = (V1alpha3DeviceTaintRuleListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1alpha3DeviceTaintRuleBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predi } public ItemsNested setNewItemLike(int index,V1alpha3DeviceTaintRule item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1alpha3DeviceTaintRule item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1alpha3DeviceTaintRule item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1alpha3DeviceTaintRuleFluent> implements Nested{ 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 index 9c7ab73447..6f5deb97cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha3DeviceTaintRuleSpecBuilder extends V1alpha3DeviceTaintRuleSpecFluent implements VisitableBuilder{ V1alpha3DeviceTaintRuleSpecFluent fluent; 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 index 48fa955494..0ccae9887a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceTaintRuleSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3DeviceTaintRuleSpecFluent> extends BaseFluent{ private V1alpha3DeviceTaintSelectorBuilder deviceSelector; private V1alpha3DeviceTaintBuilder taint; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha3DeviceTaintRuleSpecFluent that = (V1alpha3DeviceTaintRuleSpecFluent) o; + V1alpha3DeviceTaintRuleSpecFluent that = (V1alpha3DeviceTaintRuleSpecFluent) o; if (!(Objects.equals(deviceSelector, that.deviceSelector))) { return false; } @@ -131,26 +133,26 @@ public A withDeviceSelector(V1alpha3DeviceTaintSelector deviceSelector) { this.deviceSelector = new V1alpha3DeviceTaintSelectorBuilder(deviceSelector); this._visitables.get("deviceSelector").add(this.deviceSelector); } else { - this.deviceSelector = null; this._visitables.get("deviceSelector").remove(this.deviceSelector); + this.deviceSelector = null; } return (A) this; } public DeviceSelectorNested withNewDeviceSelector() { - return new DeviceSelectorNested(null); + return new DeviceSelectorNested<>(null); } public DeviceSelectorNested withNewDeviceSelectorLike(V1alpha3DeviceTaintSelector item) { - return new DeviceSelectorNested(item); + return new DeviceSelectorNested<>(item); } public TaintNested withNewTaint() { - return new TaintNested(null); + return new TaintNested<>(null); } public TaintNested withNewTaintLike(V1alpha3DeviceTaint item) { - return new TaintNested(item); + return new TaintNested<>(item); } public A withTaint(V1alpha3DeviceTaint taint) { @@ -159,8 +161,8 @@ public A withTaint(V1alpha3DeviceTaint taint) { this.taint = new V1alpha3DeviceTaintBuilder(taint); this._visitables.get("taint").add(this.taint); } else { - this.taint = null; this._visitables.get("taint").remove(this.taint); + this.taint = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusBuilder.java index 5376bcfcfa..27efc0705f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha3DeviceTaintRuleStatusBuilder extends V1alpha3DeviceTaintRuleStatusFluent implements VisitableBuilder{ V1alpha3DeviceTaintRuleStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusFluent.java index 0c281001a8..fcfedcbe3b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceTaintRuleStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3DeviceTaintRuleStatusFluent> extends BaseFluent{ private ArrayList conditions; @@ -43,7 +45,7 @@ public V1alpha3DeviceTaintRuleStatusFluent(V1alpha3DeviceTaintRuleStatus instanc public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -54,16 +56,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -75,7 +77,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha3DeviceTaintRuleStatusFluent that = (V1alpha3DeviceTaintRuleStatusFluent) o; + V1alpha3DeviceTaintRuleStatusFluent that = (V1alpha3DeviceTaintRuleStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromConditions(Predicate predicate) { } public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -265,7 +268,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } 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 index 10c80eaec4..2f49c79a35 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha3DeviceTaintSelectorBuilder extends V1alpha3DeviceTaintSelectorFluent implements VisitableBuilder{ V1alpha3DeviceTaintSelectorFluent fluent; 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 index 957ee33354..ecc1595c88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceTaintSelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3DeviceTaintSelectorFluent> extends BaseFluent{ private String device; private String driver; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha3DeviceTaintSelectorFluent that = (V1alpha3DeviceTaintSelectorFluent) o; + V1alpha3DeviceTaintSelectorFluent that = (V1alpha3DeviceTaintSelectorFluent) o; if (!(Objects.equals(device, that.device))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DisruptionModeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DisruptionModeBuilder.java new file mode 100644 index 0000000000..8b9ee80540 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DisruptionModeBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3DisruptionModeBuilder extends V1alpha3DisruptionModeFluent implements VisitableBuilder{ + + V1alpha3DisruptionModeFluent fluent; + + public V1alpha3DisruptionModeBuilder() { + this(new V1alpha3DisruptionMode()); + } + + public V1alpha3DisruptionModeBuilder(V1alpha3DisruptionModeFluent fluent) { + this(fluent, new V1alpha3DisruptionMode()); + } + + public V1alpha3DisruptionModeBuilder(V1alpha3DisruptionMode instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3DisruptionModeBuilder(V1alpha3DisruptionModeFluent fluent,V1alpha3DisruptionMode instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DisruptionMode build() { + V1alpha3DisruptionMode buildable = new V1alpha3DisruptionMode(); + buildable.setAll(fluent.getAll()); + buildable.setSingle(fluent.getSingle()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DisruptionModeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DisruptionModeFluent.java new file mode 100644 index 0000000000..686f39ec49 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DisruptionModeFluent.java @@ -0,0 +1,114 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3DisruptionModeFluent> extends BaseFluent{ + + private Object all; + private Object single; + + public V1alpha3DisruptionModeFluent() { + } + + public V1alpha3DisruptionModeFluent(V1alpha3DisruptionMode instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha3DisruptionMode instance) { + instance = instance != null ? instance : new V1alpha3DisruptionMode(); + if (instance != null) { + this.withAll(instance.getAll()); + this.withSingle(instance.getSingle()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3DisruptionModeFluent that = (V1alpha3DisruptionModeFluent) o; + if (!(Objects.equals(all, that.all))) { + return false; + } + if (!(Objects.equals(single, that.single))) { + return false; + } + return true; + } + + public Object getAll() { + return this.all; + } + + public Object getSingle() { + return this.single; + } + + public boolean hasAll() { + return this.all != null; + } + + public boolean hasSingle() { + return this.single != null; + } + + public int hashCode() { + return Objects.hash(all, single); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(all == null)) { + sb.append("all:"); + sb.append(all); + sb.append(","); + } + if (!(single == null)) { + sb.append("single:"); + sb.append(single); + } + sb.append("}"); + return sb.toString(); + } + + public A withAll(Object all) { + this.all = all; + return (A) this; + } + + public A withSingle(Object single) { + this.single = single; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3GangSchedulingPolicyBuilder.java similarity index 52% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicyBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3GangSchedulingPolicyBuilder.java index 3d7022dac5..e8bfc4e0bc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3GangSchedulingPolicyBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2GangSchedulingPolicyBuilder extends V1alpha2GangSchedulingPolicyFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3GangSchedulingPolicyBuilder extends V1alpha3GangSchedulingPolicyFluent implements VisitableBuilder{ - V1alpha2GangSchedulingPolicyFluent fluent; + V1alpha3GangSchedulingPolicyFluent fluent; - public V1alpha2GangSchedulingPolicyBuilder() { - this(new V1alpha2GangSchedulingPolicy()); + public V1alpha3GangSchedulingPolicyBuilder() { + this(new V1alpha3GangSchedulingPolicy()); } - public V1alpha2GangSchedulingPolicyBuilder(V1alpha2GangSchedulingPolicyFluent fluent) { - this(fluent, new V1alpha2GangSchedulingPolicy()); + public V1alpha3GangSchedulingPolicyBuilder(V1alpha3GangSchedulingPolicyFluent fluent) { + this(fluent, new V1alpha3GangSchedulingPolicy()); } - public V1alpha2GangSchedulingPolicyBuilder(V1alpha2GangSchedulingPolicy instance) { + public V1alpha3GangSchedulingPolicyBuilder(V1alpha3GangSchedulingPolicy instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2GangSchedulingPolicyBuilder(V1alpha2GangSchedulingPolicyFluent fluent,V1alpha2GangSchedulingPolicy instance) { + public V1alpha3GangSchedulingPolicyBuilder(V1alpha3GangSchedulingPolicyFluent fluent,V1alpha3GangSchedulingPolicy instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2GangSchedulingPolicy build() { - V1alpha2GangSchedulingPolicy buildable = new V1alpha2GangSchedulingPolicy(); + public V1alpha3GangSchedulingPolicy build() { + V1alpha3GangSchedulingPolicy buildable = new V1alpha3GangSchedulingPolicy(); buildable.setMinCount(fluent.getMinCount()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3GangSchedulingPolicyFluent.java similarity index 77% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicyFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3GangSchedulingPolicyFluent.java index bae2b91422..1d435c24c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3GangSchedulingPolicyFluent.java @@ -19,24 +19,26 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2GangSchedulingPolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3GangSchedulingPolicyFluent> extends BaseFluent{ private Integer minCount; - public V1alpha2GangSchedulingPolicyFluent() { + public V1alpha3GangSchedulingPolicyFluent() { } - public V1alpha2GangSchedulingPolicyFluent(V1alpha2GangSchedulingPolicy instance) { + public V1alpha3GangSchedulingPolicyFluent(V1alpha3GangSchedulingPolicy instance) { this.copyInstance(instance); } - protected void copyInstance(V1alpha2GangSchedulingPolicy instance) { - instance = instance != null ? instance : new V1alpha2GangSchedulingPolicy(); + protected void copyInstance(V1alpha3GangSchedulingPolicy instance) { + instance = instance != null ? instance : new V1alpha3GangSchedulingPolicy(); if (instance != null) { this.withMinCount(instance.getMinCount()); } @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2GangSchedulingPolicyFluent that = (V1alpha2GangSchedulingPolicyFluent) o; + V1alpha3GangSchedulingPolicyFluent that = (V1alpha3GangSchedulingPolicyFluent) o; if (!(Objects.equals(minCount, that.minCount))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PartitionTypeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PartitionTypeStatusBuilder.java new file mode 100644 index 0000000000..3717f09f41 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PartitionTypeStatusBuilder.java @@ -0,0 +1,49 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3PartitionTypeStatusBuilder extends V1alpha3PartitionTypeStatusFluent implements VisitableBuilder{ + + V1alpha3PartitionTypeStatusFluent fluent; + + public V1alpha3PartitionTypeStatusBuilder() { + this(new V1alpha3PartitionTypeStatus()); + } + + public V1alpha3PartitionTypeStatusBuilder(V1alpha3PartitionTypeStatusFluent fluent) { + this(fluent, new V1alpha3PartitionTypeStatus()); + } + + public V1alpha3PartitionTypeStatusBuilder(V1alpha3PartitionTypeStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3PartitionTypeStatusBuilder(V1alpha3PartitionTypeStatusFluent fluent,V1alpha3PartitionTypeStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3PartitionTypeStatus build() { + V1alpha3PartitionTypeStatus buildable = new V1alpha3PartitionTypeStatus(); + buildable.setAllocatable(fluent.getAllocatable()); + buildable.setAttribute(fluent.getAttribute()); + buildable.setTotal(fluent.getTotal()); + buildable.setType(fluent.getType()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PartitionTypeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PartitionTypeStatusFluent.java new file mode 100644 index 0000000000..bea59f617f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PartitionTypeStatusFluent.java @@ -0,0 +1,161 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3PartitionTypeStatusFluent> extends BaseFluent{ + + private Integer allocatable; + private String attribute; + private Integer total; + private String type; + + public V1alpha3PartitionTypeStatusFluent() { + } + + public V1alpha3PartitionTypeStatusFluent(V1alpha3PartitionTypeStatus instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha3PartitionTypeStatus instance) { + instance = instance != null ? instance : new V1alpha3PartitionTypeStatus(); + if (instance != null) { + this.withAllocatable(instance.getAllocatable()); + this.withAttribute(instance.getAttribute()); + this.withTotal(instance.getTotal()); + this.withType(instance.getType()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3PartitionTypeStatusFluent that = (V1alpha3PartitionTypeStatusFluent) o; + if (!(Objects.equals(allocatable, that.allocatable))) { + return false; + } + if (!(Objects.equals(attribute, that.attribute))) { + return false; + } + if (!(Objects.equals(total, that.total))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; + } + + public Integer getAllocatable() { + return this.allocatable; + } + + public String getAttribute() { + return this.attribute; + } + + public Integer getTotal() { + return this.total; + } + + public String getType() { + return this.type; + } + + public boolean hasAllocatable() { + return this.allocatable != null; + } + + public boolean hasAttribute() { + return this.attribute != null; + } + + public boolean hasTotal() { + return this.total != null; + } + + public boolean hasType() { + return this.type != null; + } + + public int hashCode() { + return Objects.hash(allocatable, attribute, total, type); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocatable == null)) { + sb.append("allocatable:"); + sb.append(allocatable); + sb.append(","); + } + if (!(attribute == null)) { + sb.append("attribute:"); + sb.append(attribute); + sb.append(","); + } + if (!(total == null)) { + sb.append("total:"); + sb.append(total); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllocatable(Integer allocatable) { + this.allocatable = allocatable; + return (A) this; + } + + public A withAttribute(String attribute) { + this.attribute = attribute; + return (A) this; + } + + public A withTotal(Integer total) { + this.total = total; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupBuilder.java new file mode 100644 index 0000000000..7f20beb34d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupBuilder.java @@ -0,0 +1,50 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3PodGroupBuilder extends V1alpha3PodGroupFluent implements VisitableBuilder{ + + V1alpha3PodGroupFluent fluent; + + public V1alpha3PodGroupBuilder() { + this(new V1alpha3PodGroup()); + } + + public V1alpha3PodGroupBuilder(V1alpha3PodGroupFluent fluent) { + this(fluent, new V1alpha3PodGroup()); + } + + public V1alpha3PodGroupBuilder(V1alpha3PodGroup instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3PodGroupBuilder(V1alpha3PodGroupFluent fluent,V1alpha3PodGroup instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3PodGroup build() { + V1alpha3PodGroup buildable = new V1alpha3PodGroup(); + 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/V1alpha2PodGroupFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupFluent.java similarity index 75% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupFluent.java index d75bb8ac6c..0138c3c925 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupFluent.java @@ -20,23 +20,25 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2PodGroupFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3PodGroupFluent> extends BaseFluent{ private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; - private V1alpha2PodGroupSpecBuilder spec; - private V1alpha2PodGroupStatusBuilder status; + private V1alpha3PodGroupSpecBuilder spec; + private V1alpha3PodGroupStatusBuilder status; - public V1alpha2PodGroupFluent() { + public V1alpha3PodGroupFluent() { } - public V1alpha2PodGroupFluent(V1alpha2PodGroup instance) { + public V1alpha3PodGroupFluent(V1alpha3PodGroup instance) { this.copyInstance(instance); } @@ -44,16 +46,16 @@ public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public V1alpha2PodGroupSpec buildSpec() { + public V1alpha3PodGroupSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public V1alpha2PodGroupStatus buildStatus() { + public V1alpha3PodGroupStatus buildStatus() { return this.status != null ? this.status.build() : null; } - protected void copyInstance(V1alpha2PodGroup instance) { - instance = instance != null ? instance : new V1alpha2PodGroup(); + protected void copyInstance(V1alpha3PodGroup instance) { + instance = instance != null ? instance : new V1alpha3PodGroup(); if (instance != null) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -76,18 +78,18 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { } public SpecNested editOrNewSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha2PodGroupSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha3PodGroupSpecBuilder().build())); } - public SpecNested editOrNewSpecLike(V1alpha2PodGroupSpec item) { + public SpecNested editOrNewSpecLike(V1alpha3PodGroupSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha2PodGroupStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha3PodGroupStatusBuilder().build())); } - public StatusNested editOrNewStatusLike(V1alpha2PodGroupStatus item) { + public StatusNested editOrNewStatusLike(V1alpha3PodGroupStatus item) { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2PodGroupFluent that = (V1alpha2PodGroupFluent) o; + V1alpha3PodGroupFluent that = (V1alpha3PodGroupFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,56 +209,56 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } - public SpecNested withNewSpecLike(V1alpha2PodGroupSpec item) { - return new SpecNested(item); + public SpecNested withNewSpecLike(V1alpha3PodGroupSpec item) { + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } - public StatusNested withNewStatusLike(V1alpha2PodGroupStatus item) { - return new StatusNested(item); + public StatusNested withNewStatusLike(V1alpha3PodGroupStatus item) { + return new StatusNested<>(item); } - public A withSpec(V1alpha2PodGroupSpec spec) { + public A withSpec(V1alpha3PodGroupSpec spec) { this._visitables.remove("spec"); if (spec != null) { - this.spec = new V1alpha2PodGroupSpecBuilder(spec); + this.spec = new V1alpha3PodGroupSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } - public A withStatus(V1alpha2PodGroupStatus status) { + public A withStatus(V1alpha3PodGroupStatus status) { this._visitables.remove("status"); if (status != null) { - this.status = new V1alpha2PodGroupStatusBuilder(status); + this.status = new V1alpha3PodGroupStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } @@ -269,7 +271,7 @@ public class MetadataNested extends V1ObjectMetaFluent> imp } public N and() { - return (N) V1alpha2PodGroupFluent.this.withMetadata(builder.build()); + return (N) V1alpha3PodGroupFluent.this.withMetadata(builder.build()); } public N endMetadata() { @@ -277,16 +279,16 @@ public N endMetadata() { } } - public class SpecNested extends V1alpha2PodGroupSpecFluent> implements Nested{ + public class SpecNested extends V1alpha3PodGroupSpecFluent> implements Nested{ - V1alpha2PodGroupSpecBuilder builder; + V1alpha3PodGroupSpecBuilder builder; - SpecNested(V1alpha2PodGroupSpec item) { - this.builder = new V1alpha2PodGroupSpecBuilder(this, item); + SpecNested(V1alpha3PodGroupSpec item) { + this.builder = new V1alpha3PodGroupSpecBuilder(this, item); } public N and() { - return (N) V1alpha2PodGroupFluent.this.withSpec(builder.build()); + return (N) V1alpha3PodGroupFluent.this.withSpec(builder.build()); } public N endSpec() { @@ -294,16 +296,16 @@ public N endSpec() { } } - public class StatusNested extends V1alpha2PodGroupStatusFluent> implements Nested{ + public class StatusNested extends V1alpha3PodGroupStatusFluent> implements Nested{ - V1alpha2PodGroupStatusBuilder builder; + V1alpha3PodGroupStatusBuilder builder; - StatusNested(V1alpha2PodGroupStatus item) { - this.builder = new V1alpha2PodGroupStatusBuilder(this, item); + StatusNested(V1alpha3PodGroupStatus item) { + this.builder = new V1alpha3PodGroupStatusBuilder(this, item); } public N and() { - return (N) V1alpha2PodGroupFluent.this.withStatus(builder.build()); + return (N) V1alpha3PodGroupFluent.this.withStatus(builder.build()); } public N endStatus() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupListBuilder.java similarity index 57% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupListBuilder.java index d9834dc286..ddd1062caa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupListBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1beta1IPAddressListBuilder extends V1beta1IPAddressListFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3PodGroupListBuilder extends V1alpha3PodGroupListFluent implements VisitableBuilder{ - V1beta1IPAddressListFluent fluent; + V1alpha3PodGroupListFluent fluent; - public V1beta1IPAddressListBuilder() { - this(new V1beta1IPAddressList()); + public V1alpha3PodGroupListBuilder() { + this(new V1alpha3PodGroupList()); } - public V1beta1IPAddressListBuilder(V1beta1IPAddressListFluent fluent) { - this(fluent, new V1beta1IPAddressList()); + public V1alpha3PodGroupListBuilder(V1alpha3PodGroupListFluent fluent) { + this(fluent, new V1alpha3PodGroupList()); } - public V1beta1IPAddressListBuilder(V1beta1IPAddressList instance) { + public V1alpha3PodGroupListBuilder(V1alpha3PodGroupList instance) { this.fluent = this; this.copyInstance(instance); } - public V1beta1IPAddressListBuilder(V1beta1IPAddressListFluent fluent,V1beta1IPAddressList instance) { + public V1alpha3PodGroupListBuilder(V1alpha3PodGroupListFluent fluent,V1alpha3PodGroupList instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1beta1IPAddressList build() { - V1beta1IPAddressList buildable = new V1beta1IPAddressList(); + public V1alpha3PodGroupList build() { + V1alpha3PodGroupList buildable = new V1alpha3PodGroupList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.buildItems()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupListFluent.java similarity index 73% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupListFluent.java index d6dd946d32..9f090c3209 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupListFluent.java @@ -26,31 +26,33 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ServiceCIDRListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3PodGroupListFluent> extends BaseFluent{ private String apiVersion; - private ArrayList items; + private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public V1beta1ServiceCIDRListFluent() { + public V1alpha3PodGroupListFluent() { } - public V1beta1ServiceCIDRListFluent(V1beta1ServiceCIDRList instance) { + public V1alpha3PodGroupListFluent(V1alpha3PodGroupList instance) { this.copyInstance(instance); } - public A addAllToItems(Collection items) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - for (V1beta1ServiceCIDR item : items) { - V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + for (V1alpha3PodGroup item : items) { + V1alpha3PodGroupBuilder builder = new V1alpha3PodGroupBuilder(item); this._visitables.get("items").add(builder); this.items.add(builder); } @@ -58,30 +60,30 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } - public ItemsNested addNewItemLike(V1beta1ServiceCIDR item) { - return new ItemsNested(-1, item); + public ItemsNested addNewItemLike(V1alpha3PodGroup item) { + return new ItemsNested<>(-1, item); } - public A addToItems(V1beta1ServiceCIDR... items) { + public A addToItems(V1alpha3PodGroup... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - for (V1beta1ServiceCIDR item : items) { - V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + for (V1alpha3PodGroup item : items) { + V1alpha3PodGroupBuilder builder = new V1alpha3PodGroupBuilder(item); this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; } - public A addToItems(int index,V1beta1ServiceCIDR item) { + public A addToItems(int index,V1alpha3PodGroup item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + V1alpha3PodGroupBuilder builder = new V1alpha3PodGroupBuilder(item); if (index < 0 || index >= this.items.size()) { this._visitables.get("items").add(builder); this.items.add(builder); @@ -92,24 +94,24 @@ public A addToItems(int index,V1beta1ServiceCIDR item) { return (A) this; } - public V1beta1ServiceCIDR buildFirstItem() { + public V1alpha3PodGroup buildFirstItem() { return this.items.get(0).build(); } - public V1beta1ServiceCIDR buildItem(int index) { + public V1alpha3PodGroup buildItem(int index) { return this.items.get(index).build(); } - public List buildItems() { + public List buildItems() { return this.items != null ? build(items) : null; } - public V1beta1ServiceCIDR buildLastItem() { + public V1alpha3PodGroup buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1beta1ServiceCIDR buildMatchingItem(Predicate predicate) { - for (V1beta1ServiceCIDRBuilder item : items) { + public V1alpha3PodGroup buildMatchingItem(Predicate predicate) { + for (V1alpha3PodGroupBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -121,8 +123,8 @@ public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - protected void copyInstance(V1beta1ServiceCIDRList instance) { - instance = instance != null ? instance : new V1beta1ServiceCIDRList(); + protected void copyInstance(V1alpha3PodGroupList instance) { + instance = instance != null ? instance : new V1alpha3PodGroupList(); if (instance != null) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -153,7 +155,7 @@ public ItemsNested editLastItem() { return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editMatchingItem(Predicate predicate) { + public ItemsNested editMatchingItem(Predicate predicate) { int index = -1; for (int i = 0;i < items.size();i++) { if (predicate.test(items.get(i))) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ServiceCIDRListFluent that = (V1beta1ServiceCIDRListFluent) o; + V1alpha3PodGroupListFluent that = (V1alpha3PodGroupListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -225,8 +227,8 @@ public boolean hasKind() { return this.kind != null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta1ServiceCIDRBuilder item : items) { + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha3PodGroupBuilder item : items) { if (predicate.test(item)) { return true; } @@ -242,38 +244,39 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - public A removeAllFromItems(Collection items) { + public A removeAllFromItems(Collection items) { if (this.items == null) { return (A) this; } - for (V1beta1ServiceCIDR item : items) { - V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + for (V1alpha3PodGroup item : items) { + V1alpha3PodGroupBuilder builder = new V1alpha3PodGroupBuilder(item); _visitables.get("items").remove(builder); this.items.remove(builder); } return (A) this; } - public A removeFromItems(V1beta1ServiceCIDR... items) { + public A removeFromItems(V1alpha3PodGroup... items) { if (this.items == null) { return (A) this; } - for (V1beta1ServiceCIDR item : items) { - V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + for (V1alpha3PodGroup item : items) { + V1alpha3PodGroupBuilder builder = new V1alpha3PodGroupBuilder(item); _visitables.get("items").remove(builder); this.items.remove(builder); } return (A) this; } - public A removeMatchingFromItems(Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) { return (A) this; } - Iterator each = items.iterator(); + Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { - V1beta1ServiceCIDRBuilder builder = each.next(); + V1alpha3PodGroupBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -282,15 +285,15 @@ public A removeMatchingFromItems(Predicate predicate) return (A) this; } - public ItemsNested setNewItemLike(int index,V1beta1ServiceCIDR item) { - return new ItemsNested(index, item); + public ItemsNested setNewItemLike(int index,V1alpha3PodGroup item) { + return new ItemsNested<>(index, item); } - public A setToItems(int index,V1beta1ServiceCIDR item) { + public A setToItems(int index,V1alpha3PodGroup item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + V1alpha3PodGroupBuilder builder = new V1alpha3PodGroupBuilder(item); if (index < 0 || index >= this.items.size()) { this._visitables.get("items").add(builder); this.items.add(builder); @@ -332,13 +335,13 @@ public A withApiVersion(String apiVersion) { return (A) this; } - public A withItems(List items) { + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); - for (V1beta1ServiceCIDR item : items) { + this.items = new ArrayList<>(); + for (V1alpha3PodGroup item : items) { this.addToItems(item); } } else { @@ -347,13 +350,13 @@ public A withItems(List items) { return (A) this; } - public A withItems(V1beta1ServiceCIDR... items) { + public A withItems(V1alpha3PodGroup... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); } if (items != null) { - for (V1beta1ServiceCIDR item : items) { + for (V1alpha3PodGroup item : items) { this.addToItems(item); } } @@ -371,31 +374,31 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } - public class ItemsNested extends V1beta1ServiceCIDRFluent> implements Nested{ + public class ItemsNested extends V1alpha3PodGroupFluent> implements Nested{ - V1beta1ServiceCIDRBuilder builder; + V1alpha3PodGroupBuilder builder; int index; - ItemsNested(int index,V1beta1ServiceCIDR item) { + ItemsNested(int index,V1alpha3PodGroup item) { this.index = index; - this.builder = new V1beta1ServiceCIDRBuilder(this, item); + this.builder = new V1alpha3PodGroupBuilder(this, item); } public N and() { - return (N) V1beta1ServiceCIDRListFluent.this.setToItems(index, builder.build()); + return (N) V1alpha3PodGroupListFluent.this.setToItems(index, builder.build()); } public N endItem() { @@ -412,7 +415,7 @@ public class MetadataNested extends V1ListMetaFluent> imple } public N and() { - return (N) V1beta1ServiceCIDRListFluent.this.withMetadata(builder.build()); + return (N) V1alpha3PodGroupListFluent.this.withMetadata(builder.build()); } public N endMetadata() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimBuilder.java similarity index 55% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimBuilder.java index b09ffc10b3..03213ad9fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2PodGroupResourceClaimBuilder extends V1alpha2PodGroupResourceClaimFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3PodGroupResourceClaimBuilder extends V1alpha3PodGroupResourceClaimFluent implements VisitableBuilder{ - V1alpha2PodGroupResourceClaimFluent fluent; + V1alpha3PodGroupResourceClaimFluent fluent; - public V1alpha2PodGroupResourceClaimBuilder() { - this(new V1alpha2PodGroupResourceClaim()); + public V1alpha3PodGroupResourceClaimBuilder() { + this(new V1alpha3PodGroupResourceClaim()); } - public V1alpha2PodGroupResourceClaimBuilder(V1alpha2PodGroupResourceClaimFluent fluent) { - this(fluent, new V1alpha2PodGroupResourceClaim()); + public V1alpha3PodGroupResourceClaimBuilder(V1alpha3PodGroupResourceClaimFluent fluent) { + this(fluent, new V1alpha3PodGroupResourceClaim()); } - public V1alpha2PodGroupResourceClaimBuilder(V1alpha2PodGroupResourceClaim instance) { + public V1alpha3PodGroupResourceClaimBuilder(V1alpha3PodGroupResourceClaim instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2PodGroupResourceClaimBuilder(V1alpha2PodGroupResourceClaimFluent fluent,V1alpha2PodGroupResourceClaim instance) { + public V1alpha3PodGroupResourceClaimBuilder(V1alpha3PodGroupResourceClaimFluent fluent,V1alpha3PodGroupResourceClaim instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2PodGroupResourceClaim build() { - V1alpha2PodGroupResourceClaim buildable = new V1alpha2PodGroupResourceClaim(); + public V1alpha3PodGroupResourceClaim build() { + V1alpha3PodGroupResourceClaim buildable = new V1alpha3PodGroupResourceClaim(); buildable.setName(fluent.getName()); buildable.setResourceClaimName(fluent.getResourceClaimName()); buildable.setResourceClaimTemplateName(fluent.getResourceClaimTemplateName()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimFluent.java similarity index 85% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimFluent.java index e4f7d4a8f7..6a5341b8f0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimFluent.java @@ -18,26 +18,28 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2PodGroupResourceClaimFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3PodGroupResourceClaimFluent> extends BaseFluent{ private String name; private String resourceClaimName; private String resourceClaimTemplateName; - public V1alpha2PodGroupResourceClaimFluent() { + public V1alpha3PodGroupResourceClaimFluent() { } - public V1alpha2PodGroupResourceClaimFluent(V1alpha2PodGroupResourceClaim instance) { + public V1alpha3PodGroupResourceClaimFluent(V1alpha3PodGroupResourceClaim instance) { this.copyInstance(instance); } - protected void copyInstance(V1alpha2PodGroupResourceClaim instance) { - instance = instance != null ? instance : new V1alpha2PodGroupResourceClaim(); + protected void copyInstance(V1alpha3PodGroupResourceClaim instance) { + instance = instance != null ? instance : new V1alpha3PodGroupResourceClaim(); if (instance != null) { this.withName(instance.getName()); this.withResourceClaimName(instance.getResourceClaimName()); @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2PodGroupResourceClaimFluent that = (V1alpha2PodGroupResourceClaimFluent) o; + V1alpha3PodGroupResourceClaimFluent that = (V1alpha3PodGroupResourceClaimFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimStatusBuilder.java similarity index 53% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatusBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimStatusBuilder.java index 904ae87df1..69df97e481 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimStatusBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2PodGroupResourceClaimStatusBuilder extends V1alpha2PodGroupResourceClaimStatusFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3PodGroupResourceClaimStatusBuilder extends V1alpha3PodGroupResourceClaimStatusFluent implements VisitableBuilder{ - V1alpha2PodGroupResourceClaimStatusFluent fluent; + V1alpha3PodGroupResourceClaimStatusFluent fluent; - public V1alpha2PodGroupResourceClaimStatusBuilder() { - this(new V1alpha2PodGroupResourceClaimStatus()); + public V1alpha3PodGroupResourceClaimStatusBuilder() { + this(new V1alpha3PodGroupResourceClaimStatus()); } - public V1alpha2PodGroupResourceClaimStatusBuilder(V1alpha2PodGroupResourceClaimStatusFluent fluent) { - this(fluent, new V1alpha2PodGroupResourceClaimStatus()); + public V1alpha3PodGroupResourceClaimStatusBuilder(V1alpha3PodGroupResourceClaimStatusFluent fluent) { + this(fluent, new V1alpha3PodGroupResourceClaimStatus()); } - public V1alpha2PodGroupResourceClaimStatusBuilder(V1alpha2PodGroupResourceClaimStatus instance) { + public V1alpha3PodGroupResourceClaimStatusBuilder(V1alpha3PodGroupResourceClaimStatus instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2PodGroupResourceClaimStatusBuilder(V1alpha2PodGroupResourceClaimStatusFluent fluent,V1alpha2PodGroupResourceClaimStatus instance) { + public V1alpha3PodGroupResourceClaimStatusBuilder(V1alpha3PodGroupResourceClaimStatusFluent fluent,V1alpha3PodGroupResourceClaimStatus instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2PodGroupResourceClaimStatus build() { - V1alpha2PodGroupResourceClaimStatus buildable = new V1alpha2PodGroupResourceClaimStatus(); + public V1alpha3PodGroupResourceClaimStatus build() { + V1alpha3PodGroupResourceClaimStatus buildable = new V1alpha3PodGroupResourceClaimStatus(); buildable.setName(fluent.getName()); buildable.setResourceClaimName(fluent.getResourceClaimName()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimStatusFluent.java similarity index 80% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatusFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimStatusFluent.java index aede3c7eb0..29e728ff65 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimStatusFluent.java @@ -18,25 +18,27 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2PodGroupResourceClaimStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3PodGroupResourceClaimStatusFluent> extends BaseFluent{ private String name; private String resourceClaimName; - public V1alpha2PodGroupResourceClaimStatusFluent() { + public V1alpha3PodGroupResourceClaimStatusFluent() { } - public V1alpha2PodGroupResourceClaimStatusFluent(V1alpha2PodGroupResourceClaimStatus instance) { + public V1alpha3PodGroupResourceClaimStatusFluent(V1alpha3PodGroupResourceClaimStatus instance) { this.copyInstance(instance); } - protected void copyInstance(V1alpha2PodGroupResourceClaimStatus instance) { - instance = instance != null ? instance : new V1alpha2PodGroupResourceClaimStatus(); + protected void copyInstance(V1alpha3PodGroupResourceClaimStatus instance) { + instance = instance != null ? instance : new V1alpha3PodGroupResourceClaimStatus(); if (instance != null) { this.withName(instance.getName()); this.withResourceClaimName(instance.getResourceClaimName()); @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2PodGroupResourceClaimStatusFluent that = (V1alpha2PodGroupResourceClaimStatusFluent) o; + V1alpha3PodGroupResourceClaimStatusFluent that = (V1alpha3PodGroupResourceClaimStatusFluent) o; if (!(Objects.equals(name, that.name))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraintsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingConstraintsBuilder.java similarity index 50% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraintsBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingConstraintsBuilder.java index 1819c05d32..982583b42f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraintsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingConstraintsBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2PodGroupSchedulingConstraintsBuilder extends V1alpha2PodGroupSchedulingConstraintsFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3PodGroupSchedulingConstraintsBuilder extends V1alpha3PodGroupSchedulingConstraintsFluent implements VisitableBuilder{ - V1alpha2PodGroupSchedulingConstraintsFluent fluent; + V1alpha3PodGroupSchedulingConstraintsFluent fluent; - public V1alpha2PodGroupSchedulingConstraintsBuilder() { - this(new V1alpha2PodGroupSchedulingConstraints()); + public V1alpha3PodGroupSchedulingConstraintsBuilder() { + this(new V1alpha3PodGroupSchedulingConstraints()); } - public V1alpha2PodGroupSchedulingConstraintsBuilder(V1alpha2PodGroupSchedulingConstraintsFluent fluent) { - this(fluent, new V1alpha2PodGroupSchedulingConstraints()); + public V1alpha3PodGroupSchedulingConstraintsBuilder(V1alpha3PodGroupSchedulingConstraintsFluent fluent) { + this(fluent, new V1alpha3PodGroupSchedulingConstraints()); } - public V1alpha2PodGroupSchedulingConstraintsBuilder(V1alpha2PodGroupSchedulingConstraints instance) { + public V1alpha3PodGroupSchedulingConstraintsBuilder(V1alpha3PodGroupSchedulingConstraints instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2PodGroupSchedulingConstraintsBuilder(V1alpha2PodGroupSchedulingConstraintsFluent fluent,V1alpha2PodGroupSchedulingConstraints instance) { + public V1alpha3PodGroupSchedulingConstraintsBuilder(V1alpha3PodGroupSchedulingConstraintsFluent fluent,V1alpha3PodGroupSchedulingConstraints instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2PodGroupSchedulingConstraints build() { - V1alpha2PodGroupSchedulingConstraints buildable = new V1alpha2PodGroupSchedulingConstraints(); + public V1alpha3PodGroupSchedulingConstraints build() { + V1alpha3PodGroupSchedulingConstraints buildable = new V1alpha3PodGroupSchedulingConstraints(); buildable.setTopology(fluent.buildTopology()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraintsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingConstraintsFluent.java similarity index 65% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraintsFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingConstraintsFluent.java index 2547ef6666..a709fdf76d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraintsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingConstraintsFluent.java @@ -25,28 +25,30 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2PodGroupSchedulingConstraintsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3PodGroupSchedulingConstraintsFluent> extends BaseFluent{ - private ArrayList topology; + private ArrayList topology; - public V1alpha2PodGroupSchedulingConstraintsFluent() { + public V1alpha3PodGroupSchedulingConstraintsFluent() { } - public V1alpha2PodGroupSchedulingConstraintsFluent(V1alpha2PodGroupSchedulingConstraints instance) { + public V1alpha3PodGroupSchedulingConstraintsFluent(V1alpha3PodGroupSchedulingConstraints instance) { this.copyInstance(instance); } - public A addAllToTopology(Collection items) { + public A addAllToTopology(Collection items) { if (this.topology == null) { - this.topology = new ArrayList(); + this.topology = new ArrayList<>(); } - for (V1alpha2TopologyConstraint item : items) { - V1alpha2TopologyConstraintBuilder builder = new V1alpha2TopologyConstraintBuilder(item); + for (V1alpha3TopologyConstraint item : items) { + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); this._visitables.get("topology").add(builder); this.topology.add(builder); } @@ -54,30 +56,30 @@ public A addAllToTopology(Collection items) { } public TopologyNested addNewTopology() { - return new TopologyNested(-1, null); + return new TopologyNested<>(-1, null); } - public TopologyNested addNewTopologyLike(V1alpha2TopologyConstraint item) { - return new TopologyNested(-1, item); + public TopologyNested addNewTopologyLike(V1alpha3TopologyConstraint item) { + return new TopologyNested<>(-1, item); } - public A addToTopology(V1alpha2TopologyConstraint... items) { + public A addToTopology(V1alpha3TopologyConstraint... items) { if (this.topology == null) { - this.topology = new ArrayList(); + this.topology = new ArrayList<>(); } - for (V1alpha2TopologyConstraint item : items) { - V1alpha2TopologyConstraintBuilder builder = new V1alpha2TopologyConstraintBuilder(item); + for (V1alpha3TopologyConstraint item : items) { + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); this._visitables.get("topology").add(builder); this.topology.add(builder); } return (A) this; } - public A addToTopology(int index,V1alpha2TopologyConstraint item) { + public A addToTopology(int index,V1alpha3TopologyConstraint item) { if (this.topology == null) { - this.topology = new ArrayList(); + this.topology = new ArrayList<>(); } - V1alpha2TopologyConstraintBuilder builder = new V1alpha2TopologyConstraintBuilder(item); + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); if (index < 0 || index >= this.topology.size()) { this._visitables.get("topology").add(builder); this.topology.add(builder); @@ -88,16 +90,16 @@ public A addToTopology(int index,V1alpha2TopologyConstraint item) { return (A) this; } - public V1alpha2TopologyConstraint buildFirstTopology() { + public V1alpha3TopologyConstraint buildFirstTopology() { return this.topology.get(0).build(); } - public V1alpha2TopologyConstraint buildLastTopology() { + public V1alpha3TopologyConstraint buildLastTopology() { return this.topology.get(topology.size() - 1).build(); } - public V1alpha2TopologyConstraint buildMatchingTopology(Predicate predicate) { - for (V1alpha2TopologyConstraintBuilder item : topology) { + public V1alpha3TopologyConstraint buildMatchingTopology(Predicate predicate) { + for (V1alpha3TopologyConstraintBuilder item : topology) { if (predicate.test(item)) { return item.build(); } @@ -105,16 +107,16 @@ public V1alpha2TopologyConstraint buildMatchingTopology(Predicate buildTopology() { + public List buildTopology() { return this.topology != null ? build(topology) : null; } - public V1alpha2TopologyConstraint buildTopology(int index) { + public V1alpha3TopologyConstraint buildTopology(int index) { return this.topology.get(index).build(); } - protected void copyInstance(V1alpha2PodGroupSchedulingConstraints instance) { - instance = instance != null ? instance : new V1alpha2PodGroupSchedulingConstraints(); + protected void copyInstance(V1alpha3PodGroupSchedulingConstraints instance) { + instance = instance != null ? instance : new V1alpha3PodGroupSchedulingConstraints(); if (instance != null) { this.withTopology(instance.getTopology()); } @@ -135,7 +137,7 @@ public TopologyNested editLastTopology() { return this.setNewTopologyLike(index, this.buildTopology(index)); } - public TopologyNested editMatchingTopology(Predicate predicate) { + public TopologyNested editMatchingTopology(Predicate predicate) { int index = -1; for (int i = 0;i < topology.size();i++) { if (predicate.test(topology.get(i))) { @@ -166,15 +168,15 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2PodGroupSchedulingConstraintsFluent that = (V1alpha2PodGroupSchedulingConstraintsFluent) o; + V1alpha3PodGroupSchedulingConstraintsFluent that = (V1alpha3PodGroupSchedulingConstraintsFluent) o; if (!(Objects.equals(topology, that.topology))) { return false; } return true; } - public boolean hasMatchingTopology(Predicate predicate) { - for (V1alpha2TopologyConstraintBuilder item : topology) { + public boolean hasMatchingTopology(Predicate predicate) { + for (V1alpha3TopologyConstraintBuilder item : topology) { if (predicate.test(item)) { return true; } @@ -190,38 +192,39 @@ public int hashCode() { return Objects.hash(topology); } - public A removeAllFromTopology(Collection items) { + public A removeAllFromTopology(Collection items) { if (this.topology == null) { return (A) this; } - for (V1alpha2TopologyConstraint item : items) { - V1alpha2TopologyConstraintBuilder builder = new V1alpha2TopologyConstraintBuilder(item); + for (V1alpha3TopologyConstraint item : items) { + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); _visitables.get("topology").remove(builder); this.topology.remove(builder); } return (A) this; } - public A removeFromTopology(V1alpha2TopologyConstraint... items) { + public A removeFromTopology(V1alpha3TopologyConstraint... items) { if (this.topology == null) { return (A) this; } - for (V1alpha2TopologyConstraint item : items) { - V1alpha2TopologyConstraintBuilder builder = new V1alpha2TopologyConstraintBuilder(item); + for (V1alpha3TopologyConstraint item : items) { + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); _visitables.get("topology").remove(builder); this.topology.remove(builder); } return (A) this; } - public A removeMatchingFromTopology(Predicate predicate) { + public A removeMatchingFromTopology(Predicate predicate) { if (topology == null) { return (A) this; } - Iterator each = topology.iterator(); + Iterator each = topology.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("topology"); while (each.hasNext()) { - V1alpha2TopologyConstraintBuilder builder = each.next(); + V1alpha3TopologyConstraintBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -230,15 +233,15 @@ public A removeMatchingFromTopology(Predicate return (A) this; } - public TopologyNested setNewTopologyLike(int index,V1alpha2TopologyConstraint item) { - return new TopologyNested(index, item); + public TopologyNested setNewTopologyLike(int index,V1alpha3TopologyConstraint item) { + return new TopologyNested<>(index, item); } - public A setToTopology(int index,V1alpha2TopologyConstraint item) { + public A setToTopology(int index,V1alpha3TopologyConstraint item) { if (this.topology == null) { - this.topology = new ArrayList(); + this.topology = new ArrayList<>(); } - V1alpha2TopologyConstraintBuilder builder = new V1alpha2TopologyConstraintBuilder(item); + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); if (index < 0 || index >= this.topology.size()) { this._visitables.get("topology").add(builder); this.topology.add(builder); @@ -260,13 +263,13 @@ public String toString() { return sb.toString(); } - public A withTopology(List topology) { + public A withTopology(List topology) { if (this.topology != null) { this._visitables.get("topology").clear(); } if (topology != null) { - this.topology = new ArrayList(); - for (V1alpha2TopologyConstraint item : topology) { + this.topology = new ArrayList<>(); + for (V1alpha3TopologyConstraint item : topology) { this.addToTopology(item); } } else { @@ -275,30 +278,30 @@ public A withTopology(List topology) { return (A) this; } - public A withTopology(V1alpha2TopologyConstraint... topology) { + public A withTopology(V1alpha3TopologyConstraint... topology) { if (this.topology != null) { this.topology.clear(); _visitables.remove("topology"); } if (topology != null) { - for (V1alpha2TopologyConstraint item : topology) { + for (V1alpha3TopologyConstraint item : topology) { this.addToTopology(item); } } return (A) this; } - public class TopologyNested extends V1alpha2TopologyConstraintFluent> implements Nested{ + public class TopologyNested extends V1alpha3TopologyConstraintFluent> implements Nested{ - V1alpha2TopologyConstraintBuilder builder; + V1alpha3TopologyConstraintBuilder builder; int index; - TopologyNested(int index,V1alpha2TopologyConstraint item) { + TopologyNested(int index,V1alpha3TopologyConstraint item) { this.index = index; - this.builder = new V1alpha2TopologyConstraintBuilder(this, item); + this.builder = new V1alpha3TopologyConstraintBuilder(this, item); } public N and() { - return (N) V1alpha2PodGroupSchedulingConstraintsFluent.this.setToTopology(index, builder.build()); + return (N) V1alpha3PodGroupSchedulingConstraintsFluent.this.setToTopology(index, builder.build()); } public N endTopology() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingPolicyBuilder.java similarity index 52% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicyBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingPolicyBuilder.java index af3e07458c..07b25c7435 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingPolicyBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2PodGroupSchedulingPolicyBuilder extends V1alpha2PodGroupSchedulingPolicyFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3PodGroupSchedulingPolicyBuilder extends V1alpha3PodGroupSchedulingPolicyFluent implements VisitableBuilder{ - V1alpha2PodGroupSchedulingPolicyFluent fluent; + V1alpha3PodGroupSchedulingPolicyFluent fluent; - public V1alpha2PodGroupSchedulingPolicyBuilder() { - this(new V1alpha2PodGroupSchedulingPolicy()); + public V1alpha3PodGroupSchedulingPolicyBuilder() { + this(new V1alpha3PodGroupSchedulingPolicy()); } - public V1alpha2PodGroupSchedulingPolicyBuilder(V1alpha2PodGroupSchedulingPolicyFluent fluent) { - this(fluent, new V1alpha2PodGroupSchedulingPolicy()); + public V1alpha3PodGroupSchedulingPolicyBuilder(V1alpha3PodGroupSchedulingPolicyFluent fluent) { + this(fluent, new V1alpha3PodGroupSchedulingPolicy()); } - public V1alpha2PodGroupSchedulingPolicyBuilder(V1alpha2PodGroupSchedulingPolicy instance) { + public V1alpha3PodGroupSchedulingPolicyBuilder(V1alpha3PodGroupSchedulingPolicy instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2PodGroupSchedulingPolicyBuilder(V1alpha2PodGroupSchedulingPolicyFluent fluent,V1alpha2PodGroupSchedulingPolicy instance) { + public V1alpha3PodGroupSchedulingPolicyBuilder(V1alpha3PodGroupSchedulingPolicyFluent fluent,V1alpha3PodGroupSchedulingPolicy instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2PodGroupSchedulingPolicy build() { - V1alpha2PodGroupSchedulingPolicy buildable = new V1alpha2PodGroupSchedulingPolicy(); + public V1alpha3PodGroupSchedulingPolicy build() { + V1alpha3PodGroupSchedulingPolicy buildable = new V1alpha3PodGroupSchedulingPolicy(); buildable.setBasic(fluent.getBasic()); buildable.setGang(fluent.buildGang()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingPolicyFluent.java similarity index 69% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicyFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingPolicyFluent.java index f887108cd9..c977640c0a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingPolicyFluent.java @@ -20,29 +20,31 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2PodGroupSchedulingPolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3PodGroupSchedulingPolicyFluent> extends BaseFluent{ private Object basic; - private V1alpha2GangSchedulingPolicyBuilder gang; + private V1alpha3GangSchedulingPolicyBuilder gang; - public V1alpha2PodGroupSchedulingPolicyFluent() { + public V1alpha3PodGroupSchedulingPolicyFluent() { } - public V1alpha2PodGroupSchedulingPolicyFluent(V1alpha2PodGroupSchedulingPolicy instance) { + public V1alpha3PodGroupSchedulingPolicyFluent(V1alpha3PodGroupSchedulingPolicy instance) { this.copyInstance(instance); } - public V1alpha2GangSchedulingPolicy buildGang() { + public V1alpha3GangSchedulingPolicy buildGang() { return this.gang != null ? this.gang.build() : null; } - protected void copyInstance(V1alpha2PodGroupSchedulingPolicy instance) { - instance = instance != null ? instance : new V1alpha2PodGroupSchedulingPolicy(); + protected void copyInstance(V1alpha3PodGroupSchedulingPolicy instance) { + instance = instance != null ? instance : new V1alpha3PodGroupSchedulingPolicy(); if (instance != null) { this.withBasic(instance.getBasic()); this.withGang(instance.getGang()); @@ -54,10 +56,10 @@ public GangNested editGang() { } public GangNested editOrNewGang() { - return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(new V1alpha2GangSchedulingPolicyBuilder().build())); + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(new V1alpha3GangSchedulingPolicyBuilder().build())); } - public GangNested editOrNewGangLike(V1alpha2GangSchedulingPolicy item) { + public GangNested editOrNewGangLike(V1alpha3GangSchedulingPolicy item) { return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(item)); } @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2PodGroupSchedulingPolicyFluent that = (V1alpha2PodGroupSchedulingPolicyFluent) o; + V1alpha3PodGroupSchedulingPolicyFluent that = (V1alpha3PodGroupSchedulingPolicyFluent) o; if (!(Objects.equals(basic, that.basic))) { return false; } @@ -118,35 +120,35 @@ public A withBasic(Object basic) { return (A) this; } - public A withGang(V1alpha2GangSchedulingPolicy gang) { + public A withGang(V1alpha3GangSchedulingPolicy gang) { this._visitables.remove("gang"); if (gang != null) { - this.gang = new V1alpha2GangSchedulingPolicyBuilder(gang); + this.gang = new V1alpha3GangSchedulingPolicyBuilder(gang); this._visitables.get("gang").add(this.gang); } else { - this.gang = null; this._visitables.get("gang").remove(this.gang); + this.gang = null; } return (A) this; } public GangNested withNewGang() { - return new GangNested(null); + return new GangNested<>(null); } - public GangNested withNewGangLike(V1alpha2GangSchedulingPolicy item) { - return new GangNested(item); + public GangNested withNewGangLike(V1alpha3GangSchedulingPolicy item) { + return new GangNested<>(item); } - public class GangNested extends V1alpha2GangSchedulingPolicyFluent> implements Nested{ + public class GangNested extends V1alpha3GangSchedulingPolicyFluent> implements Nested{ - V1alpha2GangSchedulingPolicyBuilder builder; + V1alpha3GangSchedulingPolicyBuilder builder; - GangNested(V1alpha2GangSchedulingPolicy item) { - this.builder = new V1alpha2GangSchedulingPolicyBuilder(this, item); + GangNested(V1alpha3GangSchedulingPolicy item) { + this.builder = new V1alpha3GangSchedulingPolicyBuilder(this, item); } public N and() { - return (N) V1alpha2PodGroupSchedulingPolicyFluent.this.withGang(builder.build()); + return (N) V1alpha3PodGroupSchedulingPolicyFluent.this.withGang(builder.build()); } public N endGang() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSpecBuilder.java new file mode 100644 index 0000000000..e3cd70397d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSpecBuilder.java @@ -0,0 +1,54 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3PodGroupSpecBuilder extends V1alpha3PodGroupSpecFluent implements VisitableBuilder{ + + V1alpha3PodGroupSpecFluent fluent; + + public V1alpha3PodGroupSpecBuilder() { + this(new V1alpha3PodGroupSpec()); + } + + public V1alpha3PodGroupSpecBuilder(V1alpha3PodGroupSpecFluent fluent) { + this(fluent, new V1alpha3PodGroupSpec()); + } + + public V1alpha3PodGroupSpecBuilder(V1alpha3PodGroupSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3PodGroupSpecBuilder(V1alpha3PodGroupSpecFluent fluent,V1alpha3PodGroupSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3PodGroupSpec build() { + V1alpha3PodGroupSpec buildable = new V1alpha3PodGroupSpec(); + buildable.setDisruptionMode(fluent.buildDisruptionMode()); + buildable.setParentCompositePodGroupName(fluent.getParentCompositePodGroupName()); + buildable.setPreemptionPolicy(fluent.getPreemptionPolicy()); + buildable.setPriority(fluent.getPriority()); + buildable.setPriorityClassName(fluent.getPriorityClassName()); + buildable.setResourceClaims(fluent.buildResourceClaims()); + buildable.setSchedulingConstraints(fluent.buildSchedulingConstraints()); + buildable.setSchedulingPolicy(fluent.buildSchedulingPolicy()); + buildable.setWorkloadRef(fluent.buildWorkloadRef()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSpecFluent.java new file mode 100644 index 0000000000..43694c22e8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSpecFluent.java @@ -0,0 +1,674 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3PodGroupSpecFluent> extends BaseFluent{ + + private V1alpha3DisruptionModeBuilder disruptionMode; + private String parentCompositePodGroupName; + private String preemptionPolicy; + private Integer priority; + private String priorityClassName; + private ArrayList resourceClaims; + private V1alpha3PodGroupSchedulingConstraintsBuilder schedulingConstraints; + private V1alpha3PodGroupSchedulingPolicyBuilder schedulingPolicy; + private V1alpha3WorkloadReferenceBuilder workloadRef; + + public V1alpha3PodGroupSpecFluent() { + } + + public V1alpha3PodGroupSpecFluent(V1alpha3PodGroupSpec instance) { + this.copyInstance(instance); + } + + public A addAllToResourceClaims(Collection items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + for (V1alpha3PodGroupResourceClaim item : items) { + V1alpha3PodGroupResourceClaimBuilder builder = new V1alpha3PodGroupResourceClaimBuilder(item); + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; + } + + public ResourceClaimsNested addNewResourceClaim() { + return new ResourceClaimsNested<>(-1, null); + } + + public ResourceClaimsNested addNewResourceClaimLike(V1alpha3PodGroupResourceClaim item) { + return new ResourceClaimsNested<>(-1, item); + } + + public A addToResourceClaims(V1alpha3PodGroupResourceClaim... items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + for (V1alpha3PodGroupResourceClaim item : items) { + V1alpha3PodGroupResourceClaimBuilder builder = new V1alpha3PodGroupResourceClaimBuilder(item); + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; + } + + public A addToResourceClaims(int index,V1alpha3PodGroupResourceClaim item) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + V1alpha3PodGroupResourceClaimBuilder builder = new V1alpha3PodGroupResourceClaimBuilder(item); + if (index < 0 || index >= this.resourceClaims.size()) { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } else { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(index, builder); + } + return (A) this; + } + + public V1alpha3DisruptionMode buildDisruptionMode() { + return this.disruptionMode != null ? this.disruptionMode.build() : null; + } + + public V1alpha3PodGroupResourceClaim buildFirstResourceClaim() { + return this.resourceClaims.get(0).build(); + } + + public V1alpha3PodGroupResourceClaim buildLastResourceClaim() { + return this.resourceClaims.get(resourceClaims.size() - 1).build(); + } + + public V1alpha3PodGroupResourceClaim buildMatchingResourceClaim(Predicate predicate) { + for (V1alpha3PodGroupResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha3PodGroupResourceClaim buildResourceClaim(int index) { + return this.resourceClaims.get(index).build(); + } + + public List buildResourceClaims() { + return this.resourceClaims != null ? build(resourceClaims) : null; + } + + public V1alpha3PodGroupSchedulingConstraints buildSchedulingConstraints() { + return this.schedulingConstraints != null ? this.schedulingConstraints.build() : null; + } + + public V1alpha3PodGroupSchedulingPolicy buildSchedulingPolicy() { + return this.schedulingPolicy != null ? this.schedulingPolicy.build() : null; + } + + public V1alpha3WorkloadReference buildWorkloadRef() { + return this.workloadRef != null ? this.workloadRef.build() : null; + } + + protected void copyInstance(V1alpha3PodGroupSpec instance) { + instance = instance != null ? instance : new V1alpha3PodGroupSpec(); + if (instance != null) { + this.withDisruptionMode(instance.getDisruptionMode()); + this.withParentCompositePodGroupName(instance.getParentCompositePodGroupName()); + this.withPreemptionPolicy(instance.getPreemptionPolicy()); + this.withPriority(instance.getPriority()); + this.withPriorityClassName(instance.getPriorityClassName()); + this.withResourceClaims(instance.getResourceClaims()); + this.withSchedulingConstraints(instance.getSchedulingConstraints()); + this.withSchedulingPolicy(instance.getSchedulingPolicy()); + this.withWorkloadRef(instance.getWorkloadRef()); + } + } + + public DisruptionModeNested editDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(null)); + } + + public ResourceClaimsNested editFirstResourceClaim() { + if (resourceClaims.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaims")); + } + return this.setNewResourceClaimLike(0, this.buildResourceClaim(0)); + } + + public ResourceClaimsNested editLastResourceClaim() { + int index = resourceClaims.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceClaims.size();i++) { + if (predicate.test(resourceClaims.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public DisruptionModeNested editOrNewDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(new V1alpha3DisruptionModeBuilder().build())); + } + + public DisruptionModeNested editOrNewDisruptionModeLike(V1alpha3DisruptionMode item) { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(item)); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(new V1alpha3PodGroupSchedulingConstraintsBuilder().build())); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraintsLike(V1alpha3PodGroupSchedulingConstraints item) { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(item)); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(new V1alpha3PodGroupSchedulingPolicyBuilder().build())); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicyLike(V1alpha3PodGroupSchedulingPolicy item) { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(item)); + } + + public WorkloadRefNested editOrNewWorkloadRef() { + return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(new V1alpha3WorkloadReferenceBuilder().build())); + } + + public WorkloadRefNested editOrNewWorkloadRefLike(V1alpha3WorkloadReference item) { + return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(item)); + } + + public ResourceClaimsNested editResourceClaim(int index) { + if (resourceClaims.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public SchedulingConstraintsNested editSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(null)); + } + + public SchedulingPolicyNested editSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(null)); + } + + public WorkloadRefNested editWorkloadRef() { + return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3PodGroupSpecFluent that = (V1alpha3PodGroupSpecFluent) o; + if (!(Objects.equals(disruptionMode, that.disruptionMode))) { + return false; + } + if (!(Objects.equals(parentCompositePodGroupName, that.parentCompositePodGroupName))) { + return false; + } + if (!(Objects.equals(preemptionPolicy, that.preemptionPolicy))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + if (!(Objects.equals(priorityClassName, that.priorityClassName))) { + return false; + } + if (!(Objects.equals(resourceClaims, that.resourceClaims))) { + return false; + } + if (!(Objects.equals(schedulingConstraints, that.schedulingConstraints))) { + return false; + } + if (!(Objects.equals(schedulingPolicy, that.schedulingPolicy))) { + return false; + } + if (!(Objects.equals(workloadRef, that.workloadRef))) { + return false; + } + return true; + } + + public String getParentCompositePodGroupName() { + return this.parentCompositePodGroupName; + } + + public String getPreemptionPolicy() { + return this.preemptionPolicy; + } + + public Integer getPriority() { + return this.priority; + } + + public String getPriorityClassName() { + return this.priorityClassName; + } + + public boolean hasDisruptionMode() { + return this.disruptionMode != null; + } + + public boolean hasMatchingResourceClaim(Predicate predicate) { + for (V1alpha3PodGroupResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasParentCompositePodGroupName() { + return this.parentCompositePodGroupName != null; + } + + public boolean hasPreemptionPolicy() { + return this.preemptionPolicy != null; + } + + public boolean hasPriority() { + return this.priority != null; + } + + public boolean hasPriorityClassName() { + return this.priorityClassName != null; + } + + public boolean hasResourceClaims() { + return this.resourceClaims != null && !(this.resourceClaims.isEmpty()); + } + + public boolean hasSchedulingConstraints() { + return this.schedulingConstraints != null; + } + + public boolean hasSchedulingPolicy() { + return this.schedulingPolicy != null; + } + + public boolean hasWorkloadRef() { + return this.workloadRef != null; + } + + public int hashCode() { + return Objects.hash(disruptionMode, parentCompositePodGroupName, preemptionPolicy, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy, workloadRef); + } + + public A removeAllFromResourceClaims(Collection items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1alpha3PodGroupResourceClaim item : items) { + V1alpha3PodGroupResourceClaimBuilder builder = new V1alpha3PodGroupResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; + } + + public A removeFromResourceClaims(V1alpha3PodGroupResourceClaim... items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1alpha3PodGroupResourceClaim item : items) { + V1alpha3PodGroupResourceClaimBuilder builder = new V1alpha3PodGroupResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromResourceClaims(Predicate predicate) { + if (resourceClaims == null) { + return (A) this; + } + Iterator each = resourceClaims.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("resourceClaims"); + while (each.hasNext()) { + V1alpha3PodGroupResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ResourceClaimsNested setNewResourceClaimLike(int index,V1alpha3PodGroupResourceClaim item) { + return new ResourceClaimsNested<>(index, item); + } + + public A setToResourceClaims(int index,V1alpha3PodGroupResourceClaim item) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + V1alpha3PodGroupResourceClaimBuilder builder = new V1alpha3PodGroupResourceClaimBuilder(item); + if (index < 0 || index >= this.resourceClaims.size()) { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } else { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(disruptionMode == null)) { + sb.append("disruptionMode:"); + sb.append(disruptionMode); + sb.append(","); + } + if (!(parentCompositePodGroupName == null)) { + sb.append("parentCompositePodGroupName:"); + sb.append(parentCompositePodGroupName); + sb.append(","); + } + if (!(preemptionPolicy == null)) { + sb.append("preemptionPolicy:"); + sb.append(preemptionPolicy); + sb.append(","); + } + if (!(priority == null)) { + sb.append("priority:"); + sb.append(priority); + sb.append(","); + } + if (!(priorityClassName == null)) { + sb.append("priorityClassName:"); + sb.append(priorityClassName); + sb.append(","); + } + if (!(resourceClaims == null) && !(resourceClaims.isEmpty())) { + sb.append("resourceClaims:"); + sb.append(resourceClaims); + sb.append(","); + } + if (!(schedulingConstraints == null)) { + sb.append("schedulingConstraints:"); + sb.append(schedulingConstraints); + sb.append(","); + } + if (!(schedulingPolicy == null)) { + sb.append("schedulingPolicy:"); + sb.append(schedulingPolicy); + sb.append(","); + } + if (!(workloadRef == null)) { + sb.append("workloadRef:"); + sb.append(workloadRef); + } + sb.append("}"); + return sb.toString(); + } + + public A withDisruptionMode(V1alpha3DisruptionMode disruptionMode) { + this._visitables.remove("disruptionMode"); + if (disruptionMode != null) { + this.disruptionMode = new V1alpha3DisruptionModeBuilder(disruptionMode); + this._visitables.get("disruptionMode").add(this.disruptionMode); + } else { + this._visitables.get("disruptionMode").remove(this.disruptionMode); + this.disruptionMode = null; + } + return (A) this; + } + + public DisruptionModeNested withNewDisruptionMode() { + return new DisruptionModeNested<>(null); + } + + public DisruptionModeNested withNewDisruptionModeLike(V1alpha3DisruptionMode item) { + return new DisruptionModeNested<>(item); + } + + public SchedulingConstraintsNested withNewSchedulingConstraints() { + return new SchedulingConstraintsNested<>(null); + } + + public SchedulingConstraintsNested withNewSchedulingConstraintsLike(V1alpha3PodGroupSchedulingConstraints item) { + return new SchedulingConstraintsNested<>(item); + } + + public SchedulingPolicyNested withNewSchedulingPolicy() { + return new SchedulingPolicyNested<>(null); + } + + public SchedulingPolicyNested withNewSchedulingPolicyLike(V1alpha3PodGroupSchedulingPolicy item) { + return new SchedulingPolicyNested<>(item); + } + + public WorkloadRefNested withNewWorkloadRef() { + return new WorkloadRefNested<>(null); + } + + public WorkloadRefNested withNewWorkloadRefLike(V1alpha3WorkloadReference item) { + return new WorkloadRefNested<>(item); + } + + public A withParentCompositePodGroupName(String parentCompositePodGroupName) { + this.parentCompositePodGroupName = parentCompositePodGroupName; + return (A) this; + } + + public A withPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return (A) this; + } + + public A withPriority(Integer priority) { + this.priority = priority; + return (A) this; + } + + public A withPriorityClassName(String priorityClassName) { + this.priorityClassName = priorityClassName; + return (A) this; + } + + public A withResourceClaims(List resourceClaims) { + if (this.resourceClaims != null) { + this._visitables.get("resourceClaims").clear(); + } + if (resourceClaims != null) { + this.resourceClaims = new ArrayList<>(); + for (V1alpha3PodGroupResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); + } + } else { + this.resourceClaims = null; + } + return (A) this; + } + + public A withResourceClaims(V1alpha3PodGroupResourceClaim... resourceClaims) { + if (this.resourceClaims != null) { + this.resourceClaims.clear(); + _visitables.remove("resourceClaims"); + } + if (resourceClaims != null) { + for (V1alpha3PodGroupResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); + } + } + return (A) this; + } + + public A withSchedulingConstraints(V1alpha3PodGroupSchedulingConstraints schedulingConstraints) { + this._visitables.remove("schedulingConstraints"); + if (schedulingConstraints != null) { + this.schedulingConstraints = new V1alpha3PodGroupSchedulingConstraintsBuilder(schedulingConstraints); + this._visitables.get("schedulingConstraints").add(this.schedulingConstraints); + } else { + this._visitables.get("schedulingConstraints").remove(this.schedulingConstraints); + this.schedulingConstraints = null; + } + return (A) this; + } + + public A withSchedulingPolicy(V1alpha3PodGroupSchedulingPolicy schedulingPolicy) { + this._visitables.remove("schedulingPolicy"); + if (schedulingPolicy != null) { + this.schedulingPolicy = new V1alpha3PodGroupSchedulingPolicyBuilder(schedulingPolicy); + this._visitables.get("schedulingPolicy").add(this.schedulingPolicy); + } else { + this._visitables.get("schedulingPolicy").remove(this.schedulingPolicy); + this.schedulingPolicy = null; + } + return (A) this; + } + + public A withWorkloadRef(V1alpha3WorkloadReference workloadRef) { + this._visitables.remove("workloadRef"); + if (workloadRef != null) { + this.workloadRef = new V1alpha3WorkloadReferenceBuilder(workloadRef); + this._visitables.get("workloadRef").add(this.workloadRef); + } else { + this._visitables.get("workloadRef").remove(this.workloadRef); + this.workloadRef = null; + } + return (A) this; + } + public class DisruptionModeNested extends V1alpha3DisruptionModeFluent> implements Nested{ + + V1alpha3DisruptionModeBuilder builder; + + DisruptionModeNested(V1alpha3DisruptionMode item) { + this.builder = new V1alpha3DisruptionModeBuilder(this, item); + } + + public N and() { + return (N) V1alpha3PodGroupSpecFluent.this.withDisruptionMode(builder.build()); + } + + public N endDisruptionMode() { + return and(); + } + + } + public class ResourceClaimsNested extends V1alpha3PodGroupResourceClaimFluent> implements Nested{ + + V1alpha3PodGroupResourceClaimBuilder builder; + int index; + + ResourceClaimsNested(int index,V1alpha3PodGroupResourceClaim item) { + this.index = index; + this.builder = new V1alpha3PodGroupResourceClaimBuilder(this, item); + } + + public N and() { + return (N) V1alpha3PodGroupSpecFluent.this.setToResourceClaims(index, builder.build()); + } + + public N endResourceClaim() { + return and(); + } + + } + public class SchedulingConstraintsNested extends V1alpha3PodGroupSchedulingConstraintsFluent> implements Nested{ + + V1alpha3PodGroupSchedulingConstraintsBuilder builder; + + SchedulingConstraintsNested(V1alpha3PodGroupSchedulingConstraints item) { + this.builder = new V1alpha3PodGroupSchedulingConstraintsBuilder(this, item); + } + + public N and() { + return (N) V1alpha3PodGroupSpecFluent.this.withSchedulingConstraints(builder.build()); + } + + public N endSchedulingConstraints() { + return and(); + } + + } + public class SchedulingPolicyNested extends V1alpha3PodGroupSchedulingPolicyFluent> implements Nested{ + + V1alpha3PodGroupSchedulingPolicyBuilder builder; + + SchedulingPolicyNested(V1alpha3PodGroupSchedulingPolicy item) { + this.builder = new V1alpha3PodGroupSchedulingPolicyBuilder(this, item); + } + + public N and() { + return (N) V1alpha3PodGroupSpecFluent.this.withSchedulingPolicy(builder.build()); + } + + public N endSchedulingPolicy() { + return and(); + } + + } + public class WorkloadRefNested extends V1alpha3WorkloadReferenceFluent> implements Nested{ + + V1alpha3WorkloadReferenceBuilder builder; + + WorkloadRefNested(V1alpha3WorkloadReference item) { + this.builder = new V1alpha3WorkloadReferenceBuilder(this, item); + } + + public N and() { + return (N) V1alpha3PodGroupSpecFluent.this.withWorkloadRef(builder.build()); + } + + public N endWorkloadRef() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupStatusBuilder.java similarity index 55% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatusBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupStatusBuilder.java index f84d5cbdfe..1b8bba22d9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupStatusBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2PodGroupStatusBuilder extends V1alpha2PodGroupStatusFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3PodGroupStatusBuilder extends V1alpha3PodGroupStatusFluent implements VisitableBuilder{ - V1alpha2PodGroupStatusFluent fluent; + V1alpha3PodGroupStatusFluent fluent; - public V1alpha2PodGroupStatusBuilder() { - this(new V1alpha2PodGroupStatus()); + public V1alpha3PodGroupStatusBuilder() { + this(new V1alpha3PodGroupStatus()); } - public V1alpha2PodGroupStatusBuilder(V1alpha2PodGroupStatusFluent fluent) { - this(fluent, new V1alpha2PodGroupStatus()); + public V1alpha3PodGroupStatusBuilder(V1alpha3PodGroupStatusFluent fluent) { + this(fluent, new V1alpha3PodGroupStatus()); } - public V1alpha2PodGroupStatusBuilder(V1alpha2PodGroupStatus instance) { + public V1alpha3PodGroupStatusBuilder(V1alpha3PodGroupStatus instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2PodGroupStatusBuilder(V1alpha2PodGroupStatusFluent fluent,V1alpha2PodGroupStatus instance) { + public V1alpha3PodGroupStatusBuilder(V1alpha3PodGroupStatusFluent fluent,V1alpha3PodGroupStatus instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2PodGroupStatus build() { - V1alpha2PodGroupStatus buildable = new V1alpha2PodGroupStatus(); + public V1alpha3PodGroupStatus build() { + V1alpha3PodGroupStatus buildable = new V1alpha3PodGroupStatus(); buildable.setConditions(fluent.buildConditions()); buildable.setResourceClaimStatuses(fluent.buildResourceClaimStatuses()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupStatusFluent.java similarity index 77% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatusFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupStatusFluent.java index f2a1121f51..5cc0c173bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupStatusFluent.java @@ -25,26 +25,28 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2PodGroupStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3PodGroupStatusFluent> extends BaseFluent{ private ArrayList conditions; - private ArrayList resourceClaimStatuses; + private ArrayList resourceClaimStatuses; - public V1alpha2PodGroupStatusFluent() { + public V1alpha3PodGroupStatusFluent() { } - public V1alpha2PodGroupStatusFluent(V1alpha2PodGroupStatus instance) { + public V1alpha3PodGroupStatusFluent(V1alpha3PodGroupStatus instance) { this.copyInstance(instance); } public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -54,12 +56,12 @@ public A addAllToConditions(Collection items) { return (A) this; } - public A addAllToResourceClaimStatuses(Collection items) { + public A addAllToResourceClaimStatuses(Collection items) { if (this.resourceClaimStatuses == null) { - this.resourceClaimStatuses = new ArrayList(); + this.resourceClaimStatuses = new ArrayList<>(); } - for (V1alpha2PodGroupResourceClaimStatus item : items) { - V1alpha2PodGroupResourceClaimStatusBuilder builder = new V1alpha2PodGroupResourceClaimStatusBuilder(item); + for (V1alpha3PodGroupResourceClaimStatus item : items) { + V1alpha3PodGroupResourceClaimStatusBuilder builder = new V1alpha3PodGroupResourceClaimStatusBuilder(item); this._visitables.get("resourceClaimStatuses").add(builder); this.resourceClaimStatuses.add(builder); } @@ -67,24 +69,24 @@ public A addAllToResourceClaimStatuses(Collection addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public ResourceClaimStatusesNested addNewResourceClaimStatus() { - return new ResourceClaimStatusesNested(-1, null); + return new ResourceClaimStatusesNested<>(-1, null); } - public ResourceClaimStatusesNested addNewResourceClaimStatusLike(V1alpha2PodGroupResourceClaimStatus item) { - return new ResourceClaimStatusesNested(-1, item); + public ResourceClaimStatusesNested addNewResourceClaimStatusLike(V1alpha3PodGroupResourceClaimStatus item) { + return new ResourceClaimStatusesNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -96,7 +98,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -109,23 +111,23 @@ public A addToConditions(int index,V1Condition item) { return (A) this; } - public A addToResourceClaimStatuses(V1alpha2PodGroupResourceClaimStatus... items) { + public A addToResourceClaimStatuses(V1alpha3PodGroupResourceClaimStatus... items) { if (this.resourceClaimStatuses == null) { - this.resourceClaimStatuses = new ArrayList(); + this.resourceClaimStatuses = new ArrayList<>(); } - for (V1alpha2PodGroupResourceClaimStatus item : items) { - V1alpha2PodGroupResourceClaimStatusBuilder builder = new V1alpha2PodGroupResourceClaimStatusBuilder(item); + for (V1alpha3PodGroupResourceClaimStatus item : items) { + V1alpha3PodGroupResourceClaimStatusBuilder builder = new V1alpha3PodGroupResourceClaimStatusBuilder(item); this._visitables.get("resourceClaimStatuses").add(builder); this.resourceClaimStatuses.add(builder); } return (A) this; } - public A addToResourceClaimStatuses(int index,V1alpha2PodGroupResourceClaimStatus item) { + public A addToResourceClaimStatuses(int index,V1alpha3PodGroupResourceClaimStatus item) { if (this.resourceClaimStatuses == null) { - this.resourceClaimStatuses = new ArrayList(); + this.resourceClaimStatuses = new ArrayList<>(); } - V1alpha2PodGroupResourceClaimStatusBuilder builder = new V1alpha2PodGroupResourceClaimStatusBuilder(item); + V1alpha3PodGroupResourceClaimStatusBuilder builder = new V1alpha3PodGroupResourceClaimStatusBuilder(item); if (index < 0 || index >= this.resourceClaimStatuses.size()) { this._visitables.get("resourceClaimStatuses").add(builder); this.resourceClaimStatuses.add(builder); @@ -148,7 +150,7 @@ public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } - public V1alpha2PodGroupResourceClaimStatus buildFirstResourceClaimStatus() { + public V1alpha3PodGroupResourceClaimStatus buildFirstResourceClaimStatus() { return this.resourceClaimStatuses.get(0).build(); } @@ -156,7 +158,7 @@ public V1Condition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public V1alpha2PodGroupResourceClaimStatus buildLastResourceClaimStatus() { + public V1alpha3PodGroupResourceClaimStatus buildLastResourceClaimStatus() { return this.resourceClaimStatuses.get(resourceClaimStatuses.size() - 1).build(); } @@ -169,8 +171,8 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } - public V1alpha2PodGroupResourceClaimStatus buildMatchingResourceClaimStatus(Predicate predicate) { - for (V1alpha2PodGroupResourceClaimStatusBuilder item : resourceClaimStatuses) { + public V1alpha3PodGroupResourceClaimStatus buildMatchingResourceClaimStatus(Predicate predicate) { + for (V1alpha3PodGroupResourceClaimStatusBuilder item : resourceClaimStatuses) { if (predicate.test(item)) { return item.build(); } @@ -178,16 +180,16 @@ public V1alpha2PodGroupResourceClaimStatus buildMatchingResourceClaimStatus(Pred return null; } - public V1alpha2PodGroupResourceClaimStatus buildResourceClaimStatus(int index) { + public V1alpha3PodGroupResourceClaimStatus buildResourceClaimStatus(int index) { return this.resourceClaimStatuses.get(index).build(); } - public List buildResourceClaimStatuses() { + public List buildResourceClaimStatuses() { return this.resourceClaimStatuses != null ? build(resourceClaimStatuses) : null; } - protected void copyInstance(V1alpha2PodGroupStatus instance) { - instance = instance != null ? instance : new V1alpha2PodGroupStatus(); + protected void copyInstance(V1alpha3PodGroupStatus instance) { + instance = instance != null ? instance : new V1alpha3PodGroupStatus(); if (instance != null) { this.withConditions(instance.getConditions()); this.withResourceClaimStatuses(instance.getResourceClaimStatuses()); @@ -245,7 +247,7 @@ public ConditionsNested editMatchingCondition(Predicate p return this.setNewConditionLike(index, this.buildCondition(index)); } - public ResourceClaimStatusesNested editMatchingResourceClaimStatus(Predicate predicate) { + public ResourceClaimStatusesNested editMatchingResourceClaimStatus(Predicate predicate) { int index = -1; for (int i = 0;i < resourceClaimStatuses.size();i++) { if (predicate.test(resourceClaimStatuses.get(i))) { @@ -276,7 +278,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2PodGroupStatusFluent that = (V1alpha2PodGroupStatusFluent) o; + V1alpha3PodGroupStatusFluent that = (V1alpha3PodGroupStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -299,8 +301,8 @@ public boolean hasMatchingCondition(Predicate predicate) { return false; } - public boolean hasMatchingResourceClaimStatus(Predicate predicate) { - for (V1alpha2PodGroupResourceClaimStatusBuilder item : resourceClaimStatuses) { + public boolean hasMatchingResourceClaimStatus(Predicate predicate) { + for (V1alpha3PodGroupResourceClaimStatusBuilder item : resourceClaimStatuses) { if (predicate.test(item)) { return true; } @@ -328,12 +330,12 @@ public A removeAllFromConditions(Collection items) { return (A) this; } - public A removeAllFromResourceClaimStatuses(Collection items) { + public A removeAllFromResourceClaimStatuses(Collection items) { if (this.resourceClaimStatuses == null) { return (A) this; } - for (V1alpha2PodGroupResourceClaimStatus item : items) { - V1alpha2PodGroupResourceClaimStatusBuilder builder = new V1alpha2PodGroupResourceClaimStatusBuilder(item); + for (V1alpha3PodGroupResourceClaimStatus item : items) { + V1alpha3PodGroupResourceClaimStatusBuilder builder = new V1alpha3PodGroupResourceClaimStatusBuilder(item); _visitables.get("resourceClaimStatuses").remove(builder); this.resourceClaimStatuses.remove(builder); } @@ -352,12 +354,12 @@ public A removeFromConditions(V1Condition... items) { return (A) this; } - public A removeFromResourceClaimStatuses(V1alpha2PodGroupResourceClaimStatus... items) { + public A removeFromResourceClaimStatuses(V1alpha3PodGroupResourceClaimStatus... items) { if (this.resourceClaimStatuses == null) { return (A) this; } - for (V1alpha2PodGroupResourceClaimStatus item : items) { - V1alpha2PodGroupResourceClaimStatusBuilder builder = new V1alpha2PodGroupResourceClaimStatusBuilder(item); + for (V1alpha3PodGroupResourceClaimStatus item : items) { + V1alpha3PodGroupResourceClaimStatusBuilder builder = new V1alpha3PodGroupResourceClaimStatusBuilder(item); _visitables.get("resourceClaimStatuses").remove(builder); this.resourceClaimStatuses.remove(builder); } @@ -369,6 +371,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -380,14 +383,15 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } - public A removeMatchingFromResourceClaimStatuses(Predicate predicate) { + public A removeMatchingFromResourceClaimStatuses(Predicate predicate) { if (resourceClaimStatuses == null) { return (A) this; } - Iterator each = resourceClaimStatuses.iterator(); + Iterator each = resourceClaimStatuses.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resourceClaimStatuses"); while (each.hasNext()) { - V1alpha2PodGroupResourceClaimStatusBuilder builder = each.next(); + V1alpha3PodGroupResourceClaimStatusBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -397,16 +401,16 @@ public A removeMatchingFromResourceClaimStatuses(Predicate setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } - public ResourceClaimStatusesNested setNewResourceClaimStatusLike(int index,V1alpha2PodGroupResourceClaimStatus item) { - return new ResourceClaimStatusesNested(index, item); + public ResourceClaimStatusesNested setNewResourceClaimStatusLike(int index,V1alpha3PodGroupResourceClaimStatus item) { + return new ResourceClaimStatusesNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -419,11 +423,11 @@ public A setToConditions(int index,V1Condition item) { return (A) this; } - public A setToResourceClaimStatuses(int index,V1alpha2PodGroupResourceClaimStatus item) { + public A setToResourceClaimStatuses(int index,V1alpha3PodGroupResourceClaimStatus item) { if (this.resourceClaimStatuses == null) { - this.resourceClaimStatuses = new ArrayList(); + this.resourceClaimStatuses = new ArrayList<>(); } - V1alpha2PodGroupResourceClaimStatusBuilder builder = new V1alpha2PodGroupResourceClaimStatusBuilder(item); + V1alpha3PodGroupResourceClaimStatusBuilder builder = new V1alpha3PodGroupResourceClaimStatusBuilder(item); if (index < 0 || index >= this.resourceClaimStatuses.size()) { this._visitables.get("resourceClaimStatuses").add(builder); this.resourceClaimStatuses.add(builder); @@ -455,7 +459,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } @@ -478,13 +482,13 @@ public A withConditions(V1Condition... conditions) { return (A) this; } - public A withResourceClaimStatuses(List resourceClaimStatuses) { + public A withResourceClaimStatuses(List resourceClaimStatuses) { if (this.resourceClaimStatuses != null) { this._visitables.get("resourceClaimStatuses").clear(); } if (resourceClaimStatuses != null) { - this.resourceClaimStatuses = new ArrayList(); - for (V1alpha2PodGroupResourceClaimStatus item : resourceClaimStatuses) { + this.resourceClaimStatuses = new ArrayList<>(); + for (V1alpha3PodGroupResourceClaimStatus item : resourceClaimStatuses) { this.addToResourceClaimStatuses(item); } } else { @@ -493,13 +497,13 @@ public A withResourceClaimStatuses(List res return (A) this; } - public A withResourceClaimStatuses(V1alpha2PodGroupResourceClaimStatus... resourceClaimStatuses) { + public A withResourceClaimStatuses(V1alpha3PodGroupResourceClaimStatus... resourceClaimStatuses) { if (this.resourceClaimStatuses != null) { this.resourceClaimStatuses.clear(); _visitables.remove("resourceClaimStatuses"); } if (resourceClaimStatuses != null) { - for (V1alpha2PodGroupResourceClaimStatus item : resourceClaimStatuses) { + for (V1alpha3PodGroupResourceClaimStatus item : resourceClaimStatuses) { this.addToResourceClaimStatuses(item); } } @@ -516,7 +520,7 @@ public class ConditionsNested extends V1ConditionFluent> } public N and() { - return (N) V1alpha2PodGroupStatusFluent.this.setToConditions(index, builder.build()); + return (N) V1alpha3PodGroupStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { @@ -524,18 +528,18 @@ public N endCondition() { } } - public class ResourceClaimStatusesNested extends V1alpha2PodGroupResourceClaimStatusFluent> implements Nested{ + public class ResourceClaimStatusesNested extends V1alpha3PodGroupResourceClaimStatusFluent> implements Nested{ - V1alpha2PodGroupResourceClaimStatusBuilder builder; + V1alpha3PodGroupResourceClaimStatusBuilder builder; int index; - ResourceClaimStatusesNested(int index,V1alpha2PodGroupResourceClaimStatus item) { + ResourceClaimStatusesNested(int index,V1alpha3PodGroupResourceClaimStatus item) { this.index = index; - this.builder = new V1alpha2PodGroupResourceClaimStatusBuilder(this, item); + this.builder = new V1alpha3PodGroupResourceClaimStatusBuilder(this, item); } public N and() { - return (N) V1alpha2PodGroupStatusFluent.this.setToResourceClaimStatuses(index, builder.build()); + return (N) V1alpha3PodGroupStatusFluent.this.setToResourceClaimStatuses(index, builder.build()); } public N endResourceClaimStatus() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupTemplateBuilder.java similarity index 57% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupTemplateBuilder.java index b66ac6c1de..183e3cebe3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupTemplateBuilder.java @@ -13,33 +13,35 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2PodGroupTemplateBuilder extends V1alpha2PodGroupTemplateFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3PodGroupTemplateBuilder extends V1alpha3PodGroupTemplateFluent implements VisitableBuilder{ - V1alpha2PodGroupTemplateFluent fluent; + V1alpha3PodGroupTemplateFluent fluent; - public V1alpha2PodGroupTemplateBuilder() { - this(new V1alpha2PodGroupTemplate()); + public V1alpha3PodGroupTemplateBuilder() { + this(new V1alpha3PodGroupTemplate()); } - public V1alpha2PodGroupTemplateBuilder(V1alpha2PodGroupTemplateFluent fluent) { - this(fluent, new V1alpha2PodGroupTemplate()); + public V1alpha3PodGroupTemplateBuilder(V1alpha3PodGroupTemplateFluent fluent) { + this(fluent, new V1alpha3PodGroupTemplate()); } - public V1alpha2PodGroupTemplateBuilder(V1alpha2PodGroupTemplate instance) { + public V1alpha3PodGroupTemplateBuilder(V1alpha3PodGroupTemplate instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2PodGroupTemplateBuilder(V1alpha2PodGroupTemplateFluent fluent,V1alpha2PodGroupTemplate instance) { + public V1alpha3PodGroupTemplateBuilder(V1alpha3PodGroupTemplateFluent fluent,V1alpha3PodGroupTemplate instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2PodGroupTemplate build() { - V1alpha2PodGroupTemplate buildable = new V1alpha2PodGroupTemplate(); - buildable.setDisruptionMode(fluent.getDisruptionMode()); + public V1alpha3PodGroupTemplate build() { + V1alpha3PodGroupTemplate buildable = new V1alpha3PodGroupTemplate(); + buildable.setDisruptionMode(fluent.buildDisruptionMode()); buildable.setName(fluent.getName()); + buildable.setPreemptionPolicy(fluent.getPreemptionPolicy()); buildable.setPriority(fluent.getPriority()); buildable.setPriorityClassName(fluent.getPriorityClassName()); buildable.setResourceClaims(fluent.buildResourceClaims()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupTemplateFluent.java similarity index 61% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupTemplateFluent.java index e78d46167f..514d6b2ba2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupTemplateFluent.java @@ -27,34 +27,37 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2PodGroupTemplateFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3PodGroupTemplateFluent> extends BaseFluent{ - private String disruptionMode; + private V1alpha3DisruptionModeBuilder disruptionMode; private String name; + private String preemptionPolicy; private Integer priority; private String priorityClassName; - private ArrayList resourceClaims; - private V1alpha2PodGroupSchedulingConstraintsBuilder schedulingConstraints; - private V1alpha2PodGroupSchedulingPolicyBuilder schedulingPolicy; + private ArrayList resourceClaims; + private V1alpha3PodGroupSchedulingConstraintsBuilder schedulingConstraints; + private V1alpha3PodGroupSchedulingPolicyBuilder schedulingPolicy; - public V1alpha2PodGroupTemplateFluent() { + public V1alpha3PodGroupTemplateFluent() { } - public V1alpha2PodGroupTemplateFluent(V1alpha2PodGroupTemplate instance) { + public V1alpha3PodGroupTemplateFluent(V1alpha3PodGroupTemplate instance) { this.copyInstance(instance); } - public A addAllToResourceClaims(Collection items) { + public A addAllToResourceClaims(Collection items) { if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); + this.resourceClaims = new ArrayList<>(); } - for (V1alpha2PodGroupResourceClaim item : items) { - V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + for (V1alpha3PodGroupResourceClaim item : items) { + V1alpha3PodGroupResourceClaimBuilder builder = new V1alpha3PodGroupResourceClaimBuilder(item); this._visitables.get("resourceClaims").add(builder); this.resourceClaims.add(builder); } @@ -62,30 +65,30 @@ public A addAllToResourceClaims(Collection items) } public ResourceClaimsNested addNewResourceClaim() { - return new ResourceClaimsNested(-1, null); + return new ResourceClaimsNested<>(-1, null); } - public ResourceClaimsNested addNewResourceClaimLike(V1alpha2PodGroupResourceClaim item) { - return new ResourceClaimsNested(-1, item); + public ResourceClaimsNested addNewResourceClaimLike(V1alpha3PodGroupResourceClaim item) { + return new ResourceClaimsNested<>(-1, item); } - public A addToResourceClaims(V1alpha2PodGroupResourceClaim... items) { + public A addToResourceClaims(V1alpha3PodGroupResourceClaim... items) { if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); + this.resourceClaims = new ArrayList<>(); } - for (V1alpha2PodGroupResourceClaim item : items) { - V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + for (V1alpha3PodGroupResourceClaim item : items) { + V1alpha3PodGroupResourceClaimBuilder builder = new V1alpha3PodGroupResourceClaimBuilder(item); this._visitables.get("resourceClaims").add(builder); this.resourceClaims.add(builder); } return (A) this; } - public A addToResourceClaims(int index,V1alpha2PodGroupResourceClaim item) { + public A addToResourceClaims(int index,V1alpha3PodGroupResourceClaim item) { if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); + this.resourceClaims = new ArrayList<>(); } - V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + V1alpha3PodGroupResourceClaimBuilder builder = new V1alpha3PodGroupResourceClaimBuilder(item); if (index < 0 || index >= this.resourceClaims.size()) { this._visitables.get("resourceClaims").add(builder); this.resourceClaims.add(builder); @@ -96,16 +99,20 @@ public A addToResourceClaims(int index,V1alpha2PodGroupResourceClaim item) { return (A) this; } - public V1alpha2PodGroupResourceClaim buildFirstResourceClaim() { + public V1alpha3DisruptionMode buildDisruptionMode() { + return this.disruptionMode != null ? this.disruptionMode.build() : null; + } + + public V1alpha3PodGroupResourceClaim buildFirstResourceClaim() { return this.resourceClaims.get(0).build(); } - public V1alpha2PodGroupResourceClaim buildLastResourceClaim() { + public V1alpha3PodGroupResourceClaim buildLastResourceClaim() { return this.resourceClaims.get(resourceClaims.size() - 1).build(); } - public V1alpha2PodGroupResourceClaim buildMatchingResourceClaim(Predicate predicate) { - for (V1alpha2PodGroupResourceClaimBuilder item : resourceClaims) { + public V1alpha3PodGroupResourceClaim buildMatchingResourceClaim(Predicate predicate) { + for (V1alpha3PodGroupResourceClaimBuilder item : resourceClaims) { if (predicate.test(item)) { return item.build(); } @@ -113,27 +120,28 @@ public V1alpha2PodGroupResourceClaim buildMatchingResourceClaim(Predicate buildResourceClaims() { + public List buildResourceClaims() { return this.resourceClaims != null ? build(resourceClaims) : null; } - public V1alpha2PodGroupSchedulingConstraints buildSchedulingConstraints() { + public V1alpha3PodGroupSchedulingConstraints buildSchedulingConstraints() { return this.schedulingConstraints != null ? this.schedulingConstraints.build() : null; } - public V1alpha2PodGroupSchedulingPolicy buildSchedulingPolicy() { + public V1alpha3PodGroupSchedulingPolicy buildSchedulingPolicy() { return this.schedulingPolicy != null ? this.schedulingPolicy.build() : null; } - protected void copyInstance(V1alpha2PodGroupTemplate instance) { - instance = instance != null ? instance : new V1alpha2PodGroupTemplate(); + protected void copyInstance(V1alpha3PodGroupTemplate instance) { + instance = instance != null ? instance : new V1alpha3PodGroupTemplate(); if (instance != null) { this.withDisruptionMode(instance.getDisruptionMode()); this.withName(instance.getName()); + this.withPreemptionPolicy(instance.getPreemptionPolicy()); this.withPriority(instance.getPriority()); this.withPriorityClassName(instance.getPriorityClassName()); this.withResourceClaims(instance.getResourceClaims()); @@ -142,6 +150,10 @@ protected void copyInstance(V1alpha2PodGroupTemplate instance) { } } + public DisruptionModeNested editDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(null)); + } + public ResourceClaimsNested editFirstResourceClaim() { if (resourceClaims.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaims")); @@ -157,7 +169,7 @@ public ResourceClaimsNested editLastResourceClaim() { return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); } - public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { + public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { int index = -1; for (int i = 0;i < resourceClaims.size();i++) { if (predicate.test(resourceClaims.get(i))) { @@ -171,19 +183,27 @@ public ResourceClaimsNested editMatchingResourceClaim(Predicate editOrNewDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(new V1alpha3DisruptionModeBuilder().build())); + } + + public DisruptionModeNested editOrNewDisruptionModeLike(V1alpha3DisruptionMode item) { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(item)); + } + public SchedulingConstraintsNested editOrNewSchedulingConstraints() { - return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(new V1alpha2PodGroupSchedulingConstraintsBuilder().build())); + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(new V1alpha3PodGroupSchedulingConstraintsBuilder().build())); } - public SchedulingConstraintsNested editOrNewSchedulingConstraintsLike(V1alpha2PodGroupSchedulingConstraints item) { + public SchedulingConstraintsNested editOrNewSchedulingConstraintsLike(V1alpha3PodGroupSchedulingConstraints item) { return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(item)); } public SchedulingPolicyNested editOrNewSchedulingPolicy() { - return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(new V1alpha2PodGroupSchedulingPolicyBuilder().build())); + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(new V1alpha3PodGroupSchedulingPolicyBuilder().build())); } - public SchedulingPolicyNested editOrNewSchedulingPolicyLike(V1alpha2PodGroupSchedulingPolicy item) { + public SchedulingPolicyNested editOrNewSchedulingPolicyLike(V1alpha3PodGroupSchedulingPolicy item) { return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(item)); } @@ -212,13 +232,16 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2PodGroupTemplateFluent that = (V1alpha2PodGroupTemplateFluent) o; + V1alpha3PodGroupTemplateFluent that = (V1alpha3PodGroupTemplateFluent) o; if (!(Objects.equals(disruptionMode, that.disruptionMode))) { return false; } if (!(Objects.equals(name, that.name))) { return false; } + if (!(Objects.equals(preemptionPolicy, that.preemptionPolicy))) { + return false; + } if (!(Objects.equals(priority, that.priority))) { return false; } @@ -237,14 +260,14 @@ public boolean equals(Object o) { return true; } - public String getDisruptionMode() { - return this.disruptionMode; - } - public String getName() { return this.name; } + public String getPreemptionPolicy() { + return this.preemptionPolicy; + } + public Integer getPriority() { return this.priority; } @@ -257,8 +280,8 @@ public boolean hasDisruptionMode() { return this.disruptionMode != null; } - public boolean hasMatchingResourceClaim(Predicate predicate) { - for (V1alpha2PodGroupResourceClaimBuilder item : resourceClaims) { + public boolean hasMatchingResourceClaim(Predicate predicate) { + for (V1alpha3PodGroupResourceClaimBuilder item : resourceClaims) { if (predicate.test(item)) { return true; } @@ -270,6 +293,10 @@ public boolean hasName() { return this.name != null; } + public boolean hasPreemptionPolicy() { + return this.preemptionPolicy != null; + } + public boolean hasPriority() { return this.priority != null; } @@ -291,41 +318,42 @@ public boolean hasSchedulingPolicy() { } public int hashCode() { - return Objects.hash(disruptionMode, name, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy); + return Objects.hash(disruptionMode, name, preemptionPolicy, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy); } - public A removeAllFromResourceClaims(Collection items) { + public A removeAllFromResourceClaims(Collection items) { if (this.resourceClaims == null) { return (A) this; } - for (V1alpha2PodGroupResourceClaim item : items) { - V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + for (V1alpha3PodGroupResourceClaim item : items) { + V1alpha3PodGroupResourceClaimBuilder builder = new V1alpha3PodGroupResourceClaimBuilder(item); _visitables.get("resourceClaims").remove(builder); this.resourceClaims.remove(builder); } return (A) this; } - public A removeFromResourceClaims(V1alpha2PodGroupResourceClaim... items) { + public A removeFromResourceClaims(V1alpha3PodGroupResourceClaim... items) { if (this.resourceClaims == null) { return (A) this; } - for (V1alpha2PodGroupResourceClaim item : items) { - V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + for (V1alpha3PodGroupResourceClaim item : items) { + V1alpha3PodGroupResourceClaimBuilder builder = new V1alpha3PodGroupResourceClaimBuilder(item); _visitables.get("resourceClaims").remove(builder); this.resourceClaims.remove(builder); } return (A) this; } - public A removeMatchingFromResourceClaims(Predicate predicate) { + public A removeMatchingFromResourceClaims(Predicate predicate) { if (resourceClaims == null) { return (A) this; } - Iterator each = resourceClaims.iterator(); + Iterator each = resourceClaims.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resourceClaims"); while (each.hasNext()) { - V1alpha2PodGroupResourceClaimBuilder builder = each.next(); + V1alpha3PodGroupResourceClaimBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -334,15 +362,15 @@ public A removeMatchingFromResourceClaims(Predicate setNewResourceClaimLike(int index,V1alpha2PodGroupResourceClaim item) { - return new ResourceClaimsNested(index, item); + public ResourceClaimsNested setNewResourceClaimLike(int index,V1alpha3PodGroupResourceClaim item) { + return new ResourceClaimsNested<>(index, item); } - public A setToResourceClaims(int index,V1alpha2PodGroupResourceClaim item) { + public A setToResourceClaims(int index,V1alpha3PodGroupResourceClaim item) { if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); + this.resourceClaims = new ArrayList<>(); } - V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + V1alpha3PodGroupResourceClaimBuilder builder = new V1alpha3PodGroupResourceClaimBuilder(item); if (index < 0 || index >= this.resourceClaims.size()) { this._visitables.get("resourceClaims").add(builder); this.resourceClaims.add(builder); @@ -366,6 +394,11 @@ public String toString() { sb.append(name); sb.append(","); } + if (!(preemptionPolicy == null)) { + sb.append("preemptionPolicy:"); + sb.append(preemptionPolicy); + sb.append(","); + } if (!(priority == null)) { sb.append("priority:"); sb.append(priority); @@ -394,8 +427,15 @@ public String toString() { return sb.toString(); } - public A withDisruptionMode(String disruptionMode) { - this.disruptionMode = disruptionMode; + public A withDisruptionMode(V1alpha3DisruptionMode disruptionMode) { + this._visitables.remove("disruptionMode"); + if (disruptionMode != null) { + this.disruptionMode = new V1alpha3DisruptionModeBuilder(disruptionMode); + this._visitables.get("disruptionMode").add(this.disruptionMode); + } else { + this._visitables.get("disruptionMode").remove(this.disruptionMode); + this.disruptionMode = null; + } return (A) this; } @@ -404,20 +444,33 @@ public A withName(String name) { return (A) this; } + public DisruptionModeNested withNewDisruptionMode() { + return new DisruptionModeNested<>(null); + } + + public DisruptionModeNested withNewDisruptionModeLike(V1alpha3DisruptionMode item) { + return new DisruptionModeNested<>(item); + } + public SchedulingConstraintsNested withNewSchedulingConstraints() { - return new SchedulingConstraintsNested(null); + return new SchedulingConstraintsNested<>(null); } - public SchedulingConstraintsNested withNewSchedulingConstraintsLike(V1alpha2PodGroupSchedulingConstraints item) { - return new SchedulingConstraintsNested(item); + public SchedulingConstraintsNested withNewSchedulingConstraintsLike(V1alpha3PodGroupSchedulingConstraints item) { + return new SchedulingConstraintsNested<>(item); } public SchedulingPolicyNested withNewSchedulingPolicy() { - return new SchedulingPolicyNested(null); + return new SchedulingPolicyNested<>(null); } - public SchedulingPolicyNested withNewSchedulingPolicyLike(V1alpha2PodGroupSchedulingPolicy item) { - return new SchedulingPolicyNested(item); + public SchedulingPolicyNested withNewSchedulingPolicyLike(V1alpha3PodGroupSchedulingPolicy item) { + return new SchedulingPolicyNested<>(item); + } + + public A withPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return (A) this; } public A withPriority(Integer priority) { @@ -430,13 +483,13 @@ public A withPriorityClassName(String priorityClassName) { return (A) this; } - public A withResourceClaims(List resourceClaims) { + public A withResourceClaims(List resourceClaims) { if (this.resourceClaims != null) { this._visitables.get("resourceClaims").clear(); } if (resourceClaims != null) { - this.resourceClaims = new ArrayList(); - for (V1alpha2PodGroupResourceClaim item : resourceClaims) { + this.resourceClaims = new ArrayList<>(); + for (V1alpha3PodGroupResourceClaim item : resourceClaims) { this.addToResourceClaims(item); } } else { @@ -445,54 +498,71 @@ public A withResourceClaims(List resourceClaims) return (A) this; } - public A withResourceClaims(V1alpha2PodGroupResourceClaim... resourceClaims) { + public A withResourceClaims(V1alpha3PodGroupResourceClaim... resourceClaims) { if (this.resourceClaims != null) { this.resourceClaims.clear(); _visitables.remove("resourceClaims"); } if (resourceClaims != null) { - for (V1alpha2PodGroupResourceClaim item : resourceClaims) { + for (V1alpha3PodGroupResourceClaim item : resourceClaims) { this.addToResourceClaims(item); } } return (A) this; } - public A withSchedulingConstraints(V1alpha2PodGroupSchedulingConstraints schedulingConstraints) { + public A withSchedulingConstraints(V1alpha3PodGroupSchedulingConstraints schedulingConstraints) { this._visitables.remove("schedulingConstraints"); if (schedulingConstraints != null) { - this.schedulingConstraints = new V1alpha2PodGroupSchedulingConstraintsBuilder(schedulingConstraints); + this.schedulingConstraints = new V1alpha3PodGroupSchedulingConstraintsBuilder(schedulingConstraints); this._visitables.get("schedulingConstraints").add(this.schedulingConstraints); } else { - this.schedulingConstraints = null; this._visitables.get("schedulingConstraints").remove(this.schedulingConstraints); + this.schedulingConstraints = null; } return (A) this; } - public A withSchedulingPolicy(V1alpha2PodGroupSchedulingPolicy schedulingPolicy) { + public A withSchedulingPolicy(V1alpha3PodGroupSchedulingPolicy schedulingPolicy) { this._visitables.remove("schedulingPolicy"); if (schedulingPolicy != null) { - this.schedulingPolicy = new V1alpha2PodGroupSchedulingPolicyBuilder(schedulingPolicy); + this.schedulingPolicy = new V1alpha3PodGroupSchedulingPolicyBuilder(schedulingPolicy); this._visitables.get("schedulingPolicy").add(this.schedulingPolicy); } else { - this.schedulingPolicy = null; this._visitables.get("schedulingPolicy").remove(this.schedulingPolicy); + this.schedulingPolicy = null; } return (A) this; } - public class ResourceClaimsNested extends V1alpha2PodGroupResourceClaimFluent> implements Nested{ + public class DisruptionModeNested extends V1alpha3DisruptionModeFluent> implements Nested{ + + V1alpha3DisruptionModeBuilder builder; + + DisruptionModeNested(V1alpha3DisruptionMode item) { + this.builder = new V1alpha3DisruptionModeBuilder(this, item); + } + + public N and() { + return (N) V1alpha3PodGroupTemplateFluent.this.withDisruptionMode(builder.build()); + } + + public N endDisruptionMode() { + return and(); + } + + } + public class ResourceClaimsNested extends V1alpha3PodGroupResourceClaimFluent> implements Nested{ - V1alpha2PodGroupResourceClaimBuilder builder; + V1alpha3PodGroupResourceClaimBuilder builder; int index; - ResourceClaimsNested(int index,V1alpha2PodGroupResourceClaim item) { + ResourceClaimsNested(int index,V1alpha3PodGroupResourceClaim item) { this.index = index; - this.builder = new V1alpha2PodGroupResourceClaimBuilder(this, item); + this.builder = new V1alpha3PodGroupResourceClaimBuilder(this, item); } public N and() { - return (N) V1alpha2PodGroupTemplateFluent.this.setToResourceClaims(index, builder.build()); + return (N) V1alpha3PodGroupTemplateFluent.this.setToResourceClaims(index, builder.build()); } public N endResourceClaim() { @@ -500,16 +570,16 @@ public N endResourceClaim() { } } - public class SchedulingConstraintsNested extends V1alpha2PodGroupSchedulingConstraintsFluent> implements Nested{ + public class SchedulingConstraintsNested extends V1alpha3PodGroupSchedulingConstraintsFluent> implements Nested{ - V1alpha2PodGroupSchedulingConstraintsBuilder builder; + V1alpha3PodGroupSchedulingConstraintsBuilder builder; - SchedulingConstraintsNested(V1alpha2PodGroupSchedulingConstraints item) { - this.builder = new V1alpha2PodGroupSchedulingConstraintsBuilder(this, item); + SchedulingConstraintsNested(V1alpha3PodGroupSchedulingConstraints item) { + this.builder = new V1alpha3PodGroupSchedulingConstraintsBuilder(this, item); } public N and() { - return (N) V1alpha2PodGroupTemplateFluent.this.withSchedulingConstraints(builder.build()); + return (N) V1alpha3PodGroupTemplateFluent.this.withSchedulingConstraints(builder.build()); } public N endSchedulingConstraints() { @@ -517,16 +587,16 @@ public N endSchedulingConstraints() { } } - public class SchedulingPolicyNested extends V1alpha2PodGroupSchedulingPolicyFluent> implements Nested{ + public class SchedulingPolicyNested extends V1alpha3PodGroupSchedulingPolicyFluent> implements Nested{ - V1alpha2PodGroupSchedulingPolicyBuilder builder; + V1alpha3PodGroupSchedulingPolicyBuilder builder; - SchedulingPolicyNested(V1alpha2PodGroupSchedulingPolicy item) { - this.builder = new V1alpha2PodGroupSchedulingPolicyBuilder(this, item); + SchedulingPolicyNested(V1alpha3PodGroupSchedulingPolicy item) { + this.builder = new V1alpha3PodGroupSchedulingPolicyBuilder(this, item); } public N and() { - return (N) V1alpha2PodGroupTemplateFluent.this.withSchedulingPolicy(builder.build()); + return (N) V1alpha3PodGroupTemplateFluent.this.withSchedulingPolicy(builder.build()); } public N endSchedulingPolicy() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusBuilder.java index 61ba567790..bab9997567 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha3PoolStatusBuilder extends V1alpha3PoolStatusFluent implements VisitableBuilder{ V1alpha3PoolStatusFluent fluent; @@ -43,8 +44,10 @@ public V1alpha3PoolStatus build() { buildable.setDriver(fluent.getDriver()); buildable.setGeneration(fluent.getGeneration()); buildable.setNodeName(fluent.getNodeName()); + buildable.setPartitionSummary(fluent.buildPartitionSummary()); buildable.setPoolName(fluent.getPoolName()); buildable.setResourceSliceCount(fluent.getResourceSliceCount()); + buildable.setShareableSummary(fluent.buildShareableSummary()); buildable.setTotalDevices(fluent.getTotalDevices()); buildable.setUnavailableDevices(fluent.getUnavailableDevices()); buildable.setValidationError(fluent.getValidationError()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusFluent.java index 8929c34886..2f0a95d62b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusFluent.java @@ -13,27 +13,39 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Integer; import java.lang.Long; import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha3PoolStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3PoolStatusFluent> extends BaseFluent{ private Integer allocatedDevices; private Integer availableDevices; private String driver; private Long generation; private String nodeName; + private ArrayList partitionSummary; private String poolName; private Integer resourceSliceCount; + private V1alpha3ShareableSummaryStatusBuilder shareableSummary; private Integer totalDevices; private Integer unavailableDevices; private String validationError; @@ -45,6 +57,82 @@ public V1alpha3PoolStatusFluent(V1alpha3PoolStatus instance) { this.copyInstance(instance); } + public A addAllToPartitionSummary(Collection items) { + if (this.partitionSummary == null) { + this.partitionSummary = new ArrayList<>(); + } + for (V1alpha3PartitionTypeStatus item : items) { + V1alpha3PartitionTypeStatusBuilder builder = new V1alpha3PartitionTypeStatusBuilder(item); + this._visitables.get("partitionSummary").add(builder); + this.partitionSummary.add(builder); + } + return (A) this; + } + + public PartitionSummaryNested addNewPartitionSummary() { + return new PartitionSummaryNested<>(-1, null); + } + + public PartitionSummaryNested addNewPartitionSummaryLike(V1alpha3PartitionTypeStatus item) { + return new PartitionSummaryNested<>(-1, item); + } + + public A addToPartitionSummary(V1alpha3PartitionTypeStatus... items) { + if (this.partitionSummary == null) { + this.partitionSummary = new ArrayList<>(); + } + for (V1alpha3PartitionTypeStatus item : items) { + V1alpha3PartitionTypeStatusBuilder builder = new V1alpha3PartitionTypeStatusBuilder(item); + this._visitables.get("partitionSummary").add(builder); + this.partitionSummary.add(builder); + } + return (A) this; + } + + public A addToPartitionSummary(int index,V1alpha3PartitionTypeStatus item) { + if (this.partitionSummary == null) { + this.partitionSummary = new ArrayList<>(); + } + V1alpha3PartitionTypeStatusBuilder builder = new V1alpha3PartitionTypeStatusBuilder(item); + if (index < 0 || index >= this.partitionSummary.size()) { + this._visitables.get("partitionSummary").add(builder); + this.partitionSummary.add(builder); + } else { + this._visitables.get("partitionSummary").add(builder); + this.partitionSummary.add(index, builder); + } + return (A) this; + } + + public V1alpha3PartitionTypeStatus buildFirstPartitionSummary() { + return this.partitionSummary.get(0).build(); + } + + public V1alpha3PartitionTypeStatus buildLastPartitionSummary() { + return this.partitionSummary.get(partitionSummary.size() - 1).build(); + } + + public V1alpha3PartitionTypeStatus buildMatchingPartitionSummary(Predicate predicate) { + for (V1alpha3PartitionTypeStatusBuilder item : partitionSummary) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public List buildPartitionSummary() { + return this.partitionSummary != null ? build(partitionSummary) : null; + } + + public V1alpha3PartitionTypeStatus buildPartitionSummary(int index) { + return this.partitionSummary.get(index).build(); + } + + public V1alpha3ShareableSummaryStatus buildShareableSummary() { + return this.shareableSummary != null ? this.shareableSummary.build() : null; + } + protected void copyInstance(V1alpha3PoolStatus instance) { instance = instance != null ? instance : new V1alpha3PoolStatus(); if (instance != null) { @@ -53,14 +141,64 @@ protected void copyInstance(V1alpha3PoolStatus instance) { this.withDriver(instance.getDriver()); this.withGeneration(instance.getGeneration()); this.withNodeName(instance.getNodeName()); + this.withPartitionSummary(instance.getPartitionSummary()); this.withPoolName(instance.getPoolName()); this.withResourceSliceCount(instance.getResourceSliceCount()); + this.withShareableSummary(instance.getShareableSummary()); this.withTotalDevices(instance.getTotalDevices()); this.withUnavailableDevices(instance.getUnavailableDevices()); this.withValidationError(instance.getValidationError()); } } + public PartitionSummaryNested editFirstPartitionSummary() { + if (partitionSummary.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "partitionSummary")); + } + return this.setNewPartitionSummaryLike(0, this.buildPartitionSummary(0)); + } + + public PartitionSummaryNested editLastPartitionSummary() { + int index = partitionSummary.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "partitionSummary")); + } + return this.setNewPartitionSummaryLike(index, this.buildPartitionSummary(index)); + } + + public PartitionSummaryNested editMatchingPartitionSummary(Predicate predicate) { + int index = -1; + for (int i = 0;i < partitionSummary.size();i++) { + if (predicate.test(partitionSummary.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "partitionSummary")); + } + return this.setNewPartitionSummaryLike(index, this.buildPartitionSummary(index)); + } + + public ShareableSummaryNested editOrNewShareableSummary() { + return this.withNewShareableSummaryLike(Optional.ofNullable(this.buildShareableSummary()).orElse(new V1alpha3ShareableSummaryStatusBuilder().build())); + } + + public ShareableSummaryNested editOrNewShareableSummaryLike(V1alpha3ShareableSummaryStatus item) { + return this.withNewShareableSummaryLike(Optional.ofNullable(this.buildShareableSummary()).orElse(item)); + } + + public PartitionSummaryNested editPartitionSummary(int index) { + if (partitionSummary.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "partitionSummary")); + } + return this.setNewPartitionSummaryLike(index, this.buildPartitionSummary(index)); + } + + public ShareableSummaryNested editShareableSummary() { + return this.withNewShareableSummaryLike(Optional.ofNullable(this.buildShareableSummary()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -71,7 +209,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha3PoolStatusFluent that = (V1alpha3PoolStatusFluent) o; + V1alpha3PoolStatusFluent that = (V1alpha3PoolStatusFluent) o; if (!(Objects.equals(allocatedDevices, that.allocatedDevices))) { return false; } @@ -87,12 +225,18 @@ public boolean equals(Object o) { if (!(Objects.equals(nodeName, that.nodeName))) { return false; } + if (!(Objects.equals(partitionSummary, that.partitionSummary))) { + return false; + } if (!(Objects.equals(poolName, that.poolName))) { return false; } if (!(Objects.equals(resourceSliceCount, that.resourceSliceCount))) { return false; } + if (!(Objects.equals(shareableSummary, that.shareableSummary))) { + return false; + } if (!(Objects.equals(totalDevices, that.totalDevices))) { return false; } @@ -161,10 +305,23 @@ public boolean hasGeneration() { return this.generation != null; } + public boolean hasMatchingPartitionSummary(Predicate predicate) { + for (V1alpha3PartitionTypeStatusBuilder item : partitionSummary) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasNodeName() { return this.nodeName != null; } + public boolean hasPartitionSummary() { + return this.partitionSummary != null && !(this.partitionSummary.isEmpty()); + } + public boolean hasPoolName() { return this.poolName != null; } @@ -173,6 +330,10 @@ public boolean hasResourceSliceCount() { return this.resourceSliceCount != null; } + public boolean hasShareableSummary() { + return this.shareableSummary != null; + } + public boolean hasTotalDevices() { return this.totalDevices != null; } @@ -186,7 +347,67 @@ public boolean hasValidationError() { } public int hashCode() { - return Objects.hash(allocatedDevices, availableDevices, driver, generation, nodeName, poolName, resourceSliceCount, totalDevices, unavailableDevices, validationError); + return Objects.hash(allocatedDevices, availableDevices, driver, generation, nodeName, partitionSummary, poolName, resourceSliceCount, shareableSummary, totalDevices, unavailableDevices, validationError); + } + + public A removeAllFromPartitionSummary(Collection items) { + if (this.partitionSummary == null) { + return (A) this; + } + for (V1alpha3PartitionTypeStatus item : items) { + V1alpha3PartitionTypeStatusBuilder builder = new V1alpha3PartitionTypeStatusBuilder(item); + _visitables.get("partitionSummary").remove(builder); + this.partitionSummary.remove(builder); + } + return (A) this; + } + + public A removeFromPartitionSummary(V1alpha3PartitionTypeStatus... items) { + if (this.partitionSummary == null) { + return (A) this; + } + for (V1alpha3PartitionTypeStatus item : items) { + V1alpha3PartitionTypeStatusBuilder builder = new V1alpha3PartitionTypeStatusBuilder(item); + _visitables.get("partitionSummary").remove(builder); + this.partitionSummary.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromPartitionSummary(Predicate predicate) { + if (partitionSummary == null) { + return (A) this; + } + Iterator each = partitionSummary.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("partitionSummary"); + while (each.hasNext()) { + V1alpha3PartitionTypeStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public PartitionSummaryNested setNewPartitionSummaryLike(int index,V1alpha3PartitionTypeStatus item) { + return new PartitionSummaryNested<>(index, item); + } + + public A setToPartitionSummary(int index,V1alpha3PartitionTypeStatus item) { + if (this.partitionSummary == null) { + this.partitionSummary = new ArrayList<>(); + } + V1alpha3PartitionTypeStatusBuilder builder = new V1alpha3PartitionTypeStatusBuilder(item); + if (index < 0 || index >= this.partitionSummary.size()) { + this._visitables.get("partitionSummary").add(builder); + this.partitionSummary.add(builder); + } else { + this._visitables.get("partitionSummary").add(builder); + this.partitionSummary.set(index, builder); + } + return (A) this; } public String toString() { @@ -217,6 +438,11 @@ public String toString() { sb.append(nodeName); sb.append(","); } + if (!(partitionSummary == null) && !(partitionSummary.isEmpty())) { + sb.append("partitionSummary:"); + sb.append(partitionSummary); + sb.append(","); + } if (!(poolName == null)) { sb.append("poolName:"); sb.append(poolName); @@ -227,6 +453,11 @@ public String toString() { sb.append(resourceSliceCount); sb.append(","); } + if (!(shareableSummary == null)) { + sb.append("shareableSummary:"); + sb.append(shareableSummary); + sb.append(","); + } if (!(totalDevices == null)) { sb.append("totalDevices:"); sb.append(totalDevices); @@ -265,11 +496,47 @@ public A withGeneration(Long generation) { return (A) this; } + public ShareableSummaryNested withNewShareableSummary() { + return new ShareableSummaryNested<>(null); + } + + public ShareableSummaryNested withNewShareableSummaryLike(V1alpha3ShareableSummaryStatus item) { + return new ShareableSummaryNested<>(item); + } + public A withNodeName(String nodeName) { this.nodeName = nodeName; return (A) this; } + public A withPartitionSummary(List partitionSummary) { + if (this.partitionSummary != null) { + this._visitables.get("partitionSummary").clear(); + } + if (partitionSummary != null) { + this.partitionSummary = new ArrayList<>(); + for (V1alpha3PartitionTypeStatus item : partitionSummary) { + this.addToPartitionSummary(item); + } + } else { + this.partitionSummary = null; + } + return (A) this; + } + + public A withPartitionSummary(V1alpha3PartitionTypeStatus... partitionSummary) { + if (this.partitionSummary != null) { + this.partitionSummary.clear(); + _visitables.remove("partitionSummary"); + } + if (partitionSummary != null) { + for (V1alpha3PartitionTypeStatus item : partitionSummary) { + this.addToPartitionSummary(item); + } + } + return (A) this; + } + public A withPoolName(String poolName) { this.poolName = poolName; return (A) this; @@ -280,6 +547,18 @@ public A withResourceSliceCount(Integer resourceSliceCount) { return (A) this; } + public A withShareableSummary(V1alpha3ShareableSummaryStatus shareableSummary) { + this._visitables.remove("shareableSummary"); + if (shareableSummary != null) { + this.shareableSummary = new V1alpha3ShareableSummaryStatusBuilder(shareableSummary); + this._visitables.get("shareableSummary").add(this.shareableSummary); + } else { + this._visitables.get("shareableSummary").remove(this.shareableSummary); + this.shareableSummary = null; + } + return (A) this; + } + public A withTotalDevices(Integer totalDevices) { this.totalDevices = totalDevices; return (A) this; @@ -294,5 +573,40 @@ public A withValidationError(String validationError) { this.validationError = validationError; return (A) this; } + public class PartitionSummaryNested extends V1alpha3PartitionTypeStatusFluent> implements Nested{ + + V1alpha3PartitionTypeStatusBuilder builder; + int index; + + PartitionSummaryNested(int index,V1alpha3PartitionTypeStatus item) { + this.index = index; + this.builder = new V1alpha3PartitionTypeStatusBuilder(this, item); + } + + public N and() { + return (N) V1alpha3PoolStatusFluent.this.setToPartitionSummary(index, builder.build()); + } + + public N endPartitionSummary() { + return and(); + } + + } + public class ShareableSummaryNested extends V1alpha3ShareableSummaryStatusFluent> implements Nested{ + + V1alpha3ShareableSummaryStatusBuilder builder; + + ShareableSummaryNested(V1alpha3ShareableSummaryStatus item) { + this.builder = new V1alpha3ShareableSummaryStatusBuilder(this, item); + } + public N and() { + return (N) V1alpha3PoolStatusFluent.this.withShareableSummary(builder.build()); + } + + public N endShareableSummary() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestBuilder.java index 93152d2f69..094bc1a842 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha3ResourcePoolStatusRequestBuilder extends V1alpha3ResourcePoolStatusRequestFluent implements VisitableBuilder{ V1alpha3ResourcePoolStatusRequestFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestFluent.java index 6271083205..685a76d08a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha3ResourcePoolStatusRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3ResourcePoolStatusRequestFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha3ResourcePoolStatusRequestFluent that = (V1alpha3ResourcePoolStatusRequestFluent) o; + V1alpha3ResourcePoolStatusRequestFluent that = (V1alpha3ResourcePoolStatusRequestFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1alpha3ResourcePoolStatusRequestSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1alpha3ResourcePoolStatusRequestStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1alpha3ResourcePoolStatusRequestSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1alpha3ResourcePoolStatusRequestSpec spec) { this.spec = new V1alpha3ResourcePoolStatusRequestSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1alpha3ResourcePoolStatusRequestStatus status) { this.status = new V1alpha3ResourcePoolStatusRequestStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListBuilder.java index 1680f8c66c..db1283ccbb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha3ResourcePoolStatusRequestListBuilder extends V1alpha3ResourcePoolStatusRequestListFluent implements VisitableBuilder{ V1alpha3ResourcePoolStatusRequestListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListFluent.java index a2ca532c65..497d9db7ee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha3ResourcePoolStatusRequestListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3ResourcePoolStatusRequestListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1alpha3ResourcePoolStatusRequestListFluent(V1alpha3ResourcePoolStatusReq public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1alpha3ResourcePoolStatusRequest item : items) { V1alpha3ResourcePoolStatusRequestBuilder builder = new V1alpha3ResourcePoolStatusRequestBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1alpha3ResourcePoolStatusRequest item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1alpha3ResourcePoolStatusRequest... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1alpha3ResourcePoolStatusRequest item : items) { V1alpha3ResourcePoolStatusRequestBuilder builder = new V1alpha3ResourcePoolStatusRequestBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1alpha3ResourcePoolStatusRequest... items) { public A addToItems(int index,V1alpha3ResourcePoolStatusRequest item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1alpha3ResourcePoolStatusRequestBuilder builder = new V1alpha3ResourcePoolStatusRequestBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha3ResourcePoolStatusRequestListFluent that = (V1alpha3ResourcePoolStatusRequestListFluent) o; + V1alpha3ResourcePoolStatusRequestListFluent that = (V1alpha3ResourcePoolStatusRequestListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1alpha3ResourcePoolStatusRequestBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate setNewItemLike(int index,V1alpha3ResourcePoolStatusRequest item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1alpha3ResourcePoolStatusRequest item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1alpha3ResourcePoolStatusRequestBuilder builder = new V1alpha3ResourcePoolStatusRequestBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1alpha3ResourcePoolStatusRequest item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1alpha3ResourcePoolStatusRequestFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecBuilder.java index a424a7b574..00a29e0e6a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha3ResourcePoolStatusRequestSpecBuilder extends V1alpha3ResourcePoolStatusRequestSpecFluent implements VisitableBuilder{ V1alpha3ResourcePoolStatusRequestSpecFluent fluent; @@ -38,6 +39,7 @@ public V1alpha3ResourcePoolStatusRequestSpecBuilder(V1alpha3ResourcePoolStatusRe public V1alpha3ResourcePoolStatusRequestSpec build() { V1alpha3ResourcePoolStatusRequestSpec buildable = new V1alpha3ResourcePoolStatusRequestSpec(); + buildable.setDefaultPartitionTypeAttribute(fluent.getDefaultPartitionTypeAttribute()); buildable.setDriver(fluent.getDriver()); buildable.setLimit(fluent.getLimit()); buildable.setPoolName(fluent.getPoolName()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecFluent.java index e5f69b6a46..288b1a119c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecFluent.java @@ -19,13 +19,16 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha3ResourcePoolStatusRequestSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3ResourcePoolStatusRequestSpecFluent> extends BaseFluent{ + private String defaultPartitionTypeAttribute; private String driver; private Integer limit; private String poolName; @@ -40,6 +43,7 @@ public V1alpha3ResourcePoolStatusRequestSpecFluent(V1alpha3ResourcePoolStatusReq protected void copyInstance(V1alpha3ResourcePoolStatusRequestSpec instance) { instance = instance != null ? instance : new V1alpha3ResourcePoolStatusRequestSpec(); if (instance != null) { + this.withDefaultPartitionTypeAttribute(instance.getDefaultPartitionTypeAttribute()); this.withDriver(instance.getDriver()); this.withLimit(instance.getLimit()); this.withPoolName(instance.getPoolName()); @@ -56,7 +60,10 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha3ResourcePoolStatusRequestSpecFluent that = (V1alpha3ResourcePoolStatusRequestSpecFluent) o; + V1alpha3ResourcePoolStatusRequestSpecFluent that = (V1alpha3ResourcePoolStatusRequestSpecFluent) o; + if (!(Objects.equals(defaultPartitionTypeAttribute, that.defaultPartitionTypeAttribute))) { + return false; + } if (!(Objects.equals(driver, that.driver))) { return false; } @@ -69,6 +76,10 @@ public boolean equals(Object o) { return true; } + public String getDefaultPartitionTypeAttribute() { + return this.defaultPartitionTypeAttribute; + } + public String getDriver() { return this.driver; } @@ -81,6 +92,10 @@ public String getPoolName() { return this.poolName; } + public boolean hasDefaultPartitionTypeAttribute() { + return this.defaultPartitionTypeAttribute != null; + } + public boolean hasDriver() { return this.driver != null; } @@ -94,12 +109,17 @@ public boolean hasPoolName() { } public int hashCode() { - return Objects.hash(driver, limit, poolName); + return Objects.hash(defaultPartitionTypeAttribute, driver, limit, poolName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (!(defaultPartitionTypeAttribute == null)) { + sb.append("defaultPartitionTypeAttribute:"); + sb.append(defaultPartitionTypeAttribute); + sb.append(","); + } if (!(driver == null)) { sb.append("driver:"); sb.append(driver); @@ -118,6 +138,11 @@ public String toString() { return sb.toString(); } + public A withDefaultPartitionTypeAttribute(String defaultPartitionTypeAttribute) { + this.defaultPartitionTypeAttribute = defaultPartitionTypeAttribute; + return (A) this; + } + public A withDriver(String driver) { this.driver = driver; return (A) this; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusBuilder.java index 1cd09890d6..fbaf3c9fb9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1alpha3ResourcePoolStatusRequestStatusBuilder extends V1alpha3ResourcePoolStatusRequestStatusFluent implements VisitableBuilder{ V1alpha3ResourcePoolStatusRequestStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusFluent.java index 8212edf508..704d7e8818 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusFluent.java @@ -26,12 +26,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha3ResourcePoolStatusRequestStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3ResourcePoolStatusRequestStatusFluent> extends BaseFluent{ private ArrayList conditions; private Integer poolCount; @@ -46,7 +48,7 @@ public V1alpha3ResourcePoolStatusRequestStatusFluent(V1alpha3ResourcePoolStatusR public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -58,7 +60,7 @@ public A addAllToConditions(Collection items) { public A addAllToPools(Collection items) { if (this.pools == null) { - this.pools = new ArrayList(); + this.pools = new ArrayList<>(); } for (V1alpha3PoolStatus item : items) { V1alpha3PoolStatusBuilder builder = new V1alpha3PoolStatusBuilder(item); @@ -69,24 +71,24 @@ public A addAllToPools(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public PoolsNested addNewPool() { - return new PoolsNested(-1, null); + return new PoolsNested<>(-1, null); } public PoolsNested addNewPoolLike(V1alpha3PoolStatus item) { - return new PoolsNested(-1, item); + return new PoolsNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -98,7 +100,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -113,7 +115,7 @@ public A addToConditions(int index,V1Condition item) { public A addToPools(V1alpha3PoolStatus... items) { if (this.pools == null) { - this.pools = new ArrayList(); + this.pools = new ArrayList<>(); } for (V1alpha3PoolStatus item : items) { V1alpha3PoolStatusBuilder builder = new V1alpha3PoolStatusBuilder(item); @@ -125,7 +127,7 @@ public A addToPools(V1alpha3PoolStatus... items) { public A addToPools(int index,V1alpha3PoolStatus item) { if (this.pools == null) { - this.pools = new ArrayList(); + this.pools = new ArrayList<>(); } V1alpha3PoolStatusBuilder builder = new V1alpha3PoolStatusBuilder(item); if (index < 0 || index >= this.pools.size()) { @@ -279,7 +281,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha3ResourcePoolStatusRequestStatusFluent that = (V1alpha3ResourcePoolStatusRequestStatusFluent) o; + V1alpha3ResourcePoolStatusRequestStatusFluent that = (V1alpha3ResourcePoolStatusRequestStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -383,6 +385,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -399,6 +402,7 @@ public A removeMatchingFromPools(Predicate predicate) return (A) this; } Iterator each = pools.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("pools"); while (each.hasNext()) { V1alpha3PoolStatusBuilder builder = each.next(); @@ -411,16 +415,16 @@ public A removeMatchingFromPools(Predicate predicate) } public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public PoolsNested setNewPoolLike(int index,V1alpha3PoolStatus item) { - return new PoolsNested(index, item); + return new PoolsNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -435,7 +439,7 @@ public A setToConditions(int index,V1Condition item) { public A setToPools(int index,V1alpha3PoolStatus item) { if (this.pools == null) { - this.pools = new ArrayList(); + this.pools = new ArrayList<>(); } V1alpha3PoolStatusBuilder builder = new V1alpha3PoolStatusBuilder(item); if (index < 0 || index >= this.pools.size()) { @@ -474,7 +478,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } @@ -507,7 +511,7 @@ public A withPools(List pools) { this._visitables.get("pools").clear(); } if (pools != null) { - this.pools = new ArrayList(); + this.pools = new ArrayList<>(); for (V1alpha3PoolStatus item : pools) { this.addToPools(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableCapacityStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableCapacityStatusBuilder.java new file mode 100644 index 0000000000..059a2e3f22 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableCapacityStatusBuilder.java @@ -0,0 +1,49 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3ShareableCapacityStatusBuilder extends V1alpha3ShareableCapacityStatusFluent implements VisitableBuilder{ + + V1alpha3ShareableCapacityStatusFluent fluent; + + public V1alpha3ShareableCapacityStatusBuilder() { + this(new V1alpha3ShareableCapacityStatus()); + } + + public V1alpha3ShareableCapacityStatusBuilder(V1alpha3ShareableCapacityStatusFluent fluent) { + this(fluent, new V1alpha3ShareableCapacityStatus()); + } + + public V1alpha3ShareableCapacityStatusBuilder(V1alpha3ShareableCapacityStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3ShareableCapacityStatusBuilder(V1alpha3ShareableCapacityStatusFluent fluent,V1alpha3ShareableCapacityStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ShareableCapacityStatus build() { + V1alpha3ShareableCapacityStatus buildable = new V1alpha3ShareableCapacityStatus(); + buildable.setAvailable(fluent.getAvailable()); + buildable.setConsumed(fluent.getConsumed()); + buildable.setName(fluent.getName()); + buildable.setTotal(fluent.getTotal()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableCapacityStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableCapacityStatusFluent.java new file mode 100644 index 0000000000..8c253e019d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableCapacityStatusFluent.java @@ -0,0 +1,173 @@ +/* +Copyright 2026 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 io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3ShareableCapacityStatusFluent> extends BaseFluent{ + + private Quantity available; + private Quantity consumed; + private String name; + private Quantity total; + + public V1alpha3ShareableCapacityStatusFluent() { + } + + public V1alpha3ShareableCapacityStatusFluent(V1alpha3ShareableCapacityStatus instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha3ShareableCapacityStatus instance) { + instance = instance != null ? instance : new V1alpha3ShareableCapacityStatus(); + if (instance != null) { + this.withAvailable(instance.getAvailable()); + this.withConsumed(instance.getConsumed()); + this.withName(instance.getName()); + this.withTotal(instance.getTotal()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3ShareableCapacityStatusFluent that = (V1alpha3ShareableCapacityStatusFluent) o; + if (!(Objects.equals(available, that.available))) { + return false; + } + if (!(Objects.equals(consumed, that.consumed))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(total, that.total))) { + return false; + } + return true; + } + + public Quantity getAvailable() { + return this.available; + } + + public Quantity getConsumed() { + return this.consumed; + } + + public String getName() { + return this.name; + } + + public Quantity getTotal() { + return this.total; + } + + public boolean hasAvailable() { + return this.available != null; + } + + public boolean hasConsumed() { + return this.consumed != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasTotal() { + return this.total != null; + } + + public int hashCode() { + return Objects.hash(available, consumed, name, total); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(available == null)) { + sb.append("available:"); + sb.append(available); + sb.append(","); + } + if (!(consumed == null)) { + sb.append("consumed:"); + sb.append(consumed); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(total == null)) { + sb.append("total:"); + sb.append(total); + } + sb.append("}"); + return sb.toString(); + } + + public A withAvailable(Quantity available) { + this.available = available; + return (A) this; + } + + public A withConsumed(Quantity consumed) { + this.consumed = consumed; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNewAvailable(String value) { + return (A) this.withAvailable(new Quantity(value)); + } + + public A withNewConsumed(String value) { + return (A) this.withConsumed(new Quantity(value)); + } + + public A withNewTotal(String value) { + return (A) this.withTotal(new Quantity(value)); + } + + public A withTotal(Quantity total) { + this.total = total; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableSummaryStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableSummaryStatusBuilder.java new file mode 100644 index 0000000000..0d4e0e1829 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableSummaryStatusBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3ShareableSummaryStatusBuilder extends V1alpha3ShareableSummaryStatusFluent implements VisitableBuilder{ + + V1alpha3ShareableSummaryStatusFluent fluent; + + public V1alpha3ShareableSummaryStatusBuilder() { + this(new V1alpha3ShareableSummaryStatus()); + } + + public V1alpha3ShareableSummaryStatusBuilder(V1alpha3ShareableSummaryStatusFluent fluent) { + this(fluent, new V1alpha3ShareableSummaryStatus()); + } + + public V1alpha3ShareableSummaryStatusBuilder(V1alpha3ShareableSummaryStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3ShareableSummaryStatusBuilder(V1alpha3ShareableSummaryStatusFluent fluent,V1alpha3ShareableSummaryStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ShareableSummaryStatus build() { + V1alpha3ShareableSummaryStatus buildable = new V1alpha3ShareableSummaryStatus(); + buildable.setCapacity(fluent.buildCapacity()); + buildable.setFullyAvailableDevices(fluent.getFullyAvailableDevices()); + buildable.setPartiallyAvailableDevices(fluent.getPartiallyAvailableDevices()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableSummaryStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableSummaryStatusFluent.java new file mode 100644 index 0000000000..fcee309e87 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableSummaryStatusFluent.java @@ -0,0 +1,359 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3ShareableSummaryStatusFluent> extends BaseFluent{ + + private ArrayList capacity; + private Integer fullyAvailableDevices; + private Integer partiallyAvailableDevices; + + public V1alpha3ShareableSummaryStatusFluent() { + } + + public V1alpha3ShareableSummaryStatusFluent(V1alpha3ShareableSummaryStatus instance) { + this.copyInstance(instance); + } + + public A addAllToCapacity(Collection items) { + if (this.capacity == null) { + this.capacity = new ArrayList<>(); + } + for (V1alpha3ShareableCapacityStatus item : items) { + V1alpha3ShareableCapacityStatusBuilder builder = new V1alpha3ShareableCapacityStatusBuilder(item); + this._visitables.get("capacity").add(builder); + this.capacity.add(builder); + } + return (A) this; + } + + public CapacityNested addNewCapacity() { + return new CapacityNested<>(-1, null); + } + + public CapacityNested addNewCapacityLike(V1alpha3ShareableCapacityStatus item) { + return new CapacityNested<>(-1, item); + } + + public A addToCapacity(V1alpha3ShareableCapacityStatus... items) { + if (this.capacity == null) { + this.capacity = new ArrayList<>(); + } + for (V1alpha3ShareableCapacityStatus item : items) { + V1alpha3ShareableCapacityStatusBuilder builder = new V1alpha3ShareableCapacityStatusBuilder(item); + this._visitables.get("capacity").add(builder); + this.capacity.add(builder); + } + return (A) this; + } + + public A addToCapacity(int index,V1alpha3ShareableCapacityStatus item) { + if (this.capacity == null) { + this.capacity = new ArrayList<>(); + } + V1alpha3ShareableCapacityStatusBuilder builder = new V1alpha3ShareableCapacityStatusBuilder(item); + if (index < 0 || index >= this.capacity.size()) { + this._visitables.get("capacity").add(builder); + this.capacity.add(builder); + } else { + this._visitables.get("capacity").add(builder); + this.capacity.add(index, builder); + } + return (A) this; + } + + public List buildCapacity() { + return this.capacity != null ? build(capacity) : null; + } + + public V1alpha3ShareableCapacityStatus buildCapacity(int index) { + return this.capacity.get(index).build(); + } + + public V1alpha3ShareableCapacityStatus buildFirstCapacity() { + return this.capacity.get(0).build(); + } + + public V1alpha3ShareableCapacityStatus buildLastCapacity() { + return this.capacity.get(capacity.size() - 1).build(); + } + + public V1alpha3ShareableCapacityStatus buildMatchingCapacity(Predicate predicate) { + for (V1alpha3ShareableCapacityStatusBuilder item : capacity) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + protected void copyInstance(V1alpha3ShareableSummaryStatus instance) { + instance = instance != null ? instance : new V1alpha3ShareableSummaryStatus(); + if (instance != null) { + this.withCapacity(instance.getCapacity()); + this.withFullyAvailableDevices(instance.getFullyAvailableDevices()); + this.withPartiallyAvailableDevices(instance.getPartiallyAvailableDevices()); + } + } + + public CapacityNested editCapacity(int index) { + if (capacity.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "capacity")); + } + return this.setNewCapacityLike(index, this.buildCapacity(index)); + } + + public CapacityNested editFirstCapacity() { + if (capacity.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "capacity")); + } + return this.setNewCapacityLike(0, this.buildCapacity(0)); + } + + public CapacityNested editLastCapacity() { + int index = capacity.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "capacity")); + } + return this.setNewCapacityLike(index, this.buildCapacity(index)); + } + + public CapacityNested editMatchingCapacity(Predicate predicate) { + int index = -1; + for (int i = 0;i < capacity.size();i++) { + if (predicate.test(capacity.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "capacity")); + } + return this.setNewCapacityLike(index, this.buildCapacity(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3ShareableSummaryStatusFluent that = (V1alpha3ShareableSummaryStatusFluent) o; + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(fullyAvailableDevices, that.fullyAvailableDevices))) { + return false; + } + if (!(Objects.equals(partiallyAvailableDevices, that.partiallyAvailableDevices))) { + return false; + } + return true; + } + + public Integer getFullyAvailableDevices() { + return this.fullyAvailableDevices; + } + + public Integer getPartiallyAvailableDevices() { + return this.partiallyAvailableDevices; + } + + public boolean hasCapacity() { + return this.capacity != null && !(this.capacity.isEmpty()); + } + + public boolean hasFullyAvailableDevices() { + return this.fullyAvailableDevices != null; + } + + public boolean hasMatchingCapacity(Predicate predicate) { + for (V1alpha3ShareableCapacityStatusBuilder item : capacity) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPartiallyAvailableDevices() { + return this.partiallyAvailableDevices != null; + } + + public int hashCode() { + return Objects.hash(capacity, fullyAvailableDevices, partiallyAvailableDevices); + } + + public A removeAllFromCapacity(Collection items) { + if (this.capacity == null) { + return (A) this; + } + for (V1alpha3ShareableCapacityStatus item : items) { + V1alpha3ShareableCapacityStatusBuilder builder = new V1alpha3ShareableCapacityStatusBuilder(item); + _visitables.get("capacity").remove(builder); + this.capacity.remove(builder); + } + return (A) this; + } + + public A removeFromCapacity(V1alpha3ShareableCapacityStatus... items) { + if (this.capacity == null) { + return (A) this; + } + for (V1alpha3ShareableCapacityStatus item : items) { + V1alpha3ShareableCapacityStatusBuilder builder = new V1alpha3ShareableCapacityStatusBuilder(item); + _visitables.get("capacity").remove(builder); + this.capacity.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromCapacity(Predicate predicate) { + if (capacity == null) { + return (A) this; + } + Iterator each = capacity.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("capacity"); + while (each.hasNext()) { + V1alpha3ShareableCapacityStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public CapacityNested setNewCapacityLike(int index,V1alpha3ShareableCapacityStatus item) { + return new CapacityNested<>(index, item); + } + + public A setToCapacity(int index,V1alpha3ShareableCapacityStatus item) { + if (this.capacity == null) { + this.capacity = new ArrayList<>(); + } + V1alpha3ShareableCapacityStatusBuilder builder = new V1alpha3ShareableCapacityStatusBuilder(item); + if (index < 0 || index >= this.capacity.size()) { + this._visitables.get("capacity").add(builder); + this.capacity.add(builder); + } else { + this._visitables.get("capacity").add(builder); + this.capacity.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(fullyAvailableDevices == null)) { + sb.append("fullyAvailableDevices:"); + sb.append(fullyAvailableDevices); + sb.append(","); + } + if (!(partiallyAvailableDevices == null)) { + sb.append("partiallyAvailableDevices:"); + sb.append(partiallyAvailableDevices); + } + sb.append("}"); + return sb.toString(); + } + + public A withCapacity(List capacity) { + if (this.capacity != null) { + this._visitables.get("capacity").clear(); + } + if (capacity != null) { + this.capacity = new ArrayList<>(); + for (V1alpha3ShareableCapacityStatus item : capacity) { + this.addToCapacity(item); + } + } else { + this.capacity = null; + } + return (A) this; + } + + public A withCapacity(V1alpha3ShareableCapacityStatus... capacity) { + if (this.capacity != null) { + this.capacity.clear(); + _visitables.remove("capacity"); + } + if (capacity != null) { + for (V1alpha3ShareableCapacityStatus item : capacity) { + this.addToCapacity(item); + } + } + return (A) this; + } + + public A withFullyAvailableDevices(Integer fullyAvailableDevices) { + this.fullyAvailableDevices = fullyAvailableDevices; + return (A) this; + } + + public A withPartiallyAvailableDevices(Integer partiallyAvailableDevices) { + this.partiallyAvailableDevices = partiallyAvailableDevices; + return (A) this; + } + public class CapacityNested extends V1alpha3ShareableCapacityStatusFluent> implements Nested{ + + V1alpha3ShareableCapacityStatusBuilder builder; + int index; + + CapacityNested(int index,V1alpha3ShareableCapacityStatus item) { + this.index = index; + this.builder = new V1alpha3ShareableCapacityStatusBuilder(this, item); + } + + public N and() { + return (N) V1alpha3ShareableSummaryStatusFluent.this.setToCapacity(index, builder.build()); + } + + public N endCapacity() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TopologyConstraintBuilder.java similarity index 53% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraintBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TopologyConstraintBuilder.java index 5a203eeda1..b491845809 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TopologyConstraintBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2TopologyConstraintBuilder extends V1alpha2TopologyConstraintFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3TopologyConstraintBuilder extends V1alpha3TopologyConstraintFluent implements VisitableBuilder{ - V1alpha2TopologyConstraintFluent fluent; + V1alpha3TopologyConstraintFluent fluent; - public V1alpha2TopologyConstraintBuilder() { - this(new V1alpha2TopologyConstraint()); + public V1alpha3TopologyConstraintBuilder() { + this(new V1alpha3TopologyConstraint()); } - public V1alpha2TopologyConstraintBuilder(V1alpha2TopologyConstraintFluent fluent) { - this(fluent, new V1alpha2TopologyConstraint()); + public V1alpha3TopologyConstraintBuilder(V1alpha3TopologyConstraintFluent fluent) { + this(fluent, new V1alpha3TopologyConstraint()); } - public V1alpha2TopologyConstraintBuilder(V1alpha2TopologyConstraint instance) { + public V1alpha3TopologyConstraintBuilder(V1alpha3TopologyConstraint instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2TopologyConstraintBuilder(V1alpha2TopologyConstraintFluent fluent,V1alpha2TopologyConstraint instance) { + public V1alpha3TopologyConstraintBuilder(V1alpha3TopologyConstraintFluent fluent,V1alpha3TopologyConstraint instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2TopologyConstraint build() { - V1alpha2TopologyConstraint buildable = new V1alpha2TopologyConstraint(); + public V1alpha3TopologyConstraint build() { + V1alpha3TopologyConstraint buildable = new V1alpha3TopologyConstraint(); buildable.setKey(fluent.getKey()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TopologyConstraintFluent.java similarity index 76% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraintFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TopologyConstraintFluent.java index d3c2f0edec..41f66451a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TopologyConstraintFluent.java @@ -18,24 +18,26 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2TopologyConstraintFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3TopologyConstraintFluent> extends BaseFluent{ private String key; - public V1alpha2TopologyConstraintFluent() { + public V1alpha3TopologyConstraintFluent() { } - public V1alpha2TopologyConstraintFluent(V1alpha2TopologyConstraint instance) { + public V1alpha3TopologyConstraintFluent(V1alpha3TopologyConstraint instance) { this.copyInstance(instance); } - protected void copyInstance(V1alpha2TopologyConstraint instance) { - instance = instance != null ? instance : new V1alpha2TopologyConstraint(); + protected void copyInstance(V1alpha3TopologyConstraint instance) { + instance = instance != null ? instance : new V1alpha3TopologyConstraint(); if (instance != null) { this.withKey(instance.getKey()); } @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2TopologyConstraintFluent that = (V1alpha2TopologyConstraintFluent) o; + V1alpha3TopologyConstraintFluent that = (V1alpha3TopologyConstraintFluent) o; if (!(Objects.equals(key, that.key))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TypedLocalObjectReferenceBuilder.java similarity index 53% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReferenceBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TypedLocalObjectReferenceBuilder.java index 869dd21147..8a76974a90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TypedLocalObjectReferenceBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2TypedLocalObjectReferenceBuilder extends V1alpha2TypedLocalObjectReferenceFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3TypedLocalObjectReferenceBuilder extends V1alpha3TypedLocalObjectReferenceFluent implements VisitableBuilder{ - V1alpha2TypedLocalObjectReferenceFluent fluent; + V1alpha3TypedLocalObjectReferenceFluent fluent; - public V1alpha2TypedLocalObjectReferenceBuilder() { - this(new V1alpha2TypedLocalObjectReference()); + public V1alpha3TypedLocalObjectReferenceBuilder() { + this(new V1alpha3TypedLocalObjectReference()); } - public V1alpha2TypedLocalObjectReferenceBuilder(V1alpha2TypedLocalObjectReferenceFluent fluent) { - this(fluent, new V1alpha2TypedLocalObjectReference()); + public V1alpha3TypedLocalObjectReferenceBuilder(V1alpha3TypedLocalObjectReferenceFluent fluent) { + this(fluent, new V1alpha3TypedLocalObjectReference()); } - public V1alpha2TypedLocalObjectReferenceBuilder(V1alpha2TypedLocalObjectReference instance) { + public V1alpha3TypedLocalObjectReferenceBuilder(V1alpha3TypedLocalObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2TypedLocalObjectReferenceBuilder(V1alpha2TypedLocalObjectReferenceFluent fluent,V1alpha2TypedLocalObjectReference instance) { + public V1alpha3TypedLocalObjectReferenceBuilder(V1alpha3TypedLocalObjectReferenceFluent fluent,V1alpha3TypedLocalObjectReference instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2TypedLocalObjectReference build() { - V1alpha2TypedLocalObjectReference buildable = new V1alpha2TypedLocalObjectReference(); + public V1alpha3TypedLocalObjectReference build() { + V1alpha3TypedLocalObjectReference buildable = new V1alpha3TypedLocalObjectReference(); buildable.setApiGroup(fluent.getApiGroup()); buildable.setKind(fluent.getKind()); buildable.setName(fluent.getName()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TypedLocalObjectReferenceFluent.java similarity index 82% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReferenceFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TypedLocalObjectReferenceFluent.java index bb7aebb3d6..c574593434 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TypedLocalObjectReferenceFluent.java @@ -18,26 +18,28 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2TypedLocalObjectReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3TypedLocalObjectReferenceFluent> extends BaseFluent{ private String apiGroup; private String kind; private String name; - public V1alpha2TypedLocalObjectReferenceFluent() { + public V1alpha3TypedLocalObjectReferenceFluent() { } - public V1alpha2TypedLocalObjectReferenceFluent(V1alpha2TypedLocalObjectReference instance) { + public V1alpha3TypedLocalObjectReferenceFluent(V1alpha3TypedLocalObjectReference instance) { this.copyInstance(instance); } - protected void copyInstance(V1alpha2TypedLocalObjectReference instance) { - instance = instance != null ? instance : new V1alpha2TypedLocalObjectReference(); + protected void copyInstance(V1alpha3TypedLocalObjectReference instance) { + instance = instance != null ? instance : new V1alpha3TypedLocalObjectReference(); if (instance != null) { this.withApiGroup(instance.getApiGroup()); this.withKind(instance.getKind()); @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2TypedLocalObjectReferenceFluent that = (V1alpha2TypedLocalObjectReferenceFluent) o; + V1alpha3TypedLocalObjectReferenceFluent that = (V1alpha3TypedLocalObjectReferenceFluent) o; if (!(Objects.equals(apiGroup, that.apiGroup))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadBuilder.java similarity index 59% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadBuilder.java index 8300822ae7..6d4f0d9ac9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2WorkloadBuilder extends V1alpha2WorkloadFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3WorkloadBuilder extends V1alpha3WorkloadFluent implements VisitableBuilder{ - V1alpha2WorkloadFluent fluent; + V1alpha3WorkloadFluent fluent; - public V1alpha2WorkloadBuilder() { - this(new V1alpha2Workload()); + public V1alpha3WorkloadBuilder() { + this(new V1alpha3Workload()); } - public V1alpha2WorkloadBuilder(V1alpha2WorkloadFluent fluent) { - this(fluent, new V1alpha2Workload()); + public V1alpha3WorkloadBuilder(V1alpha3WorkloadFluent fluent) { + this(fluent, new V1alpha3Workload()); } - public V1alpha2WorkloadBuilder(V1alpha2Workload instance) { + public V1alpha3WorkloadBuilder(V1alpha3Workload instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2WorkloadBuilder(V1alpha2WorkloadFluent fluent,V1alpha2Workload instance) { + public V1alpha3WorkloadBuilder(V1alpha3WorkloadFluent fluent,V1alpha3Workload instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2Workload build() { - V1alpha2Workload buildable = new V1alpha2Workload(); + public V1alpha3Workload build() { + V1alpha3Workload buildable = new V1alpha3Workload(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); buildable.setMetadata(fluent.buildMetadata()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadFluent.java similarity index 79% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadFluent.java index fab4f97217..2e11da83e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadFluent.java @@ -20,22 +20,24 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2WorkloadFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3WorkloadFluent> extends BaseFluent{ private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; - private V1alpha2WorkloadSpecBuilder spec; + private V1alpha3WorkloadSpecBuilder spec; - public V1alpha2WorkloadFluent() { + public V1alpha3WorkloadFluent() { } - public V1alpha2WorkloadFluent(V1alpha2Workload instance) { + public V1alpha3WorkloadFluent(V1alpha3Workload instance) { this.copyInstance(instance); } @@ -43,12 +45,12 @@ public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public V1alpha2WorkloadSpec buildSpec() { + public V1alpha3WorkloadSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - protected void copyInstance(V1alpha2Workload instance) { - instance = instance != null ? instance : new V1alpha2Workload(); + protected void copyInstance(V1alpha3Workload instance) { + instance = instance != null ? instance : new V1alpha3Workload(); if (instance != null) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -70,10 +72,10 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { } public SpecNested editOrNewSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha2WorkloadSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha3WorkloadSpecBuilder().build())); } - public SpecNested editOrNewSpecLike(V1alpha2WorkloadSpec item) { + public SpecNested editOrNewSpecLike(V1alpha3WorkloadSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2WorkloadFluent that = (V1alpha2WorkloadFluent) o; + V1alpha3WorkloadFluent that = (V1alpha3WorkloadFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,36 +179,36 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } - public SpecNested withNewSpecLike(V1alpha2WorkloadSpec item) { - return new SpecNested(item); + public SpecNested withNewSpecLike(V1alpha3WorkloadSpec item) { + return new SpecNested<>(item); } - public A withSpec(V1alpha2WorkloadSpec spec) { + public A withSpec(V1alpha3WorkloadSpec spec) { this._visitables.remove("spec"); if (spec != null) { - this.spec = new V1alpha2WorkloadSpecBuilder(spec); + this.spec = new V1alpha3WorkloadSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -219,7 +221,7 @@ public class MetadataNested extends V1ObjectMetaFluent> imp } public N and() { - return (N) V1alpha2WorkloadFluent.this.withMetadata(builder.build()); + return (N) V1alpha3WorkloadFluent.this.withMetadata(builder.build()); } public N endMetadata() { @@ -227,16 +229,16 @@ public N endMetadata() { } } - public class SpecNested extends V1alpha2WorkloadSpecFluent> implements Nested{ + public class SpecNested extends V1alpha3WorkloadSpecFluent> implements Nested{ - V1alpha2WorkloadSpecBuilder builder; + V1alpha3WorkloadSpecBuilder builder; - SpecNested(V1alpha2WorkloadSpec item) { - this.builder = new V1alpha2WorkloadSpecBuilder(this, item); + SpecNested(V1alpha3WorkloadSpec item) { + this.builder = new V1alpha3WorkloadSpecBuilder(this, item); } public N and() { - return (N) V1alpha2WorkloadFluent.this.withSpec(builder.build()); + return (N) V1alpha3WorkloadFluent.this.withSpec(builder.build()); } public N endSpec() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadListBuilder.java similarity index 57% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadListBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadListBuilder.java index 07ea68d0a5..506b6b79ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadListBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2WorkloadListBuilder extends V1alpha2WorkloadListFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3WorkloadListBuilder extends V1alpha3WorkloadListFluent implements VisitableBuilder{ - V1alpha2WorkloadListFluent fluent; + V1alpha3WorkloadListFluent fluent; - public V1alpha2WorkloadListBuilder() { - this(new V1alpha2WorkloadList()); + public V1alpha3WorkloadListBuilder() { + this(new V1alpha3WorkloadList()); } - public V1alpha2WorkloadListBuilder(V1alpha2WorkloadListFluent fluent) { - this(fluent, new V1alpha2WorkloadList()); + public V1alpha3WorkloadListBuilder(V1alpha3WorkloadListFluent fluent) { + this(fluent, new V1alpha3WorkloadList()); } - public V1alpha2WorkloadListBuilder(V1alpha2WorkloadList instance) { + public V1alpha3WorkloadListBuilder(V1alpha3WorkloadList instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2WorkloadListBuilder(V1alpha2WorkloadListFluent fluent,V1alpha2WorkloadList instance) { + public V1alpha3WorkloadListBuilder(V1alpha3WorkloadListFluent fluent,V1alpha3WorkloadList instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2WorkloadList build() { - V1alpha2WorkloadList buildable = new V1alpha2WorkloadList(); + public V1alpha3WorkloadList build() { + V1alpha3WorkloadList buildable = new V1alpha3WorkloadList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.buildItems()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadListFluent.java similarity index 73% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadListFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadListFluent.java index 1eb72f84b0..7c8bdfdb72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadListFluent.java @@ -26,31 +26,33 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2WorkloadListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3WorkloadListFluent> extends BaseFluent{ private String apiVersion; - private ArrayList items; + private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public V1alpha2WorkloadListFluent() { + public V1alpha3WorkloadListFluent() { } - public V1alpha2WorkloadListFluent(V1alpha2WorkloadList instance) { + public V1alpha3WorkloadListFluent(V1alpha3WorkloadList instance) { this.copyInstance(instance); } - public A addAllToItems(Collection items) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - for (V1alpha2Workload item : items) { - V1alpha2WorkloadBuilder builder = new V1alpha2WorkloadBuilder(item); + for (V1alpha3Workload item : items) { + V1alpha3WorkloadBuilder builder = new V1alpha3WorkloadBuilder(item); this._visitables.get("items").add(builder); this.items.add(builder); } @@ -58,30 +60,30 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } - public ItemsNested addNewItemLike(V1alpha2Workload item) { - return new ItemsNested(-1, item); + public ItemsNested addNewItemLike(V1alpha3Workload item) { + return new ItemsNested<>(-1, item); } - public A addToItems(V1alpha2Workload... items) { + public A addToItems(V1alpha3Workload... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - for (V1alpha2Workload item : items) { - V1alpha2WorkloadBuilder builder = new V1alpha2WorkloadBuilder(item); + for (V1alpha3Workload item : items) { + V1alpha3WorkloadBuilder builder = new V1alpha3WorkloadBuilder(item); this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; } - public A addToItems(int index,V1alpha2Workload item) { + public A addToItems(int index,V1alpha3Workload item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - V1alpha2WorkloadBuilder builder = new V1alpha2WorkloadBuilder(item); + V1alpha3WorkloadBuilder builder = new V1alpha3WorkloadBuilder(item); if (index < 0 || index >= this.items.size()) { this._visitables.get("items").add(builder); this.items.add(builder); @@ -92,24 +94,24 @@ public A addToItems(int index,V1alpha2Workload item) { return (A) this; } - public V1alpha2Workload buildFirstItem() { + public V1alpha3Workload buildFirstItem() { return this.items.get(0).build(); } - public V1alpha2Workload buildItem(int index) { + public V1alpha3Workload buildItem(int index) { return this.items.get(index).build(); } - public List buildItems() { + public List buildItems() { return this.items != null ? build(items) : null; } - public V1alpha2Workload buildLastItem() { + public V1alpha3Workload buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1alpha2Workload buildMatchingItem(Predicate predicate) { - for (V1alpha2WorkloadBuilder item : items) { + public V1alpha3Workload buildMatchingItem(Predicate predicate) { + for (V1alpha3WorkloadBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -121,8 +123,8 @@ public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - protected void copyInstance(V1alpha2WorkloadList instance) { - instance = instance != null ? instance : new V1alpha2WorkloadList(); + protected void copyInstance(V1alpha3WorkloadList instance) { + instance = instance != null ? instance : new V1alpha3WorkloadList(); if (instance != null) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -153,7 +155,7 @@ public ItemsNested editLastItem() { return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editMatchingItem(Predicate predicate) { + public ItemsNested editMatchingItem(Predicate predicate) { int index = -1; for (int i = 0;i < items.size();i++) { if (predicate.test(items.get(i))) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2WorkloadListFluent that = (V1alpha2WorkloadListFluent) o; + V1alpha3WorkloadListFluent that = (V1alpha3WorkloadListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -225,8 +227,8 @@ public boolean hasKind() { return this.kind != null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha2WorkloadBuilder item : items) { + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha3WorkloadBuilder item : items) { if (predicate.test(item)) { return true; } @@ -242,38 +244,39 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - public A removeAllFromItems(Collection items) { + public A removeAllFromItems(Collection items) { if (this.items == null) { return (A) this; } - for (V1alpha2Workload item : items) { - V1alpha2WorkloadBuilder builder = new V1alpha2WorkloadBuilder(item); + for (V1alpha3Workload item : items) { + V1alpha3WorkloadBuilder builder = new V1alpha3WorkloadBuilder(item); _visitables.get("items").remove(builder); this.items.remove(builder); } return (A) this; } - public A removeFromItems(V1alpha2Workload... items) { + public A removeFromItems(V1alpha3Workload... items) { if (this.items == null) { return (A) this; } - for (V1alpha2Workload item : items) { - V1alpha2WorkloadBuilder builder = new V1alpha2WorkloadBuilder(item); + for (V1alpha3Workload item : items) { + V1alpha3WorkloadBuilder builder = new V1alpha3WorkloadBuilder(item); _visitables.get("items").remove(builder); this.items.remove(builder); } return (A) this; } - public A removeMatchingFromItems(Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) { return (A) this; } - Iterator each = items.iterator(); + Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { - V1alpha2WorkloadBuilder builder = each.next(); + V1alpha3WorkloadBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -282,15 +285,15 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } - public ItemsNested setNewItemLike(int index,V1alpha2Workload item) { - return new ItemsNested(index, item); + public ItemsNested setNewItemLike(int index,V1alpha3Workload item) { + return new ItemsNested<>(index, item); } - public A setToItems(int index,V1alpha2Workload item) { + public A setToItems(int index,V1alpha3Workload item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - V1alpha2WorkloadBuilder builder = new V1alpha2WorkloadBuilder(item); + V1alpha3WorkloadBuilder builder = new V1alpha3WorkloadBuilder(item); if (index < 0 || index >= this.items.size()) { this._visitables.get("items").add(builder); this.items.add(builder); @@ -332,13 +335,13 @@ public A withApiVersion(String apiVersion) { return (A) this; } - public A withItems(List items) { + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); - for (V1alpha2Workload item : items) { + this.items = new ArrayList<>(); + for (V1alpha3Workload item : items) { this.addToItems(item); } } else { @@ -347,13 +350,13 @@ public A withItems(List items) { return (A) this; } - public A withItems(V1alpha2Workload... items) { + public A withItems(V1alpha3Workload... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); } if (items != null) { - for (V1alpha2Workload item : items) { + for (V1alpha3Workload item : items) { this.addToItems(item); } } @@ -371,31 +374,31 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } - public class ItemsNested extends V1alpha2WorkloadFluent> implements Nested{ + public class ItemsNested extends V1alpha3WorkloadFluent> implements Nested{ - V1alpha2WorkloadBuilder builder; + V1alpha3WorkloadBuilder builder; int index; - ItemsNested(int index,V1alpha2Workload item) { + ItemsNested(int index,V1alpha3Workload item) { this.index = index; - this.builder = new V1alpha2WorkloadBuilder(this, item); + this.builder = new V1alpha3WorkloadBuilder(this, item); } public N and() { - return (N) V1alpha2WorkloadListFluent.this.setToItems(index, builder.build()); + return (N) V1alpha3WorkloadListFluent.this.setToItems(index, builder.build()); } public N endItem() { @@ -412,7 +415,7 @@ public class MetadataNested extends V1ListMetaFluent> imple } public N and() { - return (N) V1alpha2WorkloadListFluent.this.withMetadata(builder.build()); + return (N) V1alpha3WorkloadListFluent.this.withMetadata(builder.build()); } public N endMetadata() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupDisruptionModeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupDisruptionModeBuilder.java new file mode 100644 index 0000000000..76135e4a52 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupDisruptionModeBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3WorkloadPodGroupDisruptionModeBuilder extends V1alpha3WorkloadPodGroupDisruptionModeFluent implements VisitableBuilder{ + + V1alpha3WorkloadPodGroupDisruptionModeFluent fluent; + + public V1alpha3WorkloadPodGroupDisruptionModeBuilder() { + this(new V1alpha3WorkloadPodGroupDisruptionMode()); + } + + public V1alpha3WorkloadPodGroupDisruptionModeBuilder(V1alpha3WorkloadPodGroupDisruptionModeFluent fluent) { + this(fluent, new V1alpha3WorkloadPodGroupDisruptionMode()); + } + + public V1alpha3WorkloadPodGroupDisruptionModeBuilder(V1alpha3WorkloadPodGroupDisruptionMode instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3WorkloadPodGroupDisruptionModeBuilder(V1alpha3WorkloadPodGroupDisruptionModeFluent fluent,V1alpha3WorkloadPodGroupDisruptionMode instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3WorkloadPodGroupDisruptionMode build() { + V1alpha3WorkloadPodGroupDisruptionMode buildable = new V1alpha3WorkloadPodGroupDisruptionMode(); + buildable.setAll(fluent.getAll()); + buildable.setSingle(fluent.getSingle()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupDisruptionModeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupDisruptionModeFluent.java new file mode 100644 index 0000000000..73312b1d12 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupDisruptionModeFluent.java @@ -0,0 +1,114 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3WorkloadPodGroupDisruptionModeFluent> extends BaseFluent{ + + private Object all; + private Object single; + + public V1alpha3WorkloadPodGroupDisruptionModeFluent() { + } + + public V1alpha3WorkloadPodGroupDisruptionModeFluent(V1alpha3WorkloadPodGroupDisruptionMode instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha3WorkloadPodGroupDisruptionMode instance) { + instance = instance != null ? instance : new V1alpha3WorkloadPodGroupDisruptionMode(); + if (instance != null) { + this.withAll(instance.getAll()); + this.withSingle(instance.getSingle()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3WorkloadPodGroupDisruptionModeFluent that = (V1alpha3WorkloadPodGroupDisruptionModeFluent) o; + if (!(Objects.equals(all, that.all))) { + return false; + } + if (!(Objects.equals(single, that.single))) { + return false; + } + return true; + } + + public Object getAll() { + return this.all; + } + + public Object getSingle() { + return this.single; + } + + public boolean hasAll() { + return this.all != null; + } + + public boolean hasSingle() { + return this.single != null; + } + + public int hashCode() { + return Objects.hash(all, single); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(all == null)) { + sb.append("all:"); + sb.append(all); + sb.append(","); + } + if (!(single == null)) { + sb.append("single:"); + sb.append(single); + } + sb.append("}"); + return sb.toString(); + } + + public A withAll(Object all) { + this.all = all; + return (A) this; + } + + public A withSingle(Object single) { + this.single = single; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupGangSchedulingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupGangSchedulingPolicyBuilder.java new file mode 100644 index 0000000000..85f734ec0f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupGangSchedulingPolicyBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3WorkloadPodGroupGangSchedulingPolicyBuilder extends V1alpha3WorkloadPodGroupGangSchedulingPolicyFluent implements VisitableBuilder{ + + V1alpha3WorkloadPodGroupGangSchedulingPolicyFluent fluent; + + public V1alpha3WorkloadPodGroupGangSchedulingPolicyBuilder() { + this(new V1alpha3WorkloadPodGroupGangSchedulingPolicy()); + } + + public V1alpha3WorkloadPodGroupGangSchedulingPolicyBuilder(V1alpha3WorkloadPodGroupGangSchedulingPolicyFluent fluent) { + this(fluent, new V1alpha3WorkloadPodGroupGangSchedulingPolicy()); + } + + public V1alpha3WorkloadPodGroupGangSchedulingPolicyBuilder(V1alpha3WorkloadPodGroupGangSchedulingPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3WorkloadPodGroupGangSchedulingPolicyBuilder(V1alpha3WorkloadPodGroupGangSchedulingPolicyFluent fluent,V1alpha3WorkloadPodGroupGangSchedulingPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3WorkloadPodGroupGangSchedulingPolicy build() { + V1alpha3WorkloadPodGroupGangSchedulingPolicy buildable = new V1alpha3WorkloadPodGroupGangSchedulingPolicy(); + buildable.setMinCount(fluent.getMinCount()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupGangSchedulingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupGangSchedulingPolicyFluent.java new file mode 100644 index 0000000000..8e73488738 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupGangSchedulingPolicyFluent.java @@ -0,0 +1,92 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3WorkloadPodGroupGangSchedulingPolicyFluent> extends BaseFluent{ + + private Integer minCount; + + public V1alpha3WorkloadPodGroupGangSchedulingPolicyFluent() { + } + + public V1alpha3WorkloadPodGroupGangSchedulingPolicyFluent(V1alpha3WorkloadPodGroupGangSchedulingPolicy instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha3WorkloadPodGroupGangSchedulingPolicy instance) { + instance = instance != null ? instance : new V1alpha3WorkloadPodGroupGangSchedulingPolicy(); + if (instance != null) { + this.withMinCount(instance.getMinCount()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3WorkloadPodGroupGangSchedulingPolicyFluent that = (V1alpha3WorkloadPodGroupGangSchedulingPolicyFluent) o; + if (!(Objects.equals(minCount, that.minCount))) { + return false; + } + return true; + } + + public Integer getMinCount() { + return this.minCount; + } + + public boolean hasMinCount() { + return this.minCount != null; + } + + public int hashCode() { + return Objects.hash(minCount); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(minCount == null)) { + sb.append("minCount:"); + sb.append(minCount); + } + sb.append("}"); + return sb.toString(); + } + + public A withMinCount(Integer minCount) { + this.minCount = minCount; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupResourceClaimBuilder.java new file mode 100644 index 0000000000..00af0fb280 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupResourceClaimBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3WorkloadPodGroupResourceClaimBuilder extends V1alpha3WorkloadPodGroupResourceClaimFluent implements VisitableBuilder{ + + V1alpha3WorkloadPodGroupResourceClaimFluent fluent; + + public V1alpha3WorkloadPodGroupResourceClaimBuilder() { + this(new V1alpha3WorkloadPodGroupResourceClaim()); + } + + public V1alpha3WorkloadPodGroupResourceClaimBuilder(V1alpha3WorkloadPodGroupResourceClaimFluent fluent) { + this(fluent, new V1alpha3WorkloadPodGroupResourceClaim()); + } + + public V1alpha3WorkloadPodGroupResourceClaimBuilder(V1alpha3WorkloadPodGroupResourceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3WorkloadPodGroupResourceClaimBuilder(V1alpha3WorkloadPodGroupResourceClaimFluent fluent,V1alpha3WorkloadPodGroupResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3WorkloadPodGroupResourceClaim build() { + V1alpha3WorkloadPodGroupResourceClaim buildable = new V1alpha3WorkloadPodGroupResourceClaim(); + buildable.setName(fluent.getName()); + buildable.setResourceClaimName(fluent.getResourceClaimName()); + buildable.setResourceClaimTemplateName(fluent.getResourceClaimTemplateName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupResourceClaimFluent.java new file mode 100644 index 0000000000..a32f87002c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupResourceClaimFluent.java @@ -0,0 +1,137 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3WorkloadPodGroupResourceClaimFluent> extends BaseFluent{ + + private String name; + private String resourceClaimName; + private String resourceClaimTemplateName; + + public V1alpha3WorkloadPodGroupResourceClaimFluent() { + } + + public V1alpha3WorkloadPodGroupResourceClaimFluent(V1alpha3WorkloadPodGroupResourceClaim instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha3WorkloadPodGroupResourceClaim instance) { + instance = instance != null ? instance : new V1alpha3WorkloadPodGroupResourceClaim(); + if (instance != null) { + this.withName(instance.getName()); + this.withResourceClaimName(instance.getResourceClaimName()); + this.withResourceClaimTemplateName(instance.getResourceClaimTemplateName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3WorkloadPodGroupResourceClaimFluent that = (V1alpha3WorkloadPodGroupResourceClaimFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resourceClaimName, that.resourceClaimName))) { + return false; + } + if (!(Objects.equals(resourceClaimTemplateName, that.resourceClaimTemplateName))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public String getResourceClaimName() { + return this.resourceClaimName; + } + + public String getResourceClaimTemplateName() { + return this.resourceClaimTemplateName; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResourceClaimName() { + return this.resourceClaimName != null; + } + + public boolean hasResourceClaimTemplateName() { + return this.resourceClaimTemplateName != null; + } + + public int hashCode() { + return Objects.hash(name, resourceClaimName, resourceClaimTemplateName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resourceClaimName == null)) { + sb.append("resourceClaimName:"); + sb.append(resourceClaimName); + sb.append(","); + } + if (!(resourceClaimTemplateName == null)) { + sb.append("resourceClaimTemplateName:"); + sb.append(resourceClaimTemplateName); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return (A) this; + } + + public A withResourceClaimTemplateName(String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingConstraintsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingConstraintsBuilder.java new file mode 100644 index 0000000000..febf39cb83 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingConstraintsBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3WorkloadPodGroupSchedulingConstraintsBuilder extends V1alpha3WorkloadPodGroupSchedulingConstraintsFluent implements VisitableBuilder{ + + V1alpha3WorkloadPodGroupSchedulingConstraintsFluent fluent; + + public V1alpha3WorkloadPodGroupSchedulingConstraintsBuilder() { + this(new V1alpha3WorkloadPodGroupSchedulingConstraints()); + } + + public V1alpha3WorkloadPodGroupSchedulingConstraintsBuilder(V1alpha3WorkloadPodGroupSchedulingConstraintsFluent fluent) { + this(fluent, new V1alpha3WorkloadPodGroupSchedulingConstraints()); + } + + public V1alpha3WorkloadPodGroupSchedulingConstraintsBuilder(V1alpha3WorkloadPodGroupSchedulingConstraints instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3WorkloadPodGroupSchedulingConstraintsBuilder(V1alpha3WorkloadPodGroupSchedulingConstraintsFluent fluent,V1alpha3WorkloadPodGroupSchedulingConstraints instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3WorkloadPodGroupSchedulingConstraints build() { + V1alpha3WorkloadPodGroupSchedulingConstraints buildable = new V1alpha3WorkloadPodGroupSchedulingConstraints(); + buildable.setTopology(fluent.buildTopology()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingConstraintsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingConstraintsFluent.java new file mode 100644 index 0000000000..f6e3a5c9d5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingConstraintsFluent.java @@ -0,0 +1,312 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3WorkloadPodGroupSchedulingConstraintsFluent> extends BaseFluent{ + + private ArrayList topology; + + public V1alpha3WorkloadPodGroupSchedulingConstraintsFluent() { + } + + public V1alpha3WorkloadPodGroupSchedulingConstraintsFluent(V1alpha3WorkloadPodGroupSchedulingConstraints instance) { + this.copyInstance(instance); + } + + public A addAllToTopology(Collection items) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + for (V1alpha3TopologyConstraint item : items) { + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } + return (A) this; + } + + public TopologyNested addNewTopology() { + return new TopologyNested<>(-1, null); + } + + public TopologyNested addNewTopologyLike(V1alpha3TopologyConstraint item) { + return new TopologyNested<>(-1, item); + } + + public A addToTopology(V1alpha3TopologyConstraint... items) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + for (V1alpha3TopologyConstraint item : items) { + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } + return (A) this; + } + + public A addToTopology(int index,V1alpha3TopologyConstraint item) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); + if (index < 0 || index >= this.topology.size()) { + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } else { + this._visitables.get("topology").add(builder); + this.topology.add(index, builder); + } + return (A) this; + } + + public V1alpha3TopologyConstraint buildFirstTopology() { + return this.topology.get(0).build(); + } + + public V1alpha3TopologyConstraint buildLastTopology() { + return this.topology.get(topology.size() - 1).build(); + } + + public V1alpha3TopologyConstraint buildMatchingTopology(Predicate predicate) { + for (V1alpha3TopologyConstraintBuilder item : topology) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public List buildTopology() { + return this.topology != null ? build(topology) : null; + } + + public V1alpha3TopologyConstraint buildTopology(int index) { + return this.topology.get(index).build(); + } + + protected void copyInstance(V1alpha3WorkloadPodGroupSchedulingConstraints instance) { + instance = instance != null ? instance : new V1alpha3WorkloadPodGroupSchedulingConstraints(); + if (instance != null) { + this.withTopology(instance.getTopology()); + } + } + + public TopologyNested editFirstTopology() { + if (topology.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "topology")); + } + return this.setNewTopologyLike(0, this.buildTopology(0)); + } + + public TopologyNested editLastTopology() { + int index = topology.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public TopologyNested editMatchingTopology(Predicate predicate) { + int index = -1; + for (int i = 0;i < topology.size();i++) { + if (predicate.test(topology.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public TopologyNested editTopology(int index) { + if (topology.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3WorkloadPodGroupSchedulingConstraintsFluent that = (V1alpha3WorkloadPodGroupSchedulingConstraintsFluent) o; + if (!(Objects.equals(topology, that.topology))) { + return false; + } + return true; + } + + public boolean hasMatchingTopology(Predicate predicate) { + for (V1alpha3TopologyConstraintBuilder item : topology) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasTopology() { + return this.topology != null && !(this.topology.isEmpty()); + } + + public int hashCode() { + return Objects.hash(topology); + } + + public A removeAllFromTopology(Collection items) { + if (this.topology == null) { + return (A) this; + } + for (V1alpha3TopologyConstraint item : items) { + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); + _visitables.get("topology").remove(builder); + this.topology.remove(builder); + } + return (A) this; + } + + public A removeFromTopology(V1alpha3TopologyConstraint... items) { + if (this.topology == null) { + return (A) this; + } + for (V1alpha3TopologyConstraint item : items) { + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); + _visitables.get("topology").remove(builder); + this.topology.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromTopology(Predicate predicate) { + if (topology == null) { + return (A) this; + } + Iterator each = topology.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("topology"); + while (each.hasNext()) { + V1alpha3TopologyConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public TopologyNested setNewTopologyLike(int index,V1alpha3TopologyConstraint item) { + return new TopologyNested<>(index, item); + } + + public A setToTopology(int index,V1alpha3TopologyConstraint item) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + V1alpha3TopologyConstraintBuilder builder = new V1alpha3TopologyConstraintBuilder(item); + if (index < 0 || index >= this.topology.size()) { + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } else { + this._visitables.get("topology").add(builder); + this.topology.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(topology == null) && !(topology.isEmpty())) { + sb.append("topology:"); + sb.append(topology); + } + sb.append("}"); + return sb.toString(); + } + + public A withTopology(List topology) { + if (this.topology != null) { + this._visitables.get("topology").clear(); + } + if (topology != null) { + this.topology = new ArrayList<>(); + for (V1alpha3TopologyConstraint item : topology) { + this.addToTopology(item); + } + } else { + this.topology = null; + } + return (A) this; + } + + public A withTopology(V1alpha3TopologyConstraint... topology) { + if (this.topology != null) { + this.topology.clear(); + _visitables.remove("topology"); + } + if (topology != null) { + for (V1alpha3TopologyConstraint item : topology) { + this.addToTopology(item); + } + } + return (A) this; + } + public class TopologyNested extends V1alpha3TopologyConstraintFluent> implements Nested{ + + V1alpha3TopologyConstraintBuilder builder; + int index; + + TopologyNested(int index,V1alpha3TopologyConstraint item) { + this.index = index; + this.builder = new V1alpha3TopologyConstraintBuilder(this, item); + } + + public N and() { + return (N) V1alpha3WorkloadPodGroupSchedulingConstraintsFluent.this.setToTopology(index, builder.build()); + } + + public N endTopology() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingPolicyBuilder.java new file mode 100644 index 0000000000..f510c16d29 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingPolicyBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3WorkloadPodGroupSchedulingPolicyBuilder extends V1alpha3WorkloadPodGroupSchedulingPolicyFluent implements VisitableBuilder{ + + V1alpha3WorkloadPodGroupSchedulingPolicyFluent fluent; + + public V1alpha3WorkloadPodGroupSchedulingPolicyBuilder() { + this(new V1alpha3WorkloadPodGroupSchedulingPolicy()); + } + + public V1alpha3WorkloadPodGroupSchedulingPolicyBuilder(V1alpha3WorkloadPodGroupSchedulingPolicyFluent fluent) { + this(fluent, new V1alpha3WorkloadPodGroupSchedulingPolicy()); + } + + public V1alpha3WorkloadPodGroupSchedulingPolicyBuilder(V1alpha3WorkloadPodGroupSchedulingPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3WorkloadPodGroupSchedulingPolicyBuilder(V1alpha3WorkloadPodGroupSchedulingPolicyFluent fluent,V1alpha3WorkloadPodGroupSchedulingPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3WorkloadPodGroupSchedulingPolicy build() { + V1alpha3WorkloadPodGroupSchedulingPolicy buildable = new V1alpha3WorkloadPodGroupSchedulingPolicy(); + buildable.setBasic(fluent.getBasic()); + buildable.setGang(fluent.buildGang()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingPolicyFluent.java new file mode 100644 index 0000000000..ddd43aa209 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingPolicyFluent.java @@ -0,0 +1,159 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3WorkloadPodGroupSchedulingPolicyFluent> extends BaseFluent{ + + private Object basic; + private V1alpha3WorkloadPodGroupGangSchedulingPolicyBuilder gang; + + public V1alpha3WorkloadPodGroupSchedulingPolicyFluent() { + } + + public V1alpha3WorkloadPodGroupSchedulingPolicyFluent(V1alpha3WorkloadPodGroupSchedulingPolicy instance) { + this.copyInstance(instance); + } + + public V1alpha3WorkloadPodGroupGangSchedulingPolicy buildGang() { + return this.gang != null ? this.gang.build() : null; + } + + protected void copyInstance(V1alpha3WorkloadPodGroupSchedulingPolicy instance) { + instance = instance != null ? instance : new V1alpha3WorkloadPodGroupSchedulingPolicy(); + if (instance != null) { + this.withBasic(instance.getBasic()); + this.withGang(instance.getGang()); + } + } + + public GangNested editGang() { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(null)); + } + + public GangNested editOrNewGang() { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(new V1alpha3WorkloadPodGroupGangSchedulingPolicyBuilder().build())); + } + + public GangNested editOrNewGangLike(V1alpha3WorkloadPodGroupGangSchedulingPolicy item) { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3WorkloadPodGroupSchedulingPolicyFluent that = (V1alpha3WorkloadPodGroupSchedulingPolicyFluent) o; + if (!(Objects.equals(basic, that.basic))) { + return false; + } + if (!(Objects.equals(gang, that.gang))) { + return false; + } + return true; + } + + public Object getBasic() { + return this.basic; + } + + public boolean hasBasic() { + return this.basic != null; + } + + public boolean hasGang() { + return this.gang != null; + } + + public int hashCode() { + return Objects.hash(basic, gang); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(basic == null)) { + sb.append("basic:"); + sb.append(basic); + sb.append(","); + } + if (!(gang == null)) { + sb.append("gang:"); + sb.append(gang); + } + sb.append("}"); + return sb.toString(); + } + + public A withBasic(Object basic) { + this.basic = basic; + return (A) this; + } + + public A withGang(V1alpha3WorkloadPodGroupGangSchedulingPolicy gang) { + this._visitables.remove("gang"); + if (gang != null) { + this.gang = new V1alpha3WorkloadPodGroupGangSchedulingPolicyBuilder(gang); + this._visitables.get("gang").add(this.gang); + } else { + this._visitables.get("gang").remove(this.gang); + this.gang = null; + } + return (A) this; + } + + public GangNested withNewGang() { + return new GangNested<>(null); + } + + public GangNested withNewGangLike(V1alpha3WorkloadPodGroupGangSchedulingPolicy item) { + return new GangNested<>(item); + } + public class GangNested extends V1alpha3WorkloadPodGroupGangSchedulingPolicyFluent> implements Nested{ + + V1alpha3WorkloadPodGroupGangSchedulingPolicyBuilder builder; + + GangNested(V1alpha3WorkloadPodGroupGangSchedulingPolicy item) { + this.builder = new V1alpha3WorkloadPodGroupGangSchedulingPolicyBuilder(this, item); + } + + public N and() { + return (N) V1alpha3WorkloadPodGroupSchedulingPolicyFluent.this.withGang(builder.build()); + } + + public N endGang() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadReferenceBuilder.java new file mode 100644 index 0000000000..bbf6910824 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadReferenceBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3WorkloadReferenceBuilder extends V1alpha3WorkloadReferenceFluent implements VisitableBuilder{ + + V1alpha3WorkloadReferenceFluent fluent; + + public V1alpha3WorkloadReferenceBuilder() { + this(new V1alpha3WorkloadReference()); + } + + public V1alpha3WorkloadReferenceBuilder(V1alpha3WorkloadReferenceFluent fluent) { + this(fluent, new V1alpha3WorkloadReference()); + } + + public V1alpha3WorkloadReferenceBuilder(V1alpha3WorkloadReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3WorkloadReferenceBuilder(V1alpha3WorkloadReferenceFluent fluent,V1alpha3WorkloadReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3WorkloadReference build() { + V1alpha3WorkloadReference buildable = new V1alpha3WorkloadReference(); + buildable.setTemplateName(fluent.getTemplateName()); + buildable.setWorkloadName(fluent.getWorkloadName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadReferenceFluent.java new file mode 100644 index 0000000000..01826ca53b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadReferenceFluent.java @@ -0,0 +1,114 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3WorkloadReferenceFluent> extends BaseFluent{ + + private String templateName; + private String workloadName; + + public V1alpha3WorkloadReferenceFluent() { + } + + public V1alpha3WorkloadReferenceFluent(V1alpha3WorkloadReference instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha3WorkloadReference instance) { + instance = instance != null ? instance : new V1alpha3WorkloadReference(); + if (instance != null) { + this.withTemplateName(instance.getTemplateName()); + this.withWorkloadName(instance.getWorkloadName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3WorkloadReferenceFluent that = (V1alpha3WorkloadReferenceFluent) o; + if (!(Objects.equals(templateName, that.templateName))) { + return false; + } + if (!(Objects.equals(workloadName, that.workloadName))) { + return false; + } + return true; + } + + public String getTemplateName() { + return this.templateName; + } + + public String getWorkloadName() { + return this.workloadName; + } + + public boolean hasTemplateName() { + return this.templateName != null; + } + + public boolean hasWorkloadName() { + return this.workloadName != null; + } + + public int hashCode() { + return Objects.hash(templateName, workloadName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(templateName == null)) { + sb.append("templateName:"); + sb.append(templateName); + sb.append(","); + } + if (!(workloadName == null)) { + sb.append("workloadName:"); + sb.append(workloadName); + } + sb.append("}"); + return sb.toString(); + } + + public A withTemplateName(String templateName) { + this.templateName = templateName; + return (A) this; + } + + public A withWorkloadName(String workloadName) { + this.workloadName = workloadName; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadSpecBuilder.java similarity index 53% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpecBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadSpecBuilder.java index fe976187b0..e6db40eff3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadSpecBuilder.java @@ -13,31 +13,33 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2WorkloadSpecBuilder extends V1alpha2WorkloadSpecFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1alpha3WorkloadSpecBuilder extends V1alpha3WorkloadSpecFluent implements VisitableBuilder{ - V1alpha2WorkloadSpecFluent fluent; + V1alpha3WorkloadSpecFluent fluent; - public V1alpha2WorkloadSpecBuilder() { - this(new V1alpha2WorkloadSpec()); + public V1alpha3WorkloadSpecBuilder() { + this(new V1alpha3WorkloadSpec()); } - public V1alpha2WorkloadSpecBuilder(V1alpha2WorkloadSpecFluent fluent) { - this(fluent, new V1alpha2WorkloadSpec()); + public V1alpha3WorkloadSpecBuilder(V1alpha3WorkloadSpecFluent fluent) { + this(fluent, new V1alpha3WorkloadSpec()); } - public V1alpha2WorkloadSpecBuilder(V1alpha2WorkloadSpec instance) { + public V1alpha3WorkloadSpecBuilder(V1alpha3WorkloadSpec instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2WorkloadSpecBuilder(V1alpha2WorkloadSpecFluent fluent,V1alpha2WorkloadSpec instance) { + public V1alpha3WorkloadSpecBuilder(V1alpha3WorkloadSpecFluent fluent,V1alpha3WorkloadSpec instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2WorkloadSpec build() { - V1alpha2WorkloadSpec buildable = new V1alpha2WorkloadSpec(); + public V1alpha3WorkloadSpec build() { + V1alpha3WorkloadSpec buildable = new V1alpha3WorkloadSpec(); + buildable.setCompositePodGroupTemplates(fluent.buildCompositePodGroupTemplates()); buildable.setControllerRef(fluent.buildControllerRef()); buildable.setPodGroupTemplates(fluent.buildPodGroupTemplates()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadSpecFluent.java new file mode 100644 index 0000000000..821860df5a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadSpecFluent.java @@ -0,0 +1,618 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1alpha3WorkloadSpecFluent> extends BaseFluent{ + + private ArrayList compositePodGroupTemplates; + private V1alpha3TypedLocalObjectReferenceBuilder controllerRef; + private ArrayList podGroupTemplates; + + public V1alpha3WorkloadSpecFluent() { + } + + public V1alpha3WorkloadSpecFluent(V1alpha3WorkloadSpec instance) { + this.copyInstance(instance); + } + + public A addAllToCompositePodGroupTemplates(Collection items) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + for (V1alpha3CompositePodGroupTemplate item : items) { + V1alpha3CompositePodGroupTemplateBuilder builder = new V1alpha3CompositePodGroupTemplateBuilder(item); + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } + return (A) this; + } + + public A addAllToPodGroupTemplates(Collection items) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + for (V1alpha3PodGroupTemplate item : items) { + V1alpha3PodGroupTemplateBuilder builder = new V1alpha3PodGroupTemplateBuilder(item); + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } + return (A) this; + } + + public CompositePodGroupTemplatesNested addNewCompositePodGroupTemplate() { + return new CompositePodGroupTemplatesNested<>(-1, null); + } + + public CompositePodGroupTemplatesNested addNewCompositePodGroupTemplateLike(V1alpha3CompositePodGroupTemplate item) { + return new CompositePodGroupTemplatesNested<>(-1, item); + } + + public PodGroupTemplatesNested addNewPodGroupTemplate() { + return new PodGroupTemplatesNested<>(-1, null); + } + + public PodGroupTemplatesNested addNewPodGroupTemplateLike(V1alpha3PodGroupTemplate item) { + return new PodGroupTemplatesNested<>(-1, item); + } + + public A addToCompositePodGroupTemplates(V1alpha3CompositePodGroupTemplate... items) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + for (V1alpha3CompositePodGroupTemplate item : items) { + V1alpha3CompositePodGroupTemplateBuilder builder = new V1alpha3CompositePodGroupTemplateBuilder(item); + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } + return (A) this; + } + + public A addToCompositePodGroupTemplates(int index,V1alpha3CompositePodGroupTemplate item) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + V1alpha3CompositePodGroupTemplateBuilder builder = new V1alpha3CompositePodGroupTemplateBuilder(item); + if (index < 0 || index >= this.compositePodGroupTemplates.size()) { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } else { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(index, builder); + } + return (A) this; + } + + public A addToPodGroupTemplates(V1alpha3PodGroupTemplate... items) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + for (V1alpha3PodGroupTemplate item : items) { + V1alpha3PodGroupTemplateBuilder builder = new V1alpha3PodGroupTemplateBuilder(item); + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } + return (A) this; + } + + public A addToPodGroupTemplates(int index,V1alpha3PodGroupTemplate item) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + V1alpha3PodGroupTemplateBuilder builder = new V1alpha3PodGroupTemplateBuilder(item); + if (index < 0 || index >= this.podGroupTemplates.size()) { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } else { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(index, builder); + } + return (A) this; + } + + public V1alpha3CompositePodGroupTemplate buildCompositePodGroupTemplate(int index) { + return this.compositePodGroupTemplates.get(index).build(); + } + + public List buildCompositePodGroupTemplates() { + return this.compositePodGroupTemplates != null ? build(compositePodGroupTemplates) : null; + } + + public V1alpha3TypedLocalObjectReference buildControllerRef() { + return this.controllerRef != null ? this.controllerRef.build() : null; + } + + public V1alpha3CompositePodGroupTemplate buildFirstCompositePodGroupTemplate() { + return this.compositePodGroupTemplates.get(0).build(); + } + + public V1alpha3PodGroupTemplate buildFirstPodGroupTemplate() { + return this.podGroupTemplates.get(0).build(); + } + + public V1alpha3CompositePodGroupTemplate buildLastCompositePodGroupTemplate() { + return this.compositePodGroupTemplates.get(compositePodGroupTemplates.size() - 1).build(); + } + + public V1alpha3PodGroupTemplate buildLastPodGroupTemplate() { + return this.podGroupTemplates.get(podGroupTemplates.size() - 1).build(); + } + + public V1alpha3CompositePodGroupTemplate buildMatchingCompositePodGroupTemplate(Predicate predicate) { + for (V1alpha3CompositePodGroupTemplateBuilder item : compositePodGroupTemplates) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha3PodGroupTemplate buildMatchingPodGroupTemplate(Predicate predicate) { + for (V1alpha3PodGroupTemplateBuilder item : podGroupTemplates) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha3PodGroupTemplate buildPodGroupTemplate(int index) { + return this.podGroupTemplates.get(index).build(); + } + + public List buildPodGroupTemplates() { + return this.podGroupTemplates != null ? build(podGroupTemplates) : null; + } + + protected void copyInstance(V1alpha3WorkloadSpec instance) { + instance = instance != null ? instance : new V1alpha3WorkloadSpec(); + if (instance != null) { + this.withCompositePodGroupTemplates(instance.getCompositePodGroupTemplates()); + this.withControllerRef(instance.getControllerRef()); + this.withPodGroupTemplates(instance.getPodGroupTemplates()); + } + } + + public CompositePodGroupTemplatesNested editCompositePodGroupTemplate(int index) { + if (compositePodGroupTemplates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(index, this.buildCompositePodGroupTemplate(index)); + } + + public ControllerRefNested editControllerRef() { + return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(null)); + } + + public CompositePodGroupTemplatesNested editFirstCompositePodGroupTemplate() { + if (compositePodGroupTemplates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(0, this.buildCompositePodGroupTemplate(0)); + } + + public PodGroupTemplatesNested editFirstPodGroupTemplate() { + if (podGroupTemplates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(0, this.buildPodGroupTemplate(0)); + } + + public CompositePodGroupTemplatesNested editLastCompositePodGroupTemplate() { + int index = compositePodGroupTemplates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(index, this.buildCompositePodGroupTemplate(index)); + } + + public PodGroupTemplatesNested editLastPodGroupTemplate() { + int index = podGroupTemplates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public CompositePodGroupTemplatesNested editMatchingCompositePodGroupTemplate(Predicate predicate) { + int index = -1; + for (int i = 0;i < compositePodGroupTemplates.size();i++) { + if (predicate.test(compositePodGroupTemplates.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(index, this.buildCompositePodGroupTemplate(index)); + } + + public PodGroupTemplatesNested editMatchingPodGroupTemplate(Predicate predicate) { + int index = -1; + for (int i = 0;i < podGroupTemplates.size();i++) { + if (predicate.test(podGroupTemplates.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public ControllerRefNested editOrNewControllerRef() { + return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(new V1alpha3TypedLocalObjectReferenceBuilder().build())); + } + + public ControllerRefNested editOrNewControllerRefLike(V1alpha3TypedLocalObjectReference item) { + return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(item)); + } + + public PodGroupTemplatesNested editPodGroupTemplate(int index) { + if (podGroupTemplates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3WorkloadSpecFluent that = (V1alpha3WorkloadSpecFluent) o; + if (!(Objects.equals(compositePodGroupTemplates, that.compositePodGroupTemplates))) { + return false; + } + if (!(Objects.equals(controllerRef, that.controllerRef))) { + return false; + } + if (!(Objects.equals(podGroupTemplates, that.podGroupTemplates))) { + return false; + } + return true; + } + + public boolean hasCompositePodGroupTemplates() { + return this.compositePodGroupTemplates != null && !(this.compositePodGroupTemplates.isEmpty()); + } + + public boolean hasControllerRef() { + return this.controllerRef != null; + } + + public boolean hasMatchingCompositePodGroupTemplate(Predicate predicate) { + for (V1alpha3CompositePodGroupTemplateBuilder item : compositePodGroupTemplates) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingPodGroupTemplate(Predicate predicate) { + for (V1alpha3PodGroupTemplateBuilder item : podGroupTemplates) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPodGroupTemplates() { + return this.podGroupTemplates != null && !(this.podGroupTemplates.isEmpty()); + } + + public int hashCode() { + return Objects.hash(compositePodGroupTemplates, controllerRef, podGroupTemplates); + } + + public A removeAllFromCompositePodGroupTemplates(Collection items) { + if (this.compositePodGroupTemplates == null) { + return (A) this; + } + for (V1alpha3CompositePodGroupTemplate item : items) { + V1alpha3CompositePodGroupTemplateBuilder builder = new V1alpha3CompositePodGroupTemplateBuilder(item); + _visitables.get("compositePodGroupTemplates").remove(builder); + this.compositePodGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeAllFromPodGroupTemplates(Collection items) { + if (this.podGroupTemplates == null) { + return (A) this; + } + for (V1alpha3PodGroupTemplate item : items) { + V1alpha3PodGroupTemplateBuilder builder = new V1alpha3PodGroupTemplateBuilder(item); + _visitables.get("podGroupTemplates").remove(builder); + this.podGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeFromCompositePodGroupTemplates(V1alpha3CompositePodGroupTemplate... items) { + if (this.compositePodGroupTemplates == null) { + return (A) this; + } + for (V1alpha3CompositePodGroupTemplate item : items) { + V1alpha3CompositePodGroupTemplateBuilder builder = new V1alpha3CompositePodGroupTemplateBuilder(item); + _visitables.get("compositePodGroupTemplates").remove(builder); + this.compositePodGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeFromPodGroupTemplates(V1alpha3PodGroupTemplate... items) { + if (this.podGroupTemplates == null) { + return (A) this; + } + for (V1alpha3PodGroupTemplate item : items) { + V1alpha3PodGroupTemplateBuilder builder = new V1alpha3PodGroupTemplateBuilder(item); + _visitables.get("podGroupTemplates").remove(builder); + this.podGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromCompositePodGroupTemplates(Predicate predicate) { + if (compositePodGroupTemplates == null) { + return (A) this; + } + Iterator each = compositePodGroupTemplates.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("compositePodGroupTemplates"); + while (each.hasNext()) { + V1alpha3CompositePodGroupTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromPodGroupTemplates(Predicate predicate) { + if (podGroupTemplates == null) { + return (A) this; + } + Iterator each = podGroupTemplates.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("podGroupTemplates"); + while (each.hasNext()) { + V1alpha3PodGroupTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public CompositePodGroupTemplatesNested setNewCompositePodGroupTemplateLike(int index,V1alpha3CompositePodGroupTemplate item) { + return new CompositePodGroupTemplatesNested<>(index, item); + } + + public PodGroupTemplatesNested setNewPodGroupTemplateLike(int index,V1alpha3PodGroupTemplate item) { + return new PodGroupTemplatesNested<>(index, item); + } + + public A setToCompositePodGroupTemplates(int index,V1alpha3CompositePodGroupTemplate item) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + V1alpha3CompositePodGroupTemplateBuilder builder = new V1alpha3CompositePodGroupTemplateBuilder(item); + if (index < 0 || index >= this.compositePodGroupTemplates.size()) { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } else { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.set(index, builder); + } + return (A) this; + } + + public A setToPodGroupTemplates(int index,V1alpha3PodGroupTemplate item) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + V1alpha3PodGroupTemplateBuilder builder = new V1alpha3PodGroupTemplateBuilder(item); + if (index < 0 || index >= this.podGroupTemplates.size()) { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } else { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(compositePodGroupTemplates == null) && !(compositePodGroupTemplates.isEmpty())) { + sb.append("compositePodGroupTemplates:"); + sb.append(compositePodGroupTemplates); + sb.append(","); + } + if (!(controllerRef == null)) { + sb.append("controllerRef:"); + sb.append(controllerRef); + sb.append(","); + } + if (!(podGroupTemplates == null) && !(podGroupTemplates.isEmpty())) { + sb.append("podGroupTemplates:"); + sb.append(podGroupTemplates); + } + sb.append("}"); + return sb.toString(); + } + + public A withCompositePodGroupTemplates(List compositePodGroupTemplates) { + if (this.compositePodGroupTemplates != null) { + this._visitables.get("compositePodGroupTemplates").clear(); + } + if (compositePodGroupTemplates != null) { + this.compositePodGroupTemplates = new ArrayList<>(); + for (V1alpha3CompositePodGroupTemplate item : compositePodGroupTemplates) { + this.addToCompositePodGroupTemplates(item); + } + } else { + this.compositePodGroupTemplates = null; + } + return (A) this; + } + + public A withCompositePodGroupTemplates(V1alpha3CompositePodGroupTemplate... compositePodGroupTemplates) { + if (this.compositePodGroupTemplates != null) { + this.compositePodGroupTemplates.clear(); + _visitables.remove("compositePodGroupTemplates"); + } + if (compositePodGroupTemplates != null) { + for (V1alpha3CompositePodGroupTemplate item : compositePodGroupTemplates) { + this.addToCompositePodGroupTemplates(item); + } + } + return (A) this; + } + + public A withControllerRef(V1alpha3TypedLocalObjectReference controllerRef) { + this._visitables.remove("controllerRef"); + if (controllerRef != null) { + this.controllerRef = new V1alpha3TypedLocalObjectReferenceBuilder(controllerRef); + this._visitables.get("controllerRef").add(this.controllerRef); + } else { + this._visitables.get("controllerRef").remove(this.controllerRef); + this.controllerRef = null; + } + return (A) this; + } + + public ControllerRefNested withNewControllerRef() { + return new ControllerRefNested<>(null); + } + + public ControllerRefNested withNewControllerRefLike(V1alpha3TypedLocalObjectReference item) { + return new ControllerRefNested<>(item); + } + + public A withPodGroupTemplates(List podGroupTemplates) { + if (this.podGroupTemplates != null) { + this._visitables.get("podGroupTemplates").clear(); + } + if (podGroupTemplates != null) { + this.podGroupTemplates = new ArrayList<>(); + for (V1alpha3PodGroupTemplate item : podGroupTemplates) { + this.addToPodGroupTemplates(item); + } + } else { + this.podGroupTemplates = null; + } + return (A) this; + } + + public A withPodGroupTemplates(V1alpha3PodGroupTemplate... podGroupTemplates) { + if (this.podGroupTemplates != null) { + this.podGroupTemplates.clear(); + _visitables.remove("podGroupTemplates"); + } + if (podGroupTemplates != null) { + for (V1alpha3PodGroupTemplate item : podGroupTemplates) { + this.addToPodGroupTemplates(item); + } + } + return (A) this; + } + public class CompositePodGroupTemplatesNested extends V1alpha3CompositePodGroupTemplateFluent> implements Nested{ + + V1alpha3CompositePodGroupTemplateBuilder builder; + int index; + + CompositePodGroupTemplatesNested(int index,V1alpha3CompositePodGroupTemplate item) { + this.index = index; + this.builder = new V1alpha3CompositePodGroupTemplateBuilder(this, item); + } + + public N and() { + return (N) V1alpha3WorkloadSpecFluent.this.setToCompositePodGroupTemplates(index, builder.build()); + } + + public N endCompositePodGroupTemplate() { + return and(); + } + + } + public class ControllerRefNested extends V1alpha3TypedLocalObjectReferenceFluent> implements Nested{ + + V1alpha3TypedLocalObjectReferenceBuilder builder; + + ControllerRefNested(V1alpha3TypedLocalObjectReference item) { + this.builder = new V1alpha3TypedLocalObjectReferenceBuilder(this, item); + } + + public N and() { + return (N) V1alpha3WorkloadSpecFluent.this.withControllerRef(builder.build()); + } + + public N endControllerRef() { + return and(); + } + + } + public class PodGroupTemplatesNested extends V1alpha3PodGroupTemplateFluent> implements Nested{ + + V1alpha3PodGroupTemplateBuilder builder; + int index; + + PodGroupTemplatesNested(int index,V1alpha3PodGroupTemplate item) { + this.index = index; + this.builder = new V1alpha3PodGroupTemplateBuilder(this, item); + } + + public N and() { + return (N) V1alpha3WorkloadSpecFluent.this.setToPodGroupTemplates(index, builder.build()); + } + + public N endPodGroupTemplate() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java index 44bdaf5347..3c18129e8c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1AllocatedDeviceStatusBuilder extends V1beta1AllocatedDeviceStatusFluent implements VisitableBuilder{ V1beta1AllocatedDeviceStatusFluent fluent; 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 8139ae7776..c97ee95d94 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1AllocatedDeviceStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1AllocatedDeviceStatusFluent> extends BaseFluent{ private ArrayList conditions; private Object data; @@ -50,7 +52,7 @@ public V1beta1AllocatedDeviceStatusFluent(V1beta1AllocatedDeviceStatus instance) public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -61,16 +63,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -82,7 +84,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -195,7 +197,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1AllocatedDeviceStatusFluent that = (V1beta1AllocatedDeviceStatusFluent) o; + V1beta1AllocatedDeviceStatusFluent that = (V1beta1AllocatedDeviceStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -310,6 +312,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -322,12 +325,12 @@ public A removeMatchingFromConditions(Predicate predicate) { } public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -386,7 +389,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } @@ -430,18 +433,18 @@ public A withNetworkData(V1beta1NetworkDeviceData networkData) { this.networkData = new V1beta1NetworkDeviceDataBuilder(networkData); this._visitables.get("networkData").add(this.networkData); } else { - this.networkData = null; this._visitables.get("networkData").remove(this.networkData); + this.networkData = null; } return (A) this; } public NetworkDataNested withNewNetworkData() { - return new NetworkDataNested(null); + return new NetworkDataNested<>(null); } public NetworkDataNested withNewNetworkDataLike(V1beta1NetworkDeviceData item) { - return new NetworkDataNested(item); + return new NetworkDataNested<>(item); } public A withPool(String pool) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java index d3483df31e..4f7a11b16e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1AllocationResultBuilder extends V1beta1AllocationResultFluent implements VisitableBuilder{ V1beta1AllocationResultFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java index 141322dc29..320dd5102b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java @@ -21,12 +21,14 @@ import java.time.OffsetDateTime; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1AllocationResultFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1AllocationResultFluent> extends BaseFluent{ private OffsetDateTime allocationTimestamp; private V1beta1DeviceAllocationResultBuilder devices; @@ -90,7 +92,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1AllocationResultFluent that = (V1beta1AllocationResultFluent) o; + V1beta1AllocationResultFluent that = (V1beta1AllocationResultFluent) o; if (!(Objects.equals(allocationTimestamp, that.allocationTimestamp))) { return false; } @@ -155,26 +157,26 @@ public A withDevices(V1beta1DeviceAllocationResult devices) { this.devices = new V1beta1DeviceAllocationResultBuilder(devices); this._visitables.get("devices").add(this.devices); } else { - this.devices = null; this._visitables.get("devices").remove(this.devices); + this.devices = null; } return (A) this; } public DevicesNested withNewDevices() { - return new DevicesNested(null); + return new DevicesNested<>(null); } public DevicesNested withNewDevicesLike(V1beta1DeviceAllocationResult item) { - return new DevicesNested(item); + return new DevicesNested<>(item); } public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + return new NodeSelectorNested<>(null); } public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + return new NodeSelectorNested<>(item); } public A withNodeSelector(V1NodeSelector nodeSelector) { @@ -183,8 +185,8 @@ public A withNodeSelector(V1NodeSelector nodeSelector) { this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); this._visitables.get("nodeSelector").add(this.nodeSelector); } else { - this.nodeSelector = null; this._visitables.get("nodeSelector").remove(this.nodeSelector); + this.nodeSelector = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java index fde294d781..8b9465f577 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ApplyConfigurationBuilder extends V1beta1ApplyConfigurationFluent implements VisitableBuilder{ V1beta1ApplyConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java index bf62b18a4c..68e71b37bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ApplyConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ApplyConfigurationFluent> extends BaseFluent{ private String expression; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ApplyConfigurationFluent that = (V1beta1ApplyConfigurationFluent) o; + V1beta1ApplyConfigurationFluent that = (V1beta1ApplyConfigurationFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } 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 efa15577ce..14187773a4 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1BasicDeviceBuilder extends V1beta1BasicDeviceFluent implements VisitableBuilder{ V1beta1BasicDeviceFluent fluent; @@ -46,7 +47,7 @@ public V1beta1BasicDevice build() { buildable.setBindsToNode(fluent.getBindsToNode()); buildable.setCapacity(fluent.getCapacity()); buildable.setConsumesCounters(fluent.buildConsumesCounters()); - buildable.setNodeAllocatableResourceMappings(fluent.getNodeAllocatableResourceMappings()); + buildable.setNodeAllocatableResources(fluent.getNodeAllocatableResources()); buildable.setNodeName(fluent.getNodeName()); buildable.setNodeSelector(fluent.buildNodeSelector()); buildable.setTaints(fluent.buildTaints()); 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 ce3e04fc42..38882d841c 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 @@ -29,12 +29,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1BasicDeviceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1BasicDeviceFluent> extends BaseFluent{ private Boolean allNodes; private Boolean allowMultipleAllocations; @@ -44,7 +46,7 @@ public class V1beta1BasicDeviceFluent capacity; private ArrayList consumesCounters; - private Map nodeAllocatableResourceMappings; + private Map nodeAllocatableResources; private String nodeName; private V1NodeSelectorBuilder nodeSelector; private ArrayList taints; @@ -58,7 +60,7 @@ public V1beta1BasicDeviceFluent(V1beta1BasicDevice instance) { public A addAllToBindingConditions(Collection items) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } for (String item : items) { this.bindingConditions.add(item); @@ -68,7 +70,7 @@ public A addAllToBindingConditions(Collection items) { public A addAllToBindingFailureConditions(Collection items) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } for (String item : items) { this.bindingFailureConditions.add(item); @@ -78,7 +80,7 @@ public A addAllToBindingFailureConditions(Collection items) { public A addAllToConsumesCounters(Collection items) { if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); } for (V1beta1DeviceCounterConsumption item : items) { V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); @@ -90,7 +92,7 @@ public A addAllToConsumesCounters(Collection it public A addAllToTaints(Collection items) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } for (V1beta1DeviceTaint item : items) { V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); @@ -101,24 +103,24 @@ public A addAllToTaints(Collection items) { } public ConsumesCountersNested addNewConsumesCounter() { - return new ConsumesCountersNested(-1, null); + return new ConsumesCountersNested<>(-1, null); } public ConsumesCountersNested addNewConsumesCounterLike(V1beta1DeviceCounterConsumption item) { - return new ConsumesCountersNested(-1, item); + return new ConsumesCountersNested<>(-1, item); } public TaintsNested addNewTaint() { - return new TaintsNested(-1, null); + return new TaintsNested<>(-1, null); } public TaintsNested addNewTaintLike(V1beta1DeviceTaint item) { - return new TaintsNested(-1, item); + return new TaintsNested<>(-1, item); } public A addToAttributes(Map map) { if (this.attributes == null && map != null) { - this.attributes = new LinkedHashMap(); + this.attributes = new LinkedHashMap<>(); } if (map != null) { this.attributes.putAll(map); @@ -128,7 +130,7 @@ public A addToAttributes(Map map) { public A addToAttributes(String key,V1beta1DeviceAttribute value) { if (this.attributes == null && key != null && value != null) { - this.attributes = new LinkedHashMap(); + this.attributes = new LinkedHashMap<>(); } if (key != null && value != null) { this.attributes.put(key, value); @@ -138,7 +140,7 @@ public A addToAttributes(String key,V1beta1DeviceAttribute value) { public A addToBindingConditions(String... items) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } for (String item : items) { this.bindingConditions.add(item); @@ -148,7 +150,7 @@ public A addToBindingConditions(String... items) { public A addToBindingConditions(int index,String item) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } this.bindingConditions.add(index, item); return (A) this; @@ -156,7 +158,7 @@ public A addToBindingConditions(int index,String item) { public A addToBindingFailureConditions(String... items) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } for (String item : items) { this.bindingFailureConditions.add(item); @@ -166,7 +168,7 @@ public A addToBindingFailureConditions(String... items) { public A addToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } this.bindingFailureConditions.add(index, item); return (A) this; @@ -174,7 +176,7 @@ public A addToBindingFailureConditions(int index,String item) { public A addToCapacity(Map map) { if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); + this.capacity = new LinkedHashMap<>(); } if (map != null) { this.capacity.putAll(map); @@ -184,7 +186,7 @@ public A addToCapacity(Map map) { public A addToCapacity(String key,V1beta1DeviceCapacity value) { if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); + this.capacity = new LinkedHashMap<>(); } if (key != null && value != null) { this.capacity.put(key, value); @@ -194,7 +196,7 @@ public A addToCapacity(String key,V1beta1DeviceCapacity value) { public A addToConsumesCounters(V1beta1DeviceCounterConsumption... items) { if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); } for (V1beta1DeviceCounterConsumption item : items) { V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); @@ -206,7 +208,7 @@ public A addToConsumesCounters(V1beta1DeviceCounterConsumption... items) { public A addToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); } V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); if (index < 0 || index >= this.consumesCounters.size()) { @@ -219,29 +221,29 @@ public A addToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { return (A) this; } - public A addToNodeAllocatableResourceMappings(Map map) { - if (this.nodeAllocatableResourceMappings == null && map != null) { - this.nodeAllocatableResourceMappings = new LinkedHashMap(); + public A addToNodeAllocatableResources(Map map) { + if (this.nodeAllocatableResources == null && map != null) { + this.nodeAllocatableResources = new LinkedHashMap<>(); } if (map != null) { - this.nodeAllocatableResourceMappings.putAll(map); + this.nodeAllocatableResources.putAll(map); } return (A) this; } - public A addToNodeAllocatableResourceMappings(String key,V1beta1NodeAllocatableResourceMapping value) { - if (this.nodeAllocatableResourceMappings == null && key != null && value != null) { - this.nodeAllocatableResourceMappings = new LinkedHashMap(); + public A addToNodeAllocatableResources(String key,V1beta1NodeAllocatableResource value) { + if (this.nodeAllocatableResources == null && key != null && value != null) { + this.nodeAllocatableResources = new LinkedHashMap<>(); } if (key != null && value != null) { - this.nodeAllocatableResourceMappings.put(key, value); + this.nodeAllocatableResources.put(key, value); } return (A) this; } public A addToTaints(V1beta1DeviceTaint... items) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } for (V1beta1DeviceTaint item : items) { V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); @@ -253,7 +255,7 @@ public A addToTaints(V1beta1DeviceTaint... items) { public A addToTaints(int index,V1beta1DeviceTaint item) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); if (index < 0 || index >= this.taints.size()) { @@ -331,7 +333,7 @@ protected void copyInstance(V1beta1BasicDevice instance) { this.withBindsToNode(instance.getBindsToNode()); this.withCapacity(instance.getCapacity()); this.withConsumesCounters(instance.getConsumesCounters()); - this.withNodeAllocatableResourceMappings(instance.getNodeAllocatableResourceMappings()); + this.withNodeAllocatableResources(instance.getNodeAllocatableResources()); this.withNodeName(instance.getNodeName()); this.withNodeSelector(instance.getNodeSelector()); this.withTaints(instance.getTaints()); @@ -432,7 +434,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1BasicDeviceFluent that = (V1beta1BasicDeviceFluent) o; + V1beta1BasicDeviceFluent that = (V1beta1BasicDeviceFluent) o; if (!(Objects.equals(allNodes, that.allNodes))) { return false; } @@ -457,7 +459,7 @@ public boolean equals(Object o) { if (!(Objects.equals(consumesCounters, that.consumesCounters))) { return false; } - if (!(Objects.equals(nodeAllocatableResourceMappings, that.nodeAllocatableResourceMappings))) { + if (!(Objects.equals(nodeAllocatableResources, that.nodeAllocatableResources))) { return false; } if (!(Objects.equals(nodeName, that.nodeName))) { @@ -542,8 +544,8 @@ public String getMatchingBindingFailureCondition(Predicate predicate) { return null; } - public Map getNodeAllocatableResourceMappings() { - return this.nodeAllocatableResourceMappings; + public Map getNodeAllocatableResources() { + return this.nodeAllocatableResources; } public String getNodeName() { @@ -618,8 +620,8 @@ public boolean hasMatchingTaint(Predicate predicate) return false; } - public boolean hasNodeAllocatableResourceMappings() { - return this.nodeAllocatableResourceMappings != null; + public boolean hasNodeAllocatableResources() { + return this.nodeAllocatableResources != null; } public boolean hasNodeName() { @@ -635,7 +637,7 @@ public boolean hasTaints() { } public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, nodeAllocatableResourceMappings, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, nodeAllocatableResources, nodeName, nodeSelector, taints); } public A removeAllFromBindingConditions(Collection items) { @@ -762,24 +764,24 @@ public A removeFromConsumesCounters(V1beta1DeviceCounterConsumption... items) { return (A) this; } - public A removeFromNodeAllocatableResourceMappings(String key) { - if (this.nodeAllocatableResourceMappings == null) { + public A removeFromNodeAllocatableResources(String key) { + if (this.nodeAllocatableResources == null) { return (A) this; } - if (key != null && this.nodeAllocatableResourceMappings != null) { - this.nodeAllocatableResourceMappings.remove(key); + if (key != null && this.nodeAllocatableResources != null) { + this.nodeAllocatableResources.remove(key); } return (A) this; } - public A removeFromNodeAllocatableResourceMappings(Map map) { - if (this.nodeAllocatableResourceMappings == null) { + public A removeFromNodeAllocatableResources(Map map) { + if (this.nodeAllocatableResources == null) { return (A) this; } if (map != null) { for (Object key : map.keySet()) { - if (this.nodeAllocatableResourceMappings != null) { - this.nodeAllocatableResourceMappings.remove(key); + if (this.nodeAllocatableResources != null) { + this.nodeAllocatableResources.remove(key); } } } @@ -803,6 +805,7 @@ public A removeMatchingFromConsumesCounters(Predicate each = consumesCounters.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("consumesCounters"); while (each.hasNext()) { V1beta1DeviceCounterConsumptionBuilder builder = each.next(); @@ -819,6 +822,7 @@ public A removeMatchingFromTaints(Predicate predicate return (A) this; } Iterator each = taints.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("taints"); while (each.hasNext()) { V1beta1DeviceTaintBuilder builder = each.next(); @@ -831,16 +835,16 @@ public A removeMatchingFromTaints(Predicate predicate } public ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta1DeviceCounterConsumption item) { - return new ConsumesCountersNested(index, item); + return new ConsumesCountersNested<>(index, item); } public TaintsNested setNewTaintLike(int index,V1beta1DeviceTaint item) { - return new TaintsNested(index, item); + return new TaintsNested<>(index, item); } public A setToBindingConditions(int index,String item) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } this.bindingConditions.set(index, item); return (A) this; @@ -848,7 +852,7 @@ public A setToBindingConditions(int index,String item) { public A setToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } this.bindingFailureConditions.set(index, item); return (A) this; @@ -856,7 +860,7 @@ public A setToBindingFailureConditions(int index,String item) { public A setToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); } V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); if (index < 0 || index >= this.consumesCounters.size()) { @@ -871,7 +875,7 @@ public A setToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { public A setToTaints(int index,V1beta1DeviceTaint item) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); if (index < 0 || index >= this.taints.size()) { @@ -927,9 +931,9 @@ public String toString() { sb.append(consumesCounters); sb.append(","); } - if (!(nodeAllocatableResourceMappings == null) && !(nodeAllocatableResourceMappings.isEmpty())) { - sb.append("nodeAllocatableResourceMappings:"); - sb.append(nodeAllocatableResourceMappings); + if (!(nodeAllocatableResources == null) && !(nodeAllocatableResources.isEmpty())) { + sb.append("nodeAllocatableResources:"); + sb.append(nodeAllocatableResources); sb.append(","); } if (!(nodeName == null)) { @@ -972,14 +976,14 @@ public A withAttributes(Map attributes) { if (attributes == null) { this.attributes = null; } else { - this.attributes = new LinkedHashMap(attributes); + this.attributes = new LinkedHashMap<>(attributes); } return (A) this; } public A withBindingConditions(List bindingConditions) { if (bindingConditions != null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); for (String item : bindingConditions) { this.addToBindingConditions(item); } @@ -1004,7 +1008,7 @@ public A withBindingConditions(String... bindingConditions) { public A withBindingFailureConditions(List bindingFailureConditions) { if (bindingFailureConditions != null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); for (String item : bindingFailureConditions) { this.addToBindingFailureConditions(item); } @@ -1040,7 +1044,7 @@ public A withCapacity(Map capacity) { if (capacity == null) { this.capacity = null; } else { - this.capacity = new LinkedHashMap(capacity); + this.capacity = new LinkedHashMap<>(capacity); } return (A) this; } @@ -1050,7 +1054,7 @@ public A withConsumesCounters(List consumesCoun this._visitables.get("consumesCounters").clear(); } if (consumesCounters != null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); for (V1beta1DeviceCounterConsumption item : consumesCounters) { this.addToConsumesCounters(item); } @@ -1074,18 +1078,18 @@ public A withConsumesCounters(V1beta1DeviceCounterConsumption... consumesCounter } public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + return new NodeSelectorNested<>(null); } public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + return new NodeSelectorNested<>(item); } - public A withNodeAllocatableResourceMappings(Map nodeAllocatableResourceMappings) { - if (nodeAllocatableResourceMappings == null) { - this.nodeAllocatableResourceMappings = null; + public A withNodeAllocatableResources(Map nodeAllocatableResources) { + if (nodeAllocatableResources == null) { + this.nodeAllocatableResources = null; } else { - this.nodeAllocatableResourceMappings = new LinkedHashMap(nodeAllocatableResourceMappings); + this.nodeAllocatableResources = new LinkedHashMap<>(nodeAllocatableResources); } return (A) this; } @@ -1101,8 +1105,8 @@ public A withNodeSelector(V1NodeSelector nodeSelector) { this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); this._visitables.get("nodeSelector").add(this.nodeSelector); } else { - this.nodeSelector = null; this._visitables.get("nodeSelector").remove(this.nodeSelector); + this.nodeSelector = null; } return (A) this; } @@ -1112,7 +1116,7 @@ public A withTaints(List taints) { this._visitables.get("taints").clear(); } if (taints != null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); for (V1beta1DeviceTaint item : taints) { this.addToTaints(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java index fbb71930ee..d0ff75e300 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1CELDeviceSelectorBuilder extends V1beta1CELDeviceSelectorFluent implements VisitableBuilder{ V1beta1CELDeviceSelectorFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java index 848893d372..754387b749 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1CELDeviceSelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1CELDeviceSelectorFluent> extends BaseFluent{ private String expression; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1CELDeviceSelectorFluent that = (V1beta1CELDeviceSelectorFluent) o; + V1beta1CELDeviceSelectorFluent that = (V1beta1CELDeviceSelectorFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java index 15bf3f3d7b..b2a8ae115f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1CapacityRequestPolicyBuilder extends V1beta1CapacityRequestPolicyFluent implements VisitableBuilder{ V1beta1CapacityRequestPolicyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java index bf6bd0d266..77b02a132e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java @@ -25,12 +25,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1CapacityRequestPolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1CapacityRequestPolicyFluent> extends BaseFluent{ private Quantity _default; private V1beta1CapacityRequestPolicyRangeBuilder validRange; @@ -45,7 +47,7 @@ public V1beta1CapacityRequestPolicyFluent(V1beta1CapacityRequestPolicy instance) public A addAllToValidValues(Collection items) { if (this.validValues == null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); } for (Quantity item : items) { this.validValues.add(item); @@ -59,7 +61,7 @@ public A addNewValidValue(String value) { public A addToValidValues(Quantity... items) { if (this.validValues == null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); } for (Quantity item : items) { this.validValues.add(item); @@ -69,7 +71,7 @@ public A addToValidValues(Quantity... items) { public A addToValidValues(int index,Quantity item) { if (this.validValues == null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); } this.validValues.add(index, item); return (A) this; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1CapacityRequestPolicyFluent that = (V1beta1CapacityRequestPolicyFluent) o; + V1beta1CapacityRequestPolicyFluent that = (V1beta1CapacityRequestPolicyFluent) o; if (!(Objects.equals(_default, that._default))) { return false; } @@ -198,7 +200,7 @@ public A removeFromValidValues(Quantity... items) { public A setToValidValues(int index,Quantity item) { if (this.validValues == null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); } this.validValues.set(index, item); return (A) this; @@ -235,11 +237,11 @@ public A withNewDefault(String value) { } public ValidRangeNested withNewValidRange() { - return new ValidRangeNested(null); + return new ValidRangeNested<>(null); } public ValidRangeNested withNewValidRangeLike(V1beta1CapacityRequestPolicyRange item) { - return new ValidRangeNested(item); + return new ValidRangeNested<>(item); } public A withValidRange(V1beta1CapacityRequestPolicyRange validRange) { @@ -248,15 +250,15 @@ public A withValidRange(V1beta1CapacityRequestPolicyRange validRange) { this.validRange = new V1beta1CapacityRequestPolicyRangeBuilder(validRange); this._visitables.get("validRange").add(this.validRange); } else { - this.validRange = null; this._visitables.get("validRange").remove(this.validRange); + this.validRange = null; } return (A) this; } public A withValidValues(List validValues) { if (validValues != null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); for (Quantity item : validValues) { this.addToValidValues(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java index a755743c9d..bfd5ce5eb6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1CapacityRequestPolicyRangeBuilder extends V1beta1CapacityRequestPolicyRangeFluent implements VisitableBuilder{ V1beta1CapacityRequestPolicyRangeFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java index 8452345612..d1a26fd466 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1CapacityRequestPolicyRangeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1CapacityRequestPolicyRangeFluent> extends BaseFluent{ private Quantity max; private Quantity min; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1CapacityRequestPolicyRangeFluent that = (V1beta1CapacityRequestPolicyRangeFluent) o; + V1beta1CapacityRequestPolicyRangeFluent that = (V1beta1CapacityRequestPolicyRangeFluent) o; if (!(Objects.equals(max, that.max))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java index b1f79fdbca..93052ec0b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1CapacityRequirementsBuilder extends V1beta1CapacityRequirementsFluent implements VisitableBuilder{ V1beta1CapacityRequirementsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java index fd2947b390..7414281e89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java @@ -21,12 +21,14 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1CapacityRequirementsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1CapacityRequirementsFluent> extends BaseFluent{ private Map requests; @@ -39,7 +41,7 @@ public V1beta1CapacityRequirementsFluent(V1beta1CapacityRequirements instance) { public A addToRequests(Map map) { if (this.requests == null && map != null) { - this.requests = new LinkedHashMap(); + this.requests = new LinkedHashMap<>(); } if (map != null) { this.requests.putAll(map); @@ -49,7 +51,7 @@ public A addToRequests(Map map) { public A addToRequests(String key,Quantity value) { if (this.requests == null && key != null && value != null) { - this.requests = new LinkedHashMap(); + this.requests = new LinkedHashMap<>(); } if (key != null && value != null) { this.requests.put(key, value); @@ -74,7 +76,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1CapacityRequirementsFluent that = (V1beta1CapacityRequirementsFluent) o; + V1beta1CapacityRequirementsFluent that = (V1beta1CapacityRequirementsFluent) o; if (!(Objects.equals(requests, that.requests))) { return false; } @@ -132,7 +134,7 @@ public A withRequests(Map requests) { if (requests == null) { this.requests = null; } else { - this.requests = new LinkedHashMap(requests); + this.requests = new LinkedHashMap<>(requests); } return (A) this; } 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 index 138ff200a5..48cb568ae5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ClusterTrustBundleBuilder extends V1beta1ClusterTrustBundleFluent implements VisitableBuilder{ V1beta1ClusterTrustBundleFluent fluent; 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 index 6c77b09f3e..2b9a028e3d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ClusterTrustBundleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ClusterTrustBundleFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ClusterTrustBundleFluent that = (V1beta1ClusterTrustBundleFluent) o; + V1beta1ClusterTrustBundleFluent that = (V1beta1ClusterTrustBundleFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta1ClusterTrustBundleSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1beta1ClusterTrustBundleSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1beta1ClusterTrustBundleSpec spec) { this.spec = new V1beta1ClusterTrustBundleSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } 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 index 1a1c5780f0..27452aa4b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ClusterTrustBundleListBuilder extends V1beta1ClusterTrustBundleListFluent implements VisitableBuilder{ V1beta1ClusterTrustBundleListFluent fluent; 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 index c106bed2d0..5a08217a20 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ClusterTrustBundleListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ClusterTrustBundleListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta1ClusterTrustBundleListFluent(V1beta1ClusterTrustBundleList instanc public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1ClusterTrustBundle item : items) { V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta1ClusterTrustBundle item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta1ClusterTrustBundle... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1ClusterTrustBundle item : items) { V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta1ClusterTrustBundle... items) { public A addToItems(int index,V1beta1ClusterTrustBundle item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ClusterTrustBundleListFluent that = (V1beta1ClusterTrustBundleListFluent) o; + V1beta1ClusterTrustBundleListFluent that = (V1beta1ClusterTrustBundleListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate pre return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1ClusterTrustBundleBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate pre } public ItemsNested setNewItemLike(int index,V1beta1ClusterTrustBundle item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta1ClusterTrustBundle item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta1ClusterTrustBundle item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta1ClusterTrustBundleFluent> implements Nested{ 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 index 7fea77df38..ec335a1354 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ClusterTrustBundleSpecBuilder extends V1beta1ClusterTrustBundleSpecFluent implements VisitableBuilder{ V1beta1ClusterTrustBundleSpecFluent fluent; 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 index 3e4c048402..7ff99094a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ClusterTrustBundleSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ClusterTrustBundleSpecFluent> extends BaseFluent{ private String signerName; private String trustBundle; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ClusterTrustBundleSpecFluent that = (V1beta1ClusterTrustBundleSpecFluent) o; + V1beta1ClusterTrustBundleSpecFluent that = (V1beta1ClusterTrustBundleSpecFluent) o; if (!(Objects.equals(signerName, that.signerName))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeDisruptionModeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeDisruptionModeBuilder.java new file mode 100644 index 0000000000..0fe515380a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeDisruptionModeBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1CompositeDisruptionModeBuilder extends V1beta1CompositeDisruptionModeFluent implements VisitableBuilder{ + + V1beta1CompositeDisruptionModeFluent fluent; + + public V1beta1CompositeDisruptionModeBuilder() { + this(new V1beta1CompositeDisruptionMode()); + } + + public V1beta1CompositeDisruptionModeBuilder(V1beta1CompositeDisruptionModeFluent fluent) { + this(fluent, new V1beta1CompositeDisruptionMode()); + } + + public V1beta1CompositeDisruptionModeBuilder(V1beta1CompositeDisruptionMode instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1CompositeDisruptionModeBuilder(V1beta1CompositeDisruptionModeFluent fluent,V1beta1CompositeDisruptionMode instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CompositeDisruptionMode build() { + V1beta1CompositeDisruptionMode buildable = new V1beta1CompositeDisruptionMode(); + buildable.setAll(fluent.getAll()); + buildable.setSingle(fluent.getSingle()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeDisruptionModeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeDisruptionModeFluent.java new file mode 100644 index 0000000000..0f346f7f11 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeDisruptionModeFluent.java @@ -0,0 +1,114 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1CompositeDisruptionModeFluent> extends BaseFluent{ + + private Object all; + private Object single; + + public V1beta1CompositeDisruptionModeFluent() { + } + + public V1beta1CompositeDisruptionModeFluent(V1beta1CompositeDisruptionMode instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1CompositeDisruptionMode instance) { + instance = instance != null ? instance : new V1beta1CompositeDisruptionMode(); + if (instance != null) { + this.withAll(instance.getAll()); + this.withSingle(instance.getSingle()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1CompositeDisruptionModeFluent that = (V1beta1CompositeDisruptionModeFluent) o; + if (!(Objects.equals(all, that.all))) { + return false; + } + if (!(Objects.equals(single, that.single))) { + return false; + } + return true; + } + + public Object getAll() { + return this.all; + } + + public Object getSingle() { + return this.single; + } + + public boolean hasAll() { + return this.all != null; + } + + public boolean hasSingle() { + return this.single != null; + } + + public int hashCode() { + return Objects.hash(all, single); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(all == null)) { + sb.append("all:"); + sb.append(all); + sb.append(","); + } + if (!(single == null)) { + sb.append("single:"); + sb.append(single); + } + sb.append("}"); + return sb.toString(); + } + + public A withAll(Object all) { + this.all = all; + return (A) this; + } + + public A withSingle(Object single) { + this.single = single; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeGangSchedulingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeGangSchedulingPolicyBuilder.java new file mode 100644 index 0000000000..3648c15f42 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeGangSchedulingPolicyBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1CompositeGangSchedulingPolicyBuilder extends V1beta1CompositeGangSchedulingPolicyFluent implements VisitableBuilder{ + + V1beta1CompositeGangSchedulingPolicyFluent fluent; + + public V1beta1CompositeGangSchedulingPolicyBuilder() { + this(new V1beta1CompositeGangSchedulingPolicy()); + } + + public V1beta1CompositeGangSchedulingPolicyBuilder(V1beta1CompositeGangSchedulingPolicyFluent fluent) { + this(fluent, new V1beta1CompositeGangSchedulingPolicy()); + } + + public V1beta1CompositeGangSchedulingPolicyBuilder(V1beta1CompositeGangSchedulingPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1CompositeGangSchedulingPolicyBuilder(V1beta1CompositeGangSchedulingPolicyFluent fluent,V1beta1CompositeGangSchedulingPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CompositeGangSchedulingPolicy build() { + V1beta1CompositeGangSchedulingPolicy buildable = new V1beta1CompositeGangSchedulingPolicy(); + buildable.setMinGroupCount(fluent.getMinGroupCount()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeGangSchedulingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeGangSchedulingPolicyFluent.java new file mode 100644 index 0000000000..38aaf2e73d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeGangSchedulingPolicyFluent.java @@ -0,0 +1,92 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1CompositeGangSchedulingPolicyFluent> extends BaseFluent{ + + private Integer minGroupCount; + + public V1beta1CompositeGangSchedulingPolicyFluent() { + } + + public V1beta1CompositeGangSchedulingPolicyFluent(V1beta1CompositeGangSchedulingPolicy instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1CompositeGangSchedulingPolicy instance) { + instance = instance != null ? instance : new V1beta1CompositeGangSchedulingPolicy(); + if (instance != null) { + this.withMinGroupCount(instance.getMinGroupCount()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1CompositeGangSchedulingPolicyFluent that = (V1beta1CompositeGangSchedulingPolicyFluent) o; + if (!(Objects.equals(minGroupCount, that.minGroupCount))) { + return false; + } + return true; + } + + public Integer getMinGroupCount() { + return this.minGroupCount; + } + + public boolean hasMinGroupCount() { + return this.minGroupCount != null; + } + + public int hashCode() { + return Objects.hash(minGroupCount); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(minGroupCount == null)) { + sb.append("minGroupCount:"); + sb.append(minGroupCount); + } + sb.append("}"); + return sb.toString(); + } + + public A withMinGroupCount(Integer minGroupCount) { + this.minGroupCount = minGroupCount; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingConstraintsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingConstraintsBuilder.java new file mode 100644 index 0000000000..c944937d04 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingConstraintsBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1CompositePodGroupSchedulingConstraintsBuilder extends V1beta1CompositePodGroupSchedulingConstraintsFluent implements VisitableBuilder{ + + V1beta1CompositePodGroupSchedulingConstraintsFluent fluent; + + public V1beta1CompositePodGroupSchedulingConstraintsBuilder() { + this(new V1beta1CompositePodGroupSchedulingConstraints()); + } + + public V1beta1CompositePodGroupSchedulingConstraintsBuilder(V1beta1CompositePodGroupSchedulingConstraintsFluent fluent) { + this(fluent, new V1beta1CompositePodGroupSchedulingConstraints()); + } + + public V1beta1CompositePodGroupSchedulingConstraintsBuilder(V1beta1CompositePodGroupSchedulingConstraints instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1CompositePodGroupSchedulingConstraintsBuilder(V1beta1CompositePodGroupSchedulingConstraintsFluent fluent,V1beta1CompositePodGroupSchedulingConstraints instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CompositePodGroupSchedulingConstraints build() { + V1beta1CompositePodGroupSchedulingConstraints buildable = new V1beta1CompositePodGroupSchedulingConstraints(); + buildable.setTopology(fluent.buildTopology()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingConstraintsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingConstraintsFluent.java new file mode 100644 index 0000000000..4f17afd16d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingConstraintsFluent.java @@ -0,0 +1,312 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1CompositePodGroupSchedulingConstraintsFluent> extends BaseFluent{ + + private ArrayList topology; + + public V1beta1CompositePodGroupSchedulingConstraintsFluent() { + } + + public V1beta1CompositePodGroupSchedulingConstraintsFluent(V1beta1CompositePodGroupSchedulingConstraints instance) { + this.copyInstance(instance); + } + + public A addAllToTopology(Collection items) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + for (V1beta1TopologyConstraint item : items) { + V1beta1TopologyConstraintBuilder builder = new V1beta1TopologyConstraintBuilder(item); + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } + return (A) this; + } + + public TopologyNested addNewTopology() { + return new TopologyNested<>(-1, null); + } + + public TopologyNested addNewTopologyLike(V1beta1TopologyConstraint item) { + return new TopologyNested<>(-1, item); + } + + public A addToTopology(V1beta1TopologyConstraint... items) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + for (V1beta1TopologyConstraint item : items) { + V1beta1TopologyConstraintBuilder builder = new V1beta1TopologyConstraintBuilder(item); + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } + return (A) this; + } + + public A addToTopology(int index,V1beta1TopologyConstraint item) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + V1beta1TopologyConstraintBuilder builder = new V1beta1TopologyConstraintBuilder(item); + if (index < 0 || index >= this.topology.size()) { + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } else { + this._visitables.get("topology").add(builder); + this.topology.add(index, builder); + } + return (A) this; + } + + public V1beta1TopologyConstraint buildFirstTopology() { + return this.topology.get(0).build(); + } + + public V1beta1TopologyConstraint buildLastTopology() { + return this.topology.get(topology.size() - 1).build(); + } + + public V1beta1TopologyConstraint buildMatchingTopology(Predicate predicate) { + for (V1beta1TopologyConstraintBuilder item : topology) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public List buildTopology() { + return this.topology != null ? build(topology) : null; + } + + public V1beta1TopologyConstraint buildTopology(int index) { + return this.topology.get(index).build(); + } + + protected void copyInstance(V1beta1CompositePodGroupSchedulingConstraints instance) { + instance = instance != null ? instance : new V1beta1CompositePodGroupSchedulingConstraints(); + if (instance != null) { + this.withTopology(instance.getTopology()); + } + } + + public TopologyNested editFirstTopology() { + if (topology.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "topology")); + } + return this.setNewTopologyLike(0, this.buildTopology(0)); + } + + public TopologyNested editLastTopology() { + int index = topology.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public TopologyNested editMatchingTopology(Predicate predicate) { + int index = -1; + for (int i = 0;i < topology.size();i++) { + if (predicate.test(topology.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public TopologyNested editTopology(int index) { + if (topology.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1CompositePodGroupSchedulingConstraintsFluent that = (V1beta1CompositePodGroupSchedulingConstraintsFluent) o; + if (!(Objects.equals(topology, that.topology))) { + return false; + } + return true; + } + + public boolean hasMatchingTopology(Predicate predicate) { + for (V1beta1TopologyConstraintBuilder item : topology) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasTopology() { + return this.topology != null && !(this.topology.isEmpty()); + } + + public int hashCode() { + return Objects.hash(topology); + } + + public A removeAllFromTopology(Collection items) { + if (this.topology == null) { + return (A) this; + } + for (V1beta1TopologyConstraint item : items) { + V1beta1TopologyConstraintBuilder builder = new V1beta1TopologyConstraintBuilder(item); + _visitables.get("topology").remove(builder); + this.topology.remove(builder); + } + return (A) this; + } + + public A removeFromTopology(V1beta1TopologyConstraint... items) { + if (this.topology == null) { + return (A) this; + } + for (V1beta1TopologyConstraint item : items) { + V1beta1TopologyConstraintBuilder builder = new V1beta1TopologyConstraintBuilder(item); + _visitables.get("topology").remove(builder); + this.topology.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromTopology(Predicate predicate) { + if (topology == null) { + return (A) this; + } + Iterator each = topology.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("topology"); + while (each.hasNext()) { + V1beta1TopologyConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public TopologyNested setNewTopologyLike(int index,V1beta1TopologyConstraint item) { + return new TopologyNested<>(index, item); + } + + public A setToTopology(int index,V1beta1TopologyConstraint item) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + V1beta1TopologyConstraintBuilder builder = new V1beta1TopologyConstraintBuilder(item); + if (index < 0 || index >= this.topology.size()) { + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } else { + this._visitables.get("topology").add(builder); + this.topology.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(topology == null) && !(topology.isEmpty())) { + sb.append("topology:"); + sb.append(topology); + } + sb.append("}"); + return sb.toString(); + } + + public A withTopology(List topology) { + if (this.topology != null) { + this._visitables.get("topology").clear(); + } + if (topology != null) { + this.topology = new ArrayList<>(); + for (V1beta1TopologyConstraint item : topology) { + this.addToTopology(item); + } + } else { + this.topology = null; + } + return (A) this; + } + + public A withTopology(V1beta1TopologyConstraint... topology) { + if (this.topology != null) { + this.topology.clear(); + _visitables.remove("topology"); + } + if (topology != null) { + for (V1beta1TopologyConstraint item : topology) { + this.addToTopology(item); + } + } + return (A) this; + } + public class TopologyNested extends V1beta1TopologyConstraintFluent> implements Nested{ + + V1beta1TopologyConstraintBuilder builder; + int index; + + TopologyNested(int index,V1beta1TopologyConstraint item) { + this.index = index; + this.builder = new V1beta1TopologyConstraintBuilder(this, item); + } + + public N and() { + return (N) V1beta1CompositePodGroupSchedulingConstraintsFluent.this.setToTopology(index, builder.build()); + } + + public N endTopology() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingPolicyBuilder.java new file mode 100644 index 0000000000..2122795f53 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingPolicyBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1CompositePodGroupSchedulingPolicyBuilder extends V1beta1CompositePodGroupSchedulingPolicyFluent implements VisitableBuilder{ + + V1beta1CompositePodGroupSchedulingPolicyFluent fluent; + + public V1beta1CompositePodGroupSchedulingPolicyBuilder() { + this(new V1beta1CompositePodGroupSchedulingPolicy()); + } + + public V1beta1CompositePodGroupSchedulingPolicyBuilder(V1beta1CompositePodGroupSchedulingPolicyFluent fluent) { + this(fluent, new V1beta1CompositePodGroupSchedulingPolicy()); + } + + public V1beta1CompositePodGroupSchedulingPolicyBuilder(V1beta1CompositePodGroupSchedulingPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1CompositePodGroupSchedulingPolicyBuilder(V1beta1CompositePodGroupSchedulingPolicyFluent fluent,V1beta1CompositePodGroupSchedulingPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CompositePodGroupSchedulingPolicy build() { + V1beta1CompositePodGroupSchedulingPolicy buildable = new V1beta1CompositePodGroupSchedulingPolicy(); + buildable.setBasic(fluent.getBasic()); + buildable.setGang(fluent.buildGang()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingPolicyFluent.java new file mode 100644 index 0000000000..13a8eb6b69 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingPolicyFluent.java @@ -0,0 +1,159 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1CompositePodGroupSchedulingPolicyFluent> extends BaseFluent{ + + private Object basic; + private V1beta1CompositeGangSchedulingPolicyBuilder gang; + + public V1beta1CompositePodGroupSchedulingPolicyFluent() { + } + + public V1beta1CompositePodGroupSchedulingPolicyFluent(V1beta1CompositePodGroupSchedulingPolicy instance) { + this.copyInstance(instance); + } + + public V1beta1CompositeGangSchedulingPolicy buildGang() { + return this.gang != null ? this.gang.build() : null; + } + + protected void copyInstance(V1beta1CompositePodGroupSchedulingPolicy instance) { + instance = instance != null ? instance : new V1beta1CompositePodGroupSchedulingPolicy(); + if (instance != null) { + this.withBasic(instance.getBasic()); + this.withGang(instance.getGang()); + } + } + + public GangNested editGang() { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(null)); + } + + public GangNested editOrNewGang() { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(new V1beta1CompositeGangSchedulingPolicyBuilder().build())); + } + + public GangNested editOrNewGangLike(V1beta1CompositeGangSchedulingPolicy item) { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1CompositePodGroupSchedulingPolicyFluent that = (V1beta1CompositePodGroupSchedulingPolicyFluent) o; + if (!(Objects.equals(basic, that.basic))) { + return false; + } + if (!(Objects.equals(gang, that.gang))) { + return false; + } + return true; + } + + public Object getBasic() { + return this.basic; + } + + public boolean hasBasic() { + return this.basic != null; + } + + public boolean hasGang() { + return this.gang != null; + } + + public int hashCode() { + return Objects.hash(basic, gang); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(basic == null)) { + sb.append("basic:"); + sb.append(basic); + sb.append(","); + } + if (!(gang == null)) { + sb.append("gang:"); + sb.append(gang); + } + sb.append("}"); + return sb.toString(); + } + + public A withBasic(Object basic) { + this.basic = basic; + return (A) this; + } + + public A withGang(V1beta1CompositeGangSchedulingPolicy gang) { + this._visitables.remove("gang"); + if (gang != null) { + this.gang = new V1beta1CompositeGangSchedulingPolicyBuilder(gang); + this._visitables.get("gang").add(this.gang); + } else { + this._visitables.get("gang").remove(this.gang); + this.gang = null; + } + return (A) this; + } + + public GangNested withNewGang() { + return new GangNested<>(null); + } + + public GangNested withNewGangLike(V1beta1CompositeGangSchedulingPolicy item) { + return new GangNested<>(item); + } + public class GangNested extends V1beta1CompositeGangSchedulingPolicyFluent> implements Nested{ + + V1beta1CompositeGangSchedulingPolicyBuilder builder; + + GangNested(V1beta1CompositeGangSchedulingPolicy item) { + this.builder = new V1beta1CompositeGangSchedulingPolicyBuilder(this, item); + } + + public N and() { + return (N) V1beta1CompositePodGroupSchedulingPolicyFluent.this.withGang(builder.build()); + } + + public N endGang() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupTemplateBuilder.java new file mode 100644 index 0000000000..89ce057b7e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupTemplateBuilder.java @@ -0,0 +1,54 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1CompositePodGroupTemplateBuilder extends V1beta1CompositePodGroupTemplateFluent implements VisitableBuilder{ + + V1beta1CompositePodGroupTemplateFluent fluent; + + public V1beta1CompositePodGroupTemplateBuilder() { + this(new V1beta1CompositePodGroupTemplate()); + } + + public V1beta1CompositePodGroupTemplateBuilder(V1beta1CompositePodGroupTemplateFluent fluent) { + this(fluent, new V1beta1CompositePodGroupTemplate()); + } + + public V1beta1CompositePodGroupTemplateBuilder(V1beta1CompositePodGroupTemplate instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1CompositePodGroupTemplateBuilder(V1beta1CompositePodGroupTemplateFluent fluent,V1beta1CompositePodGroupTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CompositePodGroupTemplate build() { + V1beta1CompositePodGroupTemplate buildable = new V1beta1CompositePodGroupTemplate(); + buildable.setCompositePodGroupTemplates(fluent.buildCompositePodGroupTemplates()); + buildable.setDisruptionMode(fluent.buildDisruptionMode()); + buildable.setName(fluent.getName()); + buildable.setPodGroupTemplates(fluent.buildPodGroupTemplates()); + buildable.setPreemptionPolicy(fluent.getPreemptionPolicy()); + buildable.setPriority(fluent.getPriority()); + buildable.setPriorityClassName(fluent.getPriorityClassName()); + buildable.setSchedulingConstraints(fluent.buildSchedulingConstraints()); + buildable.setSchedulingPolicy(fluent.buildSchedulingPolicy()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupTemplateFluent.java new file mode 100644 index 0000000000..d27e4e1cb5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupTemplateFluent.java @@ -0,0 +1,845 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1CompositePodGroupTemplateFluent> extends BaseFluent{ + + private ArrayList compositePodGroupTemplates; + private V1beta1CompositeDisruptionModeBuilder disruptionMode; + private String name; + private ArrayList podGroupTemplates; + private String preemptionPolicy; + private Integer priority; + private String priorityClassName; + private V1beta1CompositePodGroupSchedulingConstraintsBuilder schedulingConstraints; + private V1beta1CompositePodGroupSchedulingPolicyBuilder schedulingPolicy; + + public V1beta1CompositePodGroupTemplateFluent() { + } + + public V1beta1CompositePodGroupTemplateFluent(V1beta1CompositePodGroupTemplate instance) { + this.copyInstance(instance); + } + + public A addAllToCompositePodGroupTemplates(Collection items) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + for (V1beta1CompositePodGroupTemplate item : items) { + V1beta1CompositePodGroupTemplateBuilder builder = new V1beta1CompositePodGroupTemplateBuilder(item); + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } + return (A) this; + } + + public A addAllToPodGroupTemplates(Collection items) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + for (V1beta1PodGroupTemplate item : items) { + V1beta1PodGroupTemplateBuilder builder = new V1beta1PodGroupTemplateBuilder(item); + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } + return (A) this; + } + + public CompositePodGroupTemplatesNested addNewCompositePodGroupTemplate() { + return new CompositePodGroupTemplatesNested<>(-1, null); + } + + public CompositePodGroupTemplatesNested addNewCompositePodGroupTemplateLike(V1beta1CompositePodGroupTemplate item) { + return new CompositePodGroupTemplatesNested<>(-1, item); + } + + public PodGroupTemplatesNested addNewPodGroupTemplate() { + return new PodGroupTemplatesNested<>(-1, null); + } + + public PodGroupTemplatesNested addNewPodGroupTemplateLike(V1beta1PodGroupTemplate item) { + return new PodGroupTemplatesNested<>(-1, item); + } + + public A addToCompositePodGroupTemplates(V1beta1CompositePodGroupTemplate... items) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + for (V1beta1CompositePodGroupTemplate item : items) { + V1beta1CompositePodGroupTemplateBuilder builder = new V1beta1CompositePodGroupTemplateBuilder(item); + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } + return (A) this; + } + + public A addToCompositePodGroupTemplates(int index,V1beta1CompositePodGroupTemplate item) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + V1beta1CompositePodGroupTemplateBuilder builder = new V1beta1CompositePodGroupTemplateBuilder(item); + if (index < 0 || index >= this.compositePodGroupTemplates.size()) { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } else { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(index, builder); + } + return (A) this; + } + + public A addToPodGroupTemplates(V1beta1PodGroupTemplate... items) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + for (V1beta1PodGroupTemplate item : items) { + V1beta1PodGroupTemplateBuilder builder = new V1beta1PodGroupTemplateBuilder(item); + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } + return (A) this; + } + + public A addToPodGroupTemplates(int index,V1beta1PodGroupTemplate item) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + V1beta1PodGroupTemplateBuilder builder = new V1beta1PodGroupTemplateBuilder(item); + if (index < 0 || index >= this.podGroupTemplates.size()) { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } else { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(index, builder); + } + return (A) this; + } + + public V1beta1CompositePodGroupTemplate buildCompositePodGroupTemplate(int index) { + return this.compositePodGroupTemplates.get(index).build(); + } + + public List buildCompositePodGroupTemplates() { + return this.compositePodGroupTemplates != null ? build(compositePodGroupTemplates) : null; + } + + public V1beta1CompositeDisruptionMode buildDisruptionMode() { + return this.disruptionMode != null ? this.disruptionMode.build() : null; + } + + public V1beta1CompositePodGroupTemplate buildFirstCompositePodGroupTemplate() { + return this.compositePodGroupTemplates.get(0).build(); + } + + public V1beta1PodGroupTemplate buildFirstPodGroupTemplate() { + return this.podGroupTemplates.get(0).build(); + } + + public V1beta1CompositePodGroupTemplate buildLastCompositePodGroupTemplate() { + return this.compositePodGroupTemplates.get(compositePodGroupTemplates.size() - 1).build(); + } + + public V1beta1PodGroupTemplate buildLastPodGroupTemplate() { + return this.podGroupTemplates.get(podGroupTemplates.size() - 1).build(); + } + + public V1beta1CompositePodGroupTemplate buildMatchingCompositePodGroupTemplate(Predicate predicate) { + for (V1beta1CompositePodGroupTemplateBuilder item : compositePodGroupTemplates) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1PodGroupTemplate buildMatchingPodGroupTemplate(Predicate predicate) { + for (V1beta1PodGroupTemplateBuilder item : podGroupTemplates) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1PodGroupTemplate buildPodGroupTemplate(int index) { + return this.podGroupTemplates.get(index).build(); + } + + public List buildPodGroupTemplates() { + return this.podGroupTemplates != null ? build(podGroupTemplates) : null; + } + + public V1beta1CompositePodGroupSchedulingConstraints buildSchedulingConstraints() { + return this.schedulingConstraints != null ? this.schedulingConstraints.build() : null; + } + + public V1beta1CompositePodGroupSchedulingPolicy buildSchedulingPolicy() { + return this.schedulingPolicy != null ? this.schedulingPolicy.build() : null; + } + + protected void copyInstance(V1beta1CompositePodGroupTemplate instance) { + instance = instance != null ? instance : new V1beta1CompositePodGroupTemplate(); + if (instance != null) { + this.withCompositePodGroupTemplates(instance.getCompositePodGroupTemplates()); + this.withDisruptionMode(instance.getDisruptionMode()); + this.withName(instance.getName()); + this.withPodGroupTemplates(instance.getPodGroupTemplates()); + this.withPreemptionPolicy(instance.getPreemptionPolicy()); + this.withPriority(instance.getPriority()); + this.withPriorityClassName(instance.getPriorityClassName()); + this.withSchedulingConstraints(instance.getSchedulingConstraints()); + this.withSchedulingPolicy(instance.getSchedulingPolicy()); + } + } + + public CompositePodGroupTemplatesNested editCompositePodGroupTemplate(int index) { + if (compositePodGroupTemplates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(index, this.buildCompositePodGroupTemplate(index)); + } + + public DisruptionModeNested editDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(null)); + } + + public CompositePodGroupTemplatesNested editFirstCompositePodGroupTemplate() { + if (compositePodGroupTemplates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(0, this.buildCompositePodGroupTemplate(0)); + } + + public PodGroupTemplatesNested editFirstPodGroupTemplate() { + if (podGroupTemplates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(0, this.buildPodGroupTemplate(0)); + } + + public CompositePodGroupTemplatesNested editLastCompositePodGroupTemplate() { + int index = compositePodGroupTemplates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(index, this.buildCompositePodGroupTemplate(index)); + } + + public PodGroupTemplatesNested editLastPodGroupTemplate() { + int index = podGroupTemplates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public CompositePodGroupTemplatesNested editMatchingCompositePodGroupTemplate(Predicate predicate) { + int index = -1; + for (int i = 0;i < compositePodGroupTemplates.size();i++) { + if (predicate.test(compositePodGroupTemplates.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(index, this.buildCompositePodGroupTemplate(index)); + } + + public PodGroupTemplatesNested editMatchingPodGroupTemplate(Predicate predicate) { + int index = -1; + for (int i = 0;i < podGroupTemplates.size();i++) { + if (predicate.test(podGroupTemplates.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public DisruptionModeNested editOrNewDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(new V1beta1CompositeDisruptionModeBuilder().build())); + } + + public DisruptionModeNested editOrNewDisruptionModeLike(V1beta1CompositeDisruptionMode item) { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(item)); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(new V1beta1CompositePodGroupSchedulingConstraintsBuilder().build())); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraintsLike(V1beta1CompositePodGroupSchedulingConstraints item) { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(item)); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(new V1beta1CompositePodGroupSchedulingPolicyBuilder().build())); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicyLike(V1beta1CompositePodGroupSchedulingPolicy item) { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(item)); + } + + public PodGroupTemplatesNested editPodGroupTemplate(int index) { + if (podGroupTemplates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public SchedulingConstraintsNested editSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(null)); + } + + public SchedulingPolicyNested editSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1CompositePodGroupTemplateFluent that = (V1beta1CompositePodGroupTemplateFluent) o; + if (!(Objects.equals(compositePodGroupTemplates, that.compositePodGroupTemplates))) { + return false; + } + if (!(Objects.equals(disruptionMode, that.disruptionMode))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(podGroupTemplates, that.podGroupTemplates))) { + return false; + } + if (!(Objects.equals(preemptionPolicy, that.preemptionPolicy))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + if (!(Objects.equals(priorityClassName, that.priorityClassName))) { + return false; + } + if (!(Objects.equals(schedulingConstraints, that.schedulingConstraints))) { + return false; + } + if (!(Objects.equals(schedulingPolicy, that.schedulingPolicy))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public String getPreemptionPolicy() { + return this.preemptionPolicy; + } + + public Integer getPriority() { + return this.priority; + } + + public String getPriorityClassName() { + return this.priorityClassName; + } + + public boolean hasCompositePodGroupTemplates() { + return this.compositePodGroupTemplates != null && !(this.compositePodGroupTemplates.isEmpty()); + } + + public boolean hasDisruptionMode() { + return this.disruptionMode != null; + } + + public boolean hasMatchingCompositePodGroupTemplate(Predicate predicate) { + for (V1beta1CompositePodGroupTemplateBuilder item : compositePodGroupTemplates) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingPodGroupTemplate(Predicate predicate) { + for (V1beta1PodGroupTemplateBuilder item : podGroupTemplates) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasPodGroupTemplates() { + return this.podGroupTemplates != null && !(this.podGroupTemplates.isEmpty()); + } + + public boolean hasPreemptionPolicy() { + return this.preemptionPolicy != null; + } + + public boolean hasPriority() { + return this.priority != null; + } + + public boolean hasPriorityClassName() { + return this.priorityClassName != null; + } + + public boolean hasSchedulingConstraints() { + return this.schedulingConstraints != null; + } + + public boolean hasSchedulingPolicy() { + return this.schedulingPolicy != null; + } + + public int hashCode() { + return Objects.hash(compositePodGroupTemplates, disruptionMode, name, podGroupTemplates, preemptionPolicy, priority, priorityClassName, schedulingConstraints, schedulingPolicy); + } + + public A removeAllFromCompositePodGroupTemplates(Collection items) { + if (this.compositePodGroupTemplates == null) { + return (A) this; + } + for (V1beta1CompositePodGroupTemplate item : items) { + V1beta1CompositePodGroupTemplateBuilder builder = new V1beta1CompositePodGroupTemplateBuilder(item); + _visitables.get("compositePodGroupTemplates").remove(builder); + this.compositePodGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeAllFromPodGroupTemplates(Collection items) { + if (this.podGroupTemplates == null) { + return (A) this; + } + for (V1beta1PodGroupTemplate item : items) { + V1beta1PodGroupTemplateBuilder builder = new V1beta1PodGroupTemplateBuilder(item); + _visitables.get("podGroupTemplates").remove(builder); + this.podGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeFromCompositePodGroupTemplates(V1beta1CompositePodGroupTemplate... items) { + if (this.compositePodGroupTemplates == null) { + return (A) this; + } + for (V1beta1CompositePodGroupTemplate item : items) { + V1beta1CompositePodGroupTemplateBuilder builder = new V1beta1CompositePodGroupTemplateBuilder(item); + _visitables.get("compositePodGroupTemplates").remove(builder); + this.compositePodGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeFromPodGroupTemplates(V1beta1PodGroupTemplate... items) { + if (this.podGroupTemplates == null) { + return (A) this; + } + for (V1beta1PodGroupTemplate item : items) { + V1beta1PodGroupTemplateBuilder builder = new V1beta1PodGroupTemplateBuilder(item); + _visitables.get("podGroupTemplates").remove(builder); + this.podGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromCompositePodGroupTemplates(Predicate predicate) { + if (compositePodGroupTemplates == null) { + return (A) this; + } + Iterator each = compositePodGroupTemplates.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("compositePodGroupTemplates"); + while (each.hasNext()) { + V1beta1CompositePodGroupTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromPodGroupTemplates(Predicate predicate) { + if (podGroupTemplates == null) { + return (A) this; + } + Iterator each = podGroupTemplates.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("podGroupTemplates"); + while (each.hasNext()) { + V1beta1PodGroupTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public CompositePodGroupTemplatesNested setNewCompositePodGroupTemplateLike(int index,V1beta1CompositePodGroupTemplate item) { + return new CompositePodGroupTemplatesNested<>(index, item); + } + + public PodGroupTemplatesNested setNewPodGroupTemplateLike(int index,V1beta1PodGroupTemplate item) { + return new PodGroupTemplatesNested<>(index, item); + } + + public A setToCompositePodGroupTemplates(int index,V1beta1CompositePodGroupTemplate item) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + V1beta1CompositePodGroupTemplateBuilder builder = new V1beta1CompositePodGroupTemplateBuilder(item); + if (index < 0 || index >= this.compositePodGroupTemplates.size()) { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } else { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.set(index, builder); + } + return (A) this; + } + + public A setToPodGroupTemplates(int index,V1beta1PodGroupTemplate item) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + V1beta1PodGroupTemplateBuilder builder = new V1beta1PodGroupTemplateBuilder(item); + if (index < 0 || index >= this.podGroupTemplates.size()) { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } else { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(compositePodGroupTemplates == null) && !(compositePodGroupTemplates.isEmpty())) { + sb.append("compositePodGroupTemplates:"); + sb.append(compositePodGroupTemplates); + sb.append(","); + } + if (!(disruptionMode == null)) { + sb.append("disruptionMode:"); + sb.append(disruptionMode); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(podGroupTemplates == null) && !(podGroupTemplates.isEmpty())) { + sb.append("podGroupTemplates:"); + sb.append(podGroupTemplates); + sb.append(","); + } + if (!(preemptionPolicy == null)) { + sb.append("preemptionPolicy:"); + sb.append(preemptionPolicy); + sb.append(","); + } + if (!(priority == null)) { + sb.append("priority:"); + sb.append(priority); + sb.append(","); + } + if (!(priorityClassName == null)) { + sb.append("priorityClassName:"); + sb.append(priorityClassName); + sb.append(","); + } + if (!(schedulingConstraints == null)) { + sb.append("schedulingConstraints:"); + sb.append(schedulingConstraints); + sb.append(","); + } + if (!(schedulingPolicy == null)) { + sb.append("schedulingPolicy:"); + sb.append(schedulingPolicy); + } + sb.append("}"); + return sb.toString(); + } + + public A withCompositePodGroupTemplates(List compositePodGroupTemplates) { + if (this.compositePodGroupTemplates != null) { + this._visitables.get("compositePodGroupTemplates").clear(); + } + if (compositePodGroupTemplates != null) { + this.compositePodGroupTemplates = new ArrayList<>(); + for (V1beta1CompositePodGroupTemplate item : compositePodGroupTemplates) { + this.addToCompositePodGroupTemplates(item); + } + } else { + this.compositePodGroupTemplates = null; + } + return (A) this; + } + + public A withCompositePodGroupTemplates(V1beta1CompositePodGroupTemplate... compositePodGroupTemplates) { + if (this.compositePodGroupTemplates != null) { + this.compositePodGroupTemplates.clear(); + _visitables.remove("compositePodGroupTemplates"); + } + if (compositePodGroupTemplates != null) { + for (V1beta1CompositePodGroupTemplate item : compositePodGroupTemplates) { + this.addToCompositePodGroupTemplates(item); + } + } + return (A) this; + } + + public A withDisruptionMode(V1beta1CompositeDisruptionMode disruptionMode) { + this._visitables.remove("disruptionMode"); + if (disruptionMode != null) { + this.disruptionMode = new V1beta1CompositeDisruptionModeBuilder(disruptionMode); + this._visitables.get("disruptionMode").add(this.disruptionMode); + } else { + this._visitables.get("disruptionMode").remove(this.disruptionMode); + this.disruptionMode = null; + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public DisruptionModeNested withNewDisruptionMode() { + return new DisruptionModeNested<>(null); + } + + public DisruptionModeNested withNewDisruptionModeLike(V1beta1CompositeDisruptionMode item) { + return new DisruptionModeNested<>(item); + } + + public SchedulingConstraintsNested withNewSchedulingConstraints() { + return new SchedulingConstraintsNested<>(null); + } + + public SchedulingConstraintsNested withNewSchedulingConstraintsLike(V1beta1CompositePodGroupSchedulingConstraints item) { + return new SchedulingConstraintsNested<>(item); + } + + public SchedulingPolicyNested withNewSchedulingPolicy() { + return new SchedulingPolicyNested<>(null); + } + + public SchedulingPolicyNested withNewSchedulingPolicyLike(V1beta1CompositePodGroupSchedulingPolicy item) { + return new SchedulingPolicyNested<>(item); + } + + public A withPodGroupTemplates(List podGroupTemplates) { + if (this.podGroupTemplates != null) { + this._visitables.get("podGroupTemplates").clear(); + } + if (podGroupTemplates != null) { + this.podGroupTemplates = new ArrayList<>(); + for (V1beta1PodGroupTemplate item : podGroupTemplates) { + this.addToPodGroupTemplates(item); + } + } else { + this.podGroupTemplates = null; + } + return (A) this; + } + + public A withPodGroupTemplates(V1beta1PodGroupTemplate... podGroupTemplates) { + if (this.podGroupTemplates != null) { + this.podGroupTemplates.clear(); + _visitables.remove("podGroupTemplates"); + } + if (podGroupTemplates != null) { + for (V1beta1PodGroupTemplate item : podGroupTemplates) { + this.addToPodGroupTemplates(item); + } + } + return (A) this; + } + + public A withPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return (A) this; + } + + public A withPriority(Integer priority) { + this.priority = priority; + return (A) this; + } + + public A withPriorityClassName(String priorityClassName) { + this.priorityClassName = priorityClassName; + return (A) this; + } + + public A withSchedulingConstraints(V1beta1CompositePodGroupSchedulingConstraints schedulingConstraints) { + this._visitables.remove("schedulingConstraints"); + if (schedulingConstraints != null) { + this.schedulingConstraints = new V1beta1CompositePodGroupSchedulingConstraintsBuilder(schedulingConstraints); + this._visitables.get("schedulingConstraints").add(this.schedulingConstraints); + } else { + this._visitables.get("schedulingConstraints").remove(this.schedulingConstraints); + this.schedulingConstraints = null; + } + return (A) this; + } + + public A withSchedulingPolicy(V1beta1CompositePodGroupSchedulingPolicy schedulingPolicy) { + this._visitables.remove("schedulingPolicy"); + if (schedulingPolicy != null) { + this.schedulingPolicy = new V1beta1CompositePodGroupSchedulingPolicyBuilder(schedulingPolicy); + this._visitables.get("schedulingPolicy").add(this.schedulingPolicy); + } else { + this._visitables.get("schedulingPolicy").remove(this.schedulingPolicy); + this.schedulingPolicy = null; + } + return (A) this; + } + public class CompositePodGroupTemplatesNested extends V1beta1CompositePodGroupTemplateFluent> implements Nested{ + + V1beta1CompositePodGroupTemplateBuilder builder; + int index; + + CompositePodGroupTemplatesNested(int index,V1beta1CompositePodGroupTemplate item) { + this.index = index; + this.builder = new V1beta1CompositePodGroupTemplateBuilder(this, item); + } + + public N and() { + return (N) V1beta1CompositePodGroupTemplateFluent.this.setToCompositePodGroupTemplates(index, builder.build()); + } + + public N endCompositePodGroupTemplate() { + return and(); + } + + } + public class DisruptionModeNested extends V1beta1CompositeDisruptionModeFluent> implements Nested{ + + V1beta1CompositeDisruptionModeBuilder builder; + + DisruptionModeNested(V1beta1CompositeDisruptionMode item) { + this.builder = new V1beta1CompositeDisruptionModeBuilder(this, item); + } + + public N and() { + return (N) V1beta1CompositePodGroupTemplateFluent.this.withDisruptionMode(builder.build()); + } + + public N endDisruptionMode() { + return and(); + } + + } + public class PodGroupTemplatesNested extends V1beta1PodGroupTemplateFluent> implements Nested{ + + V1beta1PodGroupTemplateBuilder builder; + int index; + + PodGroupTemplatesNested(int index,V1beta1PodGroupTemplate item) { + this.index = index; + this.builder = new V1beta1PodGroupTemplateBuilder(this, item); + } + + public N and() { + return (N) V1beta1CompositePodGroupTemplateFluent.this.setToPodGroupTemplates(index, builder.build()); + } + + public N endPodGroupTemplate() { + return and(); + } + + } + public class SchedulingConstraintsNested extends V1beta1CompositePodGroupSchedulingConstraintsFluent> implements Nested{ + + V1beta1CompositePodGroupSchedulingConstraintsBuilder builder; + + SchedulingConstraintsNested(V1beta1CompositePodGroupSchedulingConstraints item) { + this.builder = new V1beta1CompositePodGroupSchedulingConstraintsBuilder(this, item); + } + + public N and() { + return (N) V1beta1CompositePodGroupTemplateFluent.this.withSchedulingConstraints(builder.build()); + } + + public N endSchedulingConstraints() { + return and(); + } + + } + public class SchedulingPolicyNested extends V1beta1CompositePodGroupSchedulingPolicyFluent> implements Nested{ + + V1beta1CompositePodGroupSchedulingPolicyBuilder builder; + + SchedulingPolicyNested(V1beta1CompositePodGroupSchedulingPolicy item) { + this.builder = new V1beta1CompositePodGroupSchedulingPolicyBuilder(this, item); + } + + public N and() { + return (N) V1beta1CompositePodGroupTemplateFluent.this.withSchedulingPolicy(builder.build()); + } + + public N endSchedulingPolicy() { + return and(); + } + + } +} \ 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 index b4b7f8ca1a..a2011e16dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1CounterBuilder extends V1beta1CounterFluent implements VisitableBuilder{ V1beta1CounterFluent fluent; 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 index 6c416713aa..2f5d653e9b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1CounterFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1CounterFluent> extends BaseFluent{ private Quantity value; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1CounterFluent that = (V1beta1CounterFluent) o; + V1beta1CounterFluent that = (V1beta1CounterFluent) o; if (!(Objects.equals(value, that.value))) { return false; } 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 index 1f695534fa..e68b19f8fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1CounterSetBuilder extends V1beta1CounterSetFluent implements VisitableBuilder{ V1beta1CounterSetFluent fluent; 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 index 6922d0f64c..ef21cdeaa7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java @@ -20,12 +20,14 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1CounterSetFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1CounterSetFluent> extends BaseFluent{ private Map counters; private String name; @@ -39,7 +41,7 @@ public V1beta1CounterSetFluent(V1beta1CounterSet instance) { public A addToCounters(Map map) { if (this.counters == null && map != null) { - this.counters = new LinkedHashMap(); + this.counters = new LinkedHashMap<>(); } if (map != null) { this.counters.putAll(map); @@ -49,7 +51,7 @@ public A addToCounters(Map map) { public A addToCounters(String key,V1beta1Counter value) { if (this.counters == null && key != null && value != null) { - this.counters = new LinkedHashMap(); + this.counters = new LinkedHashMap<>(); } if (key != null && value != null) { this.counters.put(key, value); @@ -75,7 +77,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1CounterSetFluent that = (V1beta1CounterSetFluent) o; + V1beta1CounterSetFluent that = (V1beta1CounterSetFluent) o; if (!(Objects.equals(counters, that.counters))) { return false; } @@ -149,7 +151,7 @@ public A withCounters(Map counters) { if (counters == null) { this.counters = null; } else { - this.counters = new LinkedHashMap(counters); + this.counters = new LinkedHashMap<>(counters); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java index ce65040321..166982d4bc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceAllocationConfigurationBuilder extends V1beta1DeviceAllocationConfigurationFluent implements VisitableBuilder{ V1beta1DeviceAllocationConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java index 043909f51a..9d0b975571 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java @@ -24,12 +24,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceAllocationConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceAllocationConfigurationFluent> extends BaseFluent{ private V1beta1OpaqueDeviceConfigurationBuilder opaque; private List requests; @@ -44,7 +46,7 @@ public V1beta1DeviceAllocationConfigurationFluent(V1beta1DeviceAllocationConfigu public A addAllToRequests(Collection items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -54,7 +56,7 @@ public A addAllToRequests(Collection items) { public A addToRequests(String... items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -64,7 +66,7 @@ public A addToRequests(String... items) { public A addToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.add(index, item); return (A) this; @@ -105,7 +107,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceAllocationConfigurationFluent that = (V1beta1DeviceAllocationConfigurationFluent) o; + V1beta1DeviceAllocationConfigurationFluent that = (V1beta1DeviceAllocationConfigurationFluent) o; if (!(Objects.equals(opaque, that.opaque))) { return false; } @@ -194,7 +196,7 @@ public A removeFromRequests(String... items) { public A setToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.set(index, item); return (A) this; @@ -222,11 +224,11 @@ public String toString() { } public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); + return new OpaqueNested<>(null); } public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); + return new OpaqueNested<>(item); } public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { @@ -235,15 +237,15 @@ public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { this.opaque = new V1beta1OpaqueDeviceConfigurationBuilder(opaque); this._visitables.get("opaque").add(this.opaque); } else { - this.opaque = null; this._visitables.get("opaque").remove(this.opaque); + this.opaque = null; } return (A) this; } public A withRequests(List requests) { if (requests != null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); for (String item : requests) { this.addToRequests(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java index b9d977f6d4..d003247747 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceAllocationResultBuilder extends V1beta1DeviceAllocationResultFluent implements VisitableBuilder{ V1beta1DeviceAllocationResultFluent fluent; 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 34dc2fe926..bf63af35ff 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceAllocationResultFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceAllocationResultFluent> extends BaseFluent{ private ArrayList config; private ArrayList results; @@ -44,7 +46,7 @@ public V1beta1DeviceAllocationResultFluent(V1beta1DeviceAllocationResult instanc public A addAllToConfig(Collection items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1beta1DeviceAllocationConfiguration item : items) { V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); @@ -56,7 +58,7 @@ public A addAllToConfig(Collection items) public A addAllToResults(Collection items) { if (this.results == null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); } for (V1beta1DeviceRequestAllocationResult item : items) { V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); @@ -67,24 +69,24 @@ public A addAllToResults(Collection items) } public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + return new ConfigNested<>(-1, null); } public ConfigNested addNewConfigLike(V1beta1DeviceAllocationConfiguration item) { - return new ConfigNested(-1, item); + return new ConfigNested<>(-1, item); } public ResultsNested addNewResult() { - return new ResultsNested(-1, null); + return new ResultsNested<>(-1, null); } public ResultsNested addNewResultLike(V1beta1DeviceRequestAllocationResult item) { - return new ResultsNested(-1, item); + return new ResultsNested<>(-1, item); } public A addToConfig(V1beta1DeviceAllocationConfiguration... items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1beta1DeviceAllocationConfiguration item : items) { V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); @@ -96,7 +98,7 @@ public A addToConfig(V1beta1DeviceAllocationConfiguration... items) { public A addToConfig(int index,V1beta1DeviceAllocationConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -111,7 +113,7 @@ public A addToConfig(int index,V1beta1DeviceAllocationConfiguration item) { public A addToResults(V1beta1DeviceRequestAllocationResult... items) { if (this.results == null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); } for (V1beta1DeviceRequestAllocationResult item : items) { V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); @@ -123,7 +125,7 @@ public A addToResults(V1beta1DeviceRequestAllocationResult... items) { public A addToResults(int index,V1beta1DeviceRequestAllocationResult item) { if (this.results == null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); } V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); if (index < 0 || index >= this.results.size()) { @@ -276,7 +278,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceAllocationResultFluent that = (V1beta1DeviceAllocationResultFluent) o; + V1beta1DeviceAllocationResultFluent that = (V1beta1DeviceAllocationResultFluent) o; if (!(Objects.equals(config, that.config))) { return false; } @@ -369,6 +371,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("config"); while (each.hasNext()) { V1beta1DeviceAllocationConfigurationBuilder builder = each.next(); @@ -385,6 +388,7 @@ public A removeMatchingFromResults(Predicate each = results.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("results"); while (each.hasNext()) { V1beta1DeviceRequestAllocationResultBuilder builder = each.next(); @@ -397,16 +401,16 @@ public A removeMatchingFromResults(Predicate setNewConfigLike(int index,V1beta1DeviceAllocationConfiguration item) { - return new ConfigNested(index, item); + return new ConfigNested<>(index, item); } public ResultsNested setNewResultLike(int index,V1beta1DeviceRequestAllocationResult item) { - return new ResultsNested(index, item); + return new ResultsNested<>(index, item); } public A setToConfig(int index,V1beta1DeviceAllocationConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -421,7 +425,7 @@ public A setToConfig(int index,V1beta1DeviceAllocationConfiguration item) { public A setToResults(int index,V1beta1DeviceRequestAllocationResult item) { if (this.results == null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); } V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); if (index < 0 || index >= this.results.size()) { @@ -455,7 +459,7 @@ public A withConfig(List config) { this._visitables.get("config").clear(); } if (config != null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); for (V1beta1DeviceAllocationConfiguration item : config) { this.addToConfig(item); } @@ -483,7 +487,7 @@ public A withResults(List results) { this._visitables.get("results").clear(); } if (results != null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); for (V1beta1DeviceRequestAllocationResult item : results) { this.addToResults(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java index 1ff8c43661..c26496d00f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceAttributeBuilder extends V1beta1DeviceAttributeFluent implements VisitableBuilder{ V1beta1DeviceAttributeFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java index eb2d41e17c..741875c347 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java @@ -24,12 +24,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceAttributeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceAttributeFluent> extends BaseFluent{ private Long _int; private Boolean bool; @@ -49,7 +51,7 @@ public V1beta1DeviceAttributeFluent(V1beta1DeviceAttribute instance) { public A addAllToBools(Collection items) { if (this.bools == null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); } for (Boolean item : items) { this.bools.add(item); @@ -59,7 +61,7 @@ public A addAllToBools(Collection items) { public A addAllToInts(Collection items) { if (this.ints == null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); } for (Long item : items) { this.ints.add(item); @@ -69,7 +71,7 @@ public A addAllToInts(Collection items) { public A addAllToStrings(Collection items) { if (this.strings == null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); } for (String item : items) { this.strings.add(item); @@ -79,7 +81,7 @@ public A addAllToStrings(Collection items) { public A addAllToVersions(Collection items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (String item : items) { this.versions.add(item); @@ -89,7 +91,7 @@ public A addAllToVersions(Collection items) { public A addToBools(Boolean... items) { if (this.bools == null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); } for (Boolean item : items) { this.bools.add(item); @@ -99,7 +101,7 @@ public A addToBools(Boolean... items) { public A addToBools(int index,Boolean item) { if (this.bools == null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); } this.bools.add(index, item); return (A) this; @@ -107,7 +109,7 @@ public A addToBools(int index,Boolean item) { public A addToInts(Long... items) { if (this.ints == null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); } for (Long item : items) { this.ints.add(item); @@ -117,7 +119,7 @@ public A addToInts(Long... items) { public A addToInts(int index,Long item) { if (this.ints == null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); } this.ints.add(index, item); return (A) this; @@ -125,7 +127,7 @@ public A addToInts(int index,Long item) { public A addToStrings(String... items) { if (this.strings == null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); } for (String item : items) { this.strings.add(item); @@ -135,7 +137,7 @@ public A addToStrings(String... items) { public A addToStrings(int index,String item) { if (this.strings == null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); } this.strings.add(index, item); return (A) this; @@ -143,7 +145,7 @@ public A addToStrings(int index,String item) { public A addToVersions(String... items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (String item : items) { this.versions.add(item); @@ -153,7 +155,7 @@ public A addToVersions(String... items) { public A addToVersions(int index,String item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } this.versions.add(index, item); return (A) this; @@ -182,7 +184,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceAttributeFluent that = (V1beta1DeviceAttributeFluent) o; + V1beta1DeviceAttributeFluent that = (V1beta1DeviceAttributeFluent) o; if (!(Objects.equals(bool, that.bool))) { return false; } @@ -480,7 +482,7 @@ public A removeFromVersions(String... items) { public A setToBools(int index,Boolean item) { if (this.bools == null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); } this.bools.set(index, item); return (A) this; @@ -488,7 +490,7 @@ public A setToBools(int index,Boolean item) { public A setToInts(int index,Long item) { if (this.ints == null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); } this.ints.set(index, item); return (A) this; @@ -496,7 +498,7 @@ public A setToInts(int index,Long item) { public A setToStrings(int index,String item) { if (this.strings == null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); } this.strings.set(index, item); return (A) this; @@ -504,7 +506,7 @@ public A setToStrings(int index,String item) { public A setToVersions(int index,String item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } this.versions.set(index, item); return (A) this; @@ -567,7 +569,7 @@ public A withBool(Boolean bool) { public A withBools(List bools) { if (bools != null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); for (Boolean item : bools) { this.addToBools(item); } @@ -597,7 +599,7 @@ public A withInt(Long _int) { public A withInts(List ints) { if (ints != null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); for (Long item : ints) { this.addToInts(item); } @@ -627,7 +629,7 @@ public A withString(String string) { public A withStrings(List strings) { if (strings != null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); for (String item : strings) { this.addToStrings(item); } @@ -657,7 +659,7 @@ public A withVersion(String version) { public A withVersions(List versions) { if (versions != null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); for (String item : versions) { this.addToVersions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java index d095103e68..d65a0e63e6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceBuilder extends V1beta1DeviceFluent implements VisitableBuilder{ V1beta1DeviceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java index 5ab39e03f7..08e7dca795 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceCapacityBuilder extends V1beta1DeviceCapacityFluent implements VisitableBuilder{ V1beta1DeviceCapacityFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java index 156a842eba..6cbbec8669 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceCapacityFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceCapacityFluent> extends BaseFluent{ private V1beta1CapacityRequestPolicyBuilder requestPolicy; private Quantity value; @@ -72,7 +74,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceCapacityFluent that = (V1beta1DeviceCapacityFluent) o; + V1beta1DeviceCapacityFluent that = (V1beta1DeviceCapacityFluent) o; if (!(Objects.equals(requestPolicy, that.requestPolicy))) { return false; } @@ -115,11 +117,11 @@ public String toString() { } public RequestPolicyNested withNewRequestPolicy() { - return new RequestPolicyNested(null); + return new RequestPolicyNested<>(null); } public RequestPolicyNested withNewRequestPolicyLike(V1beta1CapacityRequestPolicy item) { - return new RequestPolicyNested(item); + return new RequestPolicyNested<>(item); } public A withNewValue(String value) { @@ -132,8 +134,8 @@ public A withRequestPolicy(V1beta1CapacityRequestPolicy requestPolicy) { this.requestPolicy = new V1beta1CapacityRequestPolicyBuilder(requestPolicy); this._visitables.get("requestPolicy").add(this.requestPolicy); } else { - this.requestPolicy = null; this._visitables.get("requestPolicy").remove(this.requestPolicy); + this.requestPolicy = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java index 8a2eb4d88f..52dbf9d04e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceClaimBuilder extends V1beta1DeviceClaimFluent implements VisitableBuilder{ V1beta1DeviceClaimFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java index a8dece7415..1d9b733070 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceClaimConfigurationBuilder extends V1beta1DeviceClaimConfigurationFluent implements VisitableBuilder{ V1beta1DeviceClaimConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java index 76f9b63a5a..1413489bd0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java @@ -24,12 +24,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceClaimConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceClaimConfigurationFluent> extends BaseFluent{ private V1beta1OpaqueDeviceConfigurationBuilder opaque; private List requests; @@ -43,7 +45,7 @@ public V1beta1DeviceClaimConfigurationFluent(V1beta1DeviceClaimConfiguration ins public A addAllToRequests(Collection items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -53,7 +55,7 @@ public A addAllToRequests(Collection items) { public A addToRequests(String... items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -63,7 +65,7 @@ public A addToRequests(String... items) { public A addToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.add(index, item); return (A) this; @@ -103,7 +105,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceClaimConfigurationFluent that = (V1beta1DeviceClaimConfigurationFluent) o; + V1beta1DeviceClaimConfigurationFluent that = (V1beta1DeviceClaimConfigurationFluent) o; if (!(Objects.equals(opaque, that.opaque))) { return false; } @@ -181,7 +183,7 @@ public A removeFromRequests(String... items) { public A setToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.set(index, item); return (A) this; @@ -204,11 +206,11 @@ public String toString() { } public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); + return new OpaqueNested<>(null); } public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); + return new OpaqueNested<>(item); } public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { @@ -217,15 +219,15 @@ public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { this.opaque = new V1beta1OpaqueDeviceConfigurationBuilder(opaque); this._visitables.get("opaque").add(this.opaque); } else { - this.opaque = null; this._visitables.get("opaque").remove(this.opaque); + this.opaque = null; } return (A) this; } public A withRequests(List requests) { if (requests != null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); for (String item : requests) { this.addToRequests(item); } 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 51b7195fff..096fed845a 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceClaimFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceClaimFluent> extends BaseFluent{ private ArrayList config; private ArrayList constraints; @@ -45,7 +47,7 @@ public V1beta1DeviceClaimFluent(V1beta1DeviceClaim instance) { public A addAllToConfig(Collection items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1beta1DeviceClaimConfiguration item : items) { V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); @@ -57,7 +59,7 @@ public A addAllToConfig(Collection items) { public A addAllToConstraints(Collection items) { if (this.constraints == null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); } for (V1beta1DeviceConstraint item : items) { V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); @@ -69,7 +71,7 @@ public A addAllToConstraints(Collection items) { public A addAllToRequests(Collection items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (V1beta1DeviceRequest item : items) { V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); @@ -80,32 +82,32 @@ public A addAllToRequests(Collection items) { } public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + return new ConfigNested<>(-1, null); } public ConfigNested addNewConfigLike(V1beta1DeviceClaimConfiguration item) { - return new ConfigNested(-1, item); + return new ConfigNested<>(-1, item); } public ConstraintsNested addNewConstraint() { - return new ConstraintsNested(-1, null); + return new ConstraintsNested<>(-1, null); } public ConstraintsNested addNewConstraintLike(V1beta1DeviceConstraint item) { - return new ConstraintsNested(-1, item); + return new ConstraintsNested<>(-1, item); } public RequestsNested addNewRequest() { - return new RequestsNested(-1, null); + return new RequestsNested<>(-1, null); } public RequestsNested addNewRequestLike(V1beta1DeviceRequest item) { - return new RequestsNested(-1, item); + return new RequestsNested<>(-1, item); } public A addToConfig(V1beta1DeviceClaimConfiguration... items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1beta1DeviceClaimConfiguration item : items) { V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); @@ -117,7 +119,7 @@ public A addToConfig(V1beta1DeviceClaimConfiguration... items) { public A addToConfig(int index,V1beta1DeviceClaimConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -132,7 +134,7 @@ public A addToConfig(int index,V1beta1DeviceClaimConfiguration item) { public A addToConstraints(V1beta1DeviceConstraint... items) { if (this.constraints == null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); } for (V1beta1DeviceConstraint item : items) { V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); @@ -144,7 +146,7 @@ public A addToConstraints(V1beta1DeviceConstraint... items) { public A addToConstraints(int index,V1beta1DeviceConstraint item) { if (this.constraints == null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); } V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); if (index < 0 || index >= this.constraints.size()) { @@ -159,7 +161,7 @@ public A addToConstraints(int index,V1beta1DeviceConstraint item) { public A addToRequests(V1beta1DeviceRequest... items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (V1beta1DeviceRequest item : items) { V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); @@ -171,7 +173,7 @@ public A addToRequests(V1beta1DeviceRequest... items) { public A addToRequests(int index,V1beta1DeviceRequest item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); if (index < 0 || index >= this.requests.size()) { @@ -386,7 +388,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceClaimFluent that = (V1beta1DeviceClaimFluent) o; + V1beta1DeviceClaimFluent that = (V1beta1DeviceClaimFluent) o; if (!(Objects.equals(config, that.config))) { return false; } @@ -519,6 +521,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("config"); while (each.hasNext()) { V1beta1DeviceClaimConfigurationBuilder builder = each.next(); @@ -535,6 +538,7 @@ public A removeMatchingFromConstraints(Predicate return (A) this; } Iterator each = constraints.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("constraints"); while (each.hasNext()) { V1beta1DeviceConstraintBuilder builder = each.next(); @@ -551,6 +555,7 @@ public A removeMatchingFromRequests(Predicate predi return (A) this; } Iterator each = requests.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("requests"); while (each.hasNext()) { V1beta1DeviceRequestBuilder builder = each.next(); @@ -563,20 +568,20 @@ public A removeMatchingFromRequests(Predicate predi } public ConfigNested setNewConfigLike(int index,V1beta1DeviceClaimConfiguration item) { - return new ConfigNested(index, item); + return new ConfigNested<>(index, item); } public ConstraintsNested setNewConstraintLike(int index,V1beta1DeviceConstraint item) { - return new ConstraintsNested(index, item); + return new ConstraintsNested<>(index, item); } public RequestsNested setNewRequestLike(int index,V1beta1DeviceRequest item) { - return new RequestsNested(index, item); + return new RequestsNested<>(index, item); } public A setToConfig(int index,V1beta1DeviceClaimConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -591,7 +596,7 @@ public A setToConfig(int index,V1beta1DeviceClaimConfiguration item) { public A setToConstraints(int index,V1beta1DeviceConstraint item) { if (this.constraints == null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); } V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); if (index < 0 || index >= this.constraints.size()) { @@ -606,7 +611,7 @@ public A setToConstraints(int index,V1beta1DeviceConstraint item) { public A setToRequests(int index,V1beta1DeviceRequest item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); if (index < 0 || index >= this.requests.size()) { @@ -645,7 +650,7 @@ public A withConfig(List config) { this._visitables.get("config").clear(); } if (config != null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); for (V1beta1DeviceClaimConfiguration item : config) { this.addToConfig(item); } @@ -673,7 +678,7 @@ public A withConstraints(List constraints) { this._visitables.get("constraints").clear(); } if (constraints != null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); for (V1beta1DeviceConstraint item : constraints) { this.addToConstraints(item); } @@ -701,7 +706,7 @@ public A withRequests(List requests) { this._visitables.get("requests").clear(); } if (requests != null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); for (V1beta1DeviceRequest item : requests) { this.addToRequests(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java index 2acd6b23d6..c3fdcb2bb1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceClassBuilder extends V1beta1DeviceClassFluent implements VisitableBuilder{ V1beta1DeviceClassFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java index 9ac8c880d5..b4e1be0249 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceClassConfigurationBuilder extends V1beta1DeviceClassConfigurationFluent implements VisitableBuilder{ V1beta1DeviceClassConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java index d162b2f0b0..fa25ee97d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceClassConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceClassConfigurationFluent> extends BaseFluent{ private V1beta1OpaqueDeviceConfigurationBuilder opaque; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceClassConfigurationFluent that = (V1beta1DeviceClassConfigurationFluent) o; + V1beta1DeviceClassConfigurationFluent that = (V1beta1DeviceClassConfigurationFluent) o; if (!(Objects.equals(opaque, that.opaque))) { return false; } @@ -96,11 +98,11 @@ public String toString() { } public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); + return new OpaqueNested<>(null); } public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); + return new OpaqueNested<>(item); } public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { @@ -109,8 +111,8 @@ public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { this.opaque = new V1beta1OpaqueDeviceConfigurationBuilder(opaque); this._visitables.get("opaque").add(this.opaque); } else { - this.opaque = null; this._visitables.get("opaque").remove(this.opaque); + this.opaque = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java index aa86c41948..3dc47b85cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceClassFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceClassFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceClassFluent that = (V1beta1DeviceClassFluent) o; + V1beta1DeviceClassFluent that = (V1beta1DeviceClassFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta1DeviceClassSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1beta1DeviceClassSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1beta1DeviceClassSpec spec) { this.spec = new V1beta1DeviceClassSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java index 96b67b06f9..56fc68b368 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceClassListBuilder extends V1beta1DeviceClassListFluent implements VisitableBuilder{ V1beta1DeviceClassListFluent fluent; 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 d97c137c85..4c5dc459ce 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceClassListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceClassListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta1DeviceClassListFluent(V1beta1DeviceClassList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1DeviceClass item : items) { V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta1DeviceClass item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta1DeviceClass... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1DeviceClass item : items) { V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta1DeviceClass... items) { public A addToItems(int index,V1beta1DeviceClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceClassListFluent that = (V1beta1DeviceClassListFluent) o; + V1beta1DeviceClassListFluent that = (V1beta1DeviceClassListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1DeviceClassBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) } public ItemsNested setNewItemLike(int index,V1beta1DeviceClass item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta1DeviceClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta1DeviceClass item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta1DeviceClassFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java index 52fd6d5c3b..d595259029 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceClassSpecBuilder extends V1beta1DeviceClassSpecFluent implements VisitableBuilder{ V1beta1DeviceClassSpecFluent fluent; 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 aa31bcb34c..5d757bf092 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 @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceClassSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceClassSpecFluent> extends BaseFluent{ private ArrayList config; private String extendedResourceName; @@ -45,7 +47,7 @@ public V1beta1DeviceClassSpecFluent(V1beta1DeviceClassSpec instance) { public A addAllToConfig(Collection items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1beta1DeviceClassConfiguration item : items) { V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); @@ -57,7 +59,7 @@ public A addAllToConfig(Collection items) { public A addAllToSelectors(Collection items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1beta1DeviceSelector item : items) { V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); @@ -68,24 +70,24 @@ public A addAllToSelectors(Collection items) { } public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + return new ConfigNested<>(-1, null); } public ConfigNested addNewConfigLike(V1beta1DeviceClassConfiguration item) { - return new ConfigNested(-1, item); + return new ConfigNested<>(-1, item); } public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + return new SelectorsNested<>(-1, null); } public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { - return new SelectorsNested(-1, item); + return new SelectorsNested<>(-1, item); } public A addToConfig(V1beta1DeviceClassConfiguration... items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1beta1DeviceClassConfiguration item : items) { V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); @@ -97,7 +99,7 @@ public A addToConfig(V1beta1DeviceClassConfiguration... items) { public A addToConfig(int index,V1beta1DeviceClassConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -112,7 +114,7 @@ public A addToConfig(int index,V1beta1DeviceClassConfiguration item) { public A addToSelectors(V1beta1DeviceSelector... items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1beta1DeviceSelector item : items) { V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); @@ -124,7 +126,7 @@ public A addToSelectors(V1beta1DeviceSelector... items) { public A addToSelectors(int index,V1beta1DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -278,7 +280,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceClassSpecFluent that = (V1beta1DeviceClassSpecFluent) o; + V1beta1DeviceClassSpecFluent that = (V1beta1DeviceClassSpecFluent) o; if (!(Objects.equals(config, that.config))) { return false; } @@ -382,6 +384,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("config"); while (each.hasNext()) { V1beta1DeviceClassConfigurationBuilder builder = each.next(); @@ -398,6 +401,7 @@ public A removeMatchingFromSelectors(Predicate pre return (A) this; } Iterator each = selectors.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1beta1DeviceSelectorBuilder builder = each.next(); @@ -410,16 +414,16 @@ public A removeMatchingFromSelectors(Predicate pre } public ConfigNested setNewConfigLike(int index,V1beta1DeviceClassConfiguration item) { - return new ConfigNested(index, item); + return new ConfigNested<>(index, item); } public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { - return new SelectorsNested(index, item); + return new SelectorsNested<>(index, item); } public A setToConfig(int index,V1beta1DeviceClassConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -434,7 +438,7 @@ public A setToConfig(int index,V1beta1DeviceClassConfiguration item) { public A setToSelectors(int index,V1beta1DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -473,7 +477,7 @@ public A withConfig(List config) { this._visitables.get("config").clear(); } if (config != null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); for (V1beta1DeviceClassConfiguration item : config) { this.addToConfig(item); } @@ -506,7 +510,7 @@ public A withSelectors(List selectors) { this._visitables.get("selectors").clear(); } if (selectors != null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); for (V1beta1DeviceSelector item : selectors) { this.addToSelectors(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java index 5a7d82e108..6c1870de0b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceConstraintBuilder extends V1beta1DeviceConstraintFluent implements VisitableBuilder{ V1beta1DeviceConstraintFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java index ec9a102c2c..bd0f34a676 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceConstraintFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceConstraintFluent> extends BaseFluent{ private String distinctAttribute; private String matchAttribute; @@ -42,7 +44,7 @@ public V1beta1DeviceConstraintFluent(V1beta1DeviceConstraint instance) { public A addAllToRequests(Collection items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -52,7 +54,7 @@ public A addAllToRequests(Collection items) { public A addToRequests(String... items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -62,7 +64,7 @@ public A addToRequests(String... items) { public A addToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.add(index, item); return (A) this; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceConstraintFluent that = (V1beta1DeviceConstraintFluent) o; + V1beta1DeviceConstraintFluent that = (V1beta1DeviceConstraintFluent) o; if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { return false; } @@ -180,7 +182,7 @@ public A removeFromRequests(String... items) { public A setToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.set(index, item); return (A) this; @@ -219,7 +221,7 @@ public A withMatchAttribute(String matchAttribute) { public A withRequests(List requests) { if (requests != null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); for (String item : requests) { this.addToRequests(item); } 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 index 1fbdb9a64c..cd140db405 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceCounterConsumptionBuilder extends V1beta1DeviceCounterConsumptionFluent implements VisitableBuilder{ V1beta1DeviceCounterConsumptionFluent fluent; @@ -38,6 +39,7 @@ public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumptionFlu public V1beta1DeviceCounterConsumption build() { V1beta1DeviceCounterConsumption buildable = new V1beta1DeviceCounterConsumption(); + buildable.setCompatibilityGroups(fluent.getCompatibilityGroups()); buildable.setCounterSet(fluent.getCounterSet()); buildable.setCounters(fluent.getCounters()); return buildable; 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 index 5c6579b878..2a798541a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java @@ -17,16 +17,23 @@ import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceCounterConsumptionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceCounterConsumptionFluent> extends BaseFluent{ + private List compatibilityGroups; private String counterSet; private Map counters; @@ -37,9 +44,37 @@ public V1beta1DeviceCounterConsumptionFluent(V1beta1DeviceCounterConsumption ins this.copyInstance(instance); } + public A addAllToCompatibilityGroups(Collection items) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + for (String item : items) { + this.compatibilityGroups.add(item); + } + return (A) this; + } + + public A addToCompatibilityGroups(String... items) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + for (String item : items) { + this.compatibilityGroups.add(item); + } + return (A) this; + } + + public A addToCompatibilityGroups(int index,String item) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + this.compatibilityGroups.add(index, item); + return (A) this; + } + public A addToCounters(Map map) { if (this.counters == null && map != null) { - this.counters = new LinkedHashMap(); + this.counters = new LinkedHashMap<>(); } if (map != null) { this.counters.putAll(map); @@ -49,7 +84,7 @@ public A addToCounters(Map map) { public A addToCounters(String key,V1beta1Counter value) { if (this.counters == null && key != null && value != null) { - this.counters = new LinkedHashMap(); + this.counters = new LinkedHashMap<>(); } if (key != null && value != null) { this.counters.put(key, value); @@ -60,6 +95,7 @@ public A addToCounters(String key,V1beta1Counter value) { protected void copyInstance(V1beta1DeviceCounterConsumption instance) { instance = instance != null ? instance : new V1beta1DeviceCounterConsumption(); if (instance != null) { + this.withCompatibilityGroups(instance.getCompatibilityGroups()); this.withCounterSet(instance.getCounterSet()); this.withCounters(instance.getCounters()); } @@ -75,7 +111,10 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceCounterConsumptionFluent that = (V1beta1DeviceCounterConsumptionFluent) o; + V1beta1DeviceCounterConsumptionFluent that = (V1beta1DeviceCounterConsumptionFluent) o; + if (!(Objects.equals(compatibilityGroups, that.compatibilityGroups))) { + return false; + } if (!(Objects.equals(counterSet, that.counterSet))) { return false; } @@ -85,6 +124,14 @@ public boolean equals(Object o) { return true; } + public String getCompatibilityGroup(int index) { + return this.compatibilityGroups.get(index); + } + + public List getCompatibilityGroups() { + return this.compatibilityGroups; + } + public String getCounterSet() { return this.counterSet; } @@ -93,6 +140,27 @@ public Map getCounters() { return this.counters; } + public String getFirstCompatibilityGroup() { + return this.compatibilityGroups.get(0); + } + + public String getLastCompatibilityGroup() { + return this.compatibilityGroups.get(compatibilityGroups.size() - 1); + } + + public String getMatchingCompatibilityGroup(Predicate predicate) { + for (String item : compatibilityGroups) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasCompatibilityGroups() { + return this.compatibilityGroups != null && !(this.compatibilityGroups.isEmpty()); + } + public boolean hasCounterSet() { return this.counterSet != null; } @@ -101,8 +169,37 @@ public boolean hasCounters() { return this.counters != null; } + public boolean hasMatchingCompatibilityGroup(Predicate predicate) { + for (String item : compatibilityGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { - return Objects.hash(counterSet, counters); + return Objects.hash(compatibilityGroups, counterSet, counters); + } + + public A removeAllFromCompatibilityGroups(Collection items) { + if (this.compatibilityGroups == null) { + return (A) this; + } + for (String item : items) { + this.compatibilityGroups.remove(item); + } + return (A) this; + } + + public A removeFromCompatibilityGroups(String... items) { + if (this.compatibilityGroups == null) { + return (A) this; + } + for (String item : items) { + this.compatibilityGroups.remove(item); + } + return (A) this; } public A removeFromCounters(String key) { @@ -129,9 +226,22 @@ public A removeFromCounters(Map map) { return (A) this; } + public A setToCompatibilityGroups(int index,String item) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + this.compatibilityGroups.set(index, item); + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (!(compatibilityGroups == null) && !(compatibilityGroups.isEmpty())) { + sb.append("compatibilityGroups:"); + sb.append(compatibilityGroups); + sb.append(","); + } if (!(counterSet == null)) { sb.append("counterSet:"); sb.append(counterSet); @@ -145,6 +255,31 @@ public String toString() { return sb.toString(); } + public A withCompatibilityGroups(List compatibilityGroups) { + if (compatibilityGroups != null) { + this.compatibilityGroups = new ArrayList<>(); + for (String item : compatibilityGroups) { + this.addToCompatibilityGroups(item); + } + } else { + this.compatibilityGroups = null; + } + return (A) this; + } + + public A withCompatibilityGroups(String... compatibilityGroups) { + if (this.compatibilityGroups != null) { + this.compatibilityGroups.clear(); + _visitables.remove("compatibilityGroups"); + } + if (compatibilityGroups != null) { + for (String item : compatibilityGroups) { + this.addToCompatibilityGroups(item); + } + } + return (A) this; + } + public A withCounterSet(String counterSet) { this.counterSet = counterSet; return (A) this; @@ -154,7 +289,7 @@ public A withCounters(Map counters) { if (counters == null) { this.counters = null; } else { - this.counters = new LinkedHashMap(counters); + this.counters = new LinkedHashMap<>(counters); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceDerivedAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceDerivedAttributeBuilder.java new file mode 100644 index 0000000000..dc65f89545 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceDerivedAttributeBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1DeviceDerivedAttributeBuilder extends V1beta1DeviceDerivedAttributeFluent implements VisitableBuilder{ + + V1beta1DeviceDerivedAttributeFluent fluent; + + public V1beta1DeviceDerivedAttributeBuilder() { + this(new V1beta1DeviceDerivedAttribute()); + } + + public V1beta1DeviceDerivedAttributeBuilder(V1beta1DeviceDerivedAttributeFluent fluent) { + this(fluent, new V1beta1DeviceDerivedAttribute()); + } + + public V1beta1DeviceDerivedAttributeBuilder(V1beta1DeviceDerivedAttribute instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceDerivedAttributeBuilder(V1beta1DeviceDerivedAttributeFluent fluent,V1beta1DeviceDerivedAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceDerivedAttribute build() { + V1beta1DeviceDerivedAttribute buildable = new V1beta1DeviceDerivedAttribute(); + buildable.setExpression(fluent.getExpression()); + buildable.setName(fluent.getName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceDerivedAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceDerivedAttributeFluent.java new file mode 100644 index 0000000000..b24ddf0701 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceDerivedAttributeFluent.java @@ -0,0 +1,114 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceDerivedAttributeFluent> extends BaseFluent{ + + private String expression; + private String name; + + public V1beta1DeviceDerivedAttributeFluent() { + } + + public V1beta1DeviceDerivedAttributeFluent(V1beta1DeviceDerivedAttribute instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1DeviceDerivedAttribute instance) { + instance = instance != null ? instance : new V1beta1DeviceDerivedAttribute(); + if (instance != null) { + this.withExpression(instance.getExpression()); + this.withName(instance.getName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceDerivedAttributeFluent that = (V1beta1DeviceDerivedAttributeFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public String getExpression() { + return this.expression; + } + + public String getName() { + return this.name; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(expression, name); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java index 8325f7d997..97d543cefe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceFluent> extends BaseFluent{ private V1beta1BasicDeviceBuilder basic; private String name; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceFluent that = (V1beta1DeviceFluent) o; + V1beta1DeviceFluent that = (V1beta1DeviceFluent) o; if (!(Objects.equals(basic, that.basic))) { return false; } @@ -119,8 +121,8 @@ public A withBasic(V1beta1BasicDevice basic) { this.basic = new V1beta1BasicDeviceBuilder(basic); this._visitables.get("basic").add(this.basic); } else { - this.basic = null; this._visitables.get("basic").remove(this.basic); + this.basic = null; } return (A) this; } @@ -131,11 +133,11 @@ public A withName(String name) { } public BasicNested withNewBasic() { - return new BasicNested(null); + return new BasicNested<>(null); } public BasicNested withNewBasicLike(V1beta1BasicDevice item) { - return new BasicNested(item); + return new BasicNested<>(item); } public class BasicNested extends V1beta1BasicDeviceFluent> implements Nested{ 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 8e81870f03..a090ef420b 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceRequestAllocationResultBuilder extends V1beta1DeviceRequestAllocationResultFluent implements VisitableBuilder{ V1beta1DeviceRequestAllocationResultFluent fluent; @@ -47,6 +48,7 @@ public V1beta1DeviceRequestAllocationResult build() { buildable.setPool(fluent.getPool()); buildable.setRequest(fluent.getRequest()); buildable.setShareID(fluent.getShareID()); + buildable.setSkipNodeOperations(fluent.getSkipNodeOperations()); 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 34c7c4672a..929c33b45f 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 @@ -29,12 +29,14 @@ import java.util.Map; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceRequestAllocationResultFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceRequestAllocationResultFluent> extends BaseFluent{ private Boolean adminAccess; private List bindingConditions; @@ -45,6 +47,7 @@ public class V1beta1DeviceRequestAllocationResultFluent skipNodeOperations; private ArrayList tolerations; public V1beta1DeviceRequestAllocationResultFluent() { @@ -56,7 +59,7 @@ public V1beta1DeviceRequestAllocationResultFluent(V1beta1DeviceRequestAllocation public A addAllToBindingConditions(Collection items) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } for (String item : items) { this.bindingConditions.add(item); @@ -66,7 +69,7 @@ public A addAllToBindingConditions(Collection items) { public A addAllToBindingFailureConditions(Collection items) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } for (String item : items) { this.bindingFailureConditions.add(item); @@ -74,9 +77,19 @@ public A addAllToBindingFailureConditions(Collection items) { return (A) this; } + public A addAllToSkipNodeOperations(Collection items) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + for (String item : items) { + this.skipNodeOperations.add(item); + } + return (A) this; + } + public A addAllToTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1beta1DeviceToleration item : items) { V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); @@ -87,16 +100,16 @@ public A addAllToTolerations(Collection items) { } public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + return new TolerationsNested<>(-1, null); } public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { - return new TolerationsNested(-1, item); + return new TolerationsNested<>(-1, item); } public A addToBindingConditions(String... items) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } for (String item : items) { this.bindingConditions.add(item); @@ -106,7 +119,7 @@ public A addToBindingConditions(String... items) { public A addToBindingConditions(int index,String item) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } this.bindingConditions.add(index, item); return (A) this; @@ -114,7 +127,7 @@ public A addToBindingConditions(int index,String item) { public A addToBindingFailureConditions(String... items) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } for (String item : items) { this.bindingFailureConditions.add(item); @@ -124,7 +137,7 @@ public A addToBindingFailureConditions(String... items) { public A addToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } this.bindingFailureConditions.add(index, item); return (A) this; @@ -132,7 +145,7 @@ public A addToBindingFailureConditions(int index,String item) { public A addToConsumedCapacity(Map map) { if (this.consumedCapacity == null && map != null) { - this.consumedCapacity = new LinkedHashMap(); + this.consumedCapacity = new LinkedHashMap<>(); } if (map != null) { this.consumedCapacity.putAll(map); @@ -142,7 +155,7 @@ public A addToConsumedCapacity(Map map) { public A addToConsumedCapacity(String key,Quantity value) { if (this.consumedCapacity == null && key != null && value != null) { - this.consumedCapacity = new LinkedHashMap(); + this.consumedCapacity = new LinkedHashMap<>(); } if (key != null && value != null) { this.consumedCapacity.put(key, value); @@ -150,9 +163,27 @@ public A addToConsumedCapacity(String key,Quantity value) { return (A) this; } + public A addToSkipNodeOperations(String... items) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + for (String item : items) { + this.skipNodeOperations.add(item); + } + return (A) this; + } + + public A addToSkipNodeOperations(int index,String item) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.add(index, item); + return (A) this; + } + public A addToTolerations(V1beta1DeviceToleration... items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1beta1DeviceToleration item : items) { V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); @@ -164,7 +195,7 @@ public A addToTolerations(V1beta1DeviceToleration... items) { public A addToTolerations(int index,V1beta1DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -214,6 +245,7 @@ protected void copyInstance(V1beta1DeviceRequestAllocationResult instance) { this.withPool(instance.getPool()); this.withRequest(instance.getRequest()); this.withShareID(instance.getShareID()); + this.withSkipNodeOperations(instance.getSkipNodeOperations()); this.withTolerations(instance.getTolerations()); } } @@ -264,7 +296,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceRequestAllocationResultFluent that = (V1beta1DeviceRequestAllocationResultFluent) o; + V1beta1DeviceRequestAllocationResultFluent that = (V1beta1DeviceRequestAllocationResultFluent) o; if (!(Objects.equals(adminAccess, that.adminAccess))) { return false; } @@ -292,6 +324,9 @@ public boolean equals(Object o) { if (!(Objects.equals(shareID, that.shareID))) { return false; } + if (!(Objects.equals(skipNodeOperations, that.skipNodeOperations))) { + return false; + } if (!(Objects.equals(tolerations, that.tolerations))) { return false; } @@ -338,6 +373,10 @@ public String getFirstBindingFailureCondition() { return this.bindingFailureConditions.get(0); } + public String getFirstSkipNodeOperation() { + return this.skipNodeOperations.get(0); + } + public String getLastBindingCondition() { return this.bindingConditions.get(bindingConditions.size() - 1); } @@ -346,6 +385,10 @@ public String getLastBindingFailureCondition() { return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); } + public String getLastSkipNodeOperation() { + return this.skipNodeOperations.get(skipNodeOperations.size() - 1); + } + public String getMatchingBindingCondition(Predicate predicate) { for (String item : bindingConditions) { if (predicate.test(item)) { @@ -364,6 +407,15 @@ public String getMatchingBindingFailureCondition(Predicate predicate) { return null; } + public String getMatchingSkipNodeOperation(Predicate predicate) { + for (String item : skipNodeOperations) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + public String getPool() { return this.pool; } @@ -376,6 +428,14 @@ public String getShareID() { return this.shareID; } + public String getSkipNodeOperation(int index) { + return this.skipNodeOperations.get(index); + } + + public List getSkipNodeOperations() { + return this.skipNodeOperations; + } + public boolean hasAdminAccess() { return this.adminAccess != null; } @@ -418,6 +478,15 @@ public boolean hasMatchingBindingFailureCondition(Predicate predicate) { return false; } + public boolean hasMatchingSkipNodeOperation(Predicate predicate) { + for (String item : skipNodeOperations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingToleration(Predicate predicate) { for (V1beta1DeviceTolerationBuilder item : tolerations) { if (predicate.test(item)) { @@ -439,12 +508,16 @@ public boolean hasShareID() { return this.shareID != null; } + public boolean hasSkipNodeOperations() { + return this.skipNodeOperations != null && !(this.skipNodeOperations.isEmpty()); + } + public boolean hasTolerations() { return this.tolerations != null && !(this.tolerations.isEmpty()); } public int hashCode() { - return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, skipNodeOperations, tolerations); } public A removeAllFromBindingConditions(Collection items) { @@ -467,6 +540,16 @@ public A removeAllFromBindingFailureConditions(Collection items) { return (A) this; } + public A removeAllFromSkipNodeOperations(Collection items) { + if (this.skipNodeOperations == null) { + return (A) this; + } + for (String item : items) { + this.skipNodeOperations.remove(item); + } + return (A) this; + } + public A removeAllFromTolerations(Collection items) { if (this.tolerations == null) { return (A) this; @@ -523,6 +606,16 @@ public A removeFromConsumedCapacity(Map map) { return (A) this; } + public A removeFromSkipNodeOperations(String... items) { + if (this.skipNodeOperations == null) { + return (A) this; + } + for (String item : items) { + this.skipNodeOperations.remove(item); + } + return (A) this; + } + public A removeFromTolerations(V1beta1DeviceToleration... items) { if (this.tolerations == null) { return (A) this; @@ -540,6 +633,7 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } Iterator each = tolerations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1beta1DeviceTolerationBuilder builder = each.next(); @@ -552,12 +646,12 @@ public A removeMatchingFromTolerations(Predicate } public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { - return new TolerationsNested(index, item); + return new TolerationsNested<>(index, item); } public A setToBindingConditions(int index,String item) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } this.bindingConditions.set(index, item); return (A) this; @@ -565,15 +659,23 @@ public A setToBindingConditions(int index,String item) { public A setToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } this.bindingFailureConditions.set(index, item); return (A) this; } + public A setToSkipNodeOperations(int index,String item) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.set(index, item); + return (A) this; + } + public A setToTolerations(int index,V1beta1DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -634,6 +736,11 @@ public String toString() { sb.append(shareID); sb.append(","); } + if (!(skipNodeOperations == null) && !(skipNodeOperations.isEmpty())) { + sb.append("skipNodeOperations:"); + sb.append(skipNodeOperations); + sb.append(","); + } if (!(tolerations == null) && !(tolerations.isEmpty())) { sb.append("tolerations:"); sb.append(tolerations); @@ -653,7 +760,7 @@ public A withAdminAccess(Boolean adminAccess) { public A withBindingConditions(List bindingConditions) { if (bindingConditions != null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); for (String item : bindingConditions) { this.addToBindingConditions(item); } @@ -678,7 +785,7 @@ public A withBindingConditions(String... bindingConditions) { public A withBindingFailureConditions(List bindingFailureConditions) { if (bindingFailureConditions != null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); for (String item : bindingFailureConditions) { this.addToBindingFailureConditions(item); } @@ -705,7 +812,7 @@ public A withConsumedCapacity(Map consumedCapacity) { if (consumedCapacity == null) { this.consumedCapacity = null; } else { - this.consumedCapacity = new LinkedHashMap(consumedCapacity); + this.consumedCapacity = new LinkedHashMap<>(consumedCapacity); } return (A) this; } @@ -735,12 +842,37 @@ public A withShareID(String shareID) { return (A) this; } + public A withSkipNodeOperations(List skipNodeOperations) { + if (skipNodeOperations != null) { + this.skipNodeOperations = new ArrayList<>(); + for (String item : skipNodeOperations) { + this.addToSkipNodeOperations(item); + } + } else { + this.skipNodeOperations = null; + } + return (A) this; + } + + public A withSkipNodeOperations(String... skipNodeOperations) { + if (this.skipNodeOperations != null) { + this.skipNodeOperations.clear(); + _visitables.remove("skipNodeOperations"); + } + if (skipNodeOperations != null) { + for (String item : skipNodeOperations) { + this.addToSkipNodeOperations(item); + } + } + return (A) this; + } + public A withTolerations(List tolerations) { if (this.tolerations != null) { this._visitables.get("tolerations").clear(); } if (tolerations != null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); for (V1beta1DeviceToleration item : tolerations) { this.addToTolerations(item); } 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 3d50e155fb..cc8759e0f1 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceRequestBuilder extends V1beta1DeviceRequestFluent implements VisitableBuilder{ V1beta1DeviceRequestFluent fluent; @@ -42,6 +43,7 @@ public V1beta1DeviceRequest build() { buildable.setAllocationMode(fluent.getAllocationMode()); buildable.setCapacity(fluent.buildCapacity()); buildable.setCount(fluent.getCount()); + buildable.setDerivedAttributes(fluent.buildDerivedAttributes()); buildable.setDeviceClassName(fluent.getDeviceClassName()); buildable.setFirstAvailable(fluent.buildFirstAvailable()); buildable.setName(fluent.getName()); 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 85cbb2d5d0..53e91e33ba 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 @@ -28,17 +28,20 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceRequestFluent> extends BaseFluent{ private Boolean adminAccess; private String allocationMode; private V1beta1CapacityRequirementsBuilder capacity; private Long count; + private ArrayList derivedAttributes; private String deviceClassName; private ArrayList firstAvailable; private String name; @@ -52,9 +55,21 @@ public V1beta1DeviceRequestFluent(V1beta1DeviceRequest instance) { this.copyInstance(instance); } + public A addAllToDerivedAttributes(Collection items) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + for (V1beta1DeviceDerivedAttribute item : items) { + V1beta1DeviceDerivedAttributeBuilder builder = new V1beta1DeviceDerivedAttributeBuilder(item); + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } + return (A) this; + } + public A addAllToFirstAvailable(Collection items) { if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); } for (V1beta1DeviceSubRequest item : items) { V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); @@ -66,7 +81,7 @@ public A addAllToFirstAvailable(Collection items) { public A addAllToSelectors(Collection items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1beta1DeviceSelector item : items) { V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); @@ -78,7 +93,7 @@ public A addAllToSelectors(Collection items) { public A addAllToTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1beta1DeviceToleration item : items) { V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); @@ -88,33 +103,68 @@ public A addAllToTolerations(Collection items) { return (A) this; } + public DerivedAttributesNested addNewDerivedAttribute() { + return new DerivedAttributesNested<>(-1, null); + } + + public DerivedAttributesNested addNewDerivedAttributeLike(V1beta1DeviceDerivedAttribute item) { + return new DerivedAttributesNested<>(-1, item); + } + public FirstAvailableNested addNewFirstAvailable() { - return new FirstAvailableNested(-1, null); + return new FirstAvailableNested<>(-1, null); } public FirstAvailableNested addNewFirstAvailableLike(V1beta1DeviceSubRequest item) { - return new FirstAvailableNested(-1, item); + return new FirstAvailableNested<>(-1, item); } public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + return new SelectorsNested<>(-1, null); } public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { - return new SelectorsNested(-1, item); + return new SelectorsNested<>(-1, item); } public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + return new TolerationsNested<>(-1, null); } public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { - return new TolerationsNested(-1, item); + return new TolerationsNested<>(-1, item); + } + + public A addToDerivedAttributes(V1beta1DeviceDerivedAttribute... items) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + for (V1beta1DeviceDerivedAttribute item : items) { + V1beta1DeviceDerivedAttributeBuilder builder = new V1beta1DeviceDerivedAttributeBuilder(item); + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } + return (A) this; + } + + public A addToDerivedAttributes(int index,V1beta1DeviceDerivedAttribute item) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + V1beta1DeviceDerivedAttributeBuilder builder = new V1beta1DeviceDerivedAttributeBuilder(item); + if (index < 0 || index >= this.derivedAttributes.size()) { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } else { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(index, builder); + } + return (A) this; } public A addToFirstAvailable(V1beta1DeviceSubRequest... items) { if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); } for (V1beta1DeviceSubRequest item : items) { V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); @@ -126,7 +176,7 @@ public A addToFirstAvailable(V1beta1DeviceSubRequest... items) { public A addToFirstAvailable(int index,V1beta1DeviceSubRequest item) { if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); } V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); if (index < 0 || index >= this.firstAvailable.size()) { @@ -141,7 +191,7 @@ public A addToFirstAvailable(int index,V1beta1DeviceSubRequest item) { public A addToSelectors(V1beta1DeviceSelector... items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1beta1DeviceSelector item : items) { V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); @@ -153,7 +203,7 @@ public A addToSelectors(V1beta1DeviceSelector... items) { public A addToSelectors(int index,V1beta1DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -168,7 +218,7 @@ public A addToSelectors(int index,V1beta1DeviceSelector item) { public A addToTolerations(V1beta1DeviceToleration... items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1beta1DeviceToleration item : items) { V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); @@ -180,7 +230,7 @@ public A addToTolerations(V1beta1DeviceToleration... items) { public A addToTolerations(int index,V1beta1DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -197,6 +247,14 @@ public V1beta1CapacityRequirements buildCapacity() { return this.capacity != null ? this.capacity.build() : null; } + public V1beta1DeviceDerivedAttribute buildDerivedAttribute(int index) { + return this.derivedAttributes.get(index).build(); + } + + public List buildDerivedAttributes() { + return this.derivedAttributes != null ? build(derivedAttributes) : null; + } + public List buildFirstAvailable() { return this.firstAvailable != null ? build(firstAvailable) : null; } @@ -205,6 +263,10 @@ public V1beta1DeviceSubRequest buildFirstAvailable(int index) { return this.firstAvailable.get(index).build(); } + public V1beta1DeviceDerivedAttribute buildFirstDerivedAttribute() { + return this.derivedAttributes.get(0).build(); + } + public V1beta1DeviceSubRequest buildFirstFirstAvailable() { return this.firstAvailable.get(0).build(); } @@ -217,6 +279,10 @@ public V1beta1DeviceToleration buildFirstToleration() { return this.tolerations.get(0).build(); } + public V1beta1DeviceDerivedAttribute buildLastDerivedAttribute() { + return this.derivedAttributes.get(derivedAttributes.size() - 1).build(); + } + public V1beta1DeviceSubRequest buildLastFirstAvailable() { return this.firstAvailable.get(firstAvailable.size() - 1).build(); } @@ -229,6 +295,15 @@ public V1beta1DeviceToleration buildLastToleration() { return this.tolerations.get(tolerations.size() - 1).build(); } + public V1beta1DeviceDerivedAttribute buildMatchingDerivedAttribute(Predicate predicate) { + for (V1beta1DeviceDerivedAttributeBuilder item : derivedAttributes) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + public V1beta1DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { for (V1beta1DeviceSubRequestBuilder item : firstAvailable) { if (predicate.test(item)) { @@ -279,6 +354,7 @@ protected void copyInstance(V1beta1DeviceRequest instance) { this.withAllocationMode(instance.getAllocationMode()); this.withCapacity(instance.getCapacity()); this.withCount(instance.getCount()); + this.withDerivedAttributes(instance.getDerivedAttributes()); this.withDeviceClassName(instance.getDeviceClassName()); this.withFirstAvailable(instance.getFirstAvailable()); this.withName(instance.getName()); @@ -291,6 +367,13 @@ public CapacityNested editCapacity() { return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); } + public DerivedAttributesNested editDerivedAttribute(int index) { + if (derivedAttributes.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + public FirstAvailableNested editFirstAvailable(int index) { if (firstAvailable.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "firstAvailable")); @@ -298,6 +381,13 @@ public FirstAvailableNested editFirstAvailable(int index) { return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); } + public DerivedAttributesNested editFirstDerivedAttribute() { + if (derivedAttributes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(0, this.buildDerivedAttribute(0)); + } + public FirstAvailableNested editFirstFirstAvailable() { if (firstAvailable.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "firstAvailable")); @@ -319,6 +409,14 @@ public TolerationsNested editFirstToleration() { return this.setNewTolerationLike(0, this.buildToleration(0)); } + public DerivedAttributesNested editLastDerivedAttribute() { + int index = derivedAttributes.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + public FirstAvailableNested editLastFirstAvailable() { int index = firstAvailable.size() - 1; if (index < 0) { @@ -343,6 +441,20 @@ public TolerationsNested editLastToleration() { return this.setNewTolerationLike(index, this.buildToleration(index)); } + public DerivedAttributesNested editMatchingDerivedAttribute(Predicate predicate) { + int index = -1; + for (int i = 0;i < derivedAttributes.size();i++) { + if (predicate.test(derivedAttributes.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { int index = -1; for (int i = 0;i < firstAvailable.size();i++) { @@ -417,7 +529,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceRequestFluent that = (V1beta1DeviceRequestFluent) o; + V1beta1DeviceRequestFluent that = (V1beta1DeviceRequestFluent) o; if (!(Objects.equals(adminAccess, that.adminAccess))) { return false; } @@ -430,6 +542,9 @@ public boolean equals(Object o) { if (!(Objects.equals(count, that.count))) { return false; } + if (!(Objects.equals(derivedAttributes, that.derivedAttributes))) { + return false; + } if (!(Objects.equals(deviceClassName, that.deviceClassName))) { return false; } @@ -484,6 +599,10 @@ public boolean hasCount() { return this.count != null; } + public boolean hasDerivedAttributes() { + return this.derivedAttributes != null && !(this.derivedAttributes.isEmpty()); + } + public boolean hasDeviceClassName() { return this.deviceClassName != null; } @@ -492,6 +611,15 @@ public boolean hasFirstAvailable() { return this.firstAvailable != null && !(this.firstAvailable.isEmpty()); } + public boolean hasMatchingDerivedAttribute(Predicate predicate) { + for (V1beta1DeviceDerivedAttributeBuilder item : derivedAttributes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingFirstAvailable(Predicate predicate) { for (V1beta1DeviceSubRequestBuilder item : firstAvailable) { if (predicate.test(item)) { @@ -532,7 +660,19 @@ public boolean hasTolerations() { } public int hashCode() { - return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, firstAvailable, name, selectors, tolerations); + return Objects.hash(adminAccess, allocationMode, capacity, count, derivedAttributes, deviceClassName, firstAvailable, name, selectors, tolerations); + } + + public A removeAllFromDerivedAttributes(Collection items) { + if (this.derivedAttributes == null) { + return (A) this; + } + for (V1beta1DeviceDerivedAttribute item : items) { + V1beta1DeviceDerivedAttributeBuilder builder = new V1beta1DeviceDerivedAttributeBuilder(item); + _visitables.get("derivedAttributes").remove(builder); + this.derivedAttributes.remove(builder); + } + return (A) this; } public A removeAllFromFirstAvailable(Collection items) { @@ -571,6 +711,18 @@ public A removeAllFromTolerations(Collection items) { return (A) this; } + public A removeFromDerivedAttributes(V1beta1DeviceDerivedAttribute... items) { + if (this.derivedAttributes == null) { + return (A) this; + } + for (V1beta1DeviceDerivedAttribute item : items) { + V1beta1DeviceDerivedAttributeBuilder builder = new V1beta1DeviceDerivedAttributeBuilder(item); + _visitables.get("derivedAttributes").remove(builder); + this.derivedAttributes.remove(builder); + } + return (A) this; + } + public A removeFromFirstAvailable(V1beta1DeviceSubRequest... items) { if (this.firstAvailable == null) { return (A) this; @@ -607,11 +759,29 @@ public A removeFromTolerations(V1beta1DeviceToleration... items) { return (A) this; } + public A removeMatchingFromDerivedAttributes(Predicate predicate) { + if (derivedAttributes == null) { + return (A) this; + } + Iterator each = derivedAttributes.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("derivedAttributes"); + while (each.hasNext()) { + V1beta1DeviceDerivedAttributeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public A removeMatchingFromFirstAvailable(Predicate predicate) { if (firstAvailable == null) { return (A) this; } Iterator each = firstAvailable.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("firstAvailable"); while (each.hasNext()) { V1beta1DeviceSubRequestBuilder builder = each.next(); @@ -628,6 +798,7 @@ public A removeMatchingFromSelectors(Predicate pre return (A) this; } Iterator each = selectors.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1beta1DeviceSelectorBuilder builder = each.next(); @@ -644,6 +815,7 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } Iterator each = tolerations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1beta1DeviceTolerationBuilder builder = each.next(); @@ -655,21 +827,40 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } + public DerivedAttributesNested setNewDerivedAttributeLike(int index,V1beta1DeviceDerivedAttribute item) { + return new DerivedAttributesNested<>(index, item); + } + public FirstAvailableNested setNewFirstAvailableLike(int index,V1beta1DeviceSubRequest item) { - return new FirstAvailableNested(index, item); + return new FirstAvailableNested<>(index, item); } public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { - return new SelectorsNested(index, item); + return new SelectorsNested<>(index, item); } public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { - return new TolerationsNested(index, item); + return new TolerationsNested<>(index, item); + } + + public A setToDerivedAttributes(int index,V1beta1DeviceDerivedAttribute item) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + V1beta1DeviceDerivedAttributeBuilder builder = new V1beta1DeviceDerivedAttributeBuilder(item); + if (index < 0 || index >= this.derivedAttributes.size()) { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } else { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.set(index, builder); + } + return (A) this; } public A setToFirstAvailable(int index,V1beta1DeviceSubRequest item) { if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); } V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); if (index < 0 || index >= this.firstAvailable.size()) { @@ -684,7 +875,7 @@ public A setToFirstAvailable(int index,V1beta1DeviceSubRequest item) { public A setToSelectors(int index,V1beta1DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -699,7 +890,7 @@ public A setToSelectors(int index,V1beta1DeviceSelector item) { public A setToTolerations(int index,V1beta1DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -735,6 +926,11 @@ public String toString() { sb.append(count); sb.append(","); } + if (!(derivedAttributes == null) && !(derivedAttributes.isEmpty())) { + sb.append("derivedAttributes:"); + sb.append(derivedAttributes); + sb.append(","); + } if (!(deviceClassName == null)) { sb.append("deviceClassName:"); sb.append(deviceClassName); @@ -783,8 +979,8 @@ public A withCapacity(V1beta1CapacityRequirements capacity) { this.capacity = new V1beta1CapacityRequirementsBuilder(capacity); this._visitables.get("capacity").add(this.capacity); } else { - this.capacity = null; this._visitables.get("capacity").remove(this.capacity); + this.capacity = null; } return (A) this; } @@ -794,6 +990,34 @@ public A withCount(Long count) { return (A) this; } + public A withDerivedAttributes(List derivedAttributes) { + if (this.derivedAttributes != null) { + this._visitables.get("derivedAttributes").clear(); + } + if (derivedAttributes != null) { + this.derivedAttributes = new ArrayList<>(); + for (V1beta1DeviceDerivedAttribute item : derivedAttributes) { + this.addToDerivedAttributes(item); + } + } else { + this.derivedAttributes = null; + } + return (A) this; + } + + public A withDerivedAttributes(V1beta1DeviceDerivedAttribute... derivedAttributes) { + if (this.derivedAttributes != null) { + this.derivedAttributes.clear(); + _visitables.remove("derivedAttributes"); + } + if (derivedAttributes != null) { + for (V1beta1DeviceDerivedAttribute item : derivedAttributes) { + this.addToDerivedAttributes(item); + } + } + return (A) this; + } + public A withDeviceClassName(String deviceClassName) { this.deviceClassName = deviceClassName; return (A) this; @@ -804,7 +1028,7 @@ public A withFirstAvailable(List firstAvailable) { this._visitables.get("firstAvailable").clear(); } if (firstAvailable != null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); for (V1beta1DeviceSubRequest item : firstAvailable) { this.addToFirstAvailable(item); } @@ -833,11 +1057,11 @@ public A withName(String name) { } public CapacityNested withNewCapacity() { - return new CapacityNested(null); + return new CapacityNested<>(null); } public CapacityNested withNewCapacityLike(V1beta1CapacityRequirements item) { - return new CapacityNested(item); + return new CapacityNested<>(item); } public A withSelectors(List selectors) { @@ -845,7 +1069,7 @@ public A withSelectors(List selectors) { this._visitables.get("selectors").clear(); } if (selectors != null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); for (V1beta1DeviceSelector item : selectors) { this.addToSelectors(item); } @@ -873,7 +1097,7 @@ public A withTolerations(List tolerations) { this._visitables.get("tolerations").clear(); } if (tolerations != null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); for (V1beta1DeviceToleration item : tolerations) { this.addToTolerations(item); } @@ -911,6 +1135,25 @@ public N endCapacity() { return and(); } + } + public class DerivedAttributesNested extends V1beta1DeviceDerivedAttributeFluent> implements Nested{ + + V1beta1DeviceDerivedAttributeBuilder builder; + int index; + + DerivedAttributesNested(int index,V1beta1DeviceDerivedAttribute item) { + this.index = index; + this.builder = new V1beta1DeviceDerivedAttributeBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceRequestFluent.this.setToDerivedAttributes(index, builder.build()); + } + + public N endDerivedAttribute() { + return and(); + } + } public class FirstAvailableNested extends V1beta1DeviceSubRequestFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java index 6755f4198f..8ab35fecf4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceSelectorBuilder extends V1beta1DeviceSelectorFluent implements VisitableBuilder{ V1beta1DeviceSelectorFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java index cc7ec9430a..294eaab123 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceSelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceSelectorFluent> extends BaseFluent{ private V1beta1CELDeviceSelectorBuilder cel; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceSelectorFluent that = (V1beta1DeviceSelectorFluent) o; + V1beta1DeviceSelectorFluent that = (V1beta1DeviceSelectorFluent) o; if (!(Objects.equals(cel, that.cel))) { return false; } @@ -101,18 +103,18 @@ public A withCel(V1beta1CELDeviceSelector cel) { this.cel = new V1beta1CELDeviceSelectorBuilder(cel); this._visitables.get("cel").add(this.cel); } else { - this.cel = null; this._visitables.get("cel").remove(this.cel); + this.cel = null; } return (A) this; } public CelNested withNewCel() { - return new CelNested(null); + return new CelNested<>(null); } public CelNested withNewCelLike(V1beta1CELDeviceSelector item) { - return new CelNested(item); + return new CelNested<>(item); } public class CelNested extends V1beta1CELDeviceSelectorFluent> implements Nested{ 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 index 6bb95ce373..e16be3ead7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceSubRequestBuilder extends V1beta1DeviceSubRequestFluent implements VisitableBuilder{ V1beta1DeviceSubRequestFluent fluent; @@ -41,6 +42,7 @@ public V1beta1DeviceSubRequest build() { buildable.setAllocationMode(fluent.getAllocationMode()); buildable.setCapacity(fluent.buildCapacity()); buildable.setCount(fluent.getCount()); + buildable.setDerivedAttributes(fluent.buildDerivedAttributes()); buildable.setDeviceClassName(fluent.getDeviceClassName()); buildable.setName(fluent.getName()); buildable.setSelectors(fluent.buildSelectors()); 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 index 692d939e2c..28b2ca27ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java @@ -27,16 +27,19 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceSubRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceSubRequestFluent> extends BaseFluent{ private String allocationMode; private V1beta1CapacityRequirementsBuilder capacity; private Long count; + private ArrayList derivedAttributes; private String deviceClassName; private String name; private ArrayList selectors; @@ -49,9 +52,21 @@ public V1beta1DeviceSubRequestFluent(V1beta1DeviceSubRequest instance) { this.copyInstance(instance); } + public A addAllToDerivedAttributes(Collection items) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + for (V1beta1DeviceDerivedAttribute item : items) { + V1beta1DeviceDerivedAttributeBuilder builder = new V1beta1DeviceDerivedAttributeBuilder(item); + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } + return (A) this; + } + public A addAllToSelectors(Collection items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1beta1DeviceSelector item : items) { V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); @@ -63,7 +78,7 @@ public A addAllToSelectors(Collection items) { public A addAllToTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1beta1DeviceToleration item : items) { V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); @@ -73,25 +88,60 @@ public A addAllToTolerations(Collection items) { return (A) this; } + public DerivedAttributesNested addNewDerivedAttribute() { + return new DerivedAttributesNested<>(-1, null); + } + + public DerivedAttributesNested addNewDerivedAttributeLike(V1beta1DeviceDerivedAttribute item) { + return new DerivedAttributesNested<>(-1, item); + } + public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + return new SelectorsNested<>(-1, null); } public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { - return new SelectorsNested(-1, item); + return new SelectorsNested<>(-1, item); } public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + return new TolerationsNested<>(-1, null); } public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { - return new TolerationsNested(-1, item); + return new TolerationsNested<>(-1, item); + } + + public A addToDerivedAttributes(V1beta1DeviceDerivedAttribute... items) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + for (V1beta1DeviceDerivedAttribute item : items) { + V1beta1DeviceDerivedAttributeBuilder builder = new V1beta1DeviceDerivedAttributeBuilder(item); + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } + return (A) this; + } + + public A addToDerivedAttributes(int index,V1beta1DeviceDerivedAttribute item) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + V1beta1DeviceDerivedAttributeBuilder builder = new V1beta1DeviceDerivedAttributeBuilder(item); + if (index < 0 || index >= this.derivedAttributes.size()) { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } else { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(index, builder); + } + return (A) this; } public A addToSelectors(V1beta1DeviceSelector... items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1beta1DeviceSelector item : items) { V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); @@ -103,7 +153,7 @@ public A addToSelectors(V1beta1DeviceSelector... items) { public A addToSelectors(int index,V1beta1DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -118,7 +168,7 @@ public A addToSelectors(int index,V1beta1DeviceSelector item) { public A addToTolerations(V1beta1DeviceToleration... items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1beta1DeviceToleration item : items) { V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); @@ -130,7 +180,7 @@ public A addToTolerations(V1beta1DeviceToleration... items) { public A addToTolerations(int index,V1beta1DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -147,6 +197,18 @@ public V1beta1CapacityRequirements buildCapacity() { return this.capacity != null ? this.capacity.build() : null; } + public V1beta1DeviceDerivedAttribute buildDerivedAttribute(int index) { + return this.derivedAttributes.get(index).build(); + } + + public List buildDerivedAttributes() { + return this.derivedAttributes != null ? build(derivedAttributes) : null; + } + + public V1beta1DeviceDerivedAttribute buildFirstDerivedAttribute() { + return this.derivedAttributes.get(0).build(); + } + public V1beta1DeviceSelector buildFirstSelector() { return this.selectors.get(0).build(); } @@ -155,6 +217,10 @@ public V1beta1DeviceToleration buildFirstToleration() { return this.tolerations.get(0).build(); } + public V1beta1DeviceDerivedAttribute buildLastDerivedAttribute() { + return this.derivedAttributes.get(derivedAttributes.size() - 1).build(); + } + public V1beta1DeviceSelector buildLastSelector() { return this.selectors.get(selectors.size() - 1).build(); } @@ -163,6 +229,15 @@ public V1beta1DeviceToleration buildLastToleration() { return this.tolerations.get(tolerations.size() - 1).build(); } + public V1beta1DeviceDerivedAttribute buildMatchingDerivedAttribute(Predicate predicate) { + for (V1beta1DeviceDerivedAttributeBuilder item : derivedAttributes) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { for (V1beta1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -203,6 +278,7 @@ protected void copyInstance(V1beta1DeviceSubRequest instance) { this.withAllocationMode(instance.getAllocationMode()); this.withCapacity(instance.getCapacity()); this.withCount(instance.getCount()); + this.withDerivedAttributes(instance.getDerivedAttributes()); this.withDeviceClassName(instance.getDeviceClassName()); this.withName(instance.getName()); this.withSelectors(instance.getSelectors()); @@ -214,6 +290,20 @@ public CapacityNested editCapacity() { return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); } + public DerivedAttributesNested editDerivedAttribute(int index) { + if (derivedAttributes.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + + public DerivedAttributesNested editFirstDerivedAttribute() { + if (derivedAttributes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(0, this.buildDerivedAttribute(0)); + } + public SelectorsNested editFirstSelector() { if (selectors.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); @@ -228,6 +318,14 @@ public TolerationsNested editFirstToleration() { return this.setNewTolerationLike(0, this.buildToleration(0)); } + public DerivedAttributesNested editLastDerivedAttribute() { + int index = derivedAttributes.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + public SelectorsNested editLastSelector() { int index = selectors.size() - 1; if (index < 0) { @@ -244,6 +342,20 @@ public TolerationsNested editLastToleration() { return this.setNewTolerationLike(index, this.buildToleration(index)); } + public DerivedAttributesNested editMatchingDerivedAttribute(Predicate predicate) { + int index = -1; + for (int i = 0;i < derivedAttributes.size();i++) { + if (predicate.test(derivedAttributes.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; for (int i = 0;i < selectors.size();i++) { @@ -304,7 +416,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceSubRequestFluent that = (V1beta1DeviceSubRequestFluent) o; + V1beta1DeviceSubRequestFluent that = (V1beta1DeviceSubRequestFluent) o; if (!(Objects.equals(allocationMode, that.allocationMode))) { return false; } @@ -314,6 +426,9 @@ public boolean equals(Object o) { if (!(Objects.equals(count, that.count))) { return false; } + if (!(Objects.equals(derivedAttributes, that.derivedAttributes))) { + return false; + } if (!(Objects.equals(deviceClassName, that.deviceClassName))) { return false; } @@ -357,10 +472,23 @@ public boolean hasCount() { return this.count != null; } + public boolean hasDerivedAttributes() { + return this.derivedAttributes != null && !(this.derivedAttributes.isEmpty()); + } + public boolean hasDeviceClassName() { return this.deviceClassName != null; } + public boolean hasMatchingDerivedAttribute(Predicate predicate) { + for (V1beta1DeviceDerivedAttributeBuilder item : derivedAttributes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingSelector(Predicate predicate) { for (V1beta1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -392,7 +520,19 @@ public boolean hasTolerations() { } public int hashCode() { - return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + return Objects.hash(allocationMode, capacity, count, derivedAttributes, deviceClassName, name, selectors, tolerations); + } + + public A removeAllFromDerivedAttributes(Collection items) { + if (this.derivedAttributes == null) { + return (A) this; + } + for (V1beta1DeviceDerivedAttribute item : items) { + V1beta1DeviceDerivedAttributeBuilder builder = new V1beta1DeviceDerivedAttributeBuilder(item); + _visitables.get("derivedAttributes").remove(builder); + this.derivedAttributes.remove(builder); + } + return (A) this; } public A removeAllFromSelectors(Collection items) { @@ -419,6 +559,18 @@ public A removeAllFromTolerations(Collection items) { return (A) this; } + public A removeFromDerivedAttributes(V1beta1DeviceDerivedAttribute... items) { + if (this.derivedAttributes == null) { + return (A) this; + } + for (V1beta1DeviceDerivedAttribute item : items) { + V1beta1DeviceDerivedAttributeBuilder builder = new V1beta1DeviceDerivedAttributeBuilder(item); + _visitables.get("derivedAttributes").remove(builder); + this.derivedAttributes.remove(builder); + } + return (A) this; + } + public A removeFromSelectors(V1beta1DeviceSelector... items) { if (this.selectors == null) { return (A) this; @@ -443,11 +595,29 @@ public A removeFromTolerations(V1beta1DeviceToleration... items) { return (A) this; } + public A removeMatchingFromDerivedAttributes(Predicate predicate) { + if (derivedAttributes == null) { + return (A) this; + } + Iterator each = derivedAttributes.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("derivedAttributes"); + while (each.hasNext()) { + V1beta1DeviceDerivedAttributeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public A removeMatchingFromSelectors(Predicate predicate) { if (selectors == null) { return (A) this; } Iterator each = selectors.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1beta1DeviceSelectorBuilder builder = each.next(); @@ -464,6 +634,7 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } Iterator each = tolerations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1beta1DeviceTolerationBuilder builder = each.next(); @@ -475,17 +646,36 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } + public DerivedAttributesNested setNewDerivedAttributeLike(int index,V1beta1DeviceDerivedAttribute item) { + return new DerivedAttributesNested<>(index, item); + } + public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { - return new SelectorsNested(index, item); + return new SelectorsNested<>(index, item); } public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { - return new TolerationsNested(index, item); + return new TolerationsNested<>(index, item); + } + + public A setToDerivedAttributes(int index,V1beta1DeviceDerivedAttribute item) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + V1beta1DeviceDerivedAttributeBuilder builder = new V1beta1DeviceDerivedAttributeBuilder(item); + if (index < 0 || index >= this.derivedAttributes.size()) { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } else { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.set(index, builder); + } + return (A) this; } public A setToSelectors(int index,V1beta1DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -500,7 +690,7 @@ public A setToSelectors(int index,V1beta1DeviceSelector item) { public A setToTolerations(int index,V1beta1DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -531,6 +721,11 @@ public String toString() { sb.append(count); sb.append(","); } + if (!(derivedAttributes == null) && !(derivedAttributes.isEmpty())) { + sb.append("derivedAttributes:"); + sb.append(derivedAttributes); + sb.append(","); + } if (!(deviceClassName == null)) { sb.append("deviceClassName:"); sb.append(deviceClassName); @@ -565,8 +760,8 @@ public A withCapacity(V1beta1CapacityRequirements capacity) { this.capacity = new V1beta1CapacityRequirementsBuilder(capacity); this._visitables.get("capacity").add(this.capacity); } else { - this.capacity = null; this._visitables.get("capacity").remove(this.capacity); + this.capacity = null; } return (A) this; } @@ -576,6 +771,34 @@ public A withCount(Long count) { return (A) this; } + public A withDerivedAttributes(List derivedAttributes) { + if (this.derivedAttributes != null) { + this._visitables.get("derivedAttributes").clear(); + } + if (derivedAttributes != null) { + this.derivedAttributes = new ArrayList<>(); + for (V1beta1DeviceDerivedAttribute item : derivedAttributes) { + this.addToDerivedAttributes(item); + } + } else { + this.derivedAttributes = null; + } + return (A) this; + } + + public A withDerivedAttributes(V1beta1DeviceDerivedAttribute... derivedAttributes) { + if (this.derivedAttributes != null) { + this.derivedAttributes.clear(); + _visitables.remove("derivedAttributes"); + } + if (derivedAttributes != null) { + for (V1beta1DeviceDerivedAttribute item : derivedAttributes) { + this.addToDerivedAttributes(item); + } + } + return (A) this; + } + public A withDeviceClassName(String deviceClassName) { this.deviceClassName = deviceClassName; return (A) this; @@ -587,11 +810,11 @@ public A withName(String name) { } public CapacityNested withNewCapacity() { - return new CapacityNested(null); + return new CapacityNested<>(null); } public CapacityNested withNewCapacityLike(V1beta1CapacityRequirements item) { - return new CapacityNested(item); + return new CapacityNested<>(item); } public A withSelectors(List selectors) { @@ -599,7 +822,7 @@ public A withSelectors(List selectors) { this._visitables.get("selectors").clear(); } if (selectors != null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); for (V1beta1DeviceSelector item : selectors) { this.addToSelectors(item); } @@ -627,7 +850,7 @@ public A withTolerations(List tolerations) { this._visitables.get("tolerations").clear(); } if (tolerations != null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); for (V1beta1DeviceToleration item : tolerations) { this.addToTolerations(item); } @@ -665,6 +888,25 @@ public N endCapacity() { return and(); } + } + public class DerivedAttributesNested extends V1beta1DeviceDerivedAttributeFluent> implements Nested{ + + V1beta1DeviceDerivedAttributeBuilder builder; + int index; + + DerivedAttributesNested(int index,V1beta1DeviceDerivedAttribute item) { + this.index = index; + this.builder = new V1beta1DeviceDerivedAttributeBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceSubRequestFluent.this.setToDerivedAttributes(index, builder.build()); + } + + public N endDerivedAttribute() { + return and(); + } + } public class SelectorsNested extends V1beta1DeviceSelectorFluent> implements Nested{ 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 index 0fc74f1981..25a3c56c24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceTaintBuilder extends V1beta1DeviceTaintFluent implements VisitableBuilder{ V1beta1DeviceTaintFluent fluent; 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 index b2fcc43090..14428cd2c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceTaintFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceTaintFluent> extends BaseFluent{ private String effect; private String key; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceTaintFluent that = (V1beta1DeviceTaintFluent) o; + V1beta1DeviceTaintFluent that = (V1beta1DeviceTaintFluent) o; if (!(Objects.equals(effect, that.effect))) { return false; } 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 index 62b9633b95..a40a79f7f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1DeviceTolerationBuilder extends V1beta1DeviceTolerationFluent implements VisitableBuilder{ V1beta1DeviceTolerationFluent fluent; 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 index 60fb6f4c04..e83b7c67a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1DeviceTolerationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DeviceTolerationFluent> extends BaseFluent{ private String effect; private String key; @@ -60,7 +62,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1DeviceTolerationFluent that = (V1beta1DeviceTolerationFluent) o; + V1beta1DeviceTolerationFluent that = (V1beta1DeviceTolerationFluent) o; if (!(Objects.equals(effect, that.effect))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DisruptionModeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DisruptionModeBuilder.java new file mode 100644 index 0000000000..df2101bc81 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DisruptionModeBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1DisruptionModeBuilder extends V1beta1DisruptionModeFluent implements VisitableBuilder{ + + V1beta1DisruptionModeFluent fluent; + + public V1beta1DisruptionModeBuilder() { + this(new V1beta1DisruptionMode()); + } + + public V1beta1DisruptionModeBuilder(V1beta1DisruptionModeFluent fluent) { + this(fluent, new V1beta1DisruptionMode()); + } + + public V1beta1DisruptionModeBuilder(V1beta1DisruptionMode instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DisruptionModeBuilder(V1beta1DisruptionModeFluent fluent,V1beta1DisruptionMode instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DisruptionMode build() { + V1beta1DisruptionMode buildable = new V1beta1DisruptionMode(); + buildable.setAll(fluent.getAll()); + buildable.setSingle(fluent.getSingle()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DisruptionModeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DisruptionModeFluent.java new file mode 100644 index 0000000000..20f8697b57 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DisruptionModeFluent.java @@ -0,0 +1,114 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1DisruptionModeFluent> extends BaseFluent{ + + private Object all; + private Object single; + + public V1beta1DisruptionModeFluent() { + } + + public V1beta1DisruptionModeFluent(V1beta1DisruptionMode instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1DisruptionMode instance) { + instance = instance != null ? instance : new V1beta1DisruptionMode(); + if (instance != null) { + this.withAll(instance.getAll()); + this.withSingle(instance.getSingle()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DisruptionModeFluent that = (V1beta1DisruptionModeFluent) o; + if (!(Objects.equals(all, that.all))) { + return false; + } + if (!(Objects.equals(single, that.single))) { + return false; + } + return true; + } + + public Object getAll() { + return this.all; + } + + public Object getSingle() { + return this.single; + } + + public boolean hasAll() { + return this.all != null; + } + + public boolean hasSingle() { + return this.single != null; + } + + public int hashCode() { + return Objects.hash(all, single); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(all == null)) { + sb.append("all:"); + sb.append(all); + sb.append(","); + } + if (!(single == null)) { + sb.append("single:"); + sb.append(single); + } + sb.append("}"); + return sb.toString(); + } + + public A withAll(Object all) { + this.all = all; + return (A) this; + } + + public A withSingle(Object single) { + this.single = single; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GangSchedulingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GangSchedulingPolicyBuilder.java new file mode 100644 index 0000000000..9b4b16574f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GangSchedulingPolicyBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1GangSchedulingPolicyBuilder extends V1beta1GangSchedulingPolicyFluent implements VisitableBuilder{ + + V1beta1GangSchedulingPolicyFluent fluent; + + public V1beta1GangSchedulingPolicyBuilder() { + this(new V1beta1GangSchedulingPolicy()); + } + + public V1beta1GangSchedulingPolicyBuilder(V1beta1GangSchedulingPolicyFluent fluent) { + this(fluent, new V1beta1GangSchedulingPolicy()); + } + + public V1beta1GangSchedulingPolicyBuilder(V1beta1GangSchedulingPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1GangSchedulingPolicyBuilder(V1beta1GangSchedulingPolicyFluent fluent,V1beta1GangSchedulingPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1GangSchedulingPolicy build() { + V1beta1GangSchedulingPolicy buildable = new V1beta1GangSchedulingPolicy(); + buildable.setMinCount(fluent.getMinCount()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GangSchedulingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GangSchedulingPolicyFluent.java new file mode 100644 index 0000000000..ac76db0e37 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GangSchedulingPolicyFluent.java @@ -0,0 +1,92 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1GangSchedulingPolicyFluent> extends BaseFluent{ + + private Integer minCount; + + public V1beta1GangSchedulingPolicyFluent() { + } + + public V1beta1GangSchedulingPolicyFluent(V1beta1GangSchedulingPolicy instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1GangSchedulingPolicy instance) { + instance = instance != null ? instance : new V1beta1GangSchedulingPolicy(); + if (instance != null) { + this.withMinCount(instance.getMinCount()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1GangSchedulingPolicyFluent that = (V1beta1GangSchedulingPolicyFluent) o; + if (!(Objects.equals(minCount, that.minCount))) { + return false; + } + return true; + } + + public Integer getMinCount() { + return this.minCount; + } + + public boolean hasMinCount() { + return this.minCount != null; + } + + public int hashCode() { + return Objects.hash(minCount); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(minCount == null)) { + sb.append("minCount:"); + sb.append(minCount); + } + sb.append("}"); + return sb.toString(); + } + + public A withMinCount(Integer minCount) { + this.minCount = minCount; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java deleted file mode 100644 index 03607132ec..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java +++ /dev/null @@ -1,134 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1IPAddressSpecFluent> extends BaseFluent{ - - private V1beta1ParentReferenceBuilder parentRef; - - public V1beta1IPAddressSpecFluent() { - } - - public V1beta1IPAddressSpecFluent(V1beta1IPAddressSpec instance) { - this.copyInstance(instance); - } - - public V1beta1ParentReference buildParentRef() { - return this.parentRef != null ? this.parentRef.build() : null; - } - - protected void copyInstance(V1beta1IPAddressSpec instance) { - instance = instance != null ? instance : new V1beta1IPAddressSpec(); - if (instance != null) { - this.withParentRef(instance.getParentRef()); - } - } - - public ParentRefNested editOrNewParentRef() { - return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(new V1beta1ParentReferenceBuilder().build())); - } - - public ParentRefNested editOrNewParentRefLike(V1beta1ParentReference item) { - return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(item)); - } - - public ParentRefNested editParentRef() { - return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(null)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1IPAddressSpecFluent that = (V1beta1IPAddressSpecFluent) o; - if (!(Objects.equals(parentRef, that.parentRef))) { - return false; - } - return true; - } - - public boolean hasParentRef() { - return this.parentRef != null; - } - - public int hashCode() { - return Objects.hash(parentRef); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(parentRef == null)) { - sb.append("parentRef:"); - sb.append(parentRef); - } - sb.append("}"); - return sb.toString(); - } - - public ParentRefNested withNewParentRef() { - return new ParentRefNested(null); - } - - public ParentRefNested withNewParentRefLike(V1beta1ParentReference item) { - return new ParentRefNested(item); - } - - public A withParentRef(V1beta1ParentReference parentRef) { - this._visitables.remove("parentRef"); - if (parentRef != null) { - this.parentRef = new V1beta1ParentReferenceBuilder(parentRef); - this._visitables.get("parentRef").add(this.parentRef); - } else { - this.parentRef = null; - this._visitables.get("parentRef").remove(this.parentRef); - } - return (A) this; - } - public class ParentRefNested extends V1beta1ParentReferenceFluent> implements Nested{ - - V1beta1ParentReferenceBuilder builder; - - ParentRefNested(V1beta1ParentReference item) { - this.builder = new V1beta1ParentReferenceBuilder(this, item); - } - - public N and() { - return (N) V1beta1IPAddressSpecFluent.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/V1beta1JSONPatchBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java index 629aaf8915..150b2232e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1JSONPatchBuilder extends V1beta1JSONPatchFluent implements VisitableBuilder{ V1beta1JSONPatchFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java index 7b2b9f9dd5..9dd43e2fef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1JSONPatchFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1JSONPatchFluent> extends BaseFluent{ private String expression; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1JSONPatchFluent that = (V1beta1JSONPatchFluent) o; + V1beta1JSONPatchFluent that = (V1beta1JSONPatchFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } 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 index e2a248309a..73e46a590c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1LeaseCandidateBuilder extends V1beta1LeaseCandidateFluent implements VisitableBuilder{ V1beta1LeaseCandidateFluent fluent; 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 index 4bd0728b3a..8740781d6f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1LeaseCandidateFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1LeaseCandidateFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1LeaseCandidateFluent that = (V1beta1LeaseCandidateFluent) o; + V1beta1LeaseCandidateFluent that = (V1beta1LeaseCandidateFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta1LeaseCandidateSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1beta1LeaseCandidateSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1beta1LeaseCandidateSpec spec) { this.spec = new V1beta1LeaseCandidateSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } 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 index 34561fb608..38507f97ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1LeaseCandidateListBuilder extends V1beta1LeaseCandidateListFluent implements VisitableBuilder{ V1beta1LeaseCandidateListFluent fluent; 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 index e7cafb06a2..074a7388b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1LeaseCandidateListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1LeaseCandidateListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta1LeaseCandidateListFluent(V1beta1LeaseCandidateList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1LeaseCandidate item : items) { V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta1LeaseCandidate item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta1LeaseCandidate... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1LeaseCandidate item : items) { V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta1LeaseCandidate... items) { public A addToItems(int index,V1beta1LeaseCandidate item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1LeaseCandidateListFluent that = (V1beta1LeaseCandidateListFluent) o; + V1beta1LeaseCandidateListFluent that = (V1beta1LeaseCandidateListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predica return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1LeaseCandidateBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predica } public ItemsNested setNewItemLike(int index,V1beta1LeaseCandidate item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta1LeaseCandidate item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta1LeaseCandidate item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta1LeaseCandidateFluent> implements Nested{ 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 index 74b4d63940..51936e53cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1LeaseCandidateSpecBuilder extends V1beta1LeaseCandidateSpecFluent implements VisitableBuilder{ V1beta1LeaseCandidateSpecFluent fluent; 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 index 229ba2d341..74c6aee6d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1LeaseCandidateSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1LeaseCandidateSpecFluent> extends BaseFluent{ private String binaryVersion; private String emulationVersion; @@ -62,7 +64,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1LeaseCandidateSpecFluent that = (V1beta1LeaseCandidateSpecFluent) o; + V1beta1LeaseCandidateSpecFluent that = (V1beta1LeaseCandidateSpecFluent) o; if (!(Objects.equals(binaryVersion, that.binaryVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java index 594f5deffd..0a22699106 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1MatchConditionBuilder extends V1beta1MatchConditionFluent implements VisitableBuilder{ V1beta1MatchConditionFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java index 09dc6f7292..b34afb386d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1MatchConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1MatchConditionFluent> extends BaseFluent{ private String expression; private String name; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1MatchConditionFluent that = (V1beta1MatchConditionFluent) o; + V1beta1MatchConditionFluent that = (V1beta1MatchConditionFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java index b8174ad529..ef256949fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1MatchResourcesBuilder extends V1beta1MatchResourcesFluent implements VisitableBuilder{ V1beta1MatchResourcesFluent fluent; 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 4a94fe2b1d..4d1cb5ae9e 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1MatchResourcesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1MatchResourcesFluent> extends BaseFluent{ private ArrayList excludeResourceRules; private String matchPolicy; @@ -48,7 +50,7 @@ public V1beta1MatchResourcesFluent(V1beta1MatchResources instance) { public A addAllToExcludeResourceRules(Collection items) { if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); } for (V1beta1NamedRuleWithOperations item : items) { V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); @@ -60,7 +62,7 @@ public A addAllToExcludeResourceRules(Collection public A addAllToResourceRules(Collection items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } for (V1beta1NamedRuleWithOperations item : items) { V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); @@ -71,24 +73,24 @@ public A addAllToResourceRules(Collection items) } public ExcludeResourceRulesNested addNewExcludeResourceRule() { - return new ExcludeResourceRulesNested(-1, null); + return new ExcludeResourceRulesNested<>(-1, null); } public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1beta1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(-1, item); + return new ExcludeResourceRulesNested<>(-1, item); } public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); + return new ResourceRulesNested<>(-1, null); } public ResourceRulesNested addNewResourceRuleLike(V1beta1NamedRuleWithOperations item) { - return new ResourceRulesNested(-1, item); + return new ResourceRulesNested<>(-1, item); } public A addToExcludeResourceRules(V1beta1NamedRuleWithOperations... items) { if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); } for (V1beta1NamedRuleWithOperations item : items) { V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); @@ -100,7 +102,7 @@ public A addToExcludeResourceRules(V1beta1NamedRuleWithOperations... items) { public A addToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); } V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= this.excludeResourceRules.size()) { @@ -115,7 +117,7 @@ public A addToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item public A addToResourceRules(V1beta1NamedRuleWithOperations... items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } for (V1beta1NamedRuleWithOperations item : items) { V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); @@ -127,7 +129,7 @@ public A addToResourceRules(V1beta1NamedRuleWithOperations... items) { public A addToResourceRules(int index,V1beta1NamedRuleWithOperations item) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= this.resourceRules.size()) { @@ -315,7 +317,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1MatchResourcesFluent that = (V1beta1MatchResourcesFluent) o; + V1beta1MatchResourcesFluent that = (V1beta1MatchResourcesFluent) o; if (!(Objects.equals(excludeResourceRules, that.excludeResourceRules))) { return false; } @@ -433,6 +435,7 @@ public A removeMatchingFromExcludeResourceRules(Predicate each = excludeResourceRules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("excludeResourceRules"); while (each.hasNext()) { V1beta1NamedRuleWithOperationsBuilder builder = each.next(); @@ -449,6 +452,7 @@ public A removeMatchingFromResourceRules(Predicate each = resourceRules.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resourceRules"); while (each.hasNext()) { V1beta1NamedRuleWithOperationsBuilder builder = each.next(); @@ -461,16 +465,16 @@ public A removeMatchingFromResourceRules(Predicate setNewExcludeResourceRuleLike(int index,V1beta1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(index, item); + return new ExcludeResourceRulesNested<>(index, item); } public ResourceRulesNested setNewResourceRuleLike(int index,V1beta1NamedRuleWithOperations item) { - return new ResourceRulesNested(index, item); + return new ResourceRulesNested<>(index, item); } public A setToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); } V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= this.excludeResourceRules.size()) { @@ -485,7 +489,7 @@ public A setToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item public A setToResourceRules(int index,V1beta1NamedRuleWithOperations item) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= this.resourceRules.size()) { @@ -534,7 +538,7 @@ public A withExcludeResourceRules(List excludeRe this._visitables.get("excludeResourceRules").clear(); } if (excludeResourceRules != null) { - this.excludeResourceRules = new ArrayList(); + this.excludeResourceRules = new ArrayList<>(); for (V1beta1NamedRuleWithOperations item : excludeResourceRules) { this.addToExcludeResourceRules(item); } @@ -568,26 +572,26 @@ public A withNamespaceSelector(V1LabelSelector namespaceSelector) { this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); this._visitables.get("namespaceSelector").add(this.namespaceSelector); } else { - this.namespaceSelector = null; this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + this.namespaceSelector = null; } return (A) this; } public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); + return new NamespaceSelectorNested<>(null); } public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); + return new NamespaceSelectorNested<>(item); } public ObjectSelectorNested withNewObjectSelector() { - return new ObjectSelectorNested(null); + return new ObjectSelectorNested<>(null); } public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { - return new ObjectSelectorNested(item); + return new ObjectSelectorNested<>(item); } public A withObjectSelector(V1LabelSelector objectSelector) { @@ -596,8 +600,8 @@ public A withObjectSelector(V1LabelSelector objectSelector) { this.objectSelector = new V1LabelSelectorBuilder(objectSelector); this._visitables.get("objectSelector").add(this.objectSelector); } else { - this.objectSelector = null; this._visitables.get("objectSelector").remove(this.objectSelector); + this.objectSelector = null; } return (A) this; } @@ -607,7 +611,7 @@ public A withResourceRules(List resourceRules) { this._visitables.get("resourceRules").clear(); } if (resourceRules != null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); for (V1beta1NamedRuleWithOperations item : resourceRules) { this.addToResourceRules(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java index ecd78357e8..28fad0a974 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1MutatingAdmissionPolicyBindingBuilder extends V1beta1MutatingAdmissionPolicyBindingFluent implements VisitableBuilder{ V1beta1MutatingAdmissionPolicyBindingFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java index d87342a1b6..db0e011583 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1MutatingAdmissionPolicyBindingFluent that = (V1beta1MutatingAdmissionPolicyBindingFluent) o; + V1beta1MutatingAdmissionPolicyBindingFluent that = (V1beta1MutatingAdmissionPolicyBindingFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta1MutatingAdmissionPolicyBindingSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1beta1MutatingAdmissionPolicyBindingSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1beta1MutatingAdmissionPolicyBindingSpec spec) { this.spec = new V1beta1MutatingAdmissionPolicyBindingSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java index 649521692b..c978b9aaa3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1MutatingAdmissionPolicyBindingListBuilder extends V1beta1MutatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ V1beta1MutatingAdmissionPolicyBindingListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java index f54dba0d8a..9ced2e4c7e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta1MutatingAdmissionPolicyBindingListFluent(V1beta1MutatingAdmissionP public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1MutatingAdmissionPolicyBinding item : items) { V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta1MutatingAdmissionPolicyBinding item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta1MutatingAdmissionPolicyBinding... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1MutatingAdmissionPolicyBinding item : items) { V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta1MutatingAdmissionPolicyBinding... items) { public A addToItems(int index,V1beta1MutatingAdmissionPolicyBinding item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1MutatingAdmissionPolicyBindingListFluent that = (V1beta1MutatingAdmissionPolicyBindingListFluent) o; + V1beta1MutatingAdmissionPolicyBindingListFluent that = (V1beta1MutatingAdmissionPolicyBindingListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1MutatingAdmissionPolicyBindingBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate setNewItemLike(int index,V1beta1MutatingAdmissionPolicyBinding item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta1MutatingAdmissionPolicyBinding item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta1MutatingAdmissionPolicyBinding item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta1MutatingAdmissionPolicyBindingFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java index bb5890f2f4..798266f335 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1MutatingAdmissionPolicyBindingSpecBuilder extends V1beta1MutatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ V1beta1MutatingAdmissionPolicyBindingSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java index 8ed45e3f0a..2e59767faa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ private V1beta1MatchResourcesBuilder matchResources; private V1beta1ParamRefBuilder paramRef; @@ -89,7 +91,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1MutatingAdmissionPolicyBindingSpecFluent that = (V1beta1MutatingAdmissionPolicyBindingSpecFluent) o; + V1beta1MutatingAdmissionPolicyBindingSpecFluent that = (V1beta1MutatingAdmissionPolicyBindingSpecFluent) o; if (!(Objects.equals(matchResources, that.matchResources))) { return false; } @@ -149,26 +151,26 @@ public A withMatchResources(V1beta1MatchResources matchResources) { this.matchResources = new V1beta1MatchResourcesBuilder(matchResources); this._visitables.get("matchResources").add(this.matchResources); } else { - this.matchResources = null; this._visitables.get("matchResources").remove(this.matchResources); + this.matchResources = null; } return (A) this; } public MatchResourcesNested withNewMatchResources() { - return new MatchResourcesNested(null); + return new MatchResourcesNested<>(null); } public MatchResourcesNested withNewMatchResourcesLike(V1beta1MatchResources item) { - return new MatchResourcesNested(item); + return new MatchResourcesNested<>(item); } public ParamRefNested withNewParamRef() { - return new ParamRefNested(null); + return new ParamRefNested<>(null); } public ParamRefNested withNewParamRefLike(V1beta1ParamRef item) { - return new ParamRefNested(item); + return new ParamRefNested<>(item); } public A withParamRef(V1beta1ParamRef paramRef) { @@ -177,8 +179,8 @@ public A withParamRef(V1beta1ParamRef paramRef) { this.paramRef = new V1beta1ParamRefBuilder(paramRef); this._visitables.get("paramRef").add(this.paramRef); } else { - this.paramRef = null; this._visitables.get("paramRef").remove(this.paramRef); + this.paramRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java index ef6eb00a12..da338e88e6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1MutatingAdmissionPolicyBuilder extends V1beta1MutatingAdmissionPolicyFluent implements VisitableBuilder{ V1beta1MutatingAdmissionPolicyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java index 7b5de64c61..661308d70a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1MutatingAdmissionPolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1MutatingAdmissionPolicyFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1MutatingAdmissionPolicyFluent that = (V1beta1MutatingAdmissionPolicyFluent) o; + V1beta1MutatingAdmissionPolicyFluent that = (V1beta1MutatingAdmissionPolicyFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta1MutatingAdmissionPolicySpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1beta1MutatingAdmissionPolicySpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1beta1MutatingAdmissionPolicySpec spec) { this.spec = new V1beta1MutatingAdmissionPolicySpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java index ed74e2e78f..0d2d7a3c6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1MutatingAdmissionPolicyListBuilder extends V1beta1MutatingAdmissionPolicyListFluent implements VisitableBuilder{ V1beta1MutatingAdmissionPolicyListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java index e1661ca0ba..896aa3169b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1MutatingAdmissionPolicyListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1MutatingAdmissionPolicyListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta1MutatingAdmissionPolicyListFluent(V1beta1MutatingAdmissionPolicyLi public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1MutatingAdmissionPolicy item : items) { V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta1MutatingAdmissionPolicy item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta1MutatingAdmissionPolicy... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1MutatingAdmissionPolicy item : items) { V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta1MutatingAdmissionPolicy... items) { public A addToItems(int index,V1beta1MutatingAdmissionPolicy item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1MutatingAdmissionPolicyListFluent that = (V1beta1MutatingAdmissionPolicyListFluent) o; + V1beta1MutatingAdmissionPolicyListFluent that = (V1beta1MutatingAdmissionPolicyListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1MutatingAdmissionPolicyBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate setNewItemLike(int index,V1beta1MutatingAdmissionPolicy item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta1MutatingAdmissionPolicy item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta1MutatingAdmissionPolicy item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta1MutatingAdmissionPolicyFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java index 2dfbd93d66..bcf947aa97 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1MutatingAdmissionPolicySpecBuilder extends V1beta1MutatingAdmissionPolicySpecFluent implements VisitableBuilder{ V1beta1MutatingAdmissionPolicySpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java index 2e9ea40028..ddfa8017dd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ private String failurePolicy; private ArrayList matchConditions; @@ -50,7 +52,7 @@ public V1beta1MutatingAdmissionPolicySpecFluent(V1beta1MutatingAdmissionPolicySp public A addAllToMatchConditions(Collection items) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } for (V1beta1MatchCondition item : items) { V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); @@ -62,7 +64,7 @@ public A addAllToMatchConditions(Collection items) { public A addAllToMutations(Collection items) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); } for (V1beta1Mutation item : items) { V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); @@ -74,7 +76,7 @@ public A addAllToMutations(Collection items) { public A addAllToVariables(Collection items) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } for (V1beta1Variable item : items) { V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); @@ -85,32 +87,32 @@ public A addAllToVariables(Collection items) { } public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); + return new MatchConditionsNested<>(-1, null); } public MatchConditionsNested addNewMatchConditionLike(V1beta1MatchCondition item) { - return new MatchConditionsNested(-1, item); + return new MatchConditionsNested<>(-1, item); } public MutationsNested addNewMutation() { - return new MutationsNested(-1, null); + return new MutationsNested<>(-1, null); } public MutationsNested addNewMutationLike(V1beta1Mutation item) { - return new MutationsNested(-1, item); + return new MutationsNested<>(-1, item); } public VariablesNested addNewVariable() { - return new VariablesNested(-1, null); + return new VariablesNested<>(-1, null); } public VariablesNested addNewVariableLike(V1beta1Variable item) { - return new VariablesNested(-1, item); + return new VariablesNested<>(-1, item); } public A addToMatchConditions(V1beta1MatchCondition... items) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } for (V1beta1MatchCondition item : items) { V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); @@ -122,7 +124,7 @@ public A addToMatchConditions(V1beta1MatchCondition... items) { public A addToMatchConditions(int index,V1beta1MatchCondition item) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); if (index < 0 || index >= this.matchConditions.size()) { @@ -137,7 +139,7 @@ public A addToMatchConditions(int index,V1beta1MatchCondition item) { public A addToMutations(V1beta1Mutation... items) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); } for (V1beta1Mutation item : items) { V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); @@ -149,7 +151,7 @@ public A addToMutations(V1beta1Mutation... items) { public A addToMutations(int index,V1beta1Mutation item) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); } V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); if (index < 0 || index >= this.mutations.size()) { @@ -164,7 +166,7 @@ public A addToMutations(int index,V1beta1Mutation item) { public A addToVariables(V1beta1Variable... items) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } for (V1beta1Variable item : items) { V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); @@ -176,7 +178,7 @@ public A addToVariables(V1beta1Variable... items) { public A addToVariables(int index,V1beta1Variable item) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); if (index < 0 || index >= this.variables.size()) { @@ -427,7 +429,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1MutatingAdmissionPolicySpecFluent that = (V1beta1MutatingAdmissionPolicySpecFluent) o; + V1beta1MutatingAdmissionPolicySpecFluent that = (V1beta1MutatingAdmissionPolicySpecFluent) o; if (!(Objects.equals(failurePolicy, that.failurePolicy))) { return false; } @@ -596,6 +598,7 @@ public A removeMatchingFromMatchConditions(Predicate each = matchConditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("matchConditions"); while (each.hasNext()) { V1beta1MatchConditionBuilder builder = each.next(); @@ -612,6 +615,7 @@ public A removeMatchingFromMutations(Predicate predicate return (A) this; } Iterator each = mutations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("mutations"); while (each.hasNext()) { V1beta1MutationBuilder builder = each.next(); @@ -628,6 +632,7 @@ public A removeMatchingFromVariables(Predicate predicate return (A) this; } Iterator each = variables.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("variables"); while (each.hasNext()) { V1beta1VariableBuilder builder = each.next(); @@ -640,20 +645,20 @@ public A removeMatchingFromVariables(Predicate predicate } public MatchConditionsNested setNewMatchConditionLike(int index,V1beta1MatchCondition item) { - return new MatchConditionsNested(index, item); + return new MatchConditionsNested<>(index, item); } public MutationsNested setNewMutationLike(int index,V1beta1Mutation item) { - return new MutationsNested(index, item); + return new MutationsNested<>(index, item); } public VariablesNested setNewVariableLike(int index,V1beta1Variable item) { - return new VariablesNested(index, item); + return new VariablesNested<>(index, item); } public A setToMatchConditions(int index,V1beta1MatchCondition item) { if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); } V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); if (index < 0 || index >= this.matchConditions.size()) { @@ -668,7 +673,7 @@ public A setToMatchConditions(int index,V1beta1MatchCondition item) { public A setToMutations(int index,V1beta1Mutation item) { if (this.mutations == null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); } V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); if (index < 0 || index >= this.mutations.size()) { @@ -683,7 +688,7 @@ public A setToMutations(int index,V1beta1Mutation item) { public A setToVariables(int index,V1beta1Variable item) { if (this.variables == null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); } V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); if (index < 0 || index >= this.variables.size()) { @@ -747,7 +752,7 @@ public A withMatchConditions(List matchConditions) { this._visitables.get("matchConditions").clear(); } if (matchConditions != null) { - this.matchConditions = new ArrayList(); + this.matchConditions = new ArrayList<>(); for (V1beta1MatchCondition item : matchConditions) { this.addToMatchConditions(item); } @@ -776,8 +781,8 @@ public A withMatchConstraints(V1beta1MatchResources matchConstraints) { this.matchConstraints = new V1beta1MatchResourcesBuilder(matchConstraints); this._visitables.get("matchConstraints").add(this.matchConstraints); } else { - this.matchConstraints = null; this._visitables.get("matchConstraints").remove(this.matchConstraints); + this.matchConstraints = null; } return (A) this; } @@ -787,7 +792,7 @@ public A withMutations(List mutations) { this._visitables.get("mutations").clear(); } if (mutations != null) { - this.mutations = new ArrayList(); + this.mutations = new ArrayList<>(); for (V1beta1Mutation item : mutations) { this.addToMutations(item); } @@ -811,19 +816,19 @@ public A withMutations(V1beta1Mutation... mutations) { } public MatchConstraintsNested withNewMatchConstraints() { - return new MatchConstraintsNested(null); + return new MatchConstraintsNested<>(null); } public MatchConstraintsNested withNewMatchConstraintsLike(V1beta1MatchResources item) { - return new MatchConstraintsNested(item); + return new MatchConstraintsNested<>(item); } public ParamKindNested withNewParamKind() { - return new ParamKindNested(null); + return new ParamKindNested<>(null); } public ParamKindNested withNewParamKindLike(V1beta1ParamKind item) { - return new ParamKindNested(item); + return new ParamKindNested<>(item); } public A withParamKind(V1beta1ParamKind paramKind) { @@ -832,8 +837,8 @@ public A withParamKind(V1beta1ParamKind paramKind) { this.paramKind = new V1beta1ParamKindBuilder(paramKind); this._visitables.get("paramKind").add(this.paramKind); } else { - this.paramKind = null; this._visitables.get("paramKind").remove(this.paramKind); + this.paramKind = null; } return (A) this; } @@ -848,7 +853,7 @@ public A withVariables(List variables) { this._visitables.get("variables").clear(); } if (variables != null) { - this.variables = new ArrayList(); + this.variables = new ArrayList<>(); for (V1beta1Variable item : variables) { this.addToVariables(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java index c198bd298f..1331060599 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1MutationBuilder extends V1beta1MutationFluent implements VisitableBuilder{ V1beta1MutationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java index 52eb2b6e26..9faaad78d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1MutationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1MutationFluent> extends BaseFluent{ private V1beta1ApplyConfigurationBuilder applyConfiguration; private V1beta1JSONPatchBuilder jsonPatch; @@ -89,7 +91,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1MutationFluent that = (V1beta1MutationFluent) o; + V1beta1MutationFluent that = (V1beta1MutationFluent) o; if (!(Objects.equals(applyConfiguration, that.applyConfiguration))) { return false; } @@ -149,8 +151,8 @@ public A withApplyConfiguration(V1beta1ApplyConfiguration applyConfiguration) { this.applyConfiguration = new V1beta1ApplyConfigurationBuilder(applyConfiguration); this._visitables.get("applyConfiguration").add(this.applyConfiguration); } else { - this.applyConfiguration = null; this._visitables.get("applyConfiguration").remove(this.applyConfiguration); + this.applyConfiguration = null; } return (A) this; } @@ -161,26 +163,26 @@ public A withJsonPatch(V1beta1JSONPatch jsonPatch) { this.jsonPatch = new V1beta1JSONPatchBuilder(jsonPatch); this._visitables.get("jsonPatch").add(this.jsonPatch); } else { - this.jsonPatch = null; this._visitables.get("jsonPatch").remove(this.jsonPatch); + this.jsonPatch = null; } return (A) this; } public ApplyConfigurationNested withNewApplyConfiguration() { - return new ApplyConfigurationNested(null); + return new ApplyConfigurationNested<>(null); } public ApplyConfigurationNested withNewApplyConfigurationLike(V1beta1ApplyConfiguration item) { - return new ApplyConfigurationNested(item); + return new ApplyConfigurationNested<>(item); } public JsonPatchNested withNewJsonPatch() { - return new JsonPatchNested(null); + return new JsonPatchNested<>(null); } public JsonPatchNested withNewJsonPatchLike(V1beta1JSONPatch item) { - return new JsonPatchNested(item); + return new JsonPatchNested<>(item); } public A withPatchType(String patchType) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java index a2514fff5a..b20ce43405 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1NamedRuleWithOperationsBuilder extends V1beta1NamedRuleWithOperationsFluent implements VisitableBuilder{ V1beta1NamedRuleWithOperationsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java index 94233904ce..0d2e8143ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1NamedRuleWithOperationsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1NamedRuleWithOperationsFluent> extends BaseFluent{ private List apiGroups; private List apiVersions; @@ -45,7 +47,7 @@ public V1beta1NamedRuleWithOperationsFluent(V1beta1NamedRuleWithOperations insta public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -55,7 +57,7 @@ public A addAllToApiGroups(Collection items) { public A addAllToApiVersions(Collection items) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } for (String item : items) { this.apiVersions.add(item); @@ -65,7 +67,7 @@ public A addAllToApiVersions(Collection items) { public A addAllToOperations(Collection items) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } for (String item : items) { this.operations.add(item); @@ -75,7 +77,7 @@ public A addAllToOperations(Collection items) { public A addAllToResourceNames(Collection items) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } for (String item : items) { this.resourceNames.add(item); @@ -85,7 +87,7 @@ public A addAllToResourceNames(Collection items) { public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -95,7 +97,7 @@ public A addAllToResources(Collection items) { public A addToApiGroups(String... items) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } for (String item : items) { this.apiGroups.add(item); @@ -105,7 +107,7 @@ public A addToApiGroups(String... items) { public A addToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(index, item); return (A) this; @@ -113,7 +115,7 @@ public A addToApiGroups(int index,String item) { public A addToApiVersions(String... items) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } for (String item : items) { this.apiVersions.add(item); @@ -123,7 +125,7 @@ public A addToApiVersions(String... items) { public A addToApiVersions(int index,String item) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } this.apiVersions.add(index, item); return (A) this; @@ -131,7 +133,7 @@ public A addToApiVersions(int index,String item) { public A addToOperations(String... items) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } for (String item : items) { this.operations.add(item); @@ -141,7 +143,7 @@ public A addToOperations(String... items) { public A addToOperations(int index,String item) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } this.operations.add(index, item); return (A) this; @@ -149,7 +151,7 @@ public A addToOperations(int index,String item) { public A addToResourceNames(String... items) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } for (String item : items) { this.resourceNames.add(item); @@ -159,7 +161,7 @@ public A addToResourceNames(String... items) { public A addToResourceNames(int index,String item) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.add(index, item); return (A) this; @@ -167,7 +169,7 @@ public A addToResourceNames(int index,String item) { public A addToResources(String... items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (String item : items) { this.resources.add(item); @@ -177,7 +179,7 @@ public A addToResources(String... items) { public A addToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(index, item); return (A) this; @@ -205,7 +207,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1NamedRuleWithOperationsFluent that = (V1beta1NamedRuleWithOperationsFluent) o; + V1beta1NamedRuleWithOperationsFluent that = (V1beta1NamedRuleWithOperationsFluent) o; if (!(Objects.equals(apiGroups, that.apiGroups))) { return false; } @@ -531,7 +533,7 @@ public A removeFromResources(String... items) { public A setToApiGroups(int index,String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.set(index, item); return (A) this; @@ -539,7 +541,7 @@ public A setToApiGroups(int index,String item) { public A setToApiVersions(int index,String item) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } this.apiVersions.set(index, item); return (A) this; @@ -547,7 +549,7 @@ public A setToApiVersions(int index,String item) { public A setToOperations(int index,String item) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } this.operations.set(index, item); return (A) this; @@ -555,7 +557,7 @@ public A setToOperations(int index,String item) { public A setToResourceNames(int index,String item) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.set(index, item); return (A) this; @@ -563,7 +565,7 @@ public A setToResourceNames(int index,String item) { public A setToResources(int index,String item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.set(index, item); return (A) this; @@ -607,7 +609,7 @@ public String toString() { public A withApiGroups(List apiGroups) { if (apiGroups != null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); for (String item : apiGroups) { this.addToApiGroups(item); } @@ -632,7 +634,7 @@ public A withApiGroups(String... apiGroups) { public A withApiVersions(List apiVersions) { if (apiVersions != null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); for (String item : apiVersions) { this.addToApiVersions(item); } @@ -657,7 +659,7 @@ public A withApiVersions(String... apiVersions) { public A withOperations(List operations) { if (operations != null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); for (String item : operations) { this.addToOperations(item); } @@ -682,7 +684,7 @@ public A withOperations(String... operations) { public A withResourceNames(List resourceNames) { if (resourceNames != null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); for (String item : resourceNames) { this.addToResourceNames(item); } @@ -707,7 +709,7 @@ public A withResourceNames(String... resourceNames) { public A withResources(List resources) { if (resources != null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); for (String item : resources) { this.addToResources(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java index bcfd4e8a17..270590c6c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1NetworkDeviceDataBuilder extends V1beta1NetworkDeviceDataFluent implements VisitableBuilder{ V1beta1NetworkDeviceDataFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java index 6c2b66c9d7..5dac909d58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1NetworkDeviceDataFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1NetworkDeviceDataFluent> extends BaseFluent{ private String hardwareAddress; private String interfaceName; @@ -42,7 +44,7 @@ public V1beta1NetworkDeviceDataFluent(V1beta1NetworkDeviceData instance) { public A addAllToIps(Collection items) { if (this.ips == null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); } for (String item : items) { this.ips.add(item); @@ -52,7 +54,7 @@ public A addAllToIps(Collection items) { public A addToIps(String... items) { if (this.ips == null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); } for (String item : items) { this.ips.add(item); @@ -62,7 +64,7 @@ public A addToIps(String... items) { public A addToIps(int index,String item) { if (this.ips == null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); } this.ips.add(index, item); return (A) this; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1NetworkDeviceDataFluent that = (V1beta1NetworkDeviceDataFluent) o; + V1beta1NetworkDeviceDataFluent that = (V1beta1NetworkDeviceDataFluent) o; if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { return false; } @@ -180,7 +182,7 @@ public A removeFromIps(String... items) { public A setToIps(int index,String item) { if (this.ips == null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); } this.ips.set(index, item); return (A) this; @@ -219,7 +221,7 @@ public A withInterfaceName(String interfaceName) { public A withIps(List ips) { if (ips != null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); for (String item : ips) { this.addToIps(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableMappingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableMappingBuilder.java new file mode 100644 index 0000000000..40f5c2c41c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableMappingBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1NodeAllocatableMappingBuilder extends V1beta1NodeAllocatableMappingFluent implements VisitableBuilder{ + + V1beta1NodeAllocatableMappingFluent fluent; + + public V1beta1NodeAllocatableMappingBuilder() { + this(new V1beta1NodeAllocatableMapping()); + } + + public V1beta1NodeAllocatableMappingBuilder(V1beta1NodeAllocatableMappingFluent fluent) { + this(fluent, new V1beta1NodeAllocatableMapping()); + } + + public V1beta1NodeAllocatableMappingBuilder(V1beta1NodeAllocatableMapping instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1NodeAllocatableMappingBuilder(V1beta1NodeAllocatableMappingFluent fluent,V1beta1NodeAllocatableMapping instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1NodeAllocatableMapping build() { + V1beta1NodeAllocatableMapping buildable = new V1beta1NodeAllocatableMapping(); + buildable.setCapacityKey(fluent.getCapacityKey()); + buildable.setCapacityMultiplier(fluent.getCapacityMultiplier()); + buildable.setDeviceMultiplier(fluent.getDeviceMultiplier()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableMappingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableMappingFluent.java new file mode 100644 index 0000000000..4611745cad --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableMappingFluent.java @@ -0,0 +1,146 @@ +/* +Copyright 2026 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 io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1NodeAllocatableMappingFluent> extends BaseFluent{ + + private String capacityKey; + private Quantity capacityMultiplier; + private Quantity deviceMultiplier; + + public V1beta1NodeAllocatableMappingFluent() { + } + + public V1beta1NodeAllocatableMappingFluent(V1beta1NodeAllocatableMapping instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1NodeAllocatableMapping instance) { + instance = instance != null ? instance : new V1beta1NodeAllocatableMapping(); + if (instance != null) { + this.withCapacityKey(instance.getCapacityKey()); + this.withCapacityMultiplier(instance.getCapacityMultiplier()); + this.withDeviceMultiplier(instance.getDeviceMultiplier()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1NodeAllocatableMappingFluent that = (V1beta1NodeAllocatableMappingFluent) o; + if (!(Objects.equals(capacityKey, that.capacityKey))) { + return false; + } + if (!(Objects.equals(capacityMultiplier, that.capacityMultiplier))) { + return false; + } + if (!(Objects.equals(deviceMultiplier, that.deviceMultiplier))) { + return false; + } + return true; + } + + public String getCapacityKey() { + return this.capacityKey; + } + + public Quantity getCapacityMultiplier() { + return this.capacityMultiplier; + } + + public Quantity getDeviceMultiplier() { + return this.deviceMultiplier; + } + + public boolean hasCapacityKey() { + return this.capacityKey != null; + } + + public boolean hasCapacityMultiplier() { + return this.capacityMultiplier != null; + } + + public boolean hasDeviceMultiplier() { + return this.deviceMultiplier != null; + } + + public int hashCode() { + return Objects.hash(capacityKey, capacityMultiplier, deviceMultiplier); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(capacityKey == null)) { + sb.append("capacityKey:"); + sb.append(capacityKey); + sb.append(","); + } + if (!(capacityMultiplier == null)) { + sb.append("capacityMultiplier:"); + sb.append(capacityMultiplier); + sb.append(","); + } + if (!(deviceMultiplier == null)) { + sb.append("deviceMultiplier:"); + sb.append(deviceMultiplier); + } + sb.append("}"); + return sb.toString(); + } + + public A withCapacityKey(String capacityKey) { + this.capacityKey = capacityKey; + return (A) this; + } + + public A withCapacityMultiplier(Quantity capacityMultiplier) { + this.capacityMultiplier = capacityMultiplier; + return (A) this; + } + + public A withDeviceMultiplier(Quantity deviceMultiplier) { + this.deviceMultiplier = deviceMultiplier; + return (A) this; + } + + public A withNewCapacityMultiplier(String value) { + return (A) this.withCapacityMultiplier(new Quantity(value)); + } + + public A withNewDeviceMultiplier(String value) { + return (A) this.withDeviceMultiplier(new Quantity(value)); + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableOverheadBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableOverheadBuilder.java new file mode 100644 index 0000000000..0a59b4bcb5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableOverheadBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1NodeAllocatableOverheadBuilder extends V1beta1NodeAllocatableOverheadFluent implements VisitableBuilder{ + + V1beta1NodeAllocatableOverheadFluent fluent; + + public V1beta1NodeAllocatableOverheadBuilder() { + this(new V1beta1NodeAllocatableOverhead()); + } + + public V1beta1NodeAllocatableOverheadBuilder(V1beta1NodeAllocatableOverheadFluent fluent) { + this(fluent, new V1beta1NodeAllocatableOverhead()); + } + + public V1beta1NodeAllocatableOverheadBuilder(V1beta1NodeAllocatableOverhead instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1NodeAllocatableOverheadBuilder(V1beta1NodeAllocatableOverheadFluent fluent,V1beta1NodeAllocatableOverhead instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1NodeAllocatableOverhead build() { + V1beta1NodeAllocatableOverhead buildable = new V1beta1NodeAllocatableOverhead(); + buildable.setPerContainer(fluent.getPerContainer()); + buildable.setPerPod(fluent.getPerPod()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableOverheadFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableOverheadFluent.java new file mode 100644 index 0000000000..ac445c7bfe --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableOverheadFluent.java @@ -0,0 +1,123 @@ +/* +Copyright 2026 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 io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1NodeAllocatableOverheadFluent> extends BaseFluent{ + + private Quantity perContainer; + private Quantity perPod; + + public V1beta1NodeAllocatableOverheadFluent() { + } + + public V1beta1NodeAllocatableOverheadFluent(V1beta1NodeAllocatableOverhead instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1NodeAllocatableOverhead instance) { + instance = instance != null ? instance : new V1beta1NodeAllocatableOverhead(); + if (instance != null) { + this.withPerContainer(instance.getPerContainer()); + this.withPerPod(instance.getPerPod()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1NodeAllocatableOverheadFluent that = (V1beta1NodeAllocatableOverheadFluent) o; + if (!(Objects.equals(perContainer, that.perContainer))) { + return false; + } + if (!(Objects.equals(perPod, that.perPod))) { + return false; + } + return true; + } + + public Quantity getPerContainer() { + return this.perContainer; + } + + public Quantity getPerPod() { + return this.perPod; + } + + public boolean hasPerContainer() { + return this.perContainer != null; + } + + public boolean hasPerPod() { + return this.perPod != null; + } + + public int hashCode() { + return Objects.hash(perContainer, perPod); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(perContainer == null)) { + sb.append("perContainer:"); + sb.append(perContainer); + sb.append(","); + } + if (!(perPod == null)) { + sb.append("perPod:"); + sb.append(perPod); + } + sb.append("}"); + return sb.toString(); + } + + public A withNewPerContainer(String value) { + return (A) this.withPerContainer(new Quantity(value)); + } + + public A withNewPerPod(String value) { + return (A) this.withPerPod(new Quantity(value)); + } + + public A withPerContainer(Quantity perContainer) { + this.perContainer = perContainer; + return (A) this; + } + + public A withPerPod(Quantity perPod) { + this.perPod = perPod; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceBuilder.java new file mode 100644 index 0000000000..4857ba1c48 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1NodeAllocatableResourceBuilder extends V1beta1NodeAllocatableResourceFluent implements VisitableBuilder{ + + V1beta1NodeAllocatableResourceFluent fluent; + + public V1beta1NodeAllocatableResourceBuilder() { + this(new V1beta1NodeAllocatableResource()); + } + + public V1beta1NodeAllocatableResourceBuilder(V1beta1NodeAllocatableResourceFluent fluent) { + this(fluent, new V1beta1NodeAllocatableResource()); + } + + public V1beta1NodeAllocatableResourceBuilder(V1beta1NodeAllocatableResource instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1NodeAllocatableResourceBuilder(V1beta1NodeAllocatableResourceFluent fluent,V1beta1NodeAllocatableResource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1NodeAllocatableResource build() { + V1beta1NodeAllocatableResource buildable = new V1beta1NodeAllocatableResource(); + buildable.setMapping(fluent.buildMapping()); + buildable.setOverhead(fluent.buildOverhead()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceFluent.java new file mode 100644 index 0000000000..2bb56f804e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceFluent.java @@ -0,0 +1,203 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1NodeAllocatableResourceFluent> extends BaseFluent{ + + private V1beta1NodeAllocatableMappingBuilder mapping; + private V1beta1NodeAllocatableOverheadBuilder overhead; + + public V1beta1NodeAllocatableResourceFluent() { + } + + public V1beta1NodeAllocatableResourceFluent(V1beta1NodeAllocatableResource instance) { + this.copyInstance(instance); + } + + public V1beta1NodeAllocatableMapping buildMapping() { + return this.mapping != null ? this.mapping.build() : null; + } + + public V1beta1NodeAllocatableOverhead buildOverhead() { + return this.overhead != null ? this.overhead.build() : null; + } + + protected void copyInstance(V1beta1NodeAllocatableResource instance) { + instance = instance != null ? instance : new V1beta1NodeAllocatableResource(); + if (instance != null) { + this.withMapping(instance.getMapping()); + this.withOverhead(instance.getOverhead()); + } + } + + public MappingNested editMapping() { + return this.withNewMappingLike(Optional.ofNullable(this.buildMapping()).orElse(null)); + } + + public MappingNested editOrNewMapping() { + return this.withNewMappingLike(Optional.ofNullable(this.buildMapping()).orElse(new V1beta1NodeAllocatableMappingBuilder().build())); + } + + public MappingNested editOrNewMappingLike(V1beta1NodeAllocatableMapping item) { + return this.withNewMappingLike(Optional.ofNullable(this.buildMapping()).orElse(item)); + } + + public OverheadNested editOrNewOverhead() { + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(new V1beta1NodeAllocatableOverheadBuilder().build())); + } + + public OverheadNested editOrNewOverheadLike(V1beta1NodeAllocatableOverhead item) { + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(item)); + } + + public OverheadNested editOverhead() { + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1NodeAllocatableResourceFluent that = (V1beta1NodeAllocatableResourceFluent) o; + if (!(Objects.equals(mapping, that.mapping))) { + return false; + } + if (!(Objects.equals(overhead, that.overhead))) { + return false; + } + return true; + } + + public boolean hasMapping() { + return this.mapping != null; + } + + public boolean hasOverhead() { + return this.overhead != null; + } + + public int hashCode() { + return Objects.hash(mapping, overhead); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(mapping == null)) { + sb.append("mapping:"); + sb.append(mapping); + sb.append(","); + } + if (!(overhead == null)) { + sb.append("overhead:"); + sb.append(overhead); + } + sb.append("}"); + return sb.toString(); + } + + public A withMapping(V1beta1NodeAllocatableMapping mapping) { + this._visitables.remove("mapping"); + if (mapping != null) { + this.mapping = new V1beta1NodeAllocatableMappingBuilder(mapping); + this._visitables.get("mapping").add(this.mapping); + } else { + this._visitables.get("mapping").remove(this.mapping); + this.mapping = null; + } + return (A) this; + } + + public MappingNested withNewMapping() { + return new MappingNested<>(null); + } + + public MappingNested withNewMappingLike(V1beta1NodeAllocatableMapping item) { + return new MappingNested<>(item); + } + + public OverheadNested withNewOverhead() { + return new OverheadNested<>(null); + } + + public OverheadNested withNewOverheadLike(V1beta1NodeAllocatableOverhead item) { + return new OverheadNested<>(item); + } + + public A withOverhead(V1beta1NodeAllocatableOverhead overhead) { + this._visitables.remove("overhead"); + if (overhead != null) { + this.overhead = new V1beta1NodeAllocatableOverheadBuilder(overhead); + this._visitables.get("overhead").add(this.overhead); + } else { + this._visitables.get("overhead").remove(this.overhead); + this.overhead = null; + } + return (A) this; + } + public class MappingNested extends V1beta1NodeAllocatableMappingFluent> implements Nested{ + + V1beta1NodeAllocatableMappingBuilder builder; + + MappingNested(V1beta1NodeAllocatableMapping item) { + this.builder = new V1beta1NodeAllocatableMappingBuilder(this, item); + } + + public N and() { + return (N) V1beta1NodeAllocatableResourceFluent.this.withMapping(builder.build()); + } + + public N endMapping() { + return and(); + } + + } + public class OverheadNested extends V1beta1NodeAllocatableOverheadFluent> implements Nested{ + + V1beta1NodeAllocatableOverheadBuilder builder; + + OverheadNested(V1beta1NodeAllocatableOverhead item) { + this.builder = new V1beta1NodeAllocatableOverheadBuilder(this, item); + } + + public N and() { + return (N) V1beta1NodeAllocatableResourceFluent.this.withOverhead(builder.build()); + } + + public N endOverhead() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMappingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMappingBuilder.java deleted file mode 100644 index 81557db179..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMappingBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1beta1NodeAllocatableResourceMappingBuilder extends V1beta1NodeAllocatableResourceMappingFluent implements VisitableBuilder{ - - V1beta1NodeAllocatableResourceMappingFluent fluent; - - public V1beta1NodeAllocatableResourceMappingBuilder() { - this(new V1beta1NodeAllocatableResourceMapping()); - } - - public V1beta1NodeAllocatableResourceMappingBuilder(V1beta1NodeAllocatableResourceMappingFluent fluent) { - this(fluent, new V1beta1NodeAllocatableResourceMapping()); - } - - public V1beta1NodeAllocatableResourceMappingBuilder(V1beta1NodeAllocatableResourceMapping instance) { - this.fluent = this; - this.copyInstance(instance); - } - - public V1beta1NodeAllocatableResourceMappingBuilder(V1beta1NodeAllocatableResourceMappingFluent fluent,V1beta1NodeAllocatableResourceMapping instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1NodeAllocatableResourceMapping build() { - V1beta1NodeAllocatableResourceMapping buildable = new V1beta1NodeAllocatableResourceMapping(); - buildable.setAllocationMultiplier(fluent.getAllocationMultiplier()); - buildable.setCapacityKey(fluent.getCapacityKey()); - return buildable; - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMappingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMappingFluent.java deleted file mode 100644 index 09163ee1f4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMappingFluent.java +++ /dev/null @@ -1,117 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import java.util.Objects; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1NodeAllocatableResourceMappingFluent> extends BaseFluent{ - - private Quantity allocationMultiplier; - private String capacityKey; - - public V1beta1NodeAllocatableResourceMappingFluent() { - } - - public V1beta1NodeAllocatableResourceMappingFluent(V1beta1NodeAllocatableResourceMapping instance) { - this.copyInstance(instance); - } - - protected void copyInstance(V1beta1NodeAllocatableResourceMapping instance) { - instance = instance != null ? instance : new V1beta1NodeAllocatableResourceMapping(); - if (instance != null) { - this.withAllocationMultiplier(instance.getAllocationMultiplier()); - this.withCapacityKey(instance.getCapacityKey()); - } - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1NodeAllocatableResourceMappingFluent that = (V1beta1NodeAllocatableResourceMappingFluent) o; - if (!(Objects.equals(allocationMultiplier, that.allocationMultiplier))) { - return false; - } - if (!(Objects.equals(capacityKey, that.capacityKey))) { - return false; - } - return true; - } - - public Quantity getAllocationMultiplier() { - return this.allocationMultiplier; - } - - public String getCapacityKey() { - return this.capacityKey; - } - - public boolean hasAllocationMultiplier() { - return this.allocationMultiplier != null; - } - - public boolean hasCapacityKey() { - return this.capacityKey != null; - } - - public int hashCode() { - return Objects.hash(allocationMultiplier, capacityKey); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(allocationMultiplier == null)) { - sb.append("allocationMultiplier:"); - sb.append(allocationMultiplier); - sb.append(","); - } - if (!(capacityKey == null)) { - sb.append("capacityKey:"); - sb.append(capacityKey); - } - sb.append("}"); - return sb.toString(); - } - - public A withAllocationMultiplier(Quantity allocationMultiplier) { - this.allocationMultiplier = allocationMultiplier; - return (A) this; - } - - public A withCapacityKey(String capacityKey) { - this.capacityKey = capacityKey; - return (A) this; - } - - public A withNewAllocationMultiplier(String value) { - return (A) this.withAllocationMultiplier(new Quantity(value)); - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java index 01c2dca7ad..604b20e74c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1OpaqueDeviceConfigurationBuilder extends V1beta1OpaqueDeviceConfigurationFluent implements VisitableBuilder{ V1beta1OpaqueDeviceConfigurationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java index 043d0690ea..b61529ac67 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1OpaqueDeviceConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1OpaqueDeviceConfigurationFluent> extends BaseFluent{ private String driver; private Object parameters; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1OpaqueDeviceConfigurationFluent that = (V1beta1OpaqueDeviceConfigurationFluent) o; + V1beta1OpaqueDeviceConfigurationFluent that = (V1beta1OpaqueDeviceConfigurationFluent) o; if (!(Objects.equals(driver, that.driver))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java index 602413a8c2..c805960d70 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ParamKindBuilder extends V1beta1ParamKindFluent implements VisitableBuilder{ V1beta1ParamKindFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java index 65140ec99d..1eaa02c26a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ParamKindFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ParamKindFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ParamKindFluent that = (V1beta1ParamKindFluent) o; + V1beta1ParamKindFluent that = (V1beta1ParamKindFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java index 650e38475e..63b86b002e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ParamRefBuilder extends V1beta1ParamRefFluent implements VisitableBuilder{ V1beta1ParamRefFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java index 127e7f7a0c..c48163edca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ParamRefFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ParamRefFluent> extends BaseFluent{ private String name; private String namespace; @@ -75,7 +77,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ParamRefFluent that = (V1beta1ParamRefFluent) o; + V1beta1ParamRefFluent that = (V1beta1ParamRefFluent) o; if (!(Objects.equals(name, that.name))) { return false; } @@ -160,11 +162,11 @@ public A withNamespace(String namespace) { } public SelectorNested withNewSelector() { - return new SelectorNested(null); + return new SelectorNested<>(null); } public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + return new SelectorNested<>(item); } public A withParameterNotFoundAction(String parameterNotFoundAction) { @@ -178,8 +180,8 @@ public A withSelector(V1LabelSelector selector) { this.selector = new V1LabelSelectorBuilder(selector); this._visitables.get("selector").add(this.selector); } else { - this.selector = null; this._visitables.get("selector").remove(this.selector); + this.selector = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java deleted file mode 100644 index 3379c87f45..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1beta1ParentReferenceBuilder extends V1beta1ParentReferenceFluent implements VisitableBuilder{ - - V1beta1ParentReferenceFluent fluent; - - public V1beta1ParentReferenceBuilder() { - this(new V1beta1ParentReference()); - } - - public V1beta1ParentReferenceBuilder(V1beta1ParentReferenceFluent fluent) { - this(fluent, new V1beta1ParentReference()); - } - - public V1beta1ParentReferenceBuilder(V1beta1ParentReference instance) { - this.fluent = this; - this.copyInstance(instance); - } - - public V1beta1ParentReferenceBuilder(V1beta1ParentReferenceFluent fluent,V1beta1ParentReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ParentReference build() { - V1beta1ParentReference buildable = new V1beta1ParentReference(); - 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/V1beta1PodCertificateRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestBuilder.java index c01c3f7691..4928cfb7d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1PodCertificateRequestBuilder extends V1beta1PodCertificateRequestFluent implements VisitableBuilder{ V1beta1PodCertificateRequestFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestFluent.java index b1e69c80d9..1775046008 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1PodCertificateRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1PodCertificateRequestFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1PodCertificateRequestFluent that = (V1beta1PodCertificateRequestFluent) o; + V1beta1PodCertificateRequestFluent that = (V1beta1PodCertificateRequestFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta1PodCertificateRequestSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1beta1PodCertificateRequestStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1beta1PodCertificateRequestSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1beta1PodCertificateRequestSpec spec) { this.spec = new V1beta1PodCertificateRequestSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1beta1PodCertificateRequestStatus status) { this.status = new V1beta1PodCertificateRequestStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListBuilder.java index c55e77e229..951acb5071 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1PodCertificateRequestListBuilder extends V1beta1PodCertificateRequestListFluent implements VisitableBuilder{ V1beta1PodCertificateRequestListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListFluent.java index 7e4dd667c8..41df0f5263 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1PodCertificateRequestListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1PodCertificateRequestListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta1PodCertificateRequestListFluent(V1beta1PodCertificateRequestList i public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1PodCertificateRequest item : items) { V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta1PodCertificateRequest item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta1PodCertificateRequest... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1PodCertificateRequest item : items) { V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta1PodCertificateRequest... items) { public A addToItems(int index,V1beta1PodCertificateRequest item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1PodCertificateRequestListFluent that = (V1beta1PodCertificateRequestListFluent) o; + V1beta1PodCertificateRequestListFluent that = (V1beta1PodCertificateRequestListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1PodCertificateRequestBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate } public ItemsNested setNewItemLike(int index,V1beta1PodCertificateRequest item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta1PodCertificateRequest item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta1PodCertificateRequest item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta1PodCertificateRequestFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecBuilder.java index 4d0f76aa73..def7962544 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1PodCertificateRequestSpecBuilder extends V1beta1PodCertificateRequestSpecFluent implements VisitableBuilder{ V1beta1PodCertificateRequestSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecFluent.java index cb07eca54f..086cd8b026 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1PodCertificateRequestSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1PodCertificateRequestSpecFluent> extends BaseFluent{ private Integer maxExpirationSeconds; private String nodeName; @@ -138,7 +140,7 @@ public A addToStubPKCS10Request(int index,Byte item) { public A addToUnverifiedUserAnnotations(Map map) { if (this.unverifiedUserAnnotations == null && map != null) { - this.unverifiedUserAnnotations = new LinkedHashMap(); + this.unverifiedUserAnnotations = new LinkedHashMap<>(); } if (map != null) { this.unverifiedUserAnnotations.putAll(map); @@ -148,7 +150,7 @@ public A addToUnverifiedUserAnnotations(Map map) { public A addToUnverifiedUserAnnotations(String key,String value) { if (this.unverifiedUserAnnotations == null && key != null && value != null) { - this.unverifiedUserAnnotations = new LinkedHashMap(); + this.unverifiedUserAnnotations = new LinkedHashMap<>(); } if (key != null && value != null) { this.unverifiedUserAnnotations.put(key, value); @@ -184,7 +186,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1PodCertificateRequestSpecFluent that = (V1beta1PodCertificateRequestSpecFluent) o; + V1beta1PodCertificateRequestSpecFluent that = (V1beta1PodCertificateRequestSpecFluent) o; if (!(Objects.equals(maxExpirationSeconds, that.maxExpirationSeconds))) { return false; } @@ -608,7 +610,7 @@ public A withUnverifiedUserAnnotations(Map unverifiedUserAnn if (unverifiedUserAnnotations == null) { this.unverifiedUserAnnotations = null; } else { - this.unverifiedUserAnnotations = new LinkedHashMap(unverifiedUserAnnotations); + this.unverifiedUserAnnotations = new LinkedHashMap<>(unverifiedUserAnnotations); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusBuilder.java index 1fd26ebf77..b30db12a70 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1PodCertificateRequestStatusBuilder extends V1beta1PodCertificateRequestStatusFluent implements VisitableBuilder{ V1beta1PodCertificateRequestStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusFluent.java index 0c7b2b688d..794134b826 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusFluent.java @@ -26,12 +26,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1PodCertificateRequestStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1PodCertificateRequestStatusFluent> extends BaseFluent{ private OffsetDateTime beginRefreshAt; private String certificateChain; @@ -48,7 +50,7 @@ public V1beta1PodCertificateRequestStatusFluent(V1beta1PodCertificateRequestStat public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -59,16 +61,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -80,7 +82,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -175,7 +177,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1PodCertificateRequestStatusFluent that = (V1beta1PodCertificateRequestStatusFluent) o; + V1beta1PodCertificateRequestStatusFluent that = (V1beta1PodCertificateRequestStatusFluent) o; if (!(Objects.equals(beginRefreshAt, that.beginRefreshAt))) { return false; } @@ -272,6 +274,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -284,12 +287,12 @@ public A removeMatchingFromConditions(Predicate predicate) { } public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -348,7 +351,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupBuilder.java similarity index 60% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupBuilder.java index d3bb30ac78..1bf8dd53f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2PodGroupBuilder extends V1alpha2PodGroupFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1PodGroupBuilder extends V1beta1PodGroupFluent implements VisitableBuilder{ - V1alpha2PodGroupFluent fluent; + V1beta1PodGroupFluent fluent; - public V1alpha2PodGroupBuilder() { - this(new V1alpha2PodGroup()); + public V1beta1PodGroupBuilder() { + this(new V1beta1PodGroup()); } - public V1alpha2PodGroupBuilder(V1alpha2PodGroupFluent fluent) { - this(fluent, new V1alpha2PodGroup()); + public V1beta1PodGroupBuilder(V1beta1PodGroupFluent fluent) { + this(fluent, new V1beta1PodGroup()); } - public V1alpha2PodGroupBuilder(V1alpha2PodGroup instance) { + public V1beta1PodGroupBuilder(V1beta1PodGroup instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2PodGroupBuilder(V1alpha2PodGroupFluent fluent,V1alpha2PodGroup instance) { + public V1beta1PodGroupBuilder(V1beta1PodGroupFluent fluent,V1beta1PodGroup instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2PodGroup build() { - V1alpha2PodGroup buildable = new V1alpha2PodGroup(); + public V1beta1PodGroup build() { + V1beta1PodGroup buildable = new V1beta1PodGroup(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); buildable.setMetadata(fluent.buildMetadata()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupFluent.java new file mode 100644 index 0000000000..41ced68a1b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupFluent.java @@ -0,0 +1,316 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1PodGroupFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1PodGroupSpecBuilder spec; + private V1beta1PodGroupStatusBuilder status; + + public V1beta1PodGroupFluent() { + } + + public V1beta1PodGroupFluent(V1beta1PodGroup instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1PodGroupSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1beta1PodGroupStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + protected void copyInstance(V1beta1PodGroup instance) { + instance = instance != null ? instance : new V1beta1PodGroup(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1PodGroupSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1PodGroupSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta1PodGroupStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1beta1PodGroupStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1PodGroupFluent that = (V1beta1PodGroupFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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._visitables.get("metadata").remove(this.metadata); + this.metadata = null; + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested<>(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested<>(item); + } + + public SpecNested withNewSpec() { + return new SpecNested<>(null); + } + + public SpecNested withNewSpecLike(V1beta1PodGroupSpec item) { + return new SpecNested<>(item); + } + + public StatusNested withNewStatus() { + return new StatusNested<>(null); + } + + public StatusNested withNewStatusLike(V1beta1PodGroupStatus item) { + return new StatusNested<>(item); + } + + public A withSpec(V1beta1PodGroupSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1PodGroupSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this._visitables.get("spec").remove(this.spec); + this.spec = null; + } + return (A) this; + } + + public A withStatus(V1beta1PodGroupStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1beta1PodGroupStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this._visitables.get("status").remove(this.status); + this.status = null; + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodGroupFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1PodGroupSpecFluent> implements Nested{ + + V1beta1PodGroupSpecBuilder builder; + + SpecNested(V1beta1PodGroupSpec item) { + this.builder = new V1beta1PodGroupSpecBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodGroupFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1beta1PodGroupStatusFluent> implements Nested{ + + V1beta1PodGroupStatusBuilder builder; + + StatusNested(V1beta1PodGroupStatus item) { + this.builder = new V1beta1PodGroupStatusBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodGroupFluent.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/V1beta1ServiceCIDRListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupListBuilder.java similarity index 56% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupListBuilder.java index e8d0e866d5..ed983d05a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupListBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1beta1ServiceCIDRListBuilder extends V1beta1ServiceCIDRListFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1PodGroupListBuilder extends V1beta1PodGroupListFluent implements VisitableBuilder{ - V1beta1ServiceCIDRListFluent fluent; + V1beta1PodGroupListFluent fluent; - public V1beta1ServiceCIDRListBuilder() { - this(new V1beta1ServiceCIDRList()); + public V1beta1PodGroupListBuilder() { + this(new V1beta1PodGroupList()); } - public V1beta1ServiceCIDRListBuilder(V1beta1ServiceCIDRListFluent fluent) { - this(fluent, new V1beta1ServiceCIDRList()); + public V1beta1PodGroupListBuilder(V1beta1PodGroupListFluent fluent) { + this(fluent, new V1beta1PodGroupList()); } - public V1beta1ServiceCIDRListBuilder(V1beta1ServiceCIDRList instance) { + public V1beta1PodGroupListBuilder(V1beta1PodGroupList instance) { this.fluent = this; this.copyInstance(instance); } - public V1beta1ServiceCIDRListBuilder(V1beta1ServiceCIDRListFluent fluent,V1beta1ServiceCIDRList instance) { + public V1beta1PodGroupListBuilder(V1beta1PodGroupListFluent fluent,V1beta1PodGroupList instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1beta1ServiceCIDRList build() { - V1beta1ServiceCIDRList buildable = new V1beta1ServiceCIDRList(); + public V1beta1PodGroupList build() { + V1beta1PodGroupList buildable = new V1beta1PodGroupList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.buildItems()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupListFluent.java similarity index 71% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupListFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupListFluent.java index a2e44ce958..1d145e81cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupListFluent.java @@ -26,31 +26,33 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2PodGroupListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1PodGroupListFluent> extends BaseFluent{ private String apiVersion; - private ArrayList items; + private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public V1alpha2PodGroupListFluent() { + public V1beta1PodGroupListFluent() { } - public V1alpha2PodGroupListFluent(V1alpha2PodGroupList instance) { + public V1beta1PodGroupListFluent(V1beta1PodGroupList instance) { this.copyInstance(instance); } - public A addAllToItems(Collection items) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - for (V1alpha2PodGroup item : items) { - V1alpha2PodGroupBuilder builder = new V1alpha2PodGroupBuilder(item); + for (V1beta1PodGroup item : items) { + V1beta1PodGroupBuilder builder = new V1beta1PodGroupBuilder(item); this._visitables.get("items").add(builder); this.items.add(builder); } @@ -58,30 +60,30 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } - public ItemsNested addNewItemLike(V1alpha2PodGroup item) { - return new ItemsNested(-1, item); + public ItemsNested addNewItemLike(V1beta1PodGroup item) { + return new ItemsNested<>(-1, item); } - public A addToItems(V1alpha2PodGroup... items) { + public A addToItems(V1beta1PodGroup... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - for (V1alpha2PodGroup item : items) { - V1alpha2PodGroupBuilder builder = new V1alpha2PodGroupBuilder(item); + for (V1beta1PodGroup item : items) { + V1beta1PodGroupBuilder builder = new V1beta1PodGroupBuilder(item); this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; } - public A addToItems(int index,V1alpha2PodGroup item) { + public A addToItems(int index,V1beta1PodGroup item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - V1alpha2PodGroupBuilder builder = new V1alpha2PodGroupBuilder(item); + V1beta1PodGroupBuilder builder = new V1beta1PodGroupBuilder(item); if (index < 0 || index >= this.items.size()) { this._visitables.get("items").add(builder); this.items.add(builder); @@ -92,24 +94,24 @@ public A addToItems(int index,V1alpha2PodGroup item) { return (A) this; } - public V1alpha2PodGroup buildFirstItem() { + public V1beta1PodGroup buildFirstItem() { return this.items.get(0).build(); } - public V1alpha2PodGroup buildItem(int index) { + public V1beta1PodGroup buildItem(int index) { return this.items.get(index).build(); } - public List buildItems() { + public List buildItems() { return this.items != null ? build(items) : null; } - public V1alpha2PodGroup buildLastItem() { + public V1beta1PodGroup buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1alpha2PodGroup buildMatchingItem(Predicate predicate) { - for (V1alpha2PodGroupBuilder item : items) { + public V1beta1PodGroup buildMatchingItem(Predicate predicate) { + for (V1beta1PodGroupBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -121,8 +123,8 @@ public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - protected void copyInstance(V1alpha2PodGroupList instance) { - instance = instance != null ? instance : new V1alpha2PodGroupList(); + protected void copyInstance(V1beta1PodGroupList instance) { + instance = instance != null ? instance : new V1beta1PodGroupList(); if (instance != null) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -153,7 +155,7 @@ public ItemsNested editLastItem() { return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editMatchingItem(Predicate predicate) { + public ItemsNested editMatchingItem(Predicate predicate) { int index = -1; for (int i = 0;i < items.size();i++) { if (predicate.test(items.get(i))) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2PodGroupListFluent that = (V1alpha2PodGroupListFluent) o; + V1beta1PodGroupListFluent that = (V1beta1PodGroupListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -225,8 +227,8 @@ public boolean hasKind() { return this.kind != null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha2PodGroupBuilder item : items) { + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1PodGroupBuilder item : items) { if (predicate.test(item)) { return true; } @@ -242,38 +244,39 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - public A removeAllFromItems(Collection items) { + public A removeAllFromItems(Collection items) { if (this.items == null) { return (A) this; } - for (V1alpha2PodGroup item : items) { - V1alpha2PodGroupBuilder builder = new V1alpha2PodGroupBuilder(item); + for (V1beta1PodGroup item : items) { + V1beta1PodGroupBuilder builder = new V1beta1PodGroupBuilder(item); _visitables.get("items").remove(builder); this.items.remove(builder); } return (A) this; } - public A removeFromItems(V1alpha2PodGroup... items) { + public A removeFromItems(V1beta1PodGroup... items) { if (this.items == null) { return (A) this; } - for (V1alpha2PodGroup item : items) { - V1alpha2PodGroupBuilder builder = new V1alpha2PodGroupBuilder(item); + for (V1beta1PodGroup item : items) { + V1beta1PodGroupBuilder builder = new V1beta1PodGroupBuilder(item); _visitables.get("items").remove(builder); this.items.remove(builder); } return (A) this; } - public A removeMatchingFromItems(Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) { return (A) this; } - Iterator each = items.iterator(); + Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { - V1alpha2PodGroupBuilder builder = each.next(); + V1beta1PodGroupBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -282,15 +285,15 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } - public ItemsNested setNewItemLike(int index,V1alpha2PodGroup item) { - return new ItemsNested(index, item); + public ItemsNested setNewItemLike(int index,V1beta1PodGroup item) { + return new ItemsNested<>(index, item); } - public A setToItems(int index,V1alpha2PodGroup item) { + public A setToItems(int index,V1beta1PodGroup item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } - V1alpha2PodGroupBuilder builder = new V1alpha2PodGroupBuilder(item); + V1beta1PodGroupBuilder builder = new V1beta1PodGroupBuilder(item); if (index < 0 || index >= this.items.size()) { this._visitables.get("items").add(builder); this.items.add(builder); @@ -332,13 +335,13 @@ public A withApiVersion(String apiVersion) { return (A) this; } - public A withItems(List items) { + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); - for (V1alpha2PodGroup item : items) { + this.items = new ArrayList<>(); + for (V1beta1PodGroup item : items) { this.addToItems(item); } } else { @@ -347,13 +350,13 @@ public A withItems(List items) { return (A) this; } - public A withItems(V1alpha2PodGroup... items) { + public A withItems(V1beta1PodGroup... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); } if (items != null) { - for (V1alpha2PodGroup item : items) { + for (V1beta1PodGroup item : items) { this.addToItems(item); } } @@ -371,31 +374,31 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } - public class ItemsNested extends V1alpha2PodGroupFluent> implements Nested{ + public class ItemsNested extends V1beta1PodGroupFluent> implements Nested{ - V1alpha2PodGroupBuilder builder; + V1beta1PodGroupBuilder builder; int index; - ItemsNested(int index,V1alpha2PodGroup item) { + ItemsNested(int index,V1beta1PodGroup item) { this.index = index; - this.builder = new V1alpha2PodGroupBuilder(this, item); + this.builder = new V1beta1PodGroupBuilder(this, item); } public N and() { - return (N) V1alpha2PodGroupListFluent.this.setToItems(index, builder.build()); + return (N) V1beta1PodGroupListFluent.this.setToItems(index, builder.build()); } public N endItem() { @@ -412,7 +415,7 @@ public class MetadataNested extends V1ListMetaFluent> imple } public N and() { - return (N) V1alpha2PodGroupListFluent.this.withMetadata(builder.build()); + return (N) V1beta1PodGroupListFluent.this.withMetadata(builder.build()); } public N endMetadata() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimBuilder.java new file mode 100644 index 0000000000..b16974f0b1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1PodGroupResourceClaimBuilder extends V1beta1PodGroupResourceClaimFluent implements VisitableBuilder{ + + V1beta1PodGroupResourceClaimFluent fluent; + + public V1beta1PodGroupResourceClaimBuilder() { + this(new V1beta1PodGroupResourceClaim()); + } + + public V1beta1PodGroupResourceClaimBuilder(V1beta1PodGroupResourceClaimFluent fluent) { + this(fluent, new V1beta1PodGroupResourceClaim()); + } + + public V1beta1PodGroupResourceClaimBuilder(V1beta1PodGroupResourceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1PodGroupResourceClaimBuilder(V1beta1PodGroupResourceClaimFluent fluent,V1beta1PodGroupResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1PodGroupResourceClaim build() { + V1beta1PodGroupResourceClaim buildable = new V1beta1PodGroupResourceClaim(); + buildable.setName(fluent.getName()); + buildable.setResourceClaimName(fluent.getResourceClaimName()); + buildable.setResourceClaimTemplateName(fluent.getResourceClaimTemplateName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimFluent.java new file mode 100644 index 0000000000..4a7ec7c6d5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimFluent.java @@ -0,0 +1,137 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1PodGroupResourceClaimFluent> extends BaseFluent{ + + private String name; + private String resourceClaimName; + private String resourceClaimTemplateName; + + public V1beta1PodGroupResourceClaimFluent() { + } + + public V1beta1PodGroupResourceClaimFluent(V1beta1PodGroupResourceClaim instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1PodGroupResourceClaim instance) { + instance = instance != null ? instance : new V1beta1PodGroupResourceClaim(); + if (instance != null) { + this.withName(instance.getName()); + this.withResourceClaimName(instance.getResourceClaimName()); + this.withResourceClaimTemplateName(instance.getResourceClaimTemplateName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1PodGroupResourceClaimFluent that = (V1beta1PodGroupResourceClaimFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resourceClaimName, that.resourceClaimName))) { + return false; + } + if (!(Objects.equals(resourceClaimTemplateName, that.resourceClaimTemplateName))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public String getResourceClaimName() { + return this.resourceClaimName; + } + + public String getResourceClaimTemplateName() { + return this.resourceClaimTemplateName; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResourceClaimName() { + return this.resourceClaimName != null; + } + + public boolean hasResourceClaimTemplateName() { + return this.resourceClaimTemplateName != null; + } + + public int hashCode() { + return Objects.hash(name, resourceClaimName, resourceClaimTemplateName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resourceClaimName == null)) { + sb.append("resourceClaimName:"); + sb.append(resourceClaimName); + sb.append(","); + } + if (!(resourceClaimTemplateName == null)) { + sb.append("resourceClaimTemplateName:"); + sb.append(resourceClaimTemplateName); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return (A) this; + } + + public A withResourceClaimTemplateName(String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimStatusBuilder.java new file mode 100644 index 0000000000..d5d3b15b47 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimStatusBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1PodGroupResourceClaimStatusBuilder extends V1beta1PodGroupResourceClaimStatusFluent implements VisitableBuilder{ + + V1beta1PodGroupResourceClaimStatusFluent fluent; + + public V1beta1PodGroupResourceClaimStatusBuilder() { + this(new V1beta1PodGroupResourceClaimStatus()); + } + + public V1beta1PodGroupResourceClaimStatusBuilder(V1beta1PodGroupResourceClaimStatusFluent fluent) { + this(fluent, new V1beta1PodGroupResourceClaimStatus()); + } + + public V1beta1PodGroupResourceClaimStatusBuilder(V1beta1PodGroupResourceClaimStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1PodGroupResourceClaimStatusBuilder(V1beta1PodGroupResourceClaimStatusFluent fluent,V1beta1PodGroupResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1PodGroupResourceClaimStatus build() { + V1beta1PodGroupResourceClaimStatus buildable = new V1beta1PodGroupResourceClaimStatus(); + buildable.setName(fluent.getName()); + buildable.setResourceClaimName(fluent.getResourceClaimName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimStatusFluent.java new file mode 100644 index 0000000000..d1845aa643 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimStatusFluent.java @@ -0,0 +1,114 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1PodGroupResourceClaimStatusFluent> extends BaseFluent{ + + private String name; + private String resourceClaimName; + + public V1beta1PodGroupResourceClaimStatusFluent() { + } + + public V1beta1PodGroupResourceClaimStatusFluent(V1beta1PodGroupResourceClaimStatus instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1PodGroupResourceClaimStatus instance) { + instance = instance != null ? instance : new V1beta1PodGroupResourceClaimStatus(); + if (instance != null) { + this.withName(instance.getName()); + this.withResourceClaimName(instance.getResourceClaimName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1PodGroupResourceClaimStatusFluent that = (V1beta1PodGroupResourceClaimStatusFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resourceClaimName, that.resourceClaimName))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public String getResourceClaimName() { + return this.resourceClaimName; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResourceClaimName() { + return this.resourceClaimName != null; + } + + public int hashCode() { + return Objects.hash(name, resourceClaimName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resourceClaimName == null)) { + sb.append("resourceClaimName:"); + sb.append(resourceClaimName); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingConstraintsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingConstraintsBuilder.java new file mode 100644 index 0000000000..06872d8463 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingConstraintsBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1PodGroupSchedulingConstraintsBuilder extends V1beta1PodGroupSchedulingConstraintsFluent implements VisitableBuilder{ + + V1beta1PodGroupSchedulingConstraintsFluent fluent; + + public V1beta1PodGroupSchedulingConstraintsBuilder() { + this(new V1beta1PodGroupSchedulingConstraints()); + } + + public V1beta1PodGroupSchedulingConstraintsBuilder(V1beta1PodGroupSchedulingConstraintsFluent fluent) { + this(fluent, new V1beta1PodGroupSchedulingConstraints()); + } + + public V1beta1PodGroupSchedulingConstraintsBuilder(V1beta1PodGroupSchedulingConstraints instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1PodGroupSchedulingConstraintsBuilder(V1beta1PodGroupSchedulingConstraintsFluent fluent,V1beta1PodGroupSchedulingConstraints instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1PodGroupSchedulingConstraints build() { + V1beta1PodGroupSchedulingConstraints buildable = new V1beta1PodGroupSchedulingConstraints(); + buildable.setTopology(fluent.buildTopology()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingConstraintsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingConstraintsFluent.java new file mode 100644 index 0000000000..eff43a5f46 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingConstraintsFluent.java @@ -0,0 +1,312 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1PodGroupSchedulingConstraintsFluent> extends BaseFluent{ + + private ArrayList topology; + + public V1beta1PodGroupSchedulingConstraintsFluent() { + } + + public V1beta1PodGroupSchedulingConstraintsFluent(V1beta1PodGroupSchedulingConstraints instance) { + this.copyInstance(instance); + } + + public A addAllToTopology(Collection items) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + for (V1beta1TopologyConstraint item : items) { + V1beta1TopologyConstraintBuilder builder = new V1beta1TopologyConstraintBuilder(item); + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } + return (A) this; + } + + public TopologyNested addNewTopology() { + return new TopologyNested<>(-1, null); + } + + public TopologyNested addNewTopologyLike(V1beta1TopologyConstraint item) { + return new TopologyNested<>(-1, item); + } + + public A addToTopology(V1beta1TopologyConstraint... items) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + for (V1beta1TopologyConstraint item : items) { + V1beta1TopologyConstraintBuilder builder = new V1beta1TopologyConstraintBuilder(item); + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } + return (A) this; + } + + public A addToTopology(int index,V1beta1TopologyConstraint item) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + V1beta1TopologyConstraintBuilder builder = new V1beta1TopologyConstraintBuilder(item); + if (index < 0 || index >= this.topology.size()) { + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } else { + this._visitables.get("topology").add(builder); + this.topology.add(index, builder); + } + return (A) this; + } + + public V1beta1TopologyConstraint buildFirstTopology() { + return this.topology.get(0).build(); + } + + public V1beta1TopologyConstraint buildLastTopology() { + return this.topology.get(topology.size() - 1).build(); + } + + public V1beta1TopologyConstraint buildMatchingTopology(Predicate predicate) { + for (V1beta1TopologyConstraintBuilder item : topology) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public List buildTopology() { + return this.topology != null ? build(topology) : null; + } + + public V1beta1TopologyConstraint buildTopology(int index) { + return this.topology.get(index).build(); + } + + protected void copyInstance(V1beta1PodGroupSchedulingConstraints instance) { + instance = instance != null ? instance : new V1beta1PodGroupSchedulingConstraints(); + if (instance != null) { + this.withTopology(instance.getTopology()); + } + } + + public TopologyNested editFirstTopology() { + if (topology.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "topology")); + } + return this.setNewTopologyLike(0, this.buildTopology(0)); + } + + public TopologyNested editLastTopology() { + int index = topology.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public TopologyNested editMatchingTopology(Predicate predicate) { + int index = -1; + for (int i = 0;i < topology.size();i++) { + if (predicate.test(topology.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public TopologyNested editTopology(int index) { + if (topology.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1PodGroupSchedulingConstraintsFluent that = (V1beta1PodGroupSchedulingConstraintsFluent) o; + if (!(Objects.equals(topology, that.topology))) { + return false; + } + return true; + } + + public boolean hasMatchingTopology(Predicate predicate) { + for (V1beta1TopologyConstraintBuilder item : topology) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasTopology() { + return this.topology != null && !(this.topology.isEmpty()); + } + + public int hashCode() { + return Objects.hash(topology); + } + + public A removeAllFromTopology(Collection items) { + if (this.topology == null) { + return (A) this; + } + for (V1beta1TopologyConstraint item : items) { + V1beta1TopologyConstraintBuilder builder = new V1beta1TopologyConstraintBuilder(item); + _visitables.get("topology").remove(builder); + this.topology.remove(builder); + } + return (A) this; + } + + public A removeFromTopology(V1beta1TopologyConstraint... items) { + if (this.topology == null) { + return (A) this; + } + for (V1beta1TopologyConstraint item : items) { + V1beta1TopologyConstraintBuilder builder = new V1beta1TopologyConstraintBuilder(item); + _visitables.get("topology").remove(builder); + this.topology.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromTopology(Predicate predicate) { + if (topology == null) { + return (A) this; + } + Iterator each = topology.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("topology"); + while (each.hasNext()) { + V1beta1TopologyConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public TopologyNested setNewTopologyLike(int index,V1beta1TopologyConstraint item) { + return new TopologyNested<>(index, item); + } + + public A setToTopology(int index,V1beta1TopologyConstraint item) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + V1beta1TopologyConstraintBuilder builder = new V1beta1TopologyConstraintBuilder(item); + if (index < 0 || index >= this.topology.size()) { + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } else { + this._visitables.get("topology").add(builder); + this.topology.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(topology == null) && !(topology.isEmpty())) { + sb.append("topology:"); + sb.append(topology); + } + sb.append("}"); + return sb.toString(); + } + + public A withTopology(List topology) { + if (this.topology != null) { + this._visitables.get("topology").clear(); + } + if (topology != null) { + this.topology = new ArrayList<>(); + for (V1beta1TopologyConstraint item : topology) { + this.addToTopology(item); + } + } else { + this.topology = null; + } + return (A) this; + } + + public A withTopology(V1beta1TopologyConstraint... topology) { + if (this.topology != null) { + this.topology.clear(); + _visitables.remove("topology"); + } + if (topology != null) { + for (V1beta1TopologyConstraint item : topology) { + this.addToTopology(item); + } + } + return (A) this; + } + public class TopologyNested extends V1beta1TopologyConstraintFluent> implements Nested{ + + V1beta1TopologyConstraintBuilder builder; + int index; + + TopologyNested(int index,V1beta1TopologyConstraint item) { + this.index = index; + this.builder = new V1beta1TopologyConstraintBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodGroupSchedulingConstraintsFluent.this.setToTopology(index, builder.build()); + } + + public N endTopology() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingPolicyBuilder.java new file mode 100644 index 0000000000..1c6d3b541a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingPolicyBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1PodGroupSchedulingPolicyBuilder extends V1beta1PodGroupSchedulingPolicyFluent implements VisitableBuilder{ + + V1beta1PodGroupSchedulingPolicyFluent fluent; + + public V1beta1PodGroupSchedulingPolicyBuilder() { + this(new V1beta1PodGroupSchedulingPolicy()); + } + + public V1beta1PodGroupSchedulingPolicyBuilder(V1beta1PodGroupSchedulingPolicyFluent fluent) { + this(fluent, new V1beta1PodGroupSchedulingPolicy()); + } + + public V1beta1PodGroupSchedulingPolicyBuilder(V1beta1PodGroupSchedulingPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1PodGroupSchedulingPolicyBuilder(V1beta1PodGroupSchedulingPolicyFluent fluent,V1beta1PodGroupSchedulingPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1PodGroupSchedulingPolicy build() { + V1beta1PodGroupSchedulingPolicy buildable = new V1beta1PodGroupSchedulingPolicy(); + buildable.setBasic(fluent.getBasic()); + buildable.setGang(fluent.buildGang()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingPolicyFluent.java new file mode 100644 index 0000000000..155ff3f9ef --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingPolicyFluent.java @@ -0,0 +1,159 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1PodGroupSchedulingPolicyFluent> extends BaseFluent{ + + private Object basic; + private V1beta1GangSchedulingPolicyBuilder gang; + + public V1beta1PodGroupSchedulingPolicyFluent() { + } + + public V1beta1PodGroupSchedulingPolicyFluent(V1beta1PodGroupSchedulingPolicy instance) { + this.copyInstance(instance); + } + + public V1beta1GangSchedulingPolicy buildGang() { + return this.gang != null ? this.gang.build() : null; + } + + protected void copyInstance(V1beta1PodGroupSchedulingPolicy instance) { + instance = instance != null ? instance : new V1beta1PodGroupSchedulingPolicy(); + if (instance != null) { + this.withBasic(instance.getBasic()); + this.withGang(instance.getGang()); + } + } + + public GangNested editGang() { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(null)); + } + + public GangNested editOrNewGang() { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(new V1beta1GangSchedulingPolicyBuilder().build())); + } + + public GangNested editOrNewGangLike(V1beta1GangSchedulingPolicy item) { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1PodGroupSchedulingPolicyFluent that = (V1beta1PodGroupSchedulingPolicyFluent) o; + if (!(Objects.equals(basic, that.basic))) { + return false; + } + if (!(Objects.equals(gang, that.gang))) { + return false; + } + return true; + } + + public Object getBasic() { + return this.basic; + } + + public boolean hasBasic() { + return this.basic != null; + } + + public boolean hasGang() { + return this.gang != null; + } + + public int hashCode() { + return Objects.hash(basic, gang); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(basic == null)) { + sb.append("basic:"); + sb.append(basic); + sb.append(","); + } + if (!(gang == null)) { + sb.append("gang:"); + sb.append(gang); + } + sb.append("}"); + return sb.toString(); + } + + public A withBasic(Object basic) { + this.basic = basic; + return (A) this; + } + + public A withGang(V1beta1GangSchedulingPolicy gang) { + this._visitables.remove("gang"); + if (gang != null) { + this.gang = new V1beta1GangSchedulingPolicyBuilder(gang); + this._visitables.get("gang").add(this.gang); + } else { + this._visitables.get("gang").remove(this.gang); + this.gang = null; + } + return (A) this; + } + + public GangNested withNewGang() { + return new GangNested<>(null); + } + + public GangNested withNewGangLike(V1beta1GangSchedulingPolicy item) { + return new GangNested<>(item); + } + public class GangNested extends V1beta1GangSchedulingPolicyFluent> implements Nested{ + + V1beta1GangSchedulingPolicyBuilder builder; + + GangNested(V1beta1GangSchedulingPolicy item) { + this.builder = new V1beta1GangSchedulingPolicyBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodGroupSchedulingPolicyFluent.this.withGang(builder.build()); + } + + public N endGang() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSpecBuilder.java new file mode 100644 index 0000000000..cc744e4bd1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSpecBuilder.java @@ -0,0 +1,54 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1PodGroupSpecBuilder extends V1beta1PodGroupSpecFluent implements VisitableBuilder{ + + V1beta1PodGroupSpecFluent fluent; + + public V1beta1PodGroupSpecBuilder() { + this(new V1beta1PodGroupSpec()); + } + + public V1beta1PodGroupSpecBuilder(V1beta1PodGroupSpecFluent fluent) { + this(fluent, new V1beta1PodGroupSpec()); + } + + public V1beta1PodGroupSpecBuilder(V1beta1PodGroupSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1PodGroupSpecBuilder(V1beta1PodGroupSpecFluent fluent,V1beta1PodGroupSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1PodGroupSpec build() { + V1beta1PodGroupSpec buildable = new V1beta1PodGroupSpec(); + buildable.setDisruptionMode(fluent.buildDisruptionMode()); + buildable.setParentCompositePodGroupName(fluent.getParentCompositePodGroupName()); + buildable.setPreemptionPolicy(fluent.getPreemptionPolicy()); + buildable.setPriority(fluent.getPriority()); + buildable.setPriorityClassName(fluent.getPriorityClassName()); + buildable.setResourceClaims(fluent.buildResourceClaims()); + buildable.setSchedulingConstraints(fluent.buildSchedulingConstraints()); + buildable.setSchedulingPolicy(fluent.buildSchedulingPolicy()); + buildable.setWorkloadRef(fluent.buildWorkloadRef()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSpecFluent.java new file mode 100644 index 0000000000..604a44f56d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSpecFluent.java @@ -0,0 +1,674 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1PodGroupSpecFluent> extends BaseFluent{ + + private V1beta1DisruptionModeBuilder disruptionMode; + private String parentCompositePodGroupName; + private String preemptionPolicy; + private Integer priority; + private String priorityClassName; + private ArrayList resourceClaims; + private V1beta1PodGroupSchedulingConstraintsBuilder schedulingConstraints; + private V1beta1PodGroupSchedulingPolicyBuilder schedulingPolicy; + private V1beta1WorkloadReferenceBuilder workloadRef; + + public V1beta1PodGroupSpecFluent() { + } + + public V1beta1PodGroupSpecFluent(V1beta1PodGroupSpec instance) { + this.copyInstance(instance); + } + + public A addAllToResourceClaims(Collection items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + for (V1beta1PodGroupResourceClaim item : items) { + V1beta1PodGroupResourceClaimBuilder builder = new V1beta1PodGroupResourceClaimBuilder(item); + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; + } + + public ResourceClaimsNested addNewResourceClaim() { + return new ResourceClaimsNested<>(-1, null); + } + + public ResourceClaimsNested addNewResourceClaimLike(V1beta1PodGroupResourceClaim item) { + return new ResourceClaimsNested<>(-1, item); + } + + public A addToResourceClaims(V1beta1PodGroupResourceClaim... items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + for (V1beta1PodGroupResourceClaim item : items) { + V1beta1PodGroupResourceClaimBuilder builder = new V1beta1PodGroupResourceClaimBuilder(item); + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; + } + + public A addToResourceClaims(int index,V1beta1PodGroupResourceClaim item) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + V1beta1PodGroupResourceClaimBuilder builder = new V1beta1PodGroupResourceClaimBuilder(item); + if (index < 0 || index >= this.resourceClaims.size()) { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } else { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(index, builder); + } + return (A) this; + } + + public V1beta1DisruptionMode buildDisruptionMode() { + return this.disruptionMode != null ? this.disruptionMode.build() : null; + } + + public V1beta1PodGroupResourceClaim buildFirstResourceClaim() { + return this.resourceClaims.get(0).build(); + } + + public V1beta1PodGroupResourceClaim buildLastResourceClaim() { + return this.resourceClaims.get(resourceClaims.size() - 1).build(); + } + + public V1beta1PodGroupResourceClaim buildMatchingResourceClaim(Predicate predicate) { + for (V1beta1PodGroupResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1PodGroupResourceClaim buildResourceClaim(int index) { + return this.resourceClaims.get(index).build(); + } + + public List buildResourceClaims() { + return this.resourceClaims != null ? build(resourceClaims) : null; + } + + public V1beta1PodGroupSchedulingConstraints buildSchedulingConstraints() { + return this.schedulingConstraints != null ? this.schedulingConstraints.build() : null; + } + + public V1beta1PodGroupSchedulingPolicy buildSchedulingPolicy() { + return this.schedulingPolicy != null ? this.schedulingPolicy.build() : null; + } + + public V1beta1WorkloadReference buildWorkloadRef() { + return this.workloadRef != null ? this.workloadRef.build() : null; + } + + protected void copyInstance(V1beta1PodGroupSpec instance) { + instance = instance != null ? instance : new V1beta1PodGroupSpec(); + if (instance != null) { + this.withDisruptionMode(instance.getDisruptionMode()); + this.withParentCompositePodGroupName(instance.getParentCompositePodGroupName()); + this.withPreemptionPolicy(instance.getPreemptionPolicy()); + this.withPriority(instance.getPriority()); + this.withPriorityClassName(instance.getPriorityClassName()); + this.withResourceClaims(instance.getResourceClaims()); + this.withSchedulingConstraints(instance.getSchedulingConstraints()); + this.withSchedulingPolicy(instance.getSchedulingPolicy()); + this.withWorkloadRef(instance.getWorkloadRef()); + } + } + + public DisruptionModeNested editDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(null)); + } + + public ResourceClaimsNested editFirstResourceClaim() { + if (resourceClaims.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaims")); + } + return this.setNewResourceClaimLike(0, this.buildResourceClaim(0)); + } + + public ResourceClaimsNested editLastResourceClaim() { + int index = resourceClaims.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceClaims.size();i++) { + if (predicate.test(resourceClaims.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public DisruptionModeNested editOrNewDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(new V1beta1DisruptionModeBuilder().build())); + } + + public DisruptionModeNested editOrNewDisruptionModeLike(V1beta1DisruptionMode item) { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(item)); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(new V1beta1PodGroupSchedulingConstraintsBuilder().build())); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraintsLike(V1beta1PodGroupSchedulingConstraints item) { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(item)); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(new V1beta1PodGroupSchedulingPolicyBuilder().build())); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicyLike(V1beta1PodGroupSchedulingPolicy item) { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(item)); + } + + public WorkloadRefNested editOrNewWorkloadRef() { + return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(new V1beta1WorkloadReferenceBuilder().build())); + } + + public WorkloadRefNested editOrNewWorkloadRefLike(V1beta1WorkloadReference item) { + return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(item)); + } + + public ResourceClaimsNested editResourceClaim(int index) { + if (resourceClaims.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public SchedulingConstraintsNested editSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(null)); + } + + public SchedulingPolicyNested editSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(null)); + } + + public WorkloadRefNested editWorkloadRef() { + return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1PodGroupSpecFluent that = (V1beta1PodGroupSpecFluent) o; + if (!(Objects.equals(disruptionMode, that.disruptionMode))) { + return false; + } + if (!(Objects.equals(parentCompositePodGroupName, that.parentCompositePodGroupName))) { + return false; + } + if (!(Objects.equals(preemptionPolicy, that.preemptionPolicy))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + if (!(Objects.equals(priorityClassName, that.priorityClassName))) { + return false; + } + if (!(Objects.equals(resourceClaims, that.resourceClaims))) { + return false; + } + if (!(Objects.equals(schedulingConstraints, that.schedulingConstraints))) { + return false; + } + if (!(Objects.equals(schedulingPolicy, that.schedulingPolicy))) { + return false; + } + if (!(Objects.equals(workloadRef, that.workloadRef))) { + return false; + } + return true; + } + + public String getParentCompositePodGroupName() { + return this.parentCompositePodGroupName; + } + + public String getPreemptionPolicy() { + return this.preemptionPolicy; + } + + public Integer getPriority() { + return this.priority; + } + + public String getPriorityClassName() { + return this.priorityClassName; + } + + public boolean hasDisruptionMode() { + return this.disruptionMode != null; + } + + public boolean hasMatchingResourceClaim(Predicate predicate) { + for (V1beta1PodGroupResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasParentCompositePodGroupName() { + return this.parentCompositePodGroupName != null; + } + + public boolean hasPreemptionPolicy() { + return this.preemptionPolicy != null; + } + + public boolean hasPriority() { + return this.priority != null; + } + + public boolean hasPriorityClassName() { + return this.priorityClassName != null; + } + + public boolean hasResourceClaims() { + return this.resourceClaims != null && !(this.resourceClaims.isEmpty()); + } + + public boolean hasSchedulingConstraints() { + return this.schedulingConstraints != null; + } + + public boolean hasSchedulingPolicy() { + return this.schedulingPolicy != null; + } + + public boolean hasWorkloadRef() { + return this.workloadRef != null; + } + + public int hashCode() { + return Objects.hash(disruptionMode, parentCompositePodGroupName, preemptionPolicy, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy, workloadRef); + } + + public A removeAllFromResourceClaims(Collection items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1beta1PodGroupResourceClaim item : items) { + V1beta1PodGroupResourceClaimBuilder builder = new V1beta1PodGroupResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; + } + + public A removeFromResourceClaims(V1beta1PodGroupResourceClaim... items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1beta1PodGroupResourceClaim item : items) { + V1beta1PodGroupResourceClaimBuilder builder = new V1beta1PodGroupResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromResourceClaims(Predicate predicate) { + if (resourceClaims == null) { + return (A) this; + } + Iterator each = resourceClaims.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("resourceClaims"); + while (each.hasNext()) { + V1beta1PodGroupResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ResourceClaimsNested setNewResourceClaimLike(int index,V1beta1PodGroupResourceClaim item) { + return new ResourceClaimsNested<>(index, item); + } + + public A setToResourceClaims(int index,V1beta1PodGroupResourceClaim item) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + V1beta1PodGroupResourceClaimBuilder builder = new V1beta1PodGroupResourceClaimBuilder(item); + if (index < 0 || index >= this.resourceClaims.size()) { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } else { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(disruptionMode == null)) { + sb.append("disruptionMode:"); + sb.append(disruptionMode); + sb.append(","); + } + if (!(parentCompositePodGroupName == null)) { + sb.append("parentCompositePodGroupName:"); + sb.append(parentCompositePodGroupName); + sb.append(","); + } + if (!(preemptionPolicy == null)) { + sb.append("preemptionPolicy:"); + sb.append(preemptionPolicy); + sb.append(","); + } + if (!(priority == null)) { + sb.append("priority:"); + sb.append(priority); + sb.append(","); + } + if (!(priorityClassName == null)) { + sb.append("priorityClassName:"); + sb.append(priorityClassName); + sb.append(","); + } + if (!(resourceClaims == null) && !(resourceClaims.isEmpty())) { + sb.append("resourceClaims:"); + sb.append(resourceClaims); + sb.append(","); + } + if (!(schedulingConstraints == null)) { + sb.append("schedulingConstraints:"); + sb.append(schedulingConstraints); + sb.append(","); + } + if (!(schedulingPolicy == null)) { + sb.append("schedulingPolicy:"); + sb.append(schedulingPolicy); + sb.append(","); + } + if (!(workloadRef == null)) { + sb.append("workloadRef:"); + sb.append(workloadRef); + } + sb.append("}"); + return sb.toString(); + } + + public A withDisruptionMode(V1beta1DisruptionMode disruptionMode) { + this._visitables.remove("disruptionMode"); + if (disruptionMode != null) { + this.disruptionMode = new V1beta1DisruptionModeBuilder(disruptionMode); + this._visitables.get("disruptionMode").add(this.disruptionMode); + } else { + this._visitables.get("disruptionMode").remove(this.disruptionMode); + this.disruptionMode = null; + } + return (A) this; + } + + public DisruptionModeNested withNewDisruptionMode() { + return new DisruptionModeNested<>(null); + } + + public DisruptionModeNested withNewDisruptionModeLike(V1beta1DisruptionMode item) { + return new DisruptionModeNested<>(item); + } + + public SchedulingConstraintsNested withNewSchedulingConstraints() { + return new SchedulingConstraintsNested<>(null); + } + + public SchedulingConstraintsNested withNewSchedulingConstraintsLike(V1beta1PodGroupSchedulingConstraints item) { + return new SchedulingConstraintsNested<>(item); + } + + public SchedulingPolicyNested withNewSchedulingPolicy() { + return new SchedulingPolicyNested<>(null); + } + + public SchedulingPolicyNested withNewSchedulingPolicyLike(V1beta1PodGroupSchedulingPolicy item) { + return new SchedulingPolicyNested<>(item); + } + + public WorkloadRefNested withNewWorkloadRef() { + return new WorkloadRefNested<>(null); + } + + public WorkloadRefNested withNewWorkloadRefLike(V1beta1WorkloadReference item) { + return new WorkloadRefNested<>(item); + } + + public A withParentCompositePodGroupName(String parentCompositePodGroupName) { + this.parentCompositePodGroupName = parentCompositePodGroupName; + return (A) this; + } + + public A withPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return (A) this; + } + + public A withPriority(Integer priority) { + this.priority = priority; + return (A) this; + } + + public A withPriorityClassName(String priorityClassName) { + this.priorityClassName = priorityClassName; + return (A) this; + } + + public A withResourceClaims(List resourceClaims) { + if (this.resourceClaims != null) { + this._visitables.get("resourceClaims").clear(); + } + if (resourceClaims != null) { + this.resourceClaims = new ArrayList<>(); + for (V1beta1PodGroupResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); + } + } else { + this.resourceClaims = null; + } + return (A) this; + } + + public A withResourceClaims(V1beta1PodGroupResourceClaim... resourceClaims) { + if (this.resourceClaims != null) { + this.resourceClaims.clear(); + _visitables.remove("resourceClaims"); + } + if (resourceClaims != null) { + for (V1beta1PodGroupResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); + } + } + return (A) this; + } + + public A withSchedulingConstraints(V1beta1PodGroupSchedulingConstraints schedulingConstraints) { + this._visitables.remove("schedulingConstraints"); + if (schedulingConstraints != null) { + this.schedulingConstraints = new V1beta1PodGroupSchedulingConstraintsBuilder(schedulingConstraints); + this._visitables.get("schedulingConstraints").add(this.schedulingConstraints); + } else { + this._visitables.get("schedulingConstraints").remove(this.schedulingConstraints); + this.schedulingConstraints = null; + } + return (A) this; + } + + public A withSchedulingPolicy(V1beta1PodGroupSchedulingPolicy schedulingPolicy) { + this._visitables.remove("schedulingPolicy"); + if (schedulingPolicy != null) { + this.schedulingPolicy = new V1beta1PodGroupSchedulingPolicyBuilder(schedulingPolicy); + this._visitables.get("schedulingPolicy").add(this.schedulingPolicy); + } else { + this._visitables.get("schedulingPolicy").remove(this.schedulingPolicy); + this.schedulingPolicy = null; + } + return (A) this; + } + + public A withWorkloadRef(V1beta1WorkloadReference workloadRef) { + this._visitables.remove("workloadRef"); + if (workloadRef != null) { + this.workloadRef = new V1beta1WorkloadReferenceBuilder(workloadRef); + this._visitables.get("workloadRef").add(this.workloadRef); + } else { + this._visitables.get("workloadRef").remove(this.workloadRef); + this.workloadRef = null; + } + return (A) this; + } + public class DisruptionModeNested extends V1beta1DisruptionModeFluent> implements Nested{ + + V1beta1DisruptionModeBuilder builder; + + DisruptionModeNested(V1beta1DisruptionMode item) { + this.builder = new V1beta1DisruptionModeBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodGroupSpecFluent.this.withDisruptionMode(builder.build()); + } + + public N endDisruptionMode() { + return and(); + } + + } + public class ResourceClaimsNested extends V1beta1PodGroupResourceClaimFluent> implements Nested{ + + V1beta1PodGroupResourceClaimBuilder builder; + int index; + + ResourceClaimsNested(int index,V1beta1PodGroupResourceClaim item) { + this.index = index; + this.builder = new V1beta1PodGroupResourceClaimBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodGroupSpecFluent.this.setToResourceClaims(index, builder.build()); + } + + public N endResourceClaim() { + return and(); + } + + } + public class SchedulingConstraintsNested extends V1beta1PodGroupSchedulingConstraintsFluent> implements Nested{ + + V1beta1PodGroupSchedulingConstraintsBuilder builder; + + SchedulingConstraintsNested(V1beta1PodGroupSchedulingConstraints item) { + this.builder = new V1beta1PodGroupSchedulingConstraintsBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodGroupSpecFluent.this.withSchedulingConstraints(builder.build()); + } + + public N endSchedulingConstraints() { + return and(); + } + + } + public class SchedulingPolicyNested extends V1beta1PodGroupSchedulingPolicyFluent> implements Nested{ + + V1beta1PodGroupSchedulingPolicyBuilder builder; + + SchedulingPolicyNested(V1beta1PodGroupSchedulingPolicy item) { + this.builder = new V1beta1PodGroupSchedulingPolicyBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodGroupSpecFluent.this.withSchedulingPolicy(builder.build()); + } + + public N endSchedulingPolicy() { + return and(); + } + + } + public class WorkloadRefNested extends V1beta1WorkloadReferenceFluent> implements Nested{ + + V1beta1WorkloadReferenceBuilder builder; + + WorkloadRefNested(V1beta1WorkloadReference item) { + this.builder = new V1beta1WorkloadReferenceBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodGroupSpecFluent.this.withWorkloadRef(builder.build()); + } + + public N endWorkloadRef() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupStatusBuilder.java new file mode 100644 index 0000000000..2e98f1f401 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupStatusBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1PodGroupStatusBuilder extends V1beta1PodGroupStatusFluent implements VisitableBuilder{ + + V1beta1PodGroupStatusFluent fluent; + + public V1beta1PodGroupStatusBuilder() { + this(new V1beta1PodGroupStatus()); + } + + public V1beta1PodGroupStatusBuilder(V1beta1PodGroupStatusFluent fluent) { + this(fluent, new V1beta1PodGroupStatus()); + } + + public V1beta1PodGroupStatusBuilder(V1beta1PodGroupStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1PodGroupStatusBuilder(V1beta1PodGroupStatusFluent fluent,V1beta1PodGroupStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1PodGroupStatus build() { + V1beta1PodGroupStatus buildable = new V1beta1PodGroupStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setResourceClaimStatuses(fluent.buildResourceClaimStatuses()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupStatusFluent.java new file mode 100644 index 0000000000..80d1aa2dff --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupStatusFluent.java @@ -0,0 +1,550 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1PodGroupStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private ArrayList resourceClaimStatuses; + + public V1beta1PodGroupStatusFluent() { + } + + public V1beta1PodGroupStatusFluent(V1beta1PodGroupStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addAllToResourceClaimStatuses(Collection items) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList<>(); + } + for (V1beta1PodGroupResourceClaimStatus item : items) { + V1beta1PodGroupResourceClaimStatusBuilder builder = new V1beta1PodGroupResourceClaimStatusBuilder(item); + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); + } + return (A) this; + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested<>(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested<>(-1, item); + } + + public ResourceClaimStatusesNested addNewResourceClaimStatus() { + return new ResourceClaimStatusesNested<>(-1, null); + } + + public ResourceClaimStatusesNested addNewResourceClaimStatusLike(V1beta1PodGroupResourceClaimStatus item) { + return new ResourceClaimStatusesNested<>(-1, item); + } + + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); + } + return (A) this; + } + + public A addToResourceClaimStatuses(V1beta1PodGroupResourceClaimStatus... items) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList<>(); + } + for (V1beta1PodGroupResourceClaimStatus item : items) { + V1beta1PodGroupResourceClaimStatusBuilder builder = new V1beta1PodGroupResourceClaimStatusBuilder(item); + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); + } + return (A) this; + } + + public A addToResourceClaimStatuses(int index,V1beta1PodGroupResourceClaimStatus item) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList<>(); + } + V1beta1PodGroupResourceClaimStatusBuilder builder = new V1beta1PodGroupResourceClaimStatusBuilder(item); + if (index < 0 || index >= this.resourceClaimStatuses.size()) { + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); + } else { + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(index, builder); + } + return (A) this; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1beta1PodGroupResourceClaimStatus buildFirstResourceClaimStatus() { + return this.resourceClaimStatuses.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1beta1PodGroupResourceClaimStatus buildLastResourceClaimStatus() { + return this.resourceClaimStatuses.get(resourceClaimStatuses.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1PodGroupResourceClaimStatus buildMatchingResourceClaimStatus(Predicate predicate) { + for (V1beta1PodGroupResourceClaimStatusBuilder item : resourceClaimStatuses) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1PodGroupResourceClaimStatus buildResourceClaimStatus(int index) { + return this.resourceClaimStatuses.get(index).build(); + } + + public List buildResourceClaimStatuses() { + return this.resourceClaimStatuses != null ? build(resourceClaimStatuses) : null; + } + + protected void copyInstance(V1beta1PodGroupStatus instance) { + instance = instance != null ? instance : new V1beta1PodGroupStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withResourceClaimStatuses(instance.getResourceClaimStatuses()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ResourceClaimStatusesNested editFirstResourceClaimStatus() { + if (resourceClaimStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(0, this.buildResourceClaimStatus(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ResourceClaimStatusesNested editLastResourceClaimStatus() { + int index = resourceClaimStatuses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ResourceClaimStatusesNested editMatchingResourceClaimStatus(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceClaimStatuses.size();i++) { + if (predicate.test(resourceClaimStatuses.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); + } + + public ResourceClaimStatusesNested editResourceClaimStatus(int index) { + if (resourceClaimStatuses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1PodGroupStatusFluent that = (V1beta1PodGroupStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(resourceClaimStatuses, that.resourceClaimStatuses))) { + return false; + } + return true; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResourceClaimStatus(Predicate predicate) { + for (V1beta1PodGroupResourceClaimStatusBuilder item : resourceClaimStatuses) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResourceClaimStatuses() { + return this.resourceClaimStatuses != null && !(this.resourceClaimStatuses.isEmpty()); + } + + public int hashCode() { + return Objects.hash(conditions, resourceClaimStatuses); + } + + 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 removeAllFromResourceClaimStatuses(Collection items) { + if (this.resourceClaimStatuses == null) { + return (A) this; + } + for (V1beta1PodGroupResourceClaimStatus item : items) { + V1beta1PodGroupResourceClaimStatusBuilder builder = new V1beta1PodGroupResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").remove(builder); + this.resourceClaimStatuses.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(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 removeFromResourceClaimStatuses(V1beta1PodGroupResourceClaimStatus... items) { + if (this.resourceClaimStatuses == null) { + return (A) this; + } + for (V1beta1PodGroupResourceClaimStatus item : items) { + V1beta1PodGroupResourceClaimStatusBuilder builder = new V1beta1PodGroupResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").remove(builder); + this.resourceClaimStatuses.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromResourceClaimStatuses(Predicate predicate) { + if (resourceClaimStatuses == null) { + return (A) this; + } + Iterator each = resourceClaimStatuses.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("resourceClaimStatuses"); + while (each.hasNext()) { + V1beta1PodGroupResourceClaimStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested<>(index, item); + } + + public ResourceClaimStatusesNested setNewResourceClaimStatusLike(int index,V1beta1PodGroupResourceClaimStatus item) { + return new ResourceClaimStatusesNested<>(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); + } + return (A) this; + } + + public A setToResourceClaimStatuses(int index,V1beta1PodGroupResourceClaimStatus item) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList<>(); + } + V1beta1PodGroupResourceClaimStatusBuilder builder = new V1beta1PodGroupResourceClaimStatusBuilder(item); + if (index < 0 || index >= this.resourceClaimStatuses.size()) { + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); + } else { + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(resourceClaimStatuses == null) && !(resourceClaimStatuses.isEmpty())) { + sb.append("resourceClaimStatuses:"); + sb.append(resourceClaimStatuses); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 A withResourceClaimStatuses(List resourceClaimStatuses) { + if (this.resourceClaimStatuses != null) { + this._visitables.get("resourceClaimStatuses").clear(); + } + if (resourceClaimStatuses != null) { + this.resourceClaimStatuses = new ArrayList<>(); + for (V1beta1PodGroupResourceClaimStatus item : resourceClaimStatuses) { + this.addToResourceClaimStatuses(item); + } + } else { + this.resourceClaimStatuses = null; + } + return (A) this; + } + + public A withResourceClaimStatuses(V1beta1PodGroupResourceClaimStatus... resourceClaimStatuses) { + if (this.resourceClaimStatuses != null) { + this.resourceClaimStatuses.clear(); + _visitables.remove("resourceClaimStatuses"); + } + if (resourceClaimStatuses != null) { + for (V1beta1PodGroupResourceClaimStatus item : resourceClaimStatuses) { + this.addToResourceClaimStatuses(item); + } + } + return (A) this; + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodGroupStatusFluent.this.setToConditions(index, builder.build()); + } + + public N endCondition() { + return and(); + } + + } + public class ResourceClaimStatusesNested extends V1beta1PodGroupResourceClaimStatusFluent> implements Nested{ + + V1beta1PodGroupResourceClaimStatusBuilder builder; + int index; + + ResourceClaimStatusesNested(int index,V1beta1PodGroupResourceClaimStatus item) { + this.index = index; + this.builder = new V1beta1PodGroupResourceClaimStatusBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodGroupStatusFluent.this.setToResourceClaimStatuses(index, builder.build()); + } + + public N endResourceClaimStatus() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupTemplateBuilder.java similarity index 53% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpecBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupTemplateBuilder.java index f61d61e242..72756ebab4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupTemplateBuilder.java @@ -13,33 +13,35 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha2PodGroupSpecBuilder extends V1alpha2PodGroupSpecFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1PodGroupTemplateBuilder extends V1beta1PodGroupTemplateFluent implements VisitableBuilder{ - V1alpha2PodGroupSpecFluent fluent; + V1beta1PodGroupTemplateFluent fluent; - public V1alpha2PodGroupSpecBuilder() { - this(new V1alpha2PodGroupSpec()); + public V1beta1PodGroupTemplateBuilder() { + this(new V1beta1PodGroupTemplate()); } - public V1alpha2PodGroupSpecBuilder(V1alpha2PodGroupSpecFluent fluent) { - this(fluent, new V1alpha2PodGroupSpec()); + public V1beta1PodGroupTemplateBuilder(V1beta1PodGroupTemplateFluent fluent) { + this(fluent, new V1beta1PodGroupTemplate()); } - public V1alpha2PodGroupSpecBuilder(V1alpha2PodGroupSpec instance) { + public V1beta1PodGroupTemplateBuilder(V1beta1PodGroupTemplate instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha2PodGroupSpecBuilder(V1alpha2PodGroupSpecFluent fluent,V1alpha2PodGroupSpec instance) { + public V1beta1PodGroupTemplateBuilder(V1beta1PodGroupTemplateFluent fluent,V1beta1PodGroupTemplate instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha2PodGroupSpec build() { - V1alpha2PodGroupSpec buildable = new V1alpha2PodGroupSpec(); - buildable.setDisruptionMode(fluent.getDisruptionMode()); - buildable.setPodGroupTemplateRef(fluent.buildPodGroupTemplateRef()); + public V1beta1PodGroupTemplate build() { + V1beta1PodGroupTemplate buildable = new V1beta1PodGroupTemplate(); + buildable.setDisruptionMode(fluent.buildDisruptionMode()); + buildable.setName(fluent.getName()); + buildable.setPreemptionPolicy(fluent.getPreemptionPolicy()); buildable.setPriority(fluent.getPriority()); buildable.setPriorityClassName(fluent.getPriorityClassName()); buildable.setResourceClaims(fluent.buildResourceClaims()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupTemplateFluent.java similarity index 55% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpecFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupTemplateFluent.java index e25d5e1002..082961ac79 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupTemplateFluent.java @@ -27,34 +27,37 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2PodGroupSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1PodGroupTemplateFluent> extends BaseFluent{ - private String disruptionMode; - private V1alpha2PodGroupTemplateReferenceBuilder podGroupTemplateRef; + private V1beta1DisruptionModeBuilder disruptionMode; + private String name; + private String preemptionPolicy; private Integer priority; private String priorityClassName; - private ArrayList resourceClaims; - private V1alpha2PodGroupSchedulingConstraintsBuilder schedulingConstraints; - private V1alpha2PodGroupSchedulingPolicyBuilder schedulingPolicy; + private ArrayList resourceClaims; + private V1beta1PodGroupSchedulingConstraintsBuilder schedulingConstraints; + private V1beta1PodGroupSchedulingPolicyBuilder schedulingPolicy; - public V1alpha2PodGroupSpecFluent() { + public V1beta1PodGroupTemplateFluent() { } - public V1alpha2PodGroupSpecFluent(V1alpha2PodGroupSpec instance) { + public V1beta1PodGroupTemplateFluent(V1beta1PodGroupTemplate instance) { this.copyInstance(instance); } - public A addAllToResourceClaims(Collection items) { + public A addAllToResourceClaims(Collection items) { if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); + this.resourceClaims = new ArrayList<>(); } - for (V1alpha2PodGroupResourceClaim item : items) { - V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + for (V1beta1PodGroupResourceClaim item : items) { + V1beta1PodGroupResourceClaimBuilder builder = new V1beta1PodGroupResourceClaimBuilder(item); this._visitables.get("resourceClaims").add(builder); this.resourceClaims.add(builder); } @@ -62,30 +65,30 @@ public A addAllToResourceClaims(Collection items) } public ResourceClaimsNested addNewResourceClaim() { - return new ResourceClaimsNested(-1, null); + return new ResourceClaimsNested<>(-1, null); } - public ResourceClaimsNested addNewResourceClaimLike(V1alpha2PodGroupResourceClaim item) { - return new ResourceClaimsNested(-1, item); + public ResourceClaimsNested addNewResourceClaimLike(V1beta1PodGroupResourceClaim item) { + return new ResourceClaimsNested<>(-1, item); } - public A addToResourceClaims(V1alpha2PodGroupResourceClaim... items) { + public A addToResourceClaims(V1beta1PodGroupResourceClaim... items) { if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); + this.resourceClaims = new ArrayList<>(); } - for (V1alpha2PodGroupResourceClaim item : items) { - V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + for (V1beta1PodGroupResourceClaim item : items) { + V1beta1PodGroupResourceClaimBuilder builder = new V1beta1PodGroupResourceClaimBuilder(item); this._visitables.get("resourceClaims").add(builder); this.resourceClaims.add(builder); } return (A) this; } - public A addToResourceClaims(int index,V1alpha2PodGroupResourceClaim item) { + public A addToResourceClaims(int index,V1beta1PodGroupResourceClaim item) { if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); + this.resourceClaims = new ArrayList<>(); } - V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + V1beta1PodGroupResourceClaimBuilder builder = new V1beta1PodGroupResourceClaimBuilder(item); if (index < 0 || index >= this.resourceClaims.size()) { this._visitables.get("resourceClaims").add(builder); this.resourceClaims.add(builder); @@ -96,16 +99,20 @@ public A addToResourceClaims(int index,V1alpha2PodGroupResourceClaim item) { return (A) this; } - public V1alpha2PodGroupResourceClaim buildFirstResourceClaim() { + public V1beta1DisruptionMode buildDisruptionMode() { + return this.disruptionMode != null ? this.disruptionMode.build() : null; + } + + public V1beta1PodGroupResourceClaim buildFirstResourceClaim() { return this.resourceClaims.get(0).build(); } - public V1alpha2PodGroupResourceClaim buildLastResourceClaim() { + public V1beta1PodGroupResourceClaim buildLastResourceClaim() { return this.resourceClaims.get(resourceClaims.size() - 1).build(); } - public V1alpha2PodGroupResourceClaim buildMatchingResourceClaim(Predicate predicate) { - for (V1alpha2PodGroupResourceClaimBuilder item : resourceClaims) { + public V1beta1PodGroupResourceClaim buildMatchingResourceClaim(Predicate predicate) { + for (V1beta1PodGroupResourceClaimBuilder item : resourceClaims) { if (predicate.test(item)) { return item.build(); } @@ -113,31 +120,28 @@ public V1alpha2PodGroupResourceClaim buildMatchingResourceClaim(Predicate buildResourceClaims() { + public List buildResourceClaims() { return this.resourceClaims != null ? build(resourceClaims) : null; } - public V1alpha2PodGroupSchedulingConstraints buildSchedulingConstraints() { + public V1beta1PodGroupSchedulingConstraints buildSchedulingConstraints() { return this.schedulingConstraints != null ? this.schedulingConstraints.build() : null; } - public V1alpha2PodGroupSchedulingPolicy buildSchedulingPolicy() { + public V1beta1PodGroupSchedulingPolicy buildSchedulingPolicy() { return this.schedulingPolicy != null ? this.schedulingPolicy.build() : null; } - protected void copyInstance(V1alpha2PodGroupSpec instance) { - instance = instance != null ? instance : new V1alpha2PodGroupSpec(); + protected void copyInstance(V1beta1PodGroupTemplate instance) { + instance = instance != null ? instance : new V1beta1PodGroupTemplate(); if (instance != null) { this.withDisruptionMode(instance.getDisruptionMode()); - this.withPodGroupTemplateRef(instance.getPodGroupTemplateRef()); + this.withName(instance.getName()); + this.withPreemptionPolicy(instance.getPreemptionPolicy()); this.withPriority(instance.getPriority()); this.withPriorityClassName(instance.getPriorityClassName()); this.withResourceClaims(instance.getResourceClaims()); @@ -146,6 +150,10 @@ protected void copyInstance(V1alpha2PodGroupSpec instance) { } } + public DisruptionModeNested editDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(null)); + } + public ResourceClaimsNested editFirstResourceClaim() { if (resourceClaims.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaims")); @@ -161,7 +169,7 @@ public ResourceClaimsNested editLastResourceClaim() { return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); } - public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { + public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { int index = -1; for (int i = 0;i < resourceClaims.size();i++) { if (predicate.test(resourceClaims.get(i))) { @@ -175,34 +183,30 @@ public ResourceClaimsNested editMatchingResourceClaim(Predicate editOrNewPodGroupTemplateRef() { - return this.withNewPodGroupTemplateRefLike(Optional.ofNullable(this.buildPodGroupTemplateRef()).orElse(new V1alpha2PodGroupTemplateReferenceBuilder().build())); + public DisruptionModeNested editOrNewDisruptionMode() { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(new V1beta1DisruptionModeBuilder().build())); } - public PodGroupTemplateRefNested editOrNewPodGroupTemplateRefLike(V1alpha2PodGroupTemplateReference item) { - return this.withNewPodGroupTemplateRefLike(Optional.ofNullable(this.buildPodGroupTemplateRef()).orElse(item)); + public DisruptionModeNested editOrNewDisruptionModeLike(V1beta1DisruptionMode item) { + return this.withNewDisruptionModeLike(Optional.ofNullable(this.buildDisruptionMode()).orElse(item)); } public SchedulingConstraintsNested editOrNewSchedulingConstraints() { - return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(new V1alpha2PodGroupSchedulingConstraintsBuilder().build())); + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(new V1beta1PodGroupSchedulingConstraintsBuilder().build())); } - public SchedulingConstraintsNested editOrNewSchedulingConstraintsLike(V1alpha2PodGroupSchedulingConstraints item) { + public SchedulingConstraintsNested editOrNewSchedulingConstraintsLike(V1beta1PodGroupSchedulingConstraints item) { return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(item)); } public SchedulingPolicyNested editOrNewSchedulingPolicy() { - return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(new V1alpha2PodGroupSchedulingPolicyBuilder().build())); + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(new V1beta1PodGroupSchedulingPolicyBuilder().build())); } - public SchedulingPolicyNested editOrNewSchedulingPolicyLike(V1alpha2PodGroupSchedulingPolicy item) { + public SchedulingPolicyNested editOrNewSchedulingPolicyLike(V1beta1PodGroupSchedulingPolicy item) { return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(item)); } - public PodGroupTemplateRefNested editPodGroupTemplateRef() { - return this.withNewPodGroupTemplateRefLike(Optional.ofNullable(this.buildPodGroupTemplateRef()).orElse(null)); - } - public ResourceClaimsNested editResourceClaim(int index) { if (resourceClaims.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaims")); @@ -228,11 +232,14 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2PodGroupSpecFluent that = (V1alpha2PodGroupSpecFluent) o; + V1beta1PodGroupTemplateFluent that = (V1beta1PodGroupTemplateFluent) o; if (!(Objects.equals(disruptionMode, that.disruptionMode))) { return false; } - if (!(Objects.equals(podGroupTemplateRef, that.podGroupTemplateRef))) { + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(preemptionPolicy, that.preemptionPolicy))) { return false; } if (!(Objects.equals(priority, that.priority))) { @@ -253,8 +260,12 @@ public boolean equals(Object o) { return true; } - public String getDisruptionMode() { - return this.disruptionMode; + public String getName() { + return this.name; + } + + public String getPreemptionPolicy() { + return this.preemptionPolicy; } public Integer getPriority() { @@ -269,8 +280,8 @@ public boolean hasDisruptionMode() { return this.disruptionMode != null; } - public boolean hasMatchingResourceClaim(Predicate predicate) { - for (V1alpha2PodGroupResourceClaimBuilder item : resourceClaims) { + public boolean hasMatchingResourceClaim(Predicate predicate) { + for (V1beta1PodGroupResourceClaimBuilder item : resourceClaims) { if (predicate.test(item)) { return true; } @@ -278,8 +289,12 @@ public boolean hasMatchingResourceClaim(Predicate items) { + public A removeAllFromResourceClaims(Collection items) { if (this.resourceClaims == null) { return (A) this; } - for (V1alpha2PodGroupResourceClaim item : items) { - V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + for (V1beta1PodGroupResourceClaim item : items) { + V1beta1PodGroupResourceClaimBuilder builder = new V1beta1PodGroupResourceClaimBuilder(item); _visitables.get("resourceClaims").remove(builder); this.resourceClaims.remove(builder); } return (A) this; } - public A removeFromResourceClaims(V1alpha2PodGroupResourceClaim... items) { + public A removeFromResourceClaims(V1beta1PodGroupResourceClaim... items) { if (this.resourceClaims == null) { return (A) this; } - for (V1alpha2PodGroupResourceClaim item : items) { - V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + for (V1beta1PodGroupResourceClaim item : items) { + V1beta1PodGroupResourceClaimBuilder builder = new V1beta1PodGroupResourceClaimBuilder(item); _visitables.get("resourceClaims").remove(builder); this.resourceClaims.remove(builder); } return (A) this; } - public A removeMatchingFromResourceClaims(Predicate predicate) { + public A removeMatchingFromResourceClaims(Predicate predicate) { if (resourceClaims == null) { return (A) this; } - Iterator each = resourceClaims.iterator(); + Iterator each = resourceClaims.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resourceClaims"); while (each.hasNext()) { - V1alpha2PodGroupResourceClaimBuilder builder = each.next(); + V1beta1PodGroupResourceClaimBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -346,15 +362,15 @@ public A removeMatchingFromResourceClaims(Predicate setNewResourceClaimLike(int index,V1alpha2PodGroupResourceClaim item) { - return new ResourceClaimsNested(index, item); + public ResourceClaimsNested setNewResourceClaimLike(int index,V1beta1PodGroupResourceClaim item) { + return new ResourceClaimsNested<>(index, item); } - public A setToResourceClaims(int index,V1alpha2PodGroupResourceClaim item) { + public A setToResourceClaims(int index,V1beta1PodGroupResourceClaim item) { if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); + this.resourceClaims = new ArrayList<>(); } - V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + V1beta1PodGroupResourceClaimBuilder builder = new V1beta1PodGroupResourceClaimBuilder(item); if (index < 0 || index >= this.resourceClaims.size()) { this._visitables.get("resourceClaims").add(builder); this.resourceClaims.add(builder); @@ -373,9 +389,14 @@ public String toString() { sb.append(disruptionMode); sb.append(","); } - if (!(podGroupTemplateRef == null)) { - sb.append("podGroupTemplateRef:"); - sb.append(podGroupTemplateRef); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(preemptionPolicy == null)) { + sb.append("preemptionPolicy:"); + sb.append(preemptionPolicy); sb.append(","); } if (!(priority == null)) { @@ -406,44 +427,49 @@ public String toString() { return sb.toString(); } - public A withDisruptionMode(String disruptionMode) { - this.disruptionMode = disruptionMode; + public A withDisruptionMode(V1beta1DisruptionMode disruptionMode) { + this._visitables.remove("disruptionMode"); + if (disruptionMode != null) { + this.disruptionMode = new V1beta1DisruptionModeBuilder(disruptionMode); + this._visitables.get("disruptionMode").add(this.disruptionMode); + } else { + this._visitables.get("disruptionMode").remove(this.disruptionMode); + this.disruptionMode = null; + } + return (A) this; + } + + public A withName(String name) { + this.name = name; return (A) this; } - public PodGroupTemplateRefNested withNewPodGroupTemplateRef() { - return new PodGroupTemplateRefNested(null); + public DisruptionModeNested withNewDisruptionMode() { + return new DisruptionModeNested<>(null); } - public PodGroupTemplateRefNested withNewPodGroupTemplateRefLike(V1alpha2PodGroupTemplateReference item) { - return new PodGroupTemplateRefNested(item); + public DisruptionModeNested withNewDisruptionModeLike(V1beta1DisruptionMode item) { + return new DisruptionModeNested<>(item); } public SchedulingConstraintsNested withNewSchedulingConstraints() { - return new SchedulingConstraintsNested(null); + return new SchedulingConstraintsNested<>(null); } - public SchedulingConstraintsNested withNewSchedulingConstraintsLike(V1alpha2PodGroupSchedulingConstraints item) { - return new SchedulingConstraintsNested(item); + public SchedulingConstraintsNested withNewSchedulingConstraintsLike(V1beta1PodGroupSchedulingConstraints item) { + return new SchedulingConstraintsNested<>(item); } public SchedulingPolicyNested withNewSchedulingPolicy() { - return new SchedulingPolicyNested(null); + return new SchedulingPolicyNested<>(null); } - public SchedulingPolicyNested withNewSchedulingPolicyLike(V1alpha2PodGroupSchedulingPolicy item) { - return new SchedulingPolicyNested(item); + public SchedulingPolicyNested withNewSchedulingPolicyLike(V1beta1PodGroupSchedulingPolicy item) { + return new SchedulingPolicyNested<>(item); } - public A withPodGroupTemplateRef(V1alpha2PodGroupTemplateReference podGroupTemplateRef) { - this._visitables.remove("podGroupTemplateRef"); - if (podGroupTemplateRef != null) { - this.podGroupTemplateRef = new V1alpha2PodGroupTemplateReferenceBuilder(podGroupTemplateRef); - this._visitables.get("podGroupTemplateRef").add(this.podGroupTemplateRef); - } else { - this.podGroupTemplateRef = null; - this._visitables.get("podGroupTemplateRef").remove(this.podGroupTemplateRef); - } + public A withPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; return (A) this; } @@ -457,13 +483,13 @@ public A withPriorityClassName(String priorityClassName) { return (A) this; } - public A withResourceClaims(List resourceClaims) { + public A withResourceClaims(List resourceClaims) { if (this.resourceClaims != null) { this._visitables.get("resourceClaims").clear(); } if (resourceClaims != null) { - this.resourceClaims = new ArrayList(); - for (V1alpha2PodGroupResourceClaim item : resourceClaims) { + this.resourceClaims = new ArrayList<>(); + for (V1beta1PodGroupResourceClaim item : resourceClaims) { this.addToResourceClaims(item); } } else { @@ -472,71 +498,71 @@ public A withResourceClaims(List resourceClaims) return (A) this; } - public A withResourceClaims(V1alpha2PodGroupResourceClaim... resourceClaims) { + public A withResourceClaims(V1beta1PodGroupResourceClaim... resourceClaims) { if (this.resourceClaims != null) { this.resourceClaims.clear(); _visitables.remove("resourceClaims"); } if (resourceClaims != null) { - for (V1alpha2PodGroupResourceClaim item : resourceClaims) { + for (V1beta1PodGroupResourceClaim item : resourceClaims) { this.addToResourceClaims(item); } } return (A) this; } - public A withSchedulingConstraints(V1alpha2PodGroupSchedulingConstraints schedulingConstraints) { + public A withSchedulingConstraints(V1beta1PodGroupSchedulingConstraints schedulingConstraints) { this._visitables.remove("schedulingConstraints"); if (schedulingConstraints != null) { - this.schedulingConstraints = new V1alpha2PodGroupSchedulingConstraintsBuilder(schedulingConstraints); + this.schedulingConstraints = new V1beta1PodGroupSchedulingConstraintsBuilder(schedulingConstraints); this._visitables.get("schedulingConstraints").add(this.schedulingConstraints); } else { - this.schedulingConstraints = null; this._visitables.get("schedulingConstraints").remove(this.schedulingConstraints); + this.schedulingConstraints = null; } return (A) this; } - public A withSchedulingPolicy(V1alpha2PodGroupSchedulingPolicy schedulingPolicy) { + public A withSchedulingPolicy(V1beta1PodGroupSchedulingPolicy schedulingPolicy) { this._visitables.remove("schedulingPolicy"); if (schedulingPolicy != null) { - this.schedulingPolicy = new V1alpha2PodGroupSchedulingPolicyBuilder(schedulingPolicy); + this.schedulingPolicy = new V1beta1PodGroupSchedulingPolicyBuilder(schedulingPolicy); this._visitables.get("schedulingPolicy").add(this.schedulingPolicy); } else { - this.schedulingPolicy = null; this._visitables.get("schedulingPolicy").remove(this.schedulingPolicy); + this.schedulingPolicy = null; } return (A) this; } - public class PodGroupTemplateRefNested extends V1alpha2PodGroupTemplateReferenceFluent> implements Nested{ + public class DisruptionModeNested extends V1beta1DisruptionModeFluent> implements Nested{ - V1alpha2PodGroupTemplateReferenceBuilder builder; + V1beta1DisruptionModeBuilder builder; - PodGroupTemplateRefNested(V1alpha2PodGroupTemplateReference item) { - this.builder = new V1alpha2PodGroupTemplateReferenceBuilder(this, item); + DisruptionModeNested(V1beta1DisruptionMode item) { + this.builder = new V1beta1DisruptionModeBuilder(this, item); } public N and() { - return (N) V1alpha2PodGroupSpecFluent.this.withPodGroupTemplateRef(builder.build()); + return (N) V1beta1PodGroupTemplateFluent.this.withDisruptionMode(builder.build()); } - public N endPodGroupTemplateRef() { + public N endDisruptionMode() { return and(); } } - public class ResourceClaimsNested extends V1alpha2PodGroupResourceClaimFluent> implements Nested{ + public class ResourceClaimsNested extends V1beta1PodGroupResourceClaimFluent> implements Nested{ - V1alpha2PodGroupResourceClaimBuilder builder; + V1beta1PodGroupResourceClaimBuilder builder; int index; - ResourceClaimsNested(int index,V1alpha2PodGroupResourceClaim item) { + ResourceClaimsNested(int index,V1beta1PodGroupResourceClaim item) { this.index = index; - this.builder = new V1alpha2PodGroupResourceClaimBuilder(this, item); + this.builder = new V1beta1PodGroupResourceClaimBuilder(this, item); } public N and() { - return (N) V1alpha2PodGroupSpecFluent.this.setToResourceClaims(index, builder.build()); + return (N) V1beta1PodGroupTemplateFluent.this.setToResourceClaims(index, builder.build()); } public N endResourceClaim() { @@ -544,16 +570,16 @@ public N endResourceClaim() { } } - public class SchedulingConstraintsNested extends V1alpha2PodGroupSchedulingConstraintsFluent> implements Nested{ + public class SchedulingConstraintsNested extends V1beta1PodGroupSchedulingConstraintsFluent> implements Nested{ - V1alpha2PodGroupSchedulingConstraintsBuilder builder; + V1beta1PodGroupSchedulingConstraintsBuilder builder; - SchedulingConstraintsNested(V1alpha2PodGroupSchedulingConstraints item) { - this.builder = new V1alpha2PodGroupSchedulingConstraintsBuilder(this, item); + SchedulingConstraintsNested(V1beta1PodGroupSchedulingConstraints item) { + this.builder = new V1beta1PodGroupSchedulingConstraintsBuilder(this, item); } public N and() { - return (N) V1alpha2PodGroupSpecFluent.this.withSchedulingConstraints(builder.build()); + return (N) V1beta1PodGroupTemplateFluent.this.withSchedulingConstraints(builder.build()); } public N endSchedulingConstraints() { @@ -561,16 +587,16 @@ public N endSchedulingConstraints() { } } - public class SchedulingPolicyNested extends V1alpha2PodGroupSchedulingPolicyFluent> implements Nested{ + public class SchedulingPolicyNested extends V1beta1PodGroupSchedulingPolicyFluent> implements Nested{ - V1alpha2PodGroupSchedulingPolicyBuilder builder; + V1beta1PodGroupSchedulingPolicyBuilder builder; - SchedulingPolicyNested(V1alpha2PodGroupSchedulingPolicy item) { - this.builder = new V1alpha2PodGroupSchedulingPolicyBuilder(this, item); + SchedulingPolicyNested(V1beta1PodGroupSchedulingPolicy item) { + this.builder = new V1beta1PodGroupSchedulingPolicyBuilder(this, item); } public N and() { - return (N) V1alpha2PodGroupSpecFluent.this.withSchedulingPolicy(builder.build()); + return (N) V1beta1PodGroupTemplateFluent.this.withSchedulingPolicy(builder.build()); } public N endSchedulingPolicy() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java index d6f22bb063..beff83827c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ResourceClaimBuilder extends V1beta1ResourceClaimFluent implements VisitableBuilder{ V1beta1ResourceClaimFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java index f037a5c065..492f8c35ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ResourceClaimConsumerReferenceBuilder extends V1beta1ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ V1beta1ResourceClaimConsumerReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java index cb6920caed..ad796e33de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ResourceClaimConsumerReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ResourceClaimConsumerReferenceFluent> extends BaseFluent{ private String apiGroup; private String name; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ResourceClaimConsumerReferenceFluent that = (V1beta1ResourceClaimConsumerReferenceFluent) o; + V1beta1ResourceClaimConsumerReferenceFluent that = (V1beta1ResourceClaimConsumerReferenceFluent) o; if (!(Objects.equals(apiGroup, that.apiGroup))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java index 87333ad4d4..c61be4acf6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ResourceClaimFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ResourceClaimFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ResourceClaimFluent that = (V1beta1ResourceClaimFluent) o; + V1beta1ResourceClaimFluent that = (V1beta1ResourceClaimFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta1ResourceClaimSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1beta1ResourceClaimStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1beta1ResourceClaimSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1beta1ResourceClaimSpec spec) { this.spec = new V1beta1ResourceClaimSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1beta1ResourceClaimStatus status) { this.status = new V1beta1ResourceClaimStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java index 4f0f47ef77..c281a67974 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ResourceClaimListBuilder extends V1beta1ResourceClaimListFluent implements VisitableBuilder{ V1beta1ResourceClaimListFluent fluent; 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 4c4d4e6753..435a89a4d4 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ResourceClaimListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ResourceClaimListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta1ResourceClaimListFluent(V1beta1ResourceClaimList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1ResourceClaim item : items) { V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta1ResourceClaim item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta1ResourceClaim... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1ResourceClaim item : items) { V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta1ResourceClaim... items) { public A addToItems(int index,V1beta1ResourceClaim item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ResourceClaimListFluent that = (V1beta1ResourceClaimListFluent) o; + V1beta1ResourceClaimListFluent that = (V1beta1ResourceClaimListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1ResourceClaimBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicat } public ItemsNested setNewItemLike(int index,V1beta1ResourceClaim item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta1ResourceClaim item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta1ResourceClaim item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta1ResourceClaimFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java index 20edcf27be..86261a938f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ResourceClaimSpecBuilder extends V1beta1ResourceClaimSpecFluent implements VisitableBuilder{ V1beta1ResourceClaimSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java index 8fbde94e4c..539161f69e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ResourceClaimSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ResourceClaimSpecFluent> extends BaseFluent{ private V1beta1DeviceClaimBuilder devices; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ResourceClaimSpecFluent that = (V1beta1ResourceClaimSpecFluent) o; + V1beta1ResourceClaimSpecFluent that = (V1beta1ResourceClaimSpecFluent) o; if (!(Objects.equals(devices, that.devices))) { return false; } @@ -101,18 +103,18 @@ public A withDevices(V1beta1DeviceClaim devices) { this.devices = new V1beta1DeviceClaimBuilder(devices); this._visitables.get("devices").add(this.devices); } else { - this.devices = null; this._visitables.get("devices").remove(this.devices); + this.devices = null; } return (A) this; } public DevicesNested withNewDevices() { - return new DevicesNested(null); + return new DevicesNested<>(null); } public DevicesNested withNewDevicesLike(V1beta1DeviceClaim item) { - return new DevicesNested(item); + return new DevicesNested<>(item); } public class DevicesNested extends V1beta1DeviceClaimFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java index 178950a456..abc7fef8e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ResourceClaimStatusBuilder extends V1beta1ResourceClaimStatusFluent implements VisitableBuilder{ V1beta1ResourceClaimStatusFluent fluent; 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 1f8eb59cdd..2ec0f20eb8 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ResourceClaimStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ResourceClaimStatusFluent> extends BaseFluent{ private V1beta1AllocationResultBuilder allocation; private ArrayList devices; @@ -46,7 +48,7 @@ public V1beta1ResourceClaimStatusFluent(V1beta1ResourceClaimStatus instance) { public A addAllToDevices(Collection items) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } for (V1beta1AllocatedDeviceStatus item : items) { V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); @@ -58,7 +60,7 @@ public A addAllToDevices(Collection items) { public A addAllToReservedFor(Collection items) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); } for (V1beta1ResourceClaimConsumerReference item : items) { V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); @@ -69,24 +71,24 @@ public A addAllToReservedFor(Collection i } public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); + return new DevicesNested<>(-1, null); } public DevicesNested addNewDeviceLike(V1beta1AllocatedDeviceStatus item) { - return new DevicesNested(-1, item); + return new DevicesNested<>(-1, item); } public ReservedForNested addNewReservedFor() { - return new ReservedForNested(-1, null); + return new ReservedForNested<>(-1, null); } public ReservedForNested addNewReservedForLike(V1beta1ResourceClaimConsumerReference item) { - return new ReservedForNested(-1, item); + return new ReservedForNested<>(-1, item); } public A addToDevices(V1beta1AllocatedDeviceStatus... items) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } for (V1beta1AllocatedDeviceStatus item : items) { V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); @@ -98,7 +100,7 @@ public A addToDevices(V1beta1AllocatedDeviceStatus... items) { public A addToDevices(int index,V1beta1AllocatedDeviceStatus item) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); if (index < 0 || index >= this.devices.size()) { @@ -113,7 +115,7 @@ public A addToDevices(int index,V1beta1AllocatedDeviceStatus item) { public A addToReservedFor(V1beta1ResourceClaimConsumerReference... items) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); } for (V1beta1ResourceClaimConsumerReference item : items) { V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); @@ -125,7 +127,7 @@ public A addToReservedFor(V1beta1ResourceClaimConsumerReference... items) { public A addToReservedFor(int index,V1beta1ResourceClaimConsumerReference item) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); } V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); if (index < 0 || index >= this.reservedFor.size()) { @@ -295,7 +297,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ResourceClaimStatusFluent that = (V1beta1ResourceClaimStatusFluent) o; + V1beta1ResourceClaimStatusFluent that = (V1beta1ResourceClaimStatusFluent) o; if (!(Objects.equals(allocation, that.allocation))) { return false; } @@ -395,6 +397,7 @@ public A removeMatchingFromDevices(Predicate each = devices.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("devices"); while (each.hasNext()) { V1beta1AllocatedDeviceStatusBuilder builder = each.next(); @@ -411,6 +414,7 @@ public A removeMatchingFromReservedFor(Predicate each = reservedFor.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("reservedFor"); while (each.hasNext()) { V1beta1ResourceClaimConsumerReferenceBuilder builder = each.next(); @@ -423,16 +427,16 @@ public A removeMatchingFromReservedFor(Predicate setNewDeviceLike(int index,V1beta1AllocatedDeviceStatus item) { - return new DevicesNested(index, item); + return new DevicesNested<>(index, item); } public ReservedForNested setNewReservedForLike(int index,V1beta1ResourceClaimConsumerReference item) { - return new ReservedForNested(index, item); + return new ReservedForNested<>(index, item); } public A setToDevices(int index,V1beta1AllocatedDeviceStatus item) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); if (index < 0 || index >= this.devices.size()) { @@ -447,7 +451,7 @@ public A setToDevices(int index,V1beta1AllocatedDeviceStatus item) { public A setToReservedFor(int index,V1beta1ResourceClaimConsumerReference item) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); } V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); if (index < 0 || index >= this.reservedFor.size()) { @@ -487,8 +491,8 @@ public A withAllocation(V1beta1AllocationResult allocation) { this.allocation = new V1beta1AllocationResultBuilder(allocation); this._visitables.get("allocation").add(this.allocation); } else { - this.allocation = null; this._visitables.get("allocation").remove(this.allocation); + this.allocation = null; } return (A) this; } @@ -498,7 +502,7 @@ public A withDevices(List devices) { this._visitables.get("devices").clear(); } if (devices != null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); for (V1beta1AllocatedDeviceStatus item : devices) { this.addToDevices(item); } @@ -522,11 +526,11 @@ public A withDevices(V1beta1AllocatedDeviceStatus... devices) { } public AllocationNested withNewAllocation() { - return new AllocationNested(null); + return new AllocationNested<>(null); } public AllocationNested withNewAllocationLike(V1beta1AllocationResult item) { - return new AllocationNested(item); + return new AllocationNested<>(item); } public A withReservedFor(List reservedFor) { @@ -534,7 +538,7 @@ public A withReservedFor(List reservedFor this._visitables.get("reservedFor").clear(); } if (reservedFor != null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); for (V1beta1ResourceClaimConsumerReference item : reservedFor) { this.addToReservedFor(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java index eb2dc6a064..e311d40ab5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ResourceClaimTemplateBuilder extends V1beta1ResourceClaimTemplateFluent implements VisitableBuilder{ V1beta1ResourceClaimTemplateFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java index 71ff050dc8..1fc0fe828e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ResourceClaimTemplateFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ResourceClaimTemplateFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ResourceClaimTemplateFluent that = (V1beta1ResourceClaimTemplateFluent) o; + V1beta1ResourceClaimTemplateFluent that = (V1beta1ResourceClaimTemplateFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta1ResourceClaimTemplateSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1beta1ResourceClaimTemplateSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1beta1ResourceClaimTemplateSpec spec) { this.spec = new V1beta1ResourceClaimTemplateSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java index 8a62a796ed..4c0e5b3b98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ResourceClaimTemplateListBuilder extends V1beta1ResourceClaimTemplateListFluent implements VisitableBuilder{ V1beta1ResourceClaimTemplateListFluent fluent; 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 8338b132dd..c2ec90bc18 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ResourceClaimTemplateListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ResourceClaimTemplateListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta1ResourceClaimTemplateListFluent(V1beta1ResourceClaimTemplateList i public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1ResourceClaimTemplate item : items) { V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta1ResourceClaimTemplate item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta1ResourceClaimTemplate... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1ResourceClaimTemplate item : items) { V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta1ResourceClaimTemplate... items) { public A addToItems(int index,V1beta1ResourceClaimTemplate item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ResourceClaimTemplateListFluent that = (V1beta1ResourceClaimTemplateListFluent) o; + V1beta1ResourceClaimTemplateListFluent that = (V1beta1ResourceClaimTemplateListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1ResourceClaimTemplateBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate } public ItemsNested setNewItemLike(int index,V1beta1ResourceClaimTemplate item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta1ResourceClaimTemplate item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta1ResourceClaimTemplate item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta1ResourceClaimTemplateFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java index 2f1ec83f20..c4cd53f612 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ResourceClaimTemplateSpecBuilder extends V1beta1ResourceClaimTemplateSpecFluent implements VisitableBuilder{ V1beta1ResourceClaimTemplateSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java index 4410fb41ca..35bfb0a78c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ResourceClaimTemplateSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ResourceClaimTemplateSpecFluent> extends BaseFluent{ private V1ObjectMetaBuilder metadata; private V1beta1ResourceClaimSpecBuilder spec; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ResourceClaimTemplateSpecFluent that = (V1beta1ResourceClaimTemplateSpecFluent) o; + V1beta1ResourceClaimTemplateSpecFluent that = (V1beta1ResourceClaimTemplateSpecFluent) o; if (!(Objects.equals(metadata, that.metadata))) { return false; } @@ -131,26 +133,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta1ResourceClaimSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1beta1ResourceClaimSpec spec) { @@ -159,8 +161,8 @@ public A withSpec(V1beta1ResourceClaimSpec spec) { this.spec = new V1beta1ResourceClaimSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java index 2cfc416de9..8bcddf5f23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ResourcePoolBuilder extends V1beta1ResourcePoolFluent implements VisitableBuilder{ V1beta1ResourcePoolFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java index 56b2aeba7b..a7b02509aa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ResourcePoolFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ResourcePoolFluent> extends BaseFluent{ private Long generation; private String name; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ResourcePoolFluent that = (V1beta1ResourcePoolFluent) o; + V1beta1ResourcePoolFluent that = (V1beta1ResourcePoolFluent) o; if (!(Objects.equals(generation, that.generation))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java index 0e86a297c5..1d739c114d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ResourceSliceBuilder extends V1beta1ResourceSliceFluent implements VisitableBuilder{ V1beta1ResourceSliceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java index 0edb5edfc9..66d52faeec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ResourceSliceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ResourceSliceFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ResourceSliceFluent that = (V1beta1ResourceSliceFluent) o; + V1beta1ResourceSliceFluent that = (V1beta1ResourceSliceFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta1ResourceSliceSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1beta1ResourceSliceSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1beta1ResourceSliceSpec spec) { this.spec = new V1beta1ResourceSliceSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java index 92f7f03292..9c09607aba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ResourceSliceListBuilder extends V1beta1ResourceSliceListFluent implements VisitableBuilder{ V1beta1ResourceSliceListFluent fluent; 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 e8006e16f6..ed118d5f17 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ResourceSliceListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ResourceSliceListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta1ResourceSliceListFluent(V1beta1ResourceSliceList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1ResourceSlice item : items) { V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta1ResourceSlice item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta1ResourceSlice... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1ResourceSlice item : items) { V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta1ResourceSlice... items) { public A addToItems(int index,V1beta1ResourceSlice item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ResourceSliceListFluent that = (V1beta1ResourceSliceListFluent) o; + V1beta1ResourceSliceListFluent that = (V1beta1ResourceSliceListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1ResourceSliceBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicat } public ItemsNested setNewItemLike(int index,V1beta1ResourceSlice item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta1ResourceSlice item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta1ResourceSlice item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta1ResourceSliceFluent> implements Nested{ 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 995f171108..535c37b2cd 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1ResourceSliceSpecBuilder extends V1beta1ResourceSliceSpecFluent implements VisitableBuilder{ V1beta1ResourceSliceSpecFluent fluent; @@ -43,9 +44,11 @@ public V1beta1ResourceSliceSpec build() { buildable.setDriver(fluent.getDriver()); buildable.setNodeName(fluent.getNodeName()); buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setPartitionTypeAttribute(fluent.getPartitionTypeAttribute()); buildable.setPerDeviceNodeSelection(fluent.getPerDeviceNodeSelection()); buildable.setPool(fluent.buildPool()); buildable.setSharedCounters(fluent.buildSharedCounters()); + buildable.setSkipNodeOperations(fluent.getSkipNodeOperations()); 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 44cbdf07ac..0d26933d5f 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 @@ -27,21 +27,25 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1ResourceSliceSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1ResourceSliceSpecFluent> extends BaseFluent{ private Boolean allNodes; private ArrayList devices; private String driver; private String nodeName; private V1NodeSelectorBuilder nodeSelector; + private String partitionTypeAttribute; private Boolean perDeviceNodeSelection; private V1beta1ResourcePoolBuilder pool; private ArrayList sharedCounters; + private List skipNodeOperations; public V1beta1ResourceSliceSpecFluent() { } @@ -52,7 +56,7 @@ public V1beta1ResourceSliceSpecFluent(V1beta1ResourceSliceSpec instance) { public A addAllToDevices(Collection items) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } for (V1beta1Device item : items) { V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); @@ -64,7 +68,7 @@ public A addAllToDevices(Collection items) { public A addAllToSharedCounters(Collection items) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); } for (V1beta1CounterSet item : items) { V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); @@ -74,25 +78,35 @@ public A addAllToSharedCounters(Collection items) { return (A) this; } + public A addAllToSkipNodeOperations(Collection items) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + for (String item : items) { + this.skipNodeOperations.add(item); + } + return (A) this; + } + public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); + return new DevicesNested<>(-1, null); } public DevicesNested addNewDeviceLike(V1beta1Device item) { - return new DevicesNested(-1, item); + return new DevicesNested<>(-1, item); } public SharedCountersNested addNewSharedCounter() { - return new SharedCountersNested(-1, null); + return new SharedCountersNested<>(-1, null); } public SharedCountersNested addNewSharedCounterLike(V1beta1CounterSet item) { - return new SharedCountersNested(-1, item); + return new SharedCountersNested<>(-1, item); } public A addToDevices(V1beta1Device... items) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } for (V1beta1Device item : items) { V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); @@ -104,7 +118,7 @@ public A addToDevices(V1beta1Device... items) { public A addToDevices(int index,V1beta1Device item) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); if (index < 0 || index >= this.devices.size()) { @@ -119,7 +133,7 @@ public A addToDevices(int index,V1beta1Device item) { public A addToSharedCounters(V1beta1CounterSet... items) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); } for (V1beta1CounterSet item : items) { V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); @@ -131,7 +145,7 @@ public A addToSharedCounters(V1beta1CounterSet... items) { public A addToSharedCounters(int index,V1beta1CounterSet item) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); } V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); if (index < 0 || index >= this.sharedCounters.size()) { @@ -144,6 +158,24 @@ public A addToSharedCounters(int index,V1beta1CounterSet item) { return (A) this; } + public A addToSkipNodeOperations(String... items) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + for (String item : items) { + this.skipNodeOperations.add(item); + } + return (A) this; + } + + public A addToSkipNodeOperations(int index,String item) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.add(index, item); + return (A) this; + } + public V1beta1Device buildDevice(int index) { return this.devices.get(index).build(); } @@ -210,9 +242,11 @@ protected void copyInstance(V1beta1ResourceSliceSpec instance) { this.withDriver(instance.getDriver()); this.withNodeName(instance.getNodeName()); this.withNodeSelector(instance.getNodeSelector()); + this.withPartitionTypeAttribute(instance.getPartitionTypeAttribute()); this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); this.withPool(instance.getPool()); this.withSharedCounters(instance.getSharedCounters()); + this.withSkipNodeOperations(instance.getSkipNodeOperations()); } } @@ -322,7 +356,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1ResourceSliceSpecFluent that = (V1beta1ResourceSliceSpecFluent) o; + V1beta1ResourceSliceSpecFluent that = (V1beta1ResourceSliceSpecFluent) o; if (!(Objects.equals(allNodes, that.allNodes))) { return false; } @@ -338,6 +372,9 @@ public boolean equals(Object o) { if (!(Objects.equals(nodeSelector, that.nodeSelector))) { return false; } + if (!(Objects.equals(partitionTypeAttribute, that.partitionTypeAttribute))) { + return false; + } if (!(Objects.equals(perDeviceNodeSelection, that.perDeviceNodeSelection))) { return false; } @@ -347,6 +384,9 @@ public boolean equals(Object o) { if (!(Objects.equals(sharedCounters, that.sharedCounters))) { return false; } + if (!(Objects.equals(skipNodeOperations, that.skipNodeOperations))) { + return false; + } return true; } @@ -358,14 +398,43 @@ public String getDriver() { return this.driver; } + public String getFirstSkipNodeOperation() { + return this.skipNodeOperations.get(0); + } + + public String getLastSkipNodeOperation() { + return this.skipNodeOperations.get(skipNodeOperations.size() - 1); + } + + public String getMatchingSkipNodeOperation(Predicate predicate) { + for (String item : skipNodeOperations) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + public String getNodeName() { return this.nodeName; } + public String getPartitionTypeAttribute() { + return this.partitionTypeAttribute; + } + public Boolean getPerDeviceNodeSelection() { return this.perDeviceNodeSelection; } + public String getSkipNodeOperation(int index) { + return this.skipNodeOperations.get(index); + } + + public List getSkipNodeOperations() { + return this.skipNodeOperations; + } + public boolean hasAllNodes() { return this.allNodes != null; } @@ -396,6 +465,15 @@ public boolean hasMatchingSharedCounter(Predicate pred return false; } + public boolean hasMatchingSkipNodeOperation(Predicate predicate) { + for (String item : skipNodeOperations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasNodeName() { return this.nodeName != null; } @@ -404,6 +482,10 @@ public boolean hasNodeSelector() { return this.nodeSelector != null; } + public boolean hasPartitionTypeAttribute() { + return this.partitionTypeAttribute != null; + } + public boolean hasPerDeviceNodeSelection() { return this.perDeviceNodeSelection != null; } @@ -416,8 +498,12 @@ public boolean hasSharedCounters() { return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); } + public boolean hasSkipNodeOperations() { + return this.skipNodeOperations != null && !(this.skipNodeOperations.isEmpty()); + } + public int hashCode() { - return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); + return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, partitionTypeAttribute, perDeviceNodeSelection, pool, sharedCounters, skipNodeOperations); } public A removeAllFromDevices(Collection items) { @@ -444,6 +530,16 @@ public A removeAllFromSharedCounters(Collection items) { return (A) this; } + public A removeAllFromSkipNodeOperations(Collection items) { + if (this.skipNodeOperations == null) { + return (A) this; + } + for (String item : items) { + this.skipNodeOperations.remove(item); + } + return (A) this; + } + public A removeFromDevices(V1beta1Device... items) { if (this.devices == null) { return (A) this; @@ -468,11 +564,22 @@ public A removeFromSharedCounters(V1beta1CounterSet... items) { return (A) this; } + public A removeFromSkipNodeOperations(String... items) { + if (this.skipNodeOperations == null) { + return (A) this; + } + for (String item : items) { + this.skipNodeOperations.remove(item); + } + return (A) this; + } + public A removeMatchingFromDevices(Predicate predicate) { if (devices == null) { return (A) this; } Iterator each = devices.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("devices"); while (each.hasNext()) { V1beta1DeviceBuilder builder = each.next(); @@ -489,6 +596,7 @@ public A removeMatchingFromSharedCounters(Predicate pr return (A) this; } Iterator each = sharedCounters.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("sharedCounters"); while (each.hasNext()) { V1beta1CounterSetBuilder builder = each.next(); @@ -501,16 +609,16 @@ public A removeMatchingFromSharedCounters(Predicate pr } public DevicesNested setNewDeviceLike(int index,V1beta1Device item) { - return new DevicesNested(index, item); + return new DevicesNested<>(index, item); } public SharedCountersNested setNewSharedCounterLike(int index,V1beta1CounterSet item) { - return new SharedCountersNested(index, item); + return new SharedCountersNested<>(index, item); } public A setToDevices(int index,V1beta1Device item) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); if (index < 0 || index >= this.devices.size()) { @@ -525,7 +633,7 @@ public A setToDevices(int index,V1beta1Device item) { public A setToSharedCounters(int index,V1beta1CounterSet item) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); } V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); if (index < 0 || index >= this.sharedCounters.size()) { @@ -538,6 +646,14 @@ public A setToSharedCounters(int index,V1beta1CounterSet item) { return (A) this; } + public A setToSkipNodeOperations(int index,String item) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.set(index, item); + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -566,6 +682,11 @@ public String toString() { sb.append(nodeSelector); sb.append(","); } + if (!(partitionTypeAttribute == null)) { + sb.append("partitionTypeAttribute:"); + sb.append(partitionTypeAttribute); + sb.append(","); + } if (!(perDeviceNodeSelection == null)) { sb.append("perDeviceNodeSelection:"); sb.append(perDeviceNodeSelection); @@ -579,6 +700,11 @@ public String toString() { if (!(sharedCounters == null) && !(sharedCounters.isEmpty())) { sb.append("sharedCounters:"); sb.append(sharedCounters); + sb.append(","); + } + if (!(skipNodeOperations == null) && !(skipNodeOperations.isEmpty())) { + sb.append("skipNodeOperations:"); + sb.append(skipNodeOperations); } sb.append("}"); return sb.toString(); @@ -598,7 +724,7 @@ public A withDevices(List devices) { this._visitables.get("devices").clear(); } if (devices != null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); for (V1beta1Device item : devices) { this.addToDevices(item); } @@ -627,19 +753,19 @@ public A withDriver(String driver) { } public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + return new NodeSelectorNested<>(null); } public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + return new NodeSelectorNested<>(item); } public PoolNested withNewPool() { - return new PoolNested(null); + return new PoolNested<>(null); } public PoolNested withNewPoolLike(V1beta1ResourcePool item) { - return new PoolNested(item); + return new PoolNested<>(item); } public A withNodeName(String nodeName) { @@ -653,12 +779,17 @@ public A withNodeSelector(V1NodeSelector nodeSelector) { this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); this._visitables.get("nodeSelector").add(this.nodeSelector); } else { - this.nodeSelector = null; this._visitables.get("nodeSelector").remove(this.nodeSelector); + this.nodeSelector = null; } return (A) this; } + public A withPartitionTypeAttribute(String partitionTypeAttribute) { + this.partitionTypeAttribute = partitionTypeAttribute; + return (A) this; + } + public A withPerDeviceNodeSelection() { return withPerDeviceNodeSelection(true); } @@ -674,8 +805,8 @@ public A withPool(V1beta1ResourcePool pool) { this.pool = new V1beta1ResourcePoolBuilder(pool); this._visitables.get("pool").add(this.pool); } else { - this.pool = null; this._visitables.get("pool").remove(this.pool); + this.pool = null; } return (A) this; } @@ -685,7 +816,7 @@ public A withSharedCounters(List sharedCounters) { this._visitables.get("sharedCounters").clear(); } if (sharedCounters != null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); for (V1beta1CounterSet item : sharedCounters) { this.addToSharedCounters(item); } @@ -707,6 +838,31 @@ public A withSharedCounters(V1beta1CounterSet... sharedCounters) { } return (A) this; } + + public A withSkipNodeOperations(List skipNodeOperations) { + if (skipNodeOperations != null) { + this.skipNodeOperations = new ArrayList<>(); + for (String item : skipNodeOperations) { + this.addToSkipNodeOperations(item); + } + } else { + this.skipNodeOperations = null; + } + return (A) this; + } + + public A withSkipNodeOperations(String... skipNodeOperations) { + if (this.skipNodeOperations != null) { + this.skipNodeOperations.clear(); + _visitables.remove("skipNodeOperations"); + } + if (skipNodeOperations != null) { + for (String item : skipNodeOperations) { + this.addToSkipNodeOperations(item); + } + } + return (A) this; + } public class DevicesNested extends V1beta1DeviceFluent> implements Nested{ V1beta1DeviceBuilder builder; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java deleted file mode 100644 index f6f35d4992..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java +++ /dev/null @@ -1,199 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import java.util.Objects; -import java.util.function.Predicate; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1ServiceCIDRSpecFluent> extends BaseFluent{ - - private List cidrs; - - public V1beta1ServiceCIDRSpecFluent() { - } - - public V1beta1ServiceCIDRSpecFluent(V1beta1ServiceCIDRSpec instance) { - this.copyInstance(instance); - } - - 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 addToCidrs(String... items) { - if (this.cidrs == null) { - this.cidrs = new ArrayList(); - } - for (String item : items) { - this.cidrs.add(item); - } - return (A) this; - } - - public A addToCidrs(int index,String item) { - if (this.cidrs == null) { - this.cidrs = new ArrayList(); - } - this.cidrs.add(index, item); - return (A) this; - } - - protected void copyInstance(V1beta1ServiceCIDRSpec instance) { - instance = instance != null ? instance : new V1beta1ServiceCIDRSpec(); - if (instance != null) { - this.withCidrs(instance.getCidrs()); - } - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1ServiceCIDRSpecFluent that = (V1beta1ServiceCIDRSpecFluent) o; - if (!(Objects.equals(cidrs, that.cidrs))) { - return false; - } - return true; - } - - public String getCidr(int index) { - return this.cidrs.get(index); - } - - public List getCidrs() { - return this.cidrs; - } - - 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 hasCidrs() { - return this.cidrs != null && !(this.cidrs.isEmpty()); - } - - public boolean hasMatchingCidr(Predicate predicate) { - for (String item : cidrs) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public int hashCode() { - return Objects.hash(cidrs); - } - - public A removeAllFromCidrs(Collection items) { - if (this.cidrs == null) { - return (A) this; - } - for (String item : items) { - this.cidrs.remove(item); - } - return (A) this; - } - - public A removeFromCidrs(String... items) { - if (this.cidrs == null) { - return (A) this; - } - for (String item : items) { - this.cidrs.remove(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 String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(cidrs == null) && !(cidrs.isEmpty())) { - sb.append("cidrs:"); - sb.append(cidrs); - } - sb.append("}"); - return sb.toString(); - } - - 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(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; - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationBuilder.java index 283b6214e4..8f3b4ea5e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1StorageVersionMigrationBuilder extends V1beta1StorageVersionMigrationFluent implements VisitableBuilder{ V1beta1StorageVersionMigrationFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationFluent.java index f71d8248a9..037178400a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1StorageVersionMigrationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1StorageVersionMigrationFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1StorageVersionMigrationFluent that = (V1beta1StorageVersionMigrationFluent) o; + V1beta1StorageVersionMigrationFluent that = (V1beta1StorageVersionMigrationFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta1StorageVersionMigrationSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1beta1StorageVersionMigrationStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1beta1StorageVersionMigrationSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1beta1StorageVersionMigrationSpec spec) { this.spec = new V1beta1StorageVersionMigrationSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1beta1StorageVersionMigrationStatus status) { this.status = new V1beta1StorageVersionMigrationStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListBuilder.java index f94744b5ad..a990dc9bc9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1StorageVersionMigrationListBuilder extends V1beta1StorageVersionMigrationListFluent implements VisitableBuilder{ V1beta1StorageVersionMigrationListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListFluent.java index cbf8f195d1..5b8cfc1dc9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1StorageVersionMigrationListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1StorageVersionMigrationListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta1StorageVersionMigrationListFluent(V1beta1StorageVersionMigrationLi public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1StorageVersionMigration item : items) { V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta1StorageVersionMigration item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta1StorageVersionMigration... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta1StorageVersionMigration item : items) { V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta1StorageVersionMigration... items) { public A addToItems(int index,V1beta1StorageVersionMigration item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1StorageVersionMigrationListFluent that = (V1beta1StorageVersionMigrationListFluent) o; + V1beta1StorageVersionMigrationListFluent that = (V1beta1StorageVersionMigrationListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1StorageVersionMigrationBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate setNewItemLike(int index,V1beta1StorageVersionMigration item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta1StorageVersionMigration item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta1StorageVersionMigration item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta1StorageVersionMigrationFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecBuilder.java index 5a414124c1..2c19394b02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1StorageVersionMigrationSpecBuilder extends V1beta1StorageVersionMigrationSpecFluent implements VisitableBuilder{ V1beta1StorageVersionMigrationSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecFluent.java index 8b8e5b1ed2..c411298da6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1StorageVersionMigrationSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1StorageVersionMigrationSpecFluent> extends BaseFluent{ private V1GroupResourceBuilder resource; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1StorageVersionMigrationSpecFluent that = (V1beta1StorageVersionMigrationSpecFluent) o; + V1beta1StorageVersionMigrationSpecFluent that = (V1beta1StorageVersionMigrationSpecFluent) o; if (!(Objects.equals(resource, that.resource))) { return false; } @@ -96,11 +98,11 @@ public String toString() { } public ResourceNested withNewResource() { - return new ResourceNested(null); + return new ResourceNested<>(null); } public ResourceNested withNewResourceLike(V1GroupResource item) { - return new ResourceNested(item); + return new ResourceNested<>(item); } public A withResource(V1GroupResource resource) { @@ -109,8 +111,8 @@ public A withResource(V1GroupResource resource) { this.resource = new V1GroupResourceBuilder(resource); this._visitables.get("resource").add(this.resource); } else { - this.resource = null; this._visitables.get("resource").remove(this.resource); + this.resource = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusBuilder.java index 5608642277..c5cd5d4364 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1StorageVersionMigrationStatusBuilder extends V1beta1StorageVersionMigrationStatusFluent implements VisitableBuilder{ V1beta1StorageVersionMigrationStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusFluent.java index 3031a8e41b..73dbbad3de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1StorageVersionMigrationStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1StorageVersionMigrationStatusFluent> extends BaseFluent{ private ArrayList conditions; private String resourceVersion; @@ -44,7 +46,7 @@ public V1beta1StorageVersionMigrationStatusFluent(V1beta1StorageVersionMigration public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -55,16 +57,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -76,7 +78,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -168,7 +170,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1StorageVersionMigrationStatusFluent that = (V1beta1StorageVersionMigrationStatusFluent) o; + V1beta1StorageVersionMigrationStatusFluent that = (V1beta1StorageVersionMigrationStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -232,6 +234,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -244,12 +247,12 @@ public A removeMatchingFromConditions(Predicate predicate) { } public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -283,7 +286,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TopologyConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TopologyConstraintBuilder.java new file mode 100644 index 0000000000..f68534bbdf --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TopologyConstraintBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1TopologyConstraintBuilder extends V1beta1TopologyConstraintFluent implements VisitableBuilder{ + + V1beta1TopologyConstraintFluent fluent; + + public V1beta1TopologyConstraintBuilder() { + this(new V1beta1TopologyConstraint()); + } + + public V1beta1TopologyConstraintBuilder(V1beta1TopologyConstraintFluent fluent) { + this(fluent, new V1beta1TopologyConstraint()); + } + + public V1beta1TopologyConstraintBuilder(V1beta1TopologyConstraint instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1TopologyConstraintBuilder(V1beta1TopologyConstraintFluent fluent,V1beta1TopologyConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1TopologyConstraint build() { + V1beta1TopologyConstraint buildable = new V1beta1TopologyConstraint(); + buildable.setKey(fluent.getKey()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TopologyConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TopologyConstraintFluent.java new file mode 100644 index 0000000000..7caaa9955c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TopologyConstraintFluent.java @@ -0,0 +1,91 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1TopologyConstraintFluent> extends BaseFluent{ + + private String key; + + public V1beta1TopologyConstraintFluent() { + } + + public V1beta1TopologyConstraintFluent(V1beta1TopologyConstraint instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1TopologyConstraint instance) { + instance = instance != null ? instance : new V1beta1TopologyConstraint(); + if (instance != null) { + this.withKey(instance.getKey()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1TopologyConstraintFluent that = (V1beta1TopologyConstraintFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + return true; + } + + public String getKey() { + return this.key; + } + + public boolean hasKey() { + return this.key != null; + } + + public int hashCode() { + return Objects.hash(key); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + } + sb.append("}"); + return sb.toString(); + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypedLocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypedLocalObjectReferenceBuilder.java new file mode 100644 index 0000000000..85f1a6b5af --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypedLocalObjectReferenceBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1TypedLocalObjectReferenceBuilder extends V1beta1TypedLocalObjectReferenceFluent implements VisitableBuilder{ + + V1beta1TypedLocalObjectReferenceFluent fluent; + + public V1beta1TypedLocalObjectReferenceBuilder() { + this(new V1beta1TypedLocalObjectReference()); + } + + public V1beta1TypedLocalObjectReferenceBuilder(V1beta1TypedLocalObjectReferenceFluent fluent) { + this(fluent, new V1beta1TypedLocalObjectReference()); + } + + public V1beta1TypedLocalObjectReferenceBuilder(V1beta1TypedLocalObjectReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1TypedLocalObjectReferenceBuilder(V1beta1TypedLocalObjectReferenceFluent fluent,V1beta1TypedLocalObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1TypedLocalObjectReference build() { + V1beta1TypedLocalObjectReference buildable = new V1beta1TypedLocalObjectReference(); + buildable.setApiGroup(fluent.getApiGroup()); + buildable.setKind(fluent.getKind()); + buildable.setName(fluent.getName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypedLocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypedLocalObjectReferenceFluent.java new file mode 100644 index 0000000000..766b7b0e2c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypedLocalObjectReferenceFluent.java @@ -0,0 +1,137 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1TypedLocalObjectReferenceFluent> extends BaseFluent{ + + private String apiGroup; + private String kind; + private String name; + + public V1beta1TypedLocalObjectReferenceFluent() { + } + + public V1beta1TypedLocalObjectReferenceFluent(V1beta1TypedLocalObjectReference instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1TypedLocalObjectReference instance) { + instance = instance != null ? instance : new V1beta1TypedLocalObjectReference(); + if (instance != null) { + this.withApiGroup(instance.getApiGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1TypedLocalObjectReferenceFluent that = (V1beta1TypedLocalObjectReferenceFluent) o; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public String getApiGroup() { + return this.apiGroup; + } + + public String getKind() { + return this.kind; + } + + public String getName() { + return this.name; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(apiGroup, kind, name); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroup == null)) { + sb.append("apiGroup:"); + sb.append(apiGroup); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java index 22bcb4ea6b..92c593e95e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta1VariableBuilder extends V1beta1VariableFluent implements VisitableBuilder{ V1beta1VariableFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java index 67d8722be4..ea19850762 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1VariableFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1VariableFluent> extends BaseFluent{ private String expression; private String name; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1VariableFluent that = (V1beta1VariableFluent) o; + V1beta1VariableFluent that = (V1beta1VariableFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java deleted file mode 100644 index ef5ff94430..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1beta1VolumeAttributesClassBuilder extends V1beta1VolumeAttributesClassFluent implements VisitableBuilder{ - - V1beta1VolumeAttributesClassFluent fluent; - - public V1beta1VolumeAttributesClassBuilder() { - this(new V1beta1VolumeAttributesClass()); - } - - public V1beta1VolumeAttributesClassBuilder(V1beta1VolumeAttributesClassFluent fluent) { - this(fluent, new V1beta1VolumeAttributesClass()); - } - - public V1beta1VolumeAttributesClassBuilder(V1beta1VolumeAttributesClass instance) { - this.fluent = this; - this.copyInstance(instance); - } - - public V1beta1VolumeAttributesClassBuilder(V1beta1VolumeAttributesClassFluent fluent,V1beta1VolumeAttributesClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1VolumeAttributesClass build() { - V1beta1VolumeAttributesClass buildable = new V1beta1VolumeAttributesClass(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setDriverName(fluent.getDriverName()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setParameters(fluent.getParameters()); - return buildable; - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java deleted file mode 100644 index 8dc05f8a59..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java +++ /dev/null @@ -1,276 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1VolumeAttributesClassFluent> extends BaseFluent{ - - private String apiVersion; - private String driverName; - private String kind; - private V1ObjectMetaBuilder metadata; - private Map parameters; - - public V1beta1VolumeAttributesClassFluent() { - } - - public V1beta1VolumeAttributesClassFluent(V1beta1VolumeAttributesClass instance) { - this.copyInstance(instance); - } - - public A addToParameters(Map map) { - if (this.parameters == null && map != null) { - this.parameters = new LinkedHashMap(); - } - if (map != null) { - this.parameters.putAll(map); - } - return (A) this; - } - - public A addToParameters(String key,String value) { - if (this.parameters == null && key != null && value != null) { - this.parameters = new LinkedHashMap(); - } - if (key != null && value != null) { - this.parameters.put(key, value); - } - return (A) this; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - protected void copyInstance(V1beta1VolumeAttributesClass instance) { - instance = instance != null ? instance : new V1beta1VolumeAttributesClass(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withDriverName(instance.getDriverName()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withParameters(instance.getParameters()); - } - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1VolumeAttributesClassFluent that = (V1beta1VolumeAttributesClassFluent) o; - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(driverName, that.driverName))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(metadata, that.metadata))) { - return false; - } - if (!(Objects.equals(parameters, that.parameters))) { - return false; - } - return true; - } - - public String getApiVersion() { - return this.apiVersion; - } - - public String getDriverName() { - return this.driverName; - } - - public String getKind() { - return this.kind; - } - - public Map getParameters() { - return this.parameters; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public boolean hasDriverName() { - return this.driverName != null; - } - - public boolean hasKind() { - return this.kind != null; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public boolean hasParameters() { - return this.parameters != null; - } - - public int hashCode() { - return Objects.hash(apiVersion, driverName, kind, metadata, parameters); - } - - public A removeFromParameters(String key) { - if (this.parameters == null) { - return (A) this; - } - if (key != null && this.parameters != null) { - this.parameters.remove(key); - } - return (A) this; - } - - public A removeFromParameters(Map map) { - if (this.parameters == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.parameters != null) { - this.parameters.remove(key); - } - } - } - return (A) this; - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(apiVersion == null)) { - sb.append("apiVersion:"); - sb.append(apiVersion); - sb.append(","); - } - if (!(driverName == null)) { - sb.append("driverName:"); - sb.append(driverName); - sb.append(","); - } - if (!(kind == null)) { - sb.append("kind:"); - sb.append(kind); - sb.append(","); - } - if (!(metadata == null)) { - sb.append("metadata:"); - sb.append(metadata); - sb.append(","); - } - if (!(parameters == null) && !(parameters.isEmpty())) { - sb.append("parameters:"); - sb.append(parameters); - } - sb.append("}"); - return sb.toString(); - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public A withDriverName(String driverName) { - this.driverName = driverName; - return (A) this; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - 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 MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public A withParameters(Map parameters) { - if (parameters == null) { - this.parameters = null; - } else { - this.parameters = new LinkedHashMap(parameters); - } - return (A) this; - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - - V1ObjectMetaBuilder builder; - - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - - public N and() { - return (N) V1beta1VolumeAttributesClassFluent.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/V1beta1VolumeAttributesClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java deleted file mode 100644 index 9d13e8c537..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1beta1VolumeAttributesClassListBuilder extends V1beta1VolumeAttributesClassListFluent implements VisitableBuilder{ - - V1beta1VolumeAttributesClassListFluent fluent; - - public V1beta1VolumeAttributesClassListBuilder() { - this(new V1beta1VolumeAttributesClassList()); - } - - public V1beta1VolumeAttributesClassListBuilder(V1beta1VolumeAttributesClassListFluent fluent) { - this(fluent, new V1beta1VolumeAttributesClassList()); - } - - public V1beta1VolumeAttributesClassListBuilder(V1beta1VolumeAttributesClassList instance) { - this.fluent = this; - this.copyInstance(instance); - } - - public V1beta1VolumeAttributesClassListBuilder(V1beta1VolumeAttributesClassListFluent fluent,V1beta1VolumeAttributesClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1VolumeAttributesClassList build() { - V1beta1VolumeAttributesClassList buildable = new V1beta1VolumeAttributesClassList(); - 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/V1beta1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java deleted file mode 100644 index 4e7b778f0f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java +++ /dev/null @@ -1,423 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.RuntimeException; -import java.lang.String; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import java.util.function.Predicate; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1VolumeAttributesClassListFluent> extends BaseFluent{ - - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - public V1beta1VolumeAttributesClassListFluent() { - } - - public V1beta1VolumeAttributesClassListFluent(V1beta1VolumeAttributesClassList instance) { - this.copyInstance(instance); - } - - public A addAllToItems(Collection items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1beta1VolumeAttributesClass item : items) { - V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - this._visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1VolumeAttributesClass item) { - return new ItemsNested(-1, item); - } - - public A addToItems(V1beta1VolumeAttributesClass... items) { - if (this.items == null) { - this.items = new ArrayList(); - } - for (V1beta1VolumeAttributesClass item : items) { - V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - this._visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A addToItems(int index,V1beta1VolumeAttributesClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= this.items.size()) { - this._visitables.get("items").add(builder); - this.items.add(builder); - } else { - this._visitables.get("items").add(builder); - this.items.add(index, builder); - } - return (A) this; - } - - public V1beta1VolumeAttributesClass buildFirstItem() { - return this.items.get(0).build(); - } - - public V1beta1VolumeAttributesClass buildItem(int index) { - return this.items.get(index).build(); - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1beta1VolumeAttributesClass buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1beta1VolumeAttributesClass buildMatchingItem(Predicate predicate) { - for (V1beta1VolumeAttributesClassBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - protected void copyInstance(V1beta1VolumeAttributesClassList instance) { - instance = instance != null ? instance : new V1beta1VolumeAttributesClassList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); - } - return this.setNewItemLike(index, this.buildItem(index)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); - } - return this.setNewItemLike(index, this.buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i = 0;i < items.size();i++) { - if (predicate.test(items.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); - } - return this.setNewItemLike(index, this.buildItem(index)); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1VolumeAttributesClassListFluent that = (V1beta1VolumeAttributesClassListFluent) o; - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(items, that.items))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(metadata, that.metadata))) { - return false; - } - return true; - } - - public String getApiVersion() { - return this.apiVersion; - } - - public String getKind() { - return this.kind; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public boolean hasKind() { - return this.kind != null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta1VolumeAttributesClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1VolumeAttributesClass item : items) { - V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta1VolumeAttributesClass... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1VolumeAttributesClass item : items) { - V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = this._visitables.get("items"); - while (each.hasNext()) { - V1beta1VolumeAttributesClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - public ItemsNested setNewItemLike(int index,V1beta1VolumeAttributesClass item) { - return new ItemsNested(index, item); - } - - public A setToItems(int index,V1beta1VolumeAttributesClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= this.items.size()) { - this._visitables.get("items").add(builder); - this.items.add(builder); - } else { - this._visitables.get("items").add(builder); - this.items.set(index, builder); - } - return (A) this; - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(apiVersion == null)) { - sb.append("apiVersion:"); - sb.append(apiVersion); - sb.append(","); - } - if (!(items == null) && !(items.isEmpty())) { - sb.append("items:"); - sb.append(items); - sb.append(","); - } - if (!(kind == null)) { - sb.append("kind:"); - sb.append(kind); - sb.append(","); - } - if (!(metadata == null)) { - sb.append("metadata:"); - sb.append(metadata); - } - sb.append("}"); - return sb.toString(); - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1VolumeAttributesClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(V1beta1VolumeAttributesClass... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1VolumeAttributesClass item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public class ItemsNested extends V1beta1VolumeAttributesClassFluent> implements Nested{ - - V1beta1VolumeAttributesClassBuilder builder; - int index; - - ItemsNested(int index,V1beta1VolumeAttributesClass item) { - this.index = index; - this.builder = new V1beta1VolumeAttributesClassBuilder(this, item); - } - - public N and() { - return (N) V1beta1VolumeAttributesClassListFluent.this.setToItems(index, builder.build()); - } - - public N endItem() { - return and(); - } - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - - V1ListMetaBuilder builder; - - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - - public N and() { - return (N) V1beta1VolumeAttributesClassListFluent.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/V1beta1IPAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadBuilder.java similarity index 59% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadBuilder.java index 0c120d9719..977ae2be45 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadBuilder.java @@ -13,31 +13,32 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1beta1IPAddressBuilder extends V1beta1IPAddressFluent implements VisitableBuilder{ +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1WorkloadBuilder extends V1beta1WorkloadFluent implements VisitableBuilder{ - V1beta1IPAddressFluent fluent; + V1beta1WorkloadFluent fluent; - public V1beta1IPAddressBuilder() { - this(new V1beta1IPAddress()); + public V1beta1WorkloadBuilder() { + this(new V1beta1Workload()); } - public V1beta1IPAddressBuilder(V1beta1IPAddressFluent fluent) { - this(fluent, new V1beta1IPAddress()); + public V1beta1WorkloadBuilder(V1beta1WorkloadFluent fluent) { + this(fluent, new V1beta1Workload()); } - public V1beta1IPAddressBuilder(V1beta1IPAddress instance) { + public V1beta1WorkloadBuilder(V1beta1Workload instance) { this.fluent = this; this.copyInstance(instance); } - public V1beta1IPAddressBuilder(V1beta1IPAddressFluent fluent,V1beta1IPAddress instance) { + public V1beta1WorkloadBuilder(V1beta1WorkloadFluent fluent,V1beta1Workload instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1beta1IPAddress build() { - V1beta1IPAddress buildable = new V1beta1IPAddress(); + public V1beta1Workload build() { + V1beta1Workload buildable = new V1beta1Workload(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); buildable.setMetadata(fluent.buildMetadata()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadFluent.java similarity index 78% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadFluent.java index 4228f2c92f..2885b41def 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadFluent.java @@ -20,22 +20,24 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta1IPAddressFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1WorkloadFluent> extends BaseFluent{ private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; - private V1beta1IPAddressSpecBuilder spec; + private V1beta1WorkloadSpecBuilder spec; - public V1beta1IPAddressFluent() { + public V1beta1WorkloadFluent() { } - public V1beta1IPAddressFluent(V1beta1IPAddress instance) { + public V1beta1WorkloadFluent(V1beta1Workload instance) { this.copyInstance(instance); } @@ -43,12 +45,12 @@ public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public V1beta1IPAddressSpec buildSpec() { + public V1beta1WorkloadSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - protected void copyInstance(V1beta1IPAddress instance) { - instance = instance != null ? instance : new V1beta1IPAddress(); + protected void copyInstance(V1beta1Workload instance) { + instance = instance != null ? instance : new V1beta1Workload(); if (instance != null) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -70,10 +72,10 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { } public SpecNested editOrNewSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1IPAddressSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1WorkloadSpecBuilder().build())); } - public SpecNested editOrNewSpecLike(V1beta1IPAddressSpec item) { + public SpecNested editOrNewSpecLike(V1beta1WorkloadSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta1IPAddressFluent that = (V1beta1IPAddressFluent) o; + V1beta1WorkloadFluent that = (V1beta1WorkloadFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,36 +179,36 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } - public SpecNested withNewSpecLike(V1beta1IPAddressSpec item) { - return new SpecNested(item); + public SpecNested withNewSpecLike(V1beta1WorkloadSpec item) { + return new SpecNested<>(item); } - public A withSpec(V1beta1IPAddressSpec spec) { + public A withSpec(V1beta1WorkloadSpec spec) { this._visitables.remove("spec"); if (spec != null) { - this.spec = new V1beta1IPAddressSpecBuilder(spec); + this.spec = new V1beta1WorkloadSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -219,7 +221,7 @@ public class MetadataNested extends V1ObjectMetaFluent> imp } public N and() { - return (N) V1beta1IPAddressFluent.this.withMetadata(builder.build()); + return (N) V1beta1WorkloadFluent.this.withMetadata(builder.build()); } public N endMetadata() { @@ -227,16 +229,16 @@ public N endMetadata() { } } - public class SpecNested extends V1beta1IPAddressSpecFluent> implements Nested{ + public class SpecNested extends V1beta1WorkloadSpecFluent> implements Nested{ - V1beta1IPAddressSpecBuilder builder; + V1beta1WorkloadSpecBuilder builder; - SpecNested(V1beta1IPAddressSpec item) { - this.builder = new V1beta1IPAddressSpecBuilder(this, item); + SpecNested(V1beta1WorkloadSpec item) { + this.builder = new V1beta1WorkloadSpecBuilder(this, item); } public N and() { - return (N) V1beta1IPAddressFluent.this.withSpec(builder.build()); + return (N) V1beta1WorkloadFluent.this.withSpec(builder.build()); } public N endSpec() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadListBuilder.java new file mode 100644 index 0000000000..32f9adf45d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadListBuilder.java @@ -0,0 +1,49 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1WorkloadListBuilder extends V1beta1WorkloadListFluent implements VisitableBuilder{ + + V1beta1WorkloadListFluent fluent; + + public V1beta1WorkloadListBuilder() { + this(new V1beta1WorkloadList()); + } + + public V1beta1WorkloadListBuilder(V1beta1WorkloadListFluent fluent) { + this(fluent, new V1beta1WorkloadList()); + } + + public V1beta1WorkloadListBuilder(V1beta1WorkloadList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1WorkloadListBuilder(V1beta1WorkloadListFluent fluent,V1beta1WorkloadList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1WorkloadList build() { + V1beta1WorkloadList buildable = new V1beta1WorkloadList(); + 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/V1beta1WorkloadListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadListFluent.java new file mode 100644 index 0000000000..d05911d2c5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadListFluent.java @@ -0,0 +1,426 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1WorkloadListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1WorkloadListFluent() { + } + + public V1beta1WorkloadListFluent(V1beta1WorkloadList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + for (V1beta1Workload item : items) { + V1beta1WorkloadBuilder builder = new V1beta1WorkloadBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested<>(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1Workload item) { + return new ItemsNested<>(-1, item); + } + + public A addToItems(V1beta1Workload... items) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + for (V1beta1Workload item : items) { + V1beta1WorkloadBuilder builder = new V1beta1WorkloadBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1beta1Workload item) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + V1beta1WorkloadBuilder builder = new V1beta1WorkloadBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.add(index, builder); + } + return (A) this; + } + + public V1beta1Workload buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1Workload buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1Workload buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1Workload buildMatchingItem(Predicate predicate) { + for (V1beta1WorkloadBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1beta1WorkloadList instance) { + instance = instance != null ? instance : new V1beta1WorkloadList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1WorkloadListFluent that = (V1beta1WorkloadListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1WorkloadBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1Workload item : items) { + V1beta1WorkloadBuilder builder = new V1beta1WorkloadBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1Workload... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1Workload item : items) { + V1beta1WorkloadBuilder builder = new V1beta1WorkloadBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("items"); + while (each.hasNext()) { + V1beta1WorkloadBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1Workload item) { + return new ItemsNested<>(index, item); + } + + public A setToItems(int index,V1beta1Workload item) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + V1beta1WorkloadBuilder builder = new V1beta1WorkloadBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList<>(); + for (V1beta1Workload item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1Workload... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1Workload item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested<>(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested<>(item); + } + public class ItemsNested extends V1beta1WorkloadFluent> implements Nested{ + + V1beta1WorkloadBuilder builder; + int index; + + ItemsNested(int index,V1beta1Workload item) { + this.index = index; + this.builder = new V1beta1WorkloadBuilder(this, item); + } + + public N and() { + return (N) V1beta1WorkloadListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1WorkloadListFluent.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/V1beta1WorkloadReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadReferenceBuilder.java new file mode 100644 index 0000000000..090f008c14 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadReferenceBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1WorkloadReferenceBuilder extends V1beta1WorkloadReferenceFluent implements VisitableBuilder{ + + V1beta1WorkloadReferenceFluent fluent; + + public V1beta1WorkloadReferenceBuilder() { + this(new V1beta1WorkloadReference()); + } + + public V1beta1WorkloadReferenceBuilder(V1beta1WorkloadReferenceFluent fluent) { + this(fluent, new V1beta1WorkloadReference()); + } + + public V1beta1WorkloadReferenceBuilder(V1beta1WorkloadReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1WorkloadReferenceBuilder(V1beta1WorkloadReferenceFluent fluent,V1beta1WorkloadReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1WorkloadReference build() { + V1beta1WorkloadReference buildable = new V1beta1WorkloadReference(); + buildable.setTemplateName(fluent.getTemplateName()); + buildable.setWorkloadName(fluent.getWorkloadName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadReferenceFluent.java similarity index 59% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReferenceFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadReferenceFluent.java index 6cca7f35b1..d2eb43fe5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadReferenceFluent.java @@ -18,27 +18,29 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1alpha2WorkloadPodGroupTemplateReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1WorkloadReferenceFluent> extends BaseFluent{ - private String podGroupTemplateName; + private String templateName; private String workloadName; - public V1alpha2WorkloadPodGroupTemplateReferenceFluent() { + public V1beta1WorkloadReferenceFluent() { } - public V1alpha2WorkloadPodGroupTemplateReferenceFluent(V1alpha2WorkloadPodGroupTemplateReference instance) { + public V1beta1WorkloadReferenceFluent(V1beta1WorkloadReference instance) { this.copyInstance(instance); } - protected void copyInstance(V1alpha2WorkloadPodGroupTemplateReference instance) { - instance = instance != null ? instance : new V1alpha2WorkloadPodGroupTemplateReference(); + protected void copyInstance(V1beta1WorkloadReference instance) { + instance = instance != null ? instance : new V1beta1WorkloadReference(); if (instance != null) { - this.withPodGroupTemplateName(instance.getPodGroupTemplateName()); + this.withTemplateName(instance.getTemplateName()); this.withWorkloadName(instance.getWorkloadName()); } } @@ -53,8 +55,8 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha2WorkloadPodGroupTemplateReferenceFluent that = (V1alpha2WorkloadPodGroupTemplateReferenceFluent) o; - if (!(Objects.equals(podGroupTemplateName, that.podGroupTemplateName))) { + V1beta1WorkloadReferenceFluent that = (V1beta1WorkloadReferenceFluent) o; + if (!(Objects.equals(templateName, that.templateName))) { return false; } if (!(Objects.equals(workloadName, that.workloadName))) { @@ -63,16 +65,16 @@ public boolean equals(Object o) { return true; } - public String getPodGroupTemplateName() { - return this.podGroupTemplateName; + public String getTemplateName() { + return this.templateName; } public String getWorkloadName() { return this.workloadName; } - public boolean hasPodGroupTemplateName() { - return this.podGroupTemplateName != null; + public boolean hasTemplateName() { + return this.templateName != null; } public boolean hasWorkloadName() { @@ -80,15 +82,15 @@ public boolean hasWorkloadName() { } public int hashCode() { - return Objects.hash(podGroupTemplateName, workloadName); + return Objects.hash(templateName, workloadName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (!(podGroupTemplateName == null)) { - sb.append("podGroupTemplateName:"); - sb.append(podGroupTemplateName); + if (!(templateName == null)) { + sb.append("templateName:"); + sb.append(templateName); sb.append(","); } if (!(workloadName == null)) { @@ -99,8 +101,8 @@ public String toString() { return sb.toString(); } - public A withPodGroupTemplateName(String podGroupTemplateName) { - this.podGroupTemplateName = podGroupTemplateName; + public A withTemplateName(String templateName) { + this.templateName = templateName; return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadSpecBuilder.java new file mode 100644 index 0000000000..38d5475382 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadSpecBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta1WorkloadSpecBuilder extends V1beta1WorkloadSpecFluent implements VisitableBuilder{ + + V1beta1WorkloadSpecFluent fluent; + + public V1beta1WorkloadSpecBuilder() { + this(new V1beta1WorkloadSpec()); + } + + public V1beta1WorkloadSpecBuilder(V1beta1WorkloadSpecFluent fluent) { + this(fluent, new V1beta1WorkloadSpec()); + } + + public V1beta1WorkloadSpecBuilder(V1beta1WorkloadSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1WorkloadSpecBuilder(V1beta1WorkloadSpecFluent fluent,V1beta1WorkloadSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1WorkloadSpec build() { + V1beta1WorkloadSpec buildable = new V1beta1WorkloadSpec(); + buildable.setCompositePodGroupTemplates(fluent.buildCompositePodGroupTemplates()); + buildable.setControllerRef(fluent.buildControllerRef()); + buildable.setPodGroupTemplates(fluent.buildPodGroupTemplates()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadSpecFluent.java new file mode 100644 index 0000000000..b2ae7c21e6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadSpecFluent.java @@ -0,0 +1,618 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta1WorkloadSpecFluent> extends BaseFluent{ + + private ArrayList compositePodGroupTemplates; + private V1beta1TypedLocalObjectReferenceBuilder controllerRef; + private ArrayList podGroupTemplates; + + public V1beta1WorkloadSpecFluent() { + } + + public V1beta1WorkloadSpecFluent(V1beta1WorkloadSpec instance) { + this.copyInstance(instance); + } + + public A addAllToCompositePodGroupTemplates(Collection items) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + for (V1beta1CompositePodGroupTemplate item : items) { + V1beta1CompositePodGroupTemplateBuilder builder = new V1beta1CompositePodGroupTemplateBuilder(item); + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } + return (A) this; + } + + public A addAllToPodGroupTemplates(Collection items) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + for (V1beta1PodGroupTemplate item : items) { + V1beta1PodGroupTemplateBuilder builder = new V1beta1PodGroupTemplateBuilder(item); + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } + return (A) this; + } + + public CompositePodGroupTemplatesNested addNewCompositePodGroupTemplate() { + return new CompositePodGroupTemplatesNested<>(-1, null); + } + + public CompositePodGroupTemplatesNested addNewCompositePodGroupTemplateLike(V1beta1CompositePodGroupTemplate item) { + return new CompositePodGroupTemplatesNested<>(-1, item); + } + + public PodGroupTemplatesNested addNewPodGroupTemplate() { + return new PodGroupTemplatesNested<>(-1, null); + } + + public PodGroupTemplatesNested addNewPodGroupTemplateLike(V1beta1PodGroupTemplate item) { + return new PodGroupTemplatesNested<>(-1, item); + } + + public A addToCompositePodGroupTemplates(V1beta1CompositePodGroupTemplate... items) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + for (V1beta1CompositePodGroupTemplate item : items) { + V1beta1CompositePodGroupTemplateBuilder builder = new V1beta1CompositePodGroupTemplateBuilder(item); + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } + return (A) this; + } + + public A addToCompositePodGroupTemplates(int index,V1beta1CompositePodGroupTemplate item) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + V1beta1CompositePodGroupTemplateBuilder builder = new V1beta1CompositePodGroupTemplateBuilder(item); + if (index < 0 || index >= this.compositePodGroupTemplates.size()) { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } else { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(index, builder); + } + return (A) this; + } + + public A addToPodGroupTemplates(V1beta1PodGroupTemplate... items) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + for (V1beta1PodGroupTemplate item : items) { + V1beta1PodGroupTemplateBuilder builder = new V1beta1PodGroupTemplateBuilder(item); + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } + return (A) this; + } + + public A addToPodGroupTemplates(int index,V1beta1PodGroupTemplate item) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + V1beta1PodGroupTemplateBuilder builder = new V1beta1PodGroupTemplateBuilder(item); + if (index < 0 || index >= this.podGroupTemplates.size()) { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } else { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(index, builder); + } + return (A) this; + } + + public V1beta1CompositePodGroupTemplate buildCompositePodGroupTemplate(int index) { + return this.compositePodGroupTemplates.get(index).build(); + } + + public List buildCompositePodGroupTemplates() { + return this.compositePodGroupTemplates != null ? build(compositePodGroupTemplates) : null; + } + + public V1beta1TypedLocalObjectReference buildControllerRef() { + return this.controllerRef != null ? this.controllerRef.build() : null; + } + + public V1beta1CompositePodGroupTemplate buildFirstCompositePodGroupTemplate() { + return this.compositePodGroupTemplates.get(0).build(); + } + + public V1beta1PodGroupTemplate buildFirstPodGroupTemplate() { + return this.podGroupTemplates.get(0).build(); + } + + public V1beta1CompositePodGroupTemplate buildLastCompositePodGroupTemplate() { + return this.compositePodGroupTemplates.get(compositePodGroupTemplates.size() - 1).build(); + } + + public V1beta1PodGroupTemplate buildLastPodGroupTemplate() { + return this.podGroupTemplates.get(podGroupTemplates.size() - 1).build(); + } + + public V1beta1CompositePodGroupTemplate buildMatchingCompositePodGroupTemplate(Predicate predicate) { + for (V1beta1CompositePodGroupTemplateBuilder item : compositePodGroupTemplates) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1PodGroupTemplate buildMatchingPodGroupTemplate(Predicate predicate) { + for (V1beta1PodGroupTemplateBuilder item : podGroupTemplates) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1PodGroupTemplate buildPodGroupTemplate(int index) { + return this.podGroupTemplates.get(index).build(); + } + + public List buildPodGroupTemplates() { + return this.podGroupTemplates != null ? build(podGroupTemplates) : null; + } + + protected void copyInstance(V1beta1WorkloadSpec instance) { + instance = instance != null ? instance : new V1beta1WorkloadSpec(); + if (instance != null) { + this.withCompositePodGroupTemplates(instance.getCompositePodGroupTemplates()); + this.withControllerRef(instance.getControllerRef()); + this.withPodGroupTemplates(instance.getPodGroupTemplates()); + } + } + + public CompositePodGroupTemplatesNested editCompositePodGroupTemplate(int index) { + if (compositePodGroupTemplates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(index, this.buildCompositePodGroupTemplate(index)); + } + + public ControllerRefNested editControllerRef() { + return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(null)); + } + + public CompositePodGroupTemplatesNested editFirstCompositePodGroupTemplate() { + if (compositePodGroupTemplates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(0, this.buildCompositePodGroupTemplate(0)); + } + + public PodGroupTemplatesNested editFirstPodGroupTemplate() { + if (podGroupTemplates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(0, this.buildPodGroupTemplate(0)); + } + + public CompositePodGroupTemplatesNested editLastCompositePodGroupTemplate() { + int index = compositePodGroupTemplates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(index, this.buildCompositePodGroupTemplate(index)); + } + + public PodGroupTemplatesNested editLastPodGroupTemplate() { + int index = podGroupTemplates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public CompositePodGroupTemplatesNested editMatchingCompositePodGroupTemplate(Predicate predicate) { + int index = -1; + for (int i = 0;i < compositePodGroupTemplates.size();i++) { + if (predicate.test(compositePodGroupTemplates.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "compositePodGroupTemplates")); + } + return this.setNewCompositePodGroupTemplateLike(index, this.buildCompositePodGroupTemplate(index)); + } + + public PodGroupTemplatesNested editMatchingPodGroupTemplate(Predicate predicate) { + int index = -1; + for (int i = 0;i < podGroupTemplates.size();i++) { + if (predicate.test(podGroupTemplates.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public ControllerRefNested editOrNewControllerRef() { + return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(new V1beta1TypedLocalObjectReferenceBuilder().build())); + } + + public ControllerRefNested editOrNewControllerRefLike(V1beta1TypedLocalObjectReference item) { + return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(item)); + } + + public PodGroupTemplatesNested editPodGroupTemplate(int index) { + if (podGroupTemplates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1WorkloadSpecFluent that = (V1beta1WorkloadSpecFluent) o; + if (!(Objects.equals(compositePodGroupTemplates, that.compositePodGroupTemplates))) { + return false; + } + if (!(Objects.equals(controllerRef, that.controllerRef))) { + return false; + } + if (!(Objects.equals(podGroupTemplates, that.podGroupTemplates))) { + return false; + } + return true; + } + + public boolean hasCompositePodGroupTemplates() { + return this.compositePodGroupTemplates != null && !(this.compositePodGroupTemplates.isEmpty()); + } + + public boolean hasControllerRef() { + return this.controllerRef != null; + } + + public boolean hasMatchingCompositePodGroupTemplate(Predicate predicate) { + for (V1beta1CompositePodGroupTemplateBuilder item : compositePodGroupTemplates) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingPodGroupTemplate(Predicate predicate) { + for (V1beta1PodGroupTemplateBuilder item : podGroupTemplates) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPodGroupTemplates() { + return this.podGroupTemplates != null && !(this.podGroupTemplates.isEmpty()); + } + + public int hashCode() { + return Objects.hash(compositePodGroupTemplates, controllerRef, podGroupTemplates); + } + + public A removeAllFromCompositePodGroupTemplates(Collection items) { + if (this.compositePodGroupTemplates == null) { + return (A) this; + } + for (V1beta1CompositePodGroupTemplate item : items) { + V1beta1CompositePodGroupTemplateBuilder builder = new V1beta1CompositePodGroupTemplateBuilder(item); + _visitables.get("compositePodGroupTemplates").remove(builder); + this.compositePodGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeAllFromPodGroupTemplates(Collection items) { + if (this.podGroupTemplates == null) { + return (A) this; + } + for (V1beta1PodGroupTemplate item : items) { + V1beta1PodGroupTemplateBuilder builder = new V1beta1PodGroupTemplateBuilder(item); + _visitables.get("podGroupTemplates").remove(builder); + this.podGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeFromCompositePodGroupTemplates(V1beta1CompositePodGroupTemplate... items) { + if (this.compositePodGroupTemplates == null) { + return (A) this; + } + for (V1beta1CompositePodGroupTemplate item : items) { + V1beta1CompositePodGroupTemplateBuilder builder = new V1beta1CompositePodGroupTemplateBuilder(item); + _visitables.get("compositePodGroupTemplates").remove(builder); + this.compositePodGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeFromPodGroupTemplates(V1beta1PodGroupTemplate... items) { + if (this.podGroupTemplates == null) { + return (A) this; + } + for (V1beta1PodGroupTemplate item : items) { + V1beta1PodGroupTemplateBuilder builder = new V1beta1PodGroupTemplateBuilder(item); + _visitables.get("podGroupTemplates").remove(builder); + this.podGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromCompositePodGroupTemplates(Predicate predicate) { + if (compositePodGroupTemplates == null) { + return (A) this; + } + Iterator each = compositePodGroupTemplates.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("compositePodGroupTemplates"); + while (each.hasNext()) { + V1beta1CompositePodGroupTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromPodGroupTemplates(Predicate predicate) { + if (podGroupTemplates == null) { + return (A) this; + } + Iterator each = podGroupTemplates.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("podGroupTemplates"); + while (each.hasNext()) { + V1beta1PodGroupTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public CompositePodGroupTemplatesNested setNewCompositePodGroupTemplateLike(int index,V1beta1CompositePodGroupTemplate item) { + return new CompositePodGroupTemplatesNested<>(index, item); + } + + public PodGroupTemplatesNested setNewPodGroupTemplateLike(int index,V1beta1PodGroupTemplate item) { + return new PodGroupTemplatesNested<>(index, item); + } + + public A setToCompositePodGroupTemplates(int index,V1beta1CompositePodGroupTemplate item) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + V1beta1CompositePodGroupTemplateBuilder builder = new V1beta1CompositePodGroupTemplateBuilder(item); + if (index < 0 || index >= this.compositePodGroupTemplates.size()) { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.add(builder); + } else { + this._visitables.get("compositePodGroupTemplates").add(builder); + this.compositePodGroupTemplates.set(index, builder); + } + return (A) this; + } + + public A setToPodGroupTemplates(int index,V1beta1PodGroupTemplate item) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + V1beta1PodGroupTemplateBuilder builder = new V1beta1PodGroupTemplateBuilder(item); + if (index < 0 || index >= this.podGroupTemplates.size()) { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } else { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(compositePodGroupTemplates == null) && !(compositePodGroupTemplates.isEmpty())) { + sb.append("compositePodGroupTemplates:"); + sb.append(compositePodGroupTemplates); + sb.append(","); + } + if (!(controllerRef == null)) { + sb.append("controllerRef:"); + sb.append(controllerRef); + sb.append(","); + } + if (!(podGroupTemplates == null) && !(podGroupTemplates.isEmpty())) { + sb.append("podGroupTemplates:"); + sb.append(podGroupTemplates); + } + sb.append("}"); + return sb.toString(); + } + + public A withCompositePodGroupTemplates(List compositePodGroupTemplates) { + if (this.compositePodGroupTemplates != null) { + this._visitables.get("compositePodGroupTemplates").clear(); + } + if (compositePodGroupTemplates != null) { + this.compositePodGroupTemplates = new ArrayList<>(); + for (V1beta1CompositePodGroupTemplate item : compositePodGroupTemplates) { + this.addToCompositePodGroupTemplates(item); + } + } else { + this.compositePodGroupTemplates = null; + } + return (A) this; + } + + public A withCompositePodGroupTemplates(V1beta1CompositePodGroupTemplate... compositePodGroupTemplates) { + if (this.compositePodGroupTemplates != null) { + this.compositePodGroupTemplates.clear(); + _visitables.remove("compositePodGroupTemplates"); + } + if (compositePodGroupTemplates != null) { + for (V1beta1CompositePodGroupTemplate item : compositePodGroupTemplates) { + this.addToCompositePodGroupTemplates(item); + } + } + return (A) this; + } + + public A withControllerRef(V1beta1TypedLocalObjectReference controllerRef) { + this._visitables.remove("controllerRef"); + if (controllerRef != null) { + this.controllerRef = new V1beta1TypedLocalObjectReferenceBuilder(controllerRef); + this._visitables.get("controllerRef").add(this.controllerRef); + } else { + this._visitables.get("controllerRef").remove(this.controllerRef); + this.controllerRef = null; + } + return (A) this; + } + + public ControllerRefNested withNewControllerRef() { + return new ControllerRefNested<>(null); + } + + public ControllerRefNested withNewControllerRefLike(V1beta1TypedLocalObjectReference item) { + return new ControllerRefNested<>(item); + } + + public A withPodGroupTemplates(List podGroupTemplates) { + if (this.podGroupTemplates != null) { + this._visitables.get("podGroupTemplates").clear(); + } + if (podGroupTemplates != null) { + this.podGroupTemplates = new ArrayList<>(); + for (V1beta1PodGroupTemplate item : podGroupTemplates) { + this.addToPodGroupTemplates(item); + } + } else { + this.podGroupTemplates = null; + } + return (A) this; + } + + public A withPodGroupTemplates(V1beta1PodGroupTemplate... podGroupTemplates) { + if (this.podGroupTemplates != null) { + this.podGroupTemplates.clear(); + _visitables.remove("podGroupTemplates"); + } + if (podGroupTemplates != null) { + for (V1beta1PodGroupTemplate item : podGroupTemplates) { + this.addToPodGroupTemplates(item); + } + } + return (A) this; + } + public class CompositePodGroupTemplatesNested extends V1beta1CompositePodGroupTemplateFluent> implements Nested{ + + V1beta1CompositePodGroupTemplateBuilder builder; + int index; + + CompositePodGroupTemplatesNested(int index,V1beta1CompositePodGroupTemplate item) { + this.index = index; + this.builder = new V1beta1CompositePodGroupTemplateBuilder(this, item); + } + + public N and() { + return (N) V1beta1WorkloadSpecFluent.this.setToCompositePodGroupTemplates(index, builder.build()); + } + + public N endCompositePodGroupTemplate() { + return and(); + } + + } + public class ControllerRefNested extends V1beta1TypedLocalObjectReferenceFluent> implements Nested{ + + V1beta1TypedLocalObjectReferenceBuilder builder; + + ControllerRefNested(V1beta1TypedLocalObjectReference item) { + this.builder = new V1beta1TypedLocalObjectReferenceBuilder(this, item); + } + + public N and() { + return (N) V1beta1WorkloadSpecFluent.this.withControllerRef(builder.build()); + } + + public N endControllerRef() { + return and(); + } + + } + public class PodGroupTemplatesNested extends V1beta1PodGroupTemplateFluent> implements Nested{ + + V1beta1PodGroupTemplateBuilder builder; + int index; + + PodGroupTemplatesNested(int index,V1beta1PodGroupTemplate item) { + this.index = index; + this.builder = new V1beta1PodGroupTemplateBuilder(this, item); + } + + public N and() { + return (N) V1beta1WorkloadSpecFluent.this.setToPodGroupTemplates(index, builder.build()); + } + + public N endPodGroupTemplate() { + return and(); + } + + } +} \ No newline at end of file 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 index 03a1466b5b..d93130965e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2AllocatedDeviceStatusBuilder extends V1beta2AllocatedDeviceStatusFluent implements VisitableBuilder{ V1beta2AllocatedDeviceStatusFluent fluent; 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 index 01b3921d20..2ac2de0f52 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2AllocatedDeviceStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2AllocatedDeviceStatusFluent> extends BaseFluent{ private ArrayList conditions; private Object data; @@ -50,7 +52,7 @@ public V1beta2AllocatedDeviceStatusFluent(V1beta2AllocatedDeviceStatus instance) public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -61,16 +63,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -82,7 +84,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -195,7 +197,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2AllocatedDeviceStatusFluent that = (V1beta2AllocatedDeviceStatusFluent) o; + V1beta2AllocatedDeviceStatusFluent that = (V1beta2AllocatedDeviceStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -310,6 +312,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -322,12 +325,12 @@ public A removeMatchingFromConditions(Predicate predicate) { } public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -386,7 +389,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } @@ -430,18 +433,18 @@ public A withNetworkData(V1beta2NetworkDeviceData networkData) { this.networkData = new V1beta2NetworkDeviceDataBuilder(networkData); this._visitables.get("networkData").add(this.networkData); } else { - this.networkData = null; this._visitables.get("networkData").remove(this.networkData); + this.networkData = null; } return (A) this; } public NetworkDataNested withNewNetworkData() { - return new NetworkDataNested(null); + return new NetworkDataNested<>(null); } public NetworkDataNested withNewNetworkDataLike(V1beta2NetworkDeviceData item) { - return new NetworkDataNested(item); + return new NetworkDataNested<>(item); } public A withPool(String pool) { 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 index 35042af644..01f95fc2ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2AllocationResultBuilder extends V1beta2AllocationResultFluent implements VisitableBuilder{ V1beta2AllocationResultFluent fluent; 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 index dccd3e6bc3..f36d1c2b05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java @@ -21,12 +21,14 @@ import java.time.OffsetDateTime; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2AllocationResultFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2AllocationResultFluent> extends BaseFluent{ private OffsetDateTime allocationTimestamp; private V1beta2DeviceAllocationResultBuilder devices; @@ -90,7 +92,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2AllocationResultFluent that = (V1beta2AllocationResultFluent) o; + V1beta2AllocationResultFluent that = (V1beta2AllocationResultFluent) o; if (!(Objects.equals(allocationTimestamp, that.allocationTimestamp))) { return false; } @@ -155,26 +157,26 @@ public A withDevices(V1beta2DeviceAllocationResult devices) { this.devices = new V1beta2DeviceAllocationResultBuilder(devices); this._visitables.get("devices").add(this.devices); } else { - this.devices = null; this._visitables.get("devices").remove(this.devices); + this.devices = null; } return (A) this; } public DevicesNested withNewDevices() { - return new DevicesNested(null); + return new DevicesNested<>(null); } public DevicesNested withNewDevicesLike(V1beta2DeviceAllocationResult item) { - return new DevicesNested(item); + return new DevicesNested<>(item); } public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + return new NodeSelectorNested<>(null); } public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + return new NodeSelectorNested<>(item); } public A withNodeSelector(V1NodeSelector nodeSelector) { @@ -183,8 +185,8 @@ public A withNodeSelector(V1NodeSelector nodeSelector) { this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); this._visitables.get("nodeSelector").add(this.nodeSelector); } else { - this.nodeSelector = null; this._visitables.get("nodeSelector").remove(this.nodeSelector); + this.nodeSelector = null; } return (A) this; } 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 index e2662c9be6..13065f7d46 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2CELDeviceSelectorBuilder extends V1beta2CELDeviceSelectorFluent implements VisitableBuilder{ V1beta2CELDeviceSelectorFluent fluent; 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 index b36ca6e82a..003c434504 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2CELDeviceSelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2CELDeviceSelectorFluent> extends BaseFluent{ private String expression; @@ -51,7 +53,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2CELDeviceSelectorFluent that = (V1beta2CELDeviceSelectorFluent) o; + V1beta2CELDeviceSelectorFluent that = (V1beta2CELDeviceSelectorFluent) o; if (!(Objects.equals(expression, that.expression))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java index e75973f61d..caf5e4881f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2CapacityRequestPolicyBuilder extends V1beta2CapacityRequestPolicyFluent implements VisitableBuilder{ V1beta2CapacityRequestPolicyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java index 299b043508..e988f482ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java @@ -25,12 +25,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2CapacityRequestPolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2CapacityRequestPolicyFluent> extends BaseFluent{ private Quantity _default; private V1beta2CapacityRequestPolicyRangeBuilder validRange; @@ -45,7 +47,7 @@ public V1beta2CapacityRequestPolicyFluent(V1beta2CapacityRequestPolicy instance) public A addAllToValidValues(Collection items) { if (this.validValues == null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); } for (Quantity item : items) { this.validValues.add(item); @@ -59,7 +61,7 @@ public A addNewValidValue(String value) { public A addToValidValues(Quantity... items) { if (this.validValues == null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); } for (Quantity item : items) { this.validValues.add(item); @@ -69,7 +71,7 @@ public A addToValidValues(Quantity... items) { public A addToValidValues(int index,Quantity item) { if (this.validValues == null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); } this.validValues.add(index, item); return (A) this; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2CapacityRequestPolicyFluent that = (V1beta2CapacityRequestPolicyFluent) o; + V1beta2CapacityRequestPolicyFluent that = (V1beta2CapacityRequestPolicyFluent) o; if (!(Objects.equals(_default, that._default))) { return false; } @@ -198,7 +200,7 @@ public A removeFromValidValues(Quantity... items) { public A setToValidValues(int index,Quantity item) { if (this.validValues == null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); } this.validValues.set(index, item); return (A) this; @@ -235,11 +237,11 @@ public A withNewDefault(String value) { } public ValidRangeNested withNewValidRange() { - return new ValidRangeNested(null); + return new ValidRangeNested<>(null); } public ValidRangeNested withNewValidRangeLike(V1beta2CapacityRequestPolicyRange item) { - return new ValidRangeNested(item); + return new ValidRangeNested<>(item); } public A withValidRange(V1beta2CapacityRequestPolicyRange validRange) { @@ -248,15 +250,15 @@ public A withValidRange(V1beta2CapacityRequestPolicyRange validRange) { this.validRange = new V1beta2CapacityRequestPolicyRangeBuilder(validRange); this._visitables.get("validRange").add(this.validRange); } else { - this.validRange = null; this._visitables.get("validRange").remove(this.validRange); + this.validRange = null; } return (A) this; } public A withValidValues(List validValues) { if (validValues != null) { - this.validValues = new ArrayList(); + this.validValues = new ArrayList<>(); for (Quantity item : validValues) { this.addToValidValues(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java index e9c3d07e2f..7e13a04c81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2CapacityRequestPolicyRangeBuilder extends V1beta2CapacityRequestPolicyRangeFluent implements VisitableBuilder{ V1beta2CapacityRequestPolicyRangeFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java index 66dfde653b..ad1746cd6d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2CapacityRequestPolicyRangeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2CapacityRequestPolicyRangeFluent> extends BaseFluent{ private Quantity max; private Quantity min; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2CapacityRequestPolicyRangeFluent that = (V1beta2CapacityRequestPolicyRangeFluent) o; + V1beta2CapacityRequestPolicyRangeFluent that = (V1beta2CapacityRequestPolicyRangeFluent) o; if (!(Objects.equals(max, that.max))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java index 933b072085..1ec05103f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2CapacityRequirementsBuilder extends V1beta2CapacityRequirementsFluent implements VisitableBuilder{ V1beta2CapacityRequirementsFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java index 97233d72db..69e7ab95eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java @@ -21,12 +21,14 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2CapacityRequirementsFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2CapacityRequirementsFluent> extends BaseFluent{ private Map requests; @@ -39,7 +41,7 @@ public V1beta2CapacityRequirementsFluent(V1beta2CapacityRequirements instance) { public A addToRequests(Map map) { if (this.requests == null && map != null) { - this.requests = new LinkedHashMap(); + this.requests = new LinkedHashMap<>(); } if (map != null) { this.requests.putAll(map); @@ -49,7 +51,7 @@ public A addToRequests(Map map) { public A addToRequests(String key,Quantity value) { if (this.requests == null && key != null && value != null) { - this.requests = new LinkedHashMap(); + this.requests = new LinkedHashMap<>(); } if (key != null && value != null) { this.requests.put(key, value); @@ -74,7 +76,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2CapacityRequirementsFluent that = (V1beta2CapacityRequirementsFluent) o; + V1beta2CapacityRequirementsFluent that = (V1beta2CapacityRequirementsFluent) o; if (!(Objects.equals(requests, that.requests))) { return false; } @@ -132,7 +134,7 @@ public A withRequests(Map requests) { if (requests == null) { this.requests = null; } else { - this.requests = new LinkedHashMap(requests); + this.requests = new LinkedHashMap<>(requests); } return (A) this; } 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 index 9f23ce26ed..d893423dac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2CounterBuilder extends V1beta2CounterFluent implements VisitableBuilder{ V1beta2CounterFluent fluent; 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 index 1104be7f09..ab7e07385b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2CounterFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2CounterFluent> extends BaseFluent{ private Quantity value; @@ -52,7 +54,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2CounterFluent that = (V1beta2CounterFluent) o; + V1beta2CounterFluent that = (V1beta2CounterFluent) o; if (!(Objects.equals(value, that.value))) { return false; } 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 index 95dac79a43..f38572086d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2CounterSetBuilder extends V1beta2CounterSetFluent implements VisitableBuilder{ V1beta2CounterSetFluent fluent; 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 index 2b30ada58e..7533703311 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java @@ -20,12 +20,14 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2CounterSetFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2CounterSetFluent> extends BaseFluent{ private Map counters; private String name; @@ -39,7 +41,7 @@ public V1beta2CounterSetFluent(V1beta2CounterSet instance) { public A addToCounters(Map map) { if (this.counters == null && map != null) { - this.counters = new LinkedHashMap(); + this.counters = new LinkedHashMap<>(); } if (map != null) { this.counters.putAll(map); @@ -49,7 +51,7 @@ public A addToCounters(Map map) { public A addToCounters(String key,V1beta2Counter value) { if (this.counters == null && key != null && value != null) { - this.counters = new LinkedHashMap(); + this.counters = new LinkedHashMap<>(); } if (key != null && value != null) { this.counters.put(key, value); @@ -75,7 +77,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2CounterSetFluent that = (V1beta2CounterSetFluent) o; + V1beta2CounterSetFluent that = (V1beta2CounterSetFluent) o; if (!(Objects.equals(counters, that.counters))) { return false; } @@ -149,7 +151,7 @@ public A withCounters(Map counters) { if (counters == null) { this.counters = null; } else { - this.counters = new LinkedHashMap(counters); + this.counters = new LinkedHashMap<>(counters); } return (A) this; } 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 index cf45473f89..bd7c33ccb3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceAllocationConfigurationBuilder extends V1beta2DeviceAllocationConfigurationFluent implements VisitableBuilder{ V1beta2DeviceAllocationConfigurationFluent fluent; 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 index d57dd87a91..8d5c0a91d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java @@ -24,12 +24,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceAllocationConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceAllocationConfigurationFluent> extends BaseFluent{ private V1beta2OpaqueDeviceConfigurationBuilder opaque; private List requests; @@ -44,7 +46,7 @@ public V1beta2DeviceAllocationConfigurationFluent(V1beta2DeviceAllocationConfigu public A addAllToRequests(Collection items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -54,7 +56,7 @@ public A addAllToRequests(Collection items) { public A addToRequests(String... items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -64,7 +66,7 @@ public A addToRequests(String... items) { public A addToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.add(index, item); return (A) this; @@ -105,7 +107,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceAllocationConfigurationFluent that = (V1beta2DeviceAllocationConfigurationFluent) o; + V1beta2DeviceAllocationConfigurationFluent that = (V1beta2DeviceAllocationConfigurationFluent) o; if (!(Objects.equals(opaque, that.opaque))) { return false; } @@ -194,7 +196,7 @@ public A removeFromRequests(String... items) { public A setToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.set(index, item); return (A) this; @@ -222,11 +224,11 @@ public String toString() { } public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); + return new OpaqueNested<>(null); } public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); + return new OpaqueNested<>(item); } public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { @@ -235,15 +237,15 @@ public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); this._visitables.get("opaque").add(this.opaque); } else { - this.opaque = null; this._visitables.get("opaque").remove(this.opaque); + this.opaque = null; } return (A) this; } public A withRequests(List requests) { if (requests != null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); for (String item : requests) { this.addToRequests(item); } 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 index 4d77be936f..2406c19ef2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceAllocationResultBuilder extends V1beta2DeviceAllocationResultFluent implements VisitableBuilder{ V1beta2DeviceAllocationResultFluent fluent; 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 index 65355c35a5..bc00bb7697 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceAllocationResultFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceAllocationResultFluent> extends BaseFluent{ private ArrayList config; private ArrayList results; @@ -44,7 +46,7 @@ public V1beta2DeviceAllocationResultFluent(V1beta2DeviceAllocationResult instanc public A addAllToConfig(Collection items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1beta2DeviceAllocationConfiguration item : items) { V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); @@ -56,7 +58,7 @@ public A addAllToConfig(Collection items) public A addAllToResults(Collection items) { if (this.results == null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); } for (V1beta2DeviceRequestAllocationResult item : items) { V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); @@ -67,24 +69,24 @@ public A addAllToResults(Collection items) } public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + return new ConfigNested<>(-1, null); } public ConfigNested addNewConfigLike(V1beta2DeviceAllocationConfiguration item) { - return new ConfigNested(-1, item); + return new ConfigNested<>(-1, item); } public ResultsNested addNewResult() { - return new ResultsNested(-1, null); + return new ResultsNested<>(-1, null); } public ResultsNested addNewResultLike(V1beta2DeviceRequestAllocationResult item) { - return new ResultsNested(-1, item); + return new ResultsNested<>(-1, item); } public A addToConfig(V1beta2DeviceAllocationConfiguration... items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1beta2DeviceAllocationConfiguration item : items) { V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); @@ -96,7 +98,7 @@ public A addToConfig(V1beta2DeviceAllocationConfiguration... items) { public A addToConfig(int index,V1beta2DeviceAllocationConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -111,7 +113,7 @@ public A addToConfig(int index,V1beta2DeviceAllocationConfiguration item) { public A addToResults(V1beta2DeviceRequestAllocationResult... items) { if (this.results == null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); } for (V1beta2DeviceRequestAllocationResult item : items) { V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); @@ -123,7 +125,7 @@ public A addToResults(V1beta2DeviceRequestAllocationResult... items) { public A addToResults(int index,V1beta2DeviceRequestAllocationResult item) { if (this.results == null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); } V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); if (index < 0 || index >= this.results.size()) { @@ -276,7 +278,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceAllocationResultFluent that = (V1beta2DeviceAllocationResultFluent) o; + V1beta2DeviceAllocationResultFluent that = (V1beta2DeviceAllocationResultFluent) o; if (!(Objects.equals(config, that.config))) { return false; } @@ -369,6 +371,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("config"); while (each.hasNext()) { V1beta2DeviceAllocationConfigurationBuilder builder = each.next(); @@ -385,6 +388,7 @@ public A removeMatchingFromResults(Predicate each = results.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("results"); while (each.hasNext()) { V1beta2DeviceRequestAllocationResultBuilder builder = each.next(); @@ -397,16 +401,16 @@ public A removeMatchingFromResults(Predicate setNewConfigLike(int index,V1beta2DeviceAllocationConfiguration item) { - return new ConfigNested(index, item); + return new ConfigNested<>(index, item); } public ResultsNested setNewResultLike(int index,V1beta2DeviceRequestAllocationResult item) { - return new ResultsNested(index, item); + return new ResultsNested<>(index, item); } public A setToConfig(int index,V1beta2DeviceAllocationConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -421,7 +425,7 @@ public A setToConfig(int index,V1beta2DeviceAllocationConfiguration item) { public A setToResults(int index,V1beta2DeviceRequestAllocationResult item) { if (this.results == null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); } V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); if (index < 0 || index >= this.results.size()) { @@ -455,7 +459,7 @@ public A withConfig(List config) { this._visitables.get("config").clear(); } if (config != null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); for (V1beta2DeviceAllocationConfiguration item : config) { this.addToConfig(item); } @@ -483,7 +487,7 @@ public A withResults(List results) { this._visitables.get("results").clear(); } if (results != null) { - this.results = new ArrayList(); + this.results = new ArrayList<>(); for (V1beta2DeviceRequestAllocationResult item : results) { this.addToResults(item); } 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 index 6cfb98f182..9518e96102 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceAttributeBuilder extends V1beta2DeviceAttributeFluent implements VisitableBuilder{ V1beta2DeviceAttributeFluent fluent; 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 index 397c29e580..fc803c9eae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java @@ -24,12 +24,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceAttributeFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceAttributeFluent> extends BaseFluent{ private Long _int; private Boolean bool; @@ -49,7 +51,7 @@ public V1beta2DeviceAttributeFluent(V1beta2DeviceAttribute instance) { public A addAllToBools(Collection items) { if (this.bools == null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); } for (Boolean item : items) { this.bools.add(item); @@ -59,7 +61,7 @@ public A addAllToBools(Collection items) { public A addAllToInts(Collection items) { if (this.ints == null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); } for (Long item : items) { this.ints.add(item); @@ -69,7 +71,7 @@ public A addAllToInts(Collection items) { public A addAllToStrings(Collection items) { if (this.strings == null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); } for (String item : items) { this.strings.add(item); @@ -79,7 +81,7 @@ public A addAllToStrings(Collection items) { public A addAllToVersions(Collection items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (String item : items) { this.versions.add(item); @@ -89,7 +91,7 @@ public A addAllToVersions(Collection items) { public A addToBools(Boolean... items) { if (this.bools == null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); } for (Boolean item : items) { this.bools.add(item); @@ -99,7 +101,7 @@ public A addToBools(Boolean... items) { public A addToBools(int index,Boolean item) { if (this.bools == null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); } this.bools.add(index, item); return (A) this; @@ -107,7 +109,7 @@ public A addToBools(int index,Boolean item) { public A addToInts(Long... items) { if (this.ints == null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); } for (Long item : items) { this.ints.add(item); @@ -117,7 +119,7 @@ public A addToInts(Long... items) { public A addToInts(int index,Long item) { if (this.ints == null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); } this.ints.add(index, item); return (A) this; @@ -125,7 +127,7 @@ public A addToInts(int index,Long item) { public A addToStrings(String... items) { if (this.strings == null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); } for (String item : items) { this.strings.add(item); @@ -135,7 +137,7 @@ public A addToStrings(String... items) { public A addToStrings(int index,String item) { if (this.strings == null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); } this.strings.add(index, item); return (A) this; @@ -143,7 +145,7 @@ public A addToStrings(int index,String item) { public A addToVersions(String... items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (String item : items) { this.versions.add(item); @@ -153,7 +155,7 @@ public A addToVersions(String... items) { public A addToVersions(int index,String item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } this.versions.add(index, item); return (A) this; @@ -182,7 +184,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceAttributeFluent that = (V1beta2DeviceAttributeFluent) o; + V1beta2DeviceAttributeFluent that = (V1beta2DeviceAttributeFluent) o; if (!(Objects.equals(bool, that.bool))) { return false; } @@ -480,7 +482,7 @@ public A removeFromVersions(String... items) { public A setToBools(int index,Boolean item) { if (this.bools == null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); } this.bools.set(index, item); return (A) this; @@ -488,7 +490,7 @@ public A setToBools(int index,Boolean item) { public A setToInts(int index,Long item) { if (this.ints == null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); } this.ints.set(index, item); return (A) this; @@ -496,7 +498,7 @@ public A setToInts(int index,Long item) { public A setToStrings(int index,String item) { if (this.strings == null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); } this.strings.set(index, item); return (A) this; @@ -504,7 +506,7 @@ public A setToStrings(int index,String item) { public A setToVersions(int index,String item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } this.versions.set(index, item); return (A) this; @@ -567,7 +569,7 @@ public A withBool(Boolean bool) { public A withBools(List bools) { if (bools != null) { - this.bools = new ArrayList(); + this.bools = new ArrayList<>(); for (Boolean item : bools) { this.addToBools(item); } @@ -597,7 +599,7 @@ public A withInt(Long _int) { public A withInts(List ints) { if (ints != null) { - this.ints = new ArrayList(); + this.ints = new ArrayList<>(); for (Long item : ints) { this.addToInts(item); } @@ -627,7 +629,7 @@ public A withString(String string) { public A withStrings(List strings) { if (strings != null) { - this.strings = new ArrayList(); + this.strings = new ArrayList<>(); for (String item : strings) { this.addToStrings(item); } @@ -657,7 +659,7 @@ public A withVersion(String version) { public A withVersions(List versions) { if (versions != null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); for (String item : versions) { this.addToVersions(item); } 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 index 739faf436c..ff6e94792c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceBuilder extends V1beta2DeviceFluent implements VisitableBuilder{ V1beta2DeviceFluent fluent; @@ -47,7 +48,7 @@ public V1beta2Device build() { buildable.setCapacity(fluent.getCapacity()); buildable.setConsumesCounters(fluent.buildConsumesCounters()); buildable.setName(fluent.getName()); - buildable.setNodeAllocatableResourceMappings(fluent.getNodeAllocatableResourceMappings()); + buildable.setNodeAllocatableResources(fluent.getNodeAllocatableResources()); buildable.setNodeName(fluent.getNodeName()); buildable.setNodeSelector(fluent.buildNodeSelector()); buildable.setTaints(fluent.buildTaints()); 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 index dc0beec351..87f3466f84 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceCapacityBuilder extends V1beta2DeviceCapacityFluent implements VisitableBuilder{ V1beta2DeviceCapacityFluent fluent; 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 index 010166b8a3..3d6062e18a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java @@ -21,12 +21,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceCapacityFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceCapacityFluent> extends BaseFluent{ private V1beta2CapacityRequestPolicyBuilder requestPolicy; private Quantity value; @@ -72,7 +74,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceCapacityFluent that = (V1beta2DeviceCapacityFluent) o; + V1beta2DeviceCapacityFluent that = (V1beta2DeviceCapacityFluent) o; if (!(Objects.equals(requestPolicy, that.requestPolicy))) { return false; } @@ -115,11 +117,11 @@ public String toString() { } public RequestPolicyNested withNewRequestPolicy() { - return new RequestPolicyNested(null); + return new RequestPolicyNested<>(null); } public RequestPolicyNested withNewRequestPolicyLike(V1beta2CapacityRequestPolicy item) { - return new RequestPolicyNested(item); + return new RequestPolicyNested<>(item); } public A withNewValue(String value) { @@ -132,8 +134,8 @@ public A withRequestPolicy(V1beta2CapacityRequestPolicy requestPolicy) { this.requestPolicy = new V1beta2CapacityRequestPolicyBuilder(requestPolicy); this._visitables.get("requestPolicy").add(this.requestPolicy); } else { - this.requestPolicy = null; this._visitables.get("requestPolicy").remove(this.requestPolicy); + this.requestPolicy = null; } return (A) this; } 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 index 58674f8443..c590948338 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceClaimBuilder extends V1beta2DeviceClaimFluent implements VisitableBuilder{ V1beta2DeviceClaimFluent fluent; 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 index f7ff829ddd..bfa8f930e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceClaimConfigurationBuilder extends V1beta2DeviceClaimConfigurationFluent implements VisitableBuilder{ V1beta2DeviceClaimConfigurationFluent fluent; 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 index 75cb75fee8..0721252214 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java @@ -24,12 +24,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceClaimConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceClaimConfigurationFluent> extends BaseFluent{ private V1beta2OpaqueDeviceConfigurationBuilder opaque; private List requests; @@ -43,7 +45,7 @@ public V1beta2DeviceClaimConfigurationFluent(V1beta2DeviceClaimConfiguration ins public A addAllToRequests(Collection items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -53,7 +55,7 @@ public A addAllToRequests(Collection items) { public A addToRequests(String... items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -63,7 +65,7 @@ public A addToRequests(String... items) { public A addToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.add(index, item); return (A) this; @@ -103,7 +105,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceClaimConfigurationFluent that = (V1beta2DeviceClaimConfigurationFluent) o; + V1beta2DeviceClaimConfigurationFluent that = (V1beta2DeviceClaimConfigurationFluent) o; if (!(Objects.equals(opaque, that.opaque))) { return false; } @@ -181,7 +183,7 @@ public A removeFromRequests(String... items) { public A setToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.set(index, item); return (A) this; @@ -204,11 +206,11 @@ public String toString() { } public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); + return new OpaqueNested<>(null); } public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); + return new OpaqueNested<>(item); } public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { @@ -217,15 +219,15 @@ public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); this._visitables.get("opaque").add(this.opaque); } else { - this.opaque = null; this._visitables.get("opaque").remove(this.opaque); + this.opaque = null; } return (A) this; } public A withRequests(List requests) { if (requests != null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); for (String item : requests) { this.addToRequests(item); } 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 index 531979aa51..d5c15e0e29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceClaimFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceClaimFluent> extends BaseFluent{ private ArrayList config; private ArrayList constraints; @@ -45,7 +47,7 @@ public V1beta2DeviceClaimFluent(V1beta2DeviceClaim instance) { public A addAllToConfig(Collection items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1beta2DeviceClaimConfiguration item : items) { V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); @@ -57,7 +59,7 @@ public A addAllToConfig(Collection items) { public A addAllToConstraints(Collection items) { if (this.constraints == null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); } for (V1beta2DeviceConstraint item : items) { V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); @@ -69,7 +71,7 @@ public A addAllToConstraints(Collection items) { public A addAllToRequests(Collection items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (V1beta2DeviceRequest item : items) { V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); @@ -80,32 +82,32 @@ public A addAllToRequests(Collection items) { } public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + return new ConfigNested<>(-1, null); } public ConfigNested addNewConfigLike(V1beta2DeviceClaimConfiguration item) { - return new ConfigNested(-1, item); + return new ConfigNested<>(-1, item); } public ConstraintsNested addNewConstraint() { - return new ConstraintsNested(-1, null); + return new ConstraintsNested<>(-1, null); } public ConstraintsNested addNewConstraintLike(V1beta2DeviceConstraint item) { - return new ConstraintsNested(-1, item); + return new ConstraintsNested<>(-1, item); } public RequestsNested addNewRequest() { - return new RequestsNested(-1, null); + return new RequestsNested<>(-1, null); } public RequestsNested addNewRequestLike(V1beta2DeviceRequest item) { - return new RequestsNested(-1, item); + return new RequestsNested<>(-1, item); } public A addToConfig(V1beta2DeviceClaimConfiguration... items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1beta2DeviceClaimConfiguration item : items) { V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); @@ -117,7 +119,7 @@ public A addToConfig(V1beta2DeviceClaimConfiguration... items) { public A addToConfig(int index,V1beta2DeviceClaimConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -132,7 +134,7 @@ public A addToConfig(int index,V1beta2DeviceClaimConfiguration item) { public A addToConstraints(V1beta2DeviceConstraint... items) { if (this.constraints == null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); } for (V1beta2DeviceConstraint item : items) { V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); @@ -144,7 +146,7 @@ public A addToConstraints(V1beta2DeviceConstraint... items) { public A addToConstraints(int index,V1beta2DeviceConstraint item) { if (this.constraints == null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); } V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); if (index < 0 || index >= this.constraints.size()) { @@ -159,7 +161,7 @@ public A addToConstraints(int index,V1beta2DeviceConstraint item) { public A addToRequests(V1beta2DeviceRequest... items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (V1beta2DeviceRequest item : items) { V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); @@ -171,7 +173,7 @@ public A addToRequests(V1beta2DeviceRequest... items) { public A addToRequests(int index,V1beta2DeviceRequest item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); if (index < 0 || index >= this.requests.size()) { @@ -386,7 +388,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceClaimFluent that = (V1beta2DeviceClaimFluent) o; + V1beta2DeviceClaimFluent that = (V1beta2DeviceClaimFluent) o; if (!(Objects.equals(config, that.config))) { return false; } @@ -519,6 +521,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("config"); while (each.hasNext()) { V1beta2DeviceClaimConfigurationBuilder builder = each.next(); @@ -535,6 +538,7 @@ public A removeMatchingFromConstraints(Predicate return (A) this; } Iterator each = constraints.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("constraints"); while (each.hasNext()) { V1beta2DeviceConstraintBuilder builder = each.next(); @@ -551,6 +555,7 @@ public A removeMatchingFromRequests(Predicate predi return (A) this; } Iterator each = requests.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("requests"); while (each.hasNext()) { V1beta2DeviceRequestBuilder builder = each.next(); @@ -563,20 +568,20 @@ public A removeMatchingFromRequests(Predicate predi } public ConfigNested setNewConfigLike(int index,V1beta2DeviceClaimConfiguration item) { - return new ConfigNested(index, item); + return new ConfigNested<>(index, item); } public ConstraintsNested setNewConstraintLike(int index,V1beta2DeviceConstraint item) { - return new ConstraintsNested(index, item); + return new ConstraintsNested<>(index, item); } public RequestsNested setNewRequestLike(int index,V1beta2DeviceRequest item) { - return new RequestsNested(index, item); + return new RequestsNested<>(index, item); } public A setToConfig(int index,V1beta2DeviceClaimConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -591,7 +596,7 @@ public A setToConfig(int index,V1beta2DeviceClaimConfiguration item) { public A setToConstraints(int index,V1beta2DeviceConstraint item) { if (this.constraints == null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); } V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); if (index < 0 || index >= this.constraints.size()) { @@ -606,7 +611,7 @@ public A setToConstraints(int index,V1beta2DeviceConstraint item) { public A setToRequests(int index,V1beta2DeviceRequest item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); if (index < 0 || index >= this.requests.size()) { @@ -645,7 +650,7 @@ public A withConfig(List config) { this._visitables.get("config").clear(); } if (config != null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); for (V1beta2DeviceClaimConfiguration item : config) { this.addToConfig(item); } @@ -673,7 +678,7 @@ public A withConstraints(List constraints) { this._visitables.get("constraints").clear(); } if (constraints != null) { - this.constraints = new ArrayList(); + this.constraints = new ArrayList<>(); for (V1beta2DeviceConstraint item : constraints) { this.addToConstraints(item); } @@ -701,7 +706,7 @@ public A withRequests(List requests) { this._visitables.get("requests").clear(); } if (requests != null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); for (V1beta2DeviceRequest item : requests) { this.addToRequests(item); } 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 index 532cf80e6d..abd2837815 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceClassBuilder extends V1beta2DeviceClassFluent implements VisitableBuilder{ V1beta2DeviceClassFluent fluent; 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 index 849213fade..bfb3b2dd1f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceClassConfigurationBuilder extends V1beta2DeviceClassConfigurationFluent implements VisitableBuilder{ V1beta2DeviceClassConfigurationFluent fluent; 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 index 37ea504fb0..270dac45fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceClassConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceClassConfigurationFluent> extends BaseFluent{ private V1beta2OpaqueDeviceConfigurationBuilder opaque; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceClassConfigurationFluent that = (V1beta2DeviceClassConfigurationFluent) o; + V1beta2DeviceClassConfigurationFluent that = (V1beta2DeviceClassConfigurationFluent) o; if (!(Objects.equals(opaque, that.opaque))) { return false; } @@ -96,11 +98,11 @@ public String toString() { } public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); + return new OpaqueNested<>(null); } public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); + return new OpaqueNested<>(item); } public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { @@ -109,8 +111,8 @@ public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); this._visitables.get("opaque").add(this.opaque); } else { - this.opaque = null; this._visitables.get("opaque").remove(this.opaque); + this.opaque = null; } return (A) this; } 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 index a5b9f62f7d..3b7951cbe6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceClassFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceClassFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceClassFluent that = (V1beta2DeviceClassFluent) o; + V1beta2DeviceClassFluent that = (V1beta2DeviceClassFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta2DeviceClassSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1beta2DeviceClassSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1beta2DeviceClassSpec spec) { this.spec = new V1beta2DeviceClassSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } 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 index 2f3239f85f..be7b2fb244 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceClassListBuilder extends V1beta2DeviceClassListFluent implements VisitableBuilder{ V1beta2DeviceClassListFluent fluent; 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 index 63715d3c23..20022ce4b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceClassListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceClassListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta2DeviceClassListFluent(V1beta2DeviceClassList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta2DeviceClass item : items) { V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta2DeviceClass item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta2DeviceClass... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta2DeviceClass item : items) { V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta2DeviceClass... items) { public A addToItems(int index,V1beta2DeviceClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceClassListFluent that = (V1beta2DeviceClassListFluent) o; + V1beta2DeviceClassListFluent that = (V1beta2DeviceClassListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate) return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta2DeviceClassBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate) } public ItemsNested setNewItemLike(int index,V1beta2DeviceClass item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta2DeviceClass item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta2DeviceClass item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta2DeviceClassFluent> implements Nested{ 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 index 15a82b70da..1905c95835 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceClassSpecBuilder extends V1beta2DeviceClassSpecFluent implements VisitableBuilder{ V1beta2DeviceClassSpecFluent fluent; 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 index 83e2cd7113..f16810e81c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceClassSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceClassSpecFluent> extends BaseFluent{ private ArrayList config; private String extendedResourceName; @@ -45,7 +47,7 @@ public V1beta2DeviceClassSpecFluent(V1beta2DeviceClassSpec instance) { public A addAllToConfig(Collection items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1beta2DeviceClassConfiguration item : items) { V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); @@ -57,7 +59,7 @@ public A addAllToConfig(Collection items) { public A addAllToSelectors(Collection items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1beta2DeviceSelector item : items) { V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); @@ -68,24 +70,24 @@ public A addAllToSelectors(Collection items) { } public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + return new ConfigNested<>(-1, null); } public ConfigNested addNewConfigLike(V1beta2DeviceClassConfiguration item) { - return new ConfigNested(-1, item); + return new ConfigNested<>(-1, item); } public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + return new SelectorsNested<>(-1, null); } public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { - return new SelectorsNested(-1, item); + return new SelectorsNested<>(-1, item); } public A addToConfig(V1beta2DeviceClassConfiguration... items) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } for (V1beta2DeviceClassConfiguration item : items) { V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); @@ -97,7 +99,7 @@ public A addToConfig(V1beta2DeviceClassConfiguration... items) { public A addToConfig(int index,V1beta2DeviceClassConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -112,7 +114,7 @@ public A addToConfig(int index,V1beta2DeviceClassConfiguration item) { public A addToSelectors(V1beta2DeviceSelector... items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1beta2DeviceSelector item : items) { V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); @@ -124,7 +126,7 @@ public A addToSelectors(V1beta2DeviceSelector... items) { public A addToSelectors(int index,V1beta2DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -278,7 +280,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceClassSpecFluent that = (V1beta2DeviceClassSpecFluent) o; + V1beta2DeviceClassSpecFluent that = (V1beta2DeviceClassSpecFluent) o; if (!(Objects.equals(config, that.config))) { return false; } @@ -382,6 +384,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("config"); while (each.hasNext()) { V1beta2DeviceClassConfigurationBuilder builder = each.next(); @@ -398,6 +401,7 @@ public A removeMatchingFromSelectors(Predicate pre return (A) this; } Iterator each = selectors.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1beta2DeviceSelectorBuilder builder = each.next(); @@ -410,16 +414,16 @@ public A removeMatchingFromSelectors(Predicate pre } public ConfigNested setNewConfigLike(int index,V1beta2DeviceClassConfiguration item) { - return new ConfigNested(index, item); + return new ConfigNested<>(index, item); } public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { - return new SelectorsNested(index, item); + return new SelectorsNested<>(index, item); } public A setToConfig(int index,V1beta2DeviceClassConfiguration item) { if (this.config == null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); } V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); if (index < 0 || index >= this.config.size()) { @@ -434,7 +438,7 @@ public A setToConfig(int index,V1beta2DeviceClassConfiguration item) { public A setToSelectors(int index,V1beta2DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -473,7 +477,7 @@ public A withConfig(List config) { this._visitables.get("config").clear(); } if (config != null) { - this.config = new ArrayList(); + this.config = new ArrayList<>(); for (V1beta2DeviceClassConfiguration item : config) { this.addToConfig(item); } @@ -506,7 +510,7 @@ public A withSelectors(List selectors) { this._visitables.get("selectors").clear(); } if (selectors != null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); for (V1beta2DeviceSelector item : selectors) { this.addToSelectors(item); } 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 index 44894a12bd..6dffbcec29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceConstraintBuilder extends V1beta2DeviceConstraintFluent implements VisitableBuilder{ V1beta2DeviceConstraintFluent fluent; 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 index eceaf31cef..a668177c29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceConstraintFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceConstraintFluent> extends BaseFluent{ private String distinctAttribute; private String matchAttribute; @@ -42,7 +44,7 @@ public V1beta2DeviceConstraintFluent(V1beta2DeviceConstraint instance) { public A addAllToRequests(Collection items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -52,7 +54,7 @@ public A addAllToRequests(Collection items) { public A addToRequests(String... items) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } for (String item : items) { this.requests.add(item); @@ -62,7 +64,7 @@ public A addToRequests(String... items) { public A addToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.add(index, item); return (A) this; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceConstraintFluent that = (V1beta2DeviceConstraintFluent) o; + V1beta2DeviceConstraintFluent that = (V1beta2DeviceConstraintFluent) o; if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { return false; } @@ -180,7 +182,7 @@ public A removeFromRequests(String... items) { public A setToRequests(int index,String item) { if (this.requests == null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); } this.requests.set(index, item); return (A) this; @@ -219,7 +221,7 @@ public A withMatchAttribute(String matchAttribute) { public A withRequests(List requests) { if (requests != null) { - this.requests = new ArrayList(); + this.requests = new ArrayList<>(); for (String item : requests) { this.addToRequests(item); } 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 index d06a199458..ea19400f42 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceCounterConsumptionBuilder extends V1beta2DeviceCounterConsumptionFluent implements VisitableBuilder{ V1beta2DeviceCounterConsumptionFluent fluent; @@ -38,6 +39,7 @@ public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumptionFlu public V1beta2DeviceCounterConsumption build() { V1beta2DeviceCounterConsumption buildable = new V1beta2DeviceCounterConsumption(); + buildable.setCompatibilityGroups(fluent.getCompatibilityGroups()); buildable.setCounterSet(fluent.getCounterSet()); buildable.setCounters(fluent.getCounters()); return buildable; 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 index 25e57c5d0b..ba95f2ed5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java @@ -17,16 +17,23 @@ import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.Objects; +import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceCounterConsumptionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceCounterConsumptionFluent> extends BaseFluent{ + private List compatibilityGroups; private String counterSet; private Map counters; @@ -37,9 +44,37 @@ public V1beta2DeviceCounterConsumptionFluent(V1beta2DeviceCounterConsumption ins this.copyInstance(instance); } + public A addAllToCompatibilityGroups(Collection items) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + for (String item : items) { + this.compatibilityGroups.add(item); + } + return (A) this; + } + + public A addToCompatibilityGroups(String... items) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + for (String item : items) { + this.compatibilityGroups.add(item); + } + return (A) this; + } + + public A addToCompatibilityGroups(int index,String item) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + this.compatibilityGroups.add(index, item); + return (A) this; + } + public A addToCounters(Map map) { if (this.counters == null && map != null) { - this.counters = new LinkedHashMap(); + this.counters = new LinkedHashMap<>(); } if (map != null) { this.counters.putAll(map); @@ -49,7 +84,7 @@ public A addToCounters(Map map) { public A addToCounters(String key,V1beta2Counter value) { if (this.counters == null && key != null && value != null) { - this.counters = new LinkedHashMap(); + this.counters = new LinkedHashMap<>(); } if (key != null && value != null) { this.counters.put(key, value); @@ -60,6 +95,7 @@ public A addToCounters(String key,V1beta2Counter value) { protected void copyInstance(V1beta2DeviceCounterConsumption instance) { instance = instance != null ? instance : new V1beta2DeviceCounterConsumption(); if (instance != null) { + this.withCompatibilityGroups(instance.getCompatibilityGroups()); this.withCounterSet(instance.getCounterSet()); this.withCounters(instance.getCounters()); } @@ -75,7 +111,10 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceCounterConsumptionFluent that = (V1beta2DeviceCounterConsumptionFluent) o; + V1beta2DeviceCounterConsumptionFluent that = (V1beta2DeviceCounterConsumptionFluent) o; + if (!(Objects.equals(compatibilityGroups, that.compatibilityGroups))) { + return false; + } if (!(Objects.equals(counterSet, that.counterSet))) { return false; } @@ -85,6 +124,14 @@ public boolean equals(Object o) { return true; } + public String getCompatibilityGroup(int index) { + return this.compatibilityGroups.get(index); + } + + public List getCompatibilityGroups() { + return this.compatibilityGroups; + } + public String getCounterSet() { return this.counterSet; } @@ -93,6 +140,27 @@ public Map getCounters() { return this.counters; } + public String getFirstCompatibilityGroup() { + return this.compatibilityGroups.get(0); + } + + public String getLastCompatibilityGroup() { + return this.compatibilityGroups.get(compatibilityGroups.size() - 1); + } + + public String getMatchingCompatibilityGroup(Predicate predicate) { + for (String item : compatibilityGroups) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasCompatibilityGroups() { + return this.compatibilityGroups != null && !(this.compatibilityGroups.isEmpty()); + } + public boolean hasCounterSet() { return this.counterSet != null; } @@ -101,8 +169,37 @@ public boolean hasCounters() { return this.counters != null; } + public boolean hasMatchingCompatibilityGroup(Predicate predicate) { + for (String item : compatibilityGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { - return Objects.hash(counterSet, counters); + return Objects.hash(compatibilityGroups, counterSet, counters); + } + + public A removeAllFromCompatibilityGroups(Collection items) { + if (this.compatibilityGroups == null) { + return (A) this; + } + for (String item : items) { + this.compatibilityGroups.remove(item); + } + return (A) this; + } + + public A removeFromCompatibilityGroups(String... items) { + if (this.compatibilityGroups == null) { + return (A) this; + } + for (String item : items) { + this.compatibilityGroups.remove(item); + } + return (A) this; } public A removeFromCounters(String key) { @@ -129,9 +226,22 @@ public A removeFromCounters(Map map) { return (A) this; } + public A setToCompatibilityGroups(int index,String item) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + this.compatibilityGroups.set(index, item); + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (!(compatibilityGroups == null) && !(compatibilityGroups.isEmpty())) { + sb.append("compatibilityGroups:"); + sb.append(compatibilityGroups); + sb.append(","); + } if (!(counterSet == null)) { sb.append("counterSet:"); sb.append(counterSet); @@ -145,6 +255,31 @@ public String toString() { return sb.toString(); } + public A withCompatibilityGroups(List compatibilityGroups) { + if (compatibilityGroups != null) { + this.compatibilityGroups = new ArrayList<>(); + for (String item : compatibilityGroups) { + this.addToCompatibilityGroups(item); + } + } else { + this.compatibilityGroups = null; + } + return (A) this; + } + + public A withCompatibilityGroups(String... compatibilityGroups) { + if (this.compatibilityGroups != null) { + this.compatibilityGroups.clear(); + _visitables.remove("compatibilityGroups"); + } + if (compatibilityGroups != null) { + for (String item : compatibilityGroups) { + this.addToCompatibilityGroups(item); + } + } + return (A) this; + } + public A withCounterSet(String counterSet) { this.counterSet = counterSet; return (A) this; @@ -154,7 +289,7 @@ public A withCounters(Map counters) { if (counters == null) { this.counters = null; } else { - this.counters = new LinkedHashMap(counters); + this.counters = new LinkedHashMap<>(counters); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceDerivedAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceDerivedAttributeBuilder.java new file mode 100644 index 0000000000..87d8096211 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceDerivedAttributeBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta2DeviceDerivedAttributeBuilder extends V1beta2DeviceDerivedAttributeFluent implements VisitableBuilder{ + + V1beta2DeviceDerivedAttributeFluent fluent; + + public V1beta2DeviceDerivedAttributeBuilder() { + this(new V1beta2DeviceDerivedAttribute()); + } + + public V1beta2DeviceDerivedAttributeBuilder(V1beta2DeviceDerivedAttributeFluent fluent) { + this(fluent, new V1beta2DeviceDerivedAttribute()); + } + + public V1beta2DeviceDerivedAttributeBuilder(V1beta2DeviceDerivedAttribute instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceDerivedAttributeBuilder(V1beta2DeviceDerivedAttributeFluent fluent,V1beta2DeviceDerivedAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceDerivedAttribute build() { + V1beta2DeviceDerivedAttribute buildable = new V1beta2DeviceDerivedAttribute(); + buildable.setExpression(fluent.getExpression()); + buildable.setName(fluent.getName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceDerivedAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceDerivedAttributeFluent.java new file mode 100644 index 0000000000..120c5ce8fb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceDerivedAttributeFluent.java @@ -0,0 +1,114 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceDerivedAttributeFluent> extends BaseFluent{ + + private String expression; + private String name; + + public V1beta2DeviceDerivedAttributeFluent() { + } + + public V1beta2DeviceDerivedAttributeFluent(V1beta2DeviceDerivedAttribute instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta2DeviceDerivedAttribute instance) { + instance = instance != null ? instance : new V1beta2DeviceDerivedAttribute(); + if (instance != null) { + this.withExpression(instance.getExpression()); + this.withName(instance.getName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceDerivedAttributeFluent that = (V1beta2DeviceDerivedAttributeFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public String getExpression() { + return this.expression; + } + + public String getName() { + return this.name; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(expression, name); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + +} \ 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 index 15d7bdcffd..2a89b9e0c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java @@ -29,12 +29,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceFluent> extends BaseFluent{ private Boolean allNodes; private Boolean allowMultipleAllocations; @@ -45,7 +47,7 @@ public class V1beta2DeviceFluent capacity; private ArrayList consumesCounters; private String name; - private Map nodeAllocatableResourceMappings; + private Map nodeAllocatableResources; private String nodeName; private V1NodeSelectorBuilder nodeSelector; private ArrayList taints; @@ -59,7 +61,7 @@ public V1beta2DeviceFluent(V1beta2Device instance) { public A addAllToBindingConditions(Collection items) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } for (String item : items) { this.bindingConditions.add(item); @@ -69,7 +71,7 @@ public A addAllToBindingConditions(Collection items) { public A addAllToBindingFailureConditions(Collection items) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } for (String item : items) { this.bindingFailureConditions.add(item); @@ -79,7 +81,7 @@ public A addAllToBindingFailureConditions(Collection items) { public A addAllToConsumesCounters(Collection items) { if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); } for (V1beta2DeviceCounterConsumption item : items) { V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); @@ -91,7 +93,7 @@ public A addAllToConsumesCounters(Collection it public A addAllToTaints(Collection items) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } for (V1beta2DeviceTaint item : items) { V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); @@ -102,24 +104,24 @@ public A addAllToTaints(Collection items) { } public ConsumesCountersNested addNewConsumesCounter() { - return new ConsumesCountersNested(-1, null); + return new ConsumesCountersNested<>(-1, null); } public ConsumesCountersNested addNewConsumesCounterLike(V1beta2DeviceCounterConsumption item) { - return new ConsumesCountersNested(-1, item); + return new ConsumesCountersNested<>(-1, item); } public TaintsNested addNewTaint() { - return new TaintsNested(-1, null); + return new TaintsNested<>(-1, null); } public TaintsNested addNewTaintLike(V1beta2DeviceTaint item) { - return new TaintsNested(-1, item); + return new TaintsNested<>(-1, item); } public A addToAttributes(Map map) { if (this.attributes == null && map != null) { - this.attributes = new LinkedHashMap(); + this.attributes = new LinkedHashMap<>(); } if (map != null) { this.attributes.putAll(map); @@ -129,7 +131,7 @@ public A addToAttributes(Map map) { public A addToAttributes(String key,V1beta2DeviceAttribute value) { if (this.attributes == null && key != null && value != null) { - this.attributes = new LinkedHashMap(); + this.attributes = new LinkedHashMap<>(); } if (key != null && value != null) { this.attributes.put(key, value); @@ -139,7 +141,7 @@ public A addToAttributes(String key,V1beta2DeviceAttribute value) { public A addToBindingConditions(String... items) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } for (String item : items) { this.bindingConditions.add(item); @@ -149,7 +151,7 @@ public A addToBindingConditions(String... items) { public A addToBindingConditions(int index,String item) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } this.bindingConditions.add(index, item); return (A) this; @@ -157,7 +159,7 @@ public A addToBindingConditions(int index,String item) { public A addToBindingFailureConditions(String... items) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } for (String item : items) { this.bindingFailureConditions.add(item); @@ -167,7 +169,7 @@ public A addToBindingFailureConditions(String... items) { public A addToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } this.bindingFailureConditions.add(index, item); return (A) this; @@ -175,7 +177,7 @@ public A addToBindingFailureConditions(int index,String item) { public A addToCapacity(Map map) { if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); + this.capacity = new LinkedHashMap<>(); } if (map != null) { this.capacity.putAll(map); @@ -185,7 +187,7 @@ public A addToCapacity(Map map) { public A addToCapacity(String key,V1beta2DeviceCapacity value) { if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); + this.capacity = new LinkedHashMap<>(); } if (key != null && value != null) { this.capacity.put(key, value); @@ -195,7 +197,7 @@ public A addToCapacity(String key,V1beta2DeviceCapacity value) { public A addToConsumesCounters(V1beta2DeviceCounterConsumption... items) { if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); } for (V1beta2DeviceCounterConsumption item : items) { V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); @@ -207,7 +209,7 @@ public A addToConsumesCounters(V1beta2DeviceCounterConsumption... items) { public A addToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); } V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); if (index < 0 || index >= this.consumesCounters.size()) { @@ -220,29 +222,29 @@ public A addToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { return (A) this; } - public A addToNodeAllocatableResourceMappings(Map map) { - if (this.nodeAllocatableResourceMappings == null && map != null) { - this.nodeAllocatableResourceMappings = new LinkedHashMap(); + public A addToNodeAllocatableResources(Map map) { + if (this.nodeAllocatableResources == null && map != null) { + this.nodeAllocatableResources = new LinkedHashMap<>(); } if (map != null) { - this.nodeAllocatableResourceMappings.putAll(map); + this.nodeAllocatableResources.putAll(map); } return (A) this; } - public A addToNodeAllocatableResourceMappings(String key,V1beta2NodeAllocatableResourceMapping value) { - if (this.nodeAllocatableResourceMappings == null && key != null && value != null) { - this.nodeAllocatableResourceMappings = new LinkedHashMap(); + public A addToNodeAllocatableResources(String key,V1beta2NodeAllocatableResource value) { + if (this.nodeAllocatableResources == null && key != null && value != null) { + this.nodeAllocatableResources = new LinkedHashMap<>(); } if (key != null && value != null) { - this.nodeAllocatableResourceMappings.put(key, value); + this.nodeAllocatableResources.put(key, value); } return (A) this; } public A addToTaints(V1beta2DeviceTaint... items) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } for (V1beta2DeviceTaint item : items) { V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); @@ -254,7 +256,7 @@ public A addToTaints(V1beta2DeviceTaint... items) { public A addToTaints(int index,V1beta2DeviceTaint item) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); if (index < 0 || index >= this.taints.size()) { @@ -333,7 +335,7 @@ protected void copyInstance(V1beta2Device instance) { this.withCapacity(instance.getCapacity()); this.withConsumesCounters(instance.getConsumesCounters()); this.withName(instance.getName()); - this.withNodeAllocatableResourceMappings(instance.getNodeAllocatableResourceMappings()); + this.withNodeAllocatableResources(instance.getNodeAllocatableResources()); this.withNodeName(instance.getNodeName()); this.withNodeSelector(instance.getNodeSelector()); this.withTaints(instance.getTaints()); @@ -434,7 +436,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceFluent that = (V1beta2DeviceFluent) o; + V1beta2DeviceFluent that = (V1beta2DeviceFluent) o; if (!(Objects.equals(allNodes, that.allNodes))) { return false; } @@ -462,7 +464,7 @@ public boolean equals(Object o) { if (!(Objects.equals(name, that.name))) { return false; } - if (!(Objects.equals(nodeAllocatableResourceMappings, that.nodeAllocatableResourceMappings))) { + if (!(Objects.equals(nodeAllocatableResources, that.nodeAllocatableResources))) { return false; } if (!(Objects.equals(nodeName, that.nodeName))) { @@ -551,8 +553,8 @@ public String getName() { return this.name; } - public Map getNodeAllocatableResourceMappings() { - return this.nodeAllocatableResourceMappings; + public Map getNodeAllocatableResources() { + return this.nodeAllocatableResources; } public String getNodeName() { @@ -631,8 +633,8 @@ public boolean hasName() { return this.name != null; } - public boolean hasNodeAllocatableResourceMappings() { - return this.nodeAllocatableResourceMappings != null; + public boolean hasNodeAllocatableResources() { + return this.nodeAllocatableResources != null; } public boolean hasNodeName() { @@ -648,7 +650,7 @@ public boolean hasTaints() { } public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeAllocatableResourceMappings, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeAllocatableResources, nodeName, nodeSelector, taints); } public A removeAllFromBindingConditions(Collection items) { @@ -775,24 +777,24 @@ public A removeFromConsumesCounters(V1beta2DeviceCounterConsumption... items) { return (A) this; } - public A removeFromNodeAllocatableResourceMappings(String key) { - if (this.nodeAllocatableResourceMappings == null) { + public A removeFromNodeAllocatableResources(String key) { + if (this.nodeAllocatableResources == null) { return (A) this; } - if (key != null && this.nodeAllocatableResourceMappings != null) { - this.nodeAllocatableResourceMappings.remove(key); + if (key != null && this.nodeAllocatableResources != null) { + this.nodeAllocatableResources.remove(key); } return (A) this; } - public A removeFromNodeAllocatableResourceMappings(Map map) { - if (this.nodeAllocatableResourceMappings == null) { + public A removeFromNodeAllocatableResources(Map map) { + if (this.nodeAllocatableResources == null) { return (A) this; } if (map != null) { for (Object key : map.keySet()) { - if (this.nodeAllocatableResourceMappings != null) { - this.nodeAllocatableResourceMappings.remove(key); + if (this.nodeAllocatableResources != null) { + this.nodeAllocatableResources.remove(key); } } } @@ -816,6 +818,7 @@ public A removeMatchingFromConsumesCounters(Predicate each = consumesCounters.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("consumesCounters"); while (each.hasNext()) { V1beta2DeviceCounterConsumptionBuilder builder = each.next(); @@ -832,6 +835,7 @@ public A removeMatchingFromTaints(Predicate predicate return (A) this; } Iterator each = taints.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("taints"); while (each.hasNext()) { V1beta2DeviceTaintBuilder builder = each.next(); @@ -844,16 +848,16 @@ public A removeMatchingFromTaints(Predicate predicate } public ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta2DeviceCounterConsumption item) { - return new ConsumesCountersNested(index, item); + return new ConsumesCountersNested<>(index, item); } public TaintsNested setNewTaintLike(int index,V1beta2DeviceTaint item) { - return new TaintsNested(index, item); + return new TaintsNested<>(index, item); } public A setToBindingConditions(int index,String item) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } this.bindingConditions.set(index, item); return (A) this; @@ -861,7 +865,7 @@ public A setToBindingConditions(int index,String item) { public A setToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } this.bindingFailureConditions.set(index, item); return (A) this; @@ -869,7 +873,7 @@ public A setToBindingFailureConditions(int index,String item) { public A setToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); } V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); if (index < 0 || index >= this.consumesCounters.size()) { @@ -884,7 +888,7 @@ public A setToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { public A setToTaints(int index,V1beta2DeviceTaint item) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); if (index < 0 || index >= this.taints.size()) { @@ -945,9 +949,9 @@ public String toString() { sb.append(name); sb.append(","); } - if (!(nodeAllocatableResourceMappings == null) && !(nodeAllocatableResourceMappings.isEmpty())) { - sb.append("nodeAllocatableResourceMappings:"); - sb.append(nodeAllocatableResourceMappings); + if (!(nodeAllocatableResources == null) && !(nodeAllocatableResources.isEmpty())) { + sb.append("nodeAllocatableResources:"); + sb.append(nodeAllocatableResources); sb.append(","); } if (!(nodeName == null)) { @@ -990,14 +994,14 @@ public A withAttributes(Map attributes) { if (attributes == null) { this.attributes = null; } else { - this.attributes = new LinkedHashMap(attributes); + this.attributes = new LinkedHashMap<>(attributes); } return (A) this; } public A withBindingConditions(List bindingConditions) { if (bindingConditions != null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); for (String item : bindingConditions) { this.addToBindingConditions(item); } @@ -1022,7 +1026,7 @@ public A withBindingConditions(String... bindingConditions) { public A withBindingFailureConditions(List bindingFailureConditions) { if (bindingFailureConditions != null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); for (String item : bindingFailureConditions) { this.addToBindingFailureConditions(item); } @@ -1058,7 +1062,7 @@ public A withCapacity(Map capacity) { if (capacity == null) { this.capacity = null; } else { - this.capacity = new LinkedHashMap(capacity); + this.capacity = new LinkedHashMap<>(capacity); } return (A) this; } @@ -1068,7 +1072,7 @@ public A withConsumesCounters(List consumesCoun this._visitables.get("consumesCounters").clear(); } if (consumesCounters != null) { - this.consumesCounters = new ArrayList(); + this.consumesCounters = new ArrayList<>(); for (V1beta2DeviceCounterConsumption item : consumesCounters) { this.addToConsumesCounters(item); } @@ -1097,18 +1101,18 @@ public A withName(String name) { } public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + return new NodeSelectorNested<>(null); } public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + return new NodeSelectorNested<>(item); } - public A withNodeAllocatableResourceMappings(Map nodeAllocatableResourceMappings) { - if (nodeAllocatableResourceMappings == null) { - this.nodeAllocatableResourceMappings = null; + public A withNodeAllocatableResources(Map nodeAllocatableResources) { + if (nodeAllocatableResources == null) { + this.nodeAllocatableResources = null; } else { - this.nodeAllocatableResourceMappings = new LinkedHashMap(nodeAllocatableResourceMappings); + this.nodeAllocatableResources = new LinkedHashMap<>(nodeAllocatableResources); } return (A) this; } @@ -1124,8 +1128,8 @@ public A withNodeSelector(V1NodeSelector nodeSelector) { this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); this._visitables.get("nodeSelector").add(this.nodeSelector); } else { - this.nodeSelector = null; this._visitables.get("nodeSelector").remove(this.nodeSelector); + this.nodeSelector = null; } return (A) this; } @@ -1135,7 +1139,7 @@ public A withTaints(List taints) { this._visitables.get("taints").clear(); } if (taints != null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); for (V1beta2DeviceTaint item : taints) { this.addToTaints(item); } 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 index 0c404fb8bc..07d0d9c71b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceRequestAllocationResultBuilder extends V1beta2DeviceRequestAllocationResultFluent implements VisitableBuilder{ V1beta2DeviceRequestAllocationResultFluent fluent; @@ -47,6 +48,7 @@ public V1beta2DeviceRequestAllocationResult build() { buildable.setPool(fluent.getPool()); buildable.setRequest(fluent.getRequest()); buildable.setShareID(fluent.getShareID()); + buildable.setSkipNodeOperations(fluent.getSkipNodeOperations()); buildable.setTolerations(fluent.buildTolerations()); return buildable; } 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 index 974681f862..9449dfbffe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java @@ -29,12 +29,14 @@ import java.util.Map; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceRequestAllocationResultFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceRequestAllocationResultFluent> extends BaseFluent{ private Boolean adminAccess; private List bindingConditions; @@ -45,6 +47,7 @@ public class V1beta2DeviceRequestAllocationResultFluent skipNodeOperations; private ArrayList tolerations; public V1beta2DeviceRequestAllocationResultFluent() { @@ -56,7 +59,7 @@ public V1beta2DeviceRequestAllocationResultFluent(V1beta2DeviceRequestAllocation public A addAllToBindingConditions(Collection items) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } for (String item : items) { this.bindingConditions.add(item); @@ -66,7 +69,7 @@ public A addAllToBindingConditions(Collection items) { public A addAllToBindingFailureConditions(Collection items) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } for (String item : items) { this.bindingFailureConditions.add(item); @@ -74,9 +77,19 @@ public A addAllToBindingFailureConditions(Collection items) { return (A) this; } + public A addAllToSkipNodeOperations(Collection items) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + for (String item : items) { + this.skipNodeOperations.add(item); + } + return (A) this; + } + public A addAllToTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1beta2DeviceToleration item : items) { V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); @@ -87,16 +100,16 @@ public A addAllToTolerations(Collection items) { } public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + return new TolerationsNested<>(-1, null); } public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { - return new TolerationsNested(-1, item); + return new TolerationsNested<>(-1, item); } public A addToBindingConditions(String... items) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } for (String item : items) { this.bindingConditions.add(item); @@ -106,7 +119,7 @@ public A addToBindingConditions(String... items) { public A addToBindingConditions(int index,String item) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } this.bindingConditions.add(index, item); return (A) this; @@ -114,7 +127,7 @@ public A addToBindingConditions(int index,String item) { public A addToBindingFailureConditions(String... items) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } for (String item : items) { this.bindingFailureConditions.add(item); @@ -124,7 +137,7 @@ public A addToBindingFailureConditions(String... items) { public A addToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } this.bindingFailureConditions.add(index, item); return (A) this; @@ -132,7 +145,7 @@ public A addToBindingFailureConditions(int index,String item) { public A addToConsumedCapacity(Map map) { if (this.consumedCapacity == null && map != null) { - this.consumedCapacity = new LinkedHashMap(); + this.consumedCapacity = new LinkedHashMap<>(); } if (map != null) { this.consumedCapacity.putAll(map); @@ -142,7 +155,7 @@ public A addToConsumedCapacity(Map map) { public A addToConsumedCapacity(String key,Quantity value) { if (this.consumedCapacity == null && key != null && value != null) { - this.consumedCapacity = new LinkedHashMap(); + this.consumedCapacity = new LinkedHashMap<>(); } if (key != null && value != null) { this.consumedCapacity.put(key, value); @@ -150,9 +163,27 @@ public A addToConsumedCapacity(String key,Quantity value) { return (A) this; } + public A addToSkipNodeOperations(String... items) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + for (String item : items) { + this.skipNodeOperations.add(item); + } + return (A) this; + } + + public A addToSkipNodeOperations(int index,String item) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.add(index, item); + return (A) this; + } + public A addToTolerations(V1beta2DeviceToleration... items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1beta2DeviceToleration item : items) { V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); @@ -164,7 +195,7 @@ public A addToTolerations(V1beta2DeviceToleration... items) { public A addToTolerations(int index,V1beta2DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -214,6 +245,7 @@ protected void copyInstance(V1beta2DeviceRequestAllocationResult instance) { this.withPool(instance.getPool()); this.withRequest(instance.getRequest()); this.withShareID(instance.getShareID()); + this.withSkipNodeOperations(instance.getSkipNodeOperations()); this.withTolerations(instance.getTolerations()); } } @@ -264,7 +296,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceRequestAllocationResultFluent that = (V1beta2DeviceRequestAllocationResultFluent) o; + V1beta2DeviceRequestAllocationResultFluent that = (V1beta2DeviceRequestAllocationResultFluent) o; if (!(Objects.equals(adminAccess, that.adminAccess))) { return false; } @@ -292,6 +324,9 @@ public boolean equals(Object o) { if (!(Objects.equals(shareID, that.shareID))) { return false; } + if (!(Objects.equals(skipNodeOperations, that.skipNodeOperations))) { + return false; + } if (!(Objects.equals(tolerations, that.tolerations))) { return false; } @@ -338,6 +373,10 @@ public String getFirstBindingFailureCondition() { return this.bindingFailureConditions.get(0); } + public String getFirstSkipNodeOperation() { + return this.skipNodeOperations.get(0); + } + public String getLastBindingCondition() { return this.bindingConditions.get(bindingConditions.size() - 1); } @@ -346,6 +385,10 @@ public String getLastBindingFailureCondition() { return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); } + public String getLastSkipNodeOperation() { + return this.skipNodeOperations.get(skipNodeOperations.size() - 1); + } + public String getMatchingBindingCondition(Predicate predicate) { for (String item : bindingConditions) { if (predicate.test(item)) { @@ -364,6 +407,15 @@ public String getMatchingBindingFailureCondition(Predicate predicate) { return null; } + public String getMatchingSkipNodeOperation(Predicate predicate) { + for (String item : skipNodeOperations) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + public String getPool() { return this.pool; } @@ -376,6 +428,14 @@ public String getShareID() { return this.shareID; } + public String getSkipNodeOperation(int index) { + return this.skipNodeOperations.get(index); + } + + public List getSkipNodeOperations() { + return this.skipNodeOperations; + } + public boolean hasAdminAccess() { return this.adminAccess != null; } @@ -418,6 +478,15 @@ public boolean hasMatchingBindingFailureCondition(Predicate predicate) { return false; } + public boolean hasMatchingSkipNodeOperation(Predicate predicate) { + for (String item : skipNodeOperations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingToleration(Predicate predicate) { for (V1beta2DeviceTolerationBuilder item : tolerations) { if (predicate.test(item)) { @@ -439,12 +508,16 @@ public boolean hasShareID() { return this.shareID != null; } + public boolean hasSkipNodeOperations() { + return this.skipNodeOperations != null && !(this.skipNodeOperations.isEmpty()); + } + public boolean hasTolerations() { return this.tolerations != null && !(this.tolerations.isEmpty()); } public int hashCode() { - return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, skipNodeOperations, tolerations); } public A removeAllFromBindingConditions(Collection items) { @@ -467,6 +540,16 @@ public A removeAllFromBindingFailureConditions(Collection items) { return (A) this; } + public A removeAllFromSkipNodeOperations(Collection items) { + if (this.skipNodeOperations == null) { + return (A) this; + } + for (String item : items) { + this.skipNodeOperations.remove(item); + } + return (A) this; + } + public A removeAllFromTolerations(Collection items) { if (this.tolerations == null) { return (A) this; @@ -523,6 +606,16 @@ public A removeFromConsumedCapacity(Map map) { return (A) this; } + public A removeFromSkipNodeOperations(String... items) { + if (this.skipNodeOperations == null) { + return (A) this; + } + for (String item : items) { + this.skipNodeOperations.remove(item); + } + return (A) this; + } + public A removeFromTolerations(V1beta2DeviceToleration... items) { if (this.tolerations == null) { return (A) this; @@ -540,6 +633,7 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } Iterator each = tolerations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1beta2DeviceTolerationBuilder builder = each.next(); @@ -552,12 +646,12 @@ public A removeMatchingFromTolerations(Predicate } public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { - return new TolerationsNested(index, item); + return new TolerationsNested<>(index, item); } public A setToBindingConditions(int index,String item) { if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); } this.bindingConditions.set(index, item); return (A) this; @@ -565,15 +659,23 @@ public A setToBindingConditions(int index,String item) { public A setToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); } this.bindingFailureConditions.set(index, item); return (A) this; } + public A setToSkipNodeOperations(int index,String item) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.set(index, item); + return (A) this; + } + public A setToTolerations(int index,V1beta2DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -634,6 +736,11 @@ public String toString() { sb.append(shareID); sb.append(","); } + if (!(skipNodeOperations == null) && !(skipNodeOperations.isEmpty())) { + sb.append("skipNodeOperations:"); + sb.append(skipNodeOperations); + sb.append(","); + } if (!(tolerations == null) && !(tolerations.isEmpty())) { sb.append("tolerations:"); sb.append(tolerations); @@ -653,7 +760,7 @@ public A withAdminAccess(Boolean adminAccess) { public A withBindingConditions(List bindingConditions) { if (bindingConditions != null) { - this.bindingConditions = new ArrayList(); + this.bindingConditions = new ArrayList<>(); for (String item : bindingConditions) { this.addToBindingConditions(item); } @@ -678,7 +785,7 @@ public A withBindingConditions(String... bindingConditions) { public A withBindingFailureConditions(List bindingFailureConditions) { if (bindingFailureConditions != null) { - this.bindingFailureConditions = new ArrayList(); + this.bindingFailureConditions = new ArrayList<>(); for (String item : bindingFailureConditions) { this.addToBindingFailureConditions(item); } @@ -705,7 +812,7 @@ public A withConsumedCapacity(Map consumedCapacity) { if (consumedCapacity == null) { this.consumedCapacity = null; } else { - this.consumedCapacity = new LinkedHashMap(consumedCapacity); + this.consumedCapacity = new LinkedHashMap<>(consumedCapacity); } return (A) this; } @@ -735,12 +842,37 @@ public A withShareID(String shareID) { return (A) this; } + public A withSkipNodeOperations(List skipNodeOperations) { + if (skipNodeOperations != null) { + this.skipNodeOperations = new ArrayList<>(); + for (String item : skipNodeOperations) { + this.addToSkipNodeOperations(item); + } + } else { + this.skipNodeOperations = null; + } + return (A) this; + } + + public A withSkipNodeOperations(String... skipNodeOperations) { + if (this.skipNodeOperations != null) { + this.skipNodeOperations.clear(); + _visitables.remove("skipNodeOperations"); + } + if (skipNodeOperations != null) { + for (String item : skipNodeOperations) { + this.addToSkipNodeOperations(item); + } + } + return (A) this; + } + public A withTolerations(List tolerations) { if (this.tolerations != null) { this._visitables.get("tolerations").clear(); } if (tolerations != null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); for (V1beta2DeviceToleration item : tolerations) { this.addToTolerations(item); } 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 index 368f1834da..1cd1f6e0e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceRequestBuilder extends V1beta2DeviceRequestFluent implements VisitableBuilder{ V1beta2DeviceRequestFluent fluent; 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 index abc057cbc5..58ed0cc4c9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceRequestFluent> extends BaseFluent{ private V1beta2ExactDeviceRequestBuilder exactly; private ArrayList firstAvailable; @@ -46,7 +48,7 @@ public V1beta2DeviceRequestFluent(V1beta2DeviceRequest instance) { public A addAllToFirstAvailable(Collection items) { if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); } for (V1beta2DeviceSubRequest item : items) { V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); @@ -57,16 +59,16 @@ public A addAllToFirstAvailable(Collection items) { } public FirstAvailableNested addNewFirstAvailable() { - return new FirstAvailableNested(-1, null); + return new FirstAvailableNested<>(-1, null); } public FirstAvailableNested addNewFirstAvailableLike(V1beta2DeviceSubRequest item) { - return new FirstAvailableNested(-1, item); + return new FirstAvailableNested<>(-1, item); } public A addToFirstAvailable(V1beta2DeviceSubRequest... items) { if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); } for (V1beta2DeviceSubRequest item : items) { V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); @@ -78,7 +80,7 @@ public A addToFirstAvailable(V1beta2DeviceSubRequest... items) { public A addToFirstAvailable(int index,V1beta2DeviceSubRequest item) { if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); } V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); if (index < 0 || index >= this.firstAvailable.size()) { @@ -187,7 +189,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceRequestFluent that = (V1beta2DeviceRequestFluent) o; + V1beta2DeviceRequestFluent that = (V1beta2DeviceRequestFluent) o; if (!(Objects.equals(exactly, that.exactly))) { return false; } @@ -258,6 +260,7 @@ public A removeMatchingFromFirstAvailable(Predicate each = firstAvailable.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("firstAvailable"); while (each.hasNext()) { V1beta2DeviceSubRequestBuilder builder = each.next(); @@ -270,12 +273,12 @@ public A removeMatchingFromFirstAvailable(Predicate setNewFirstAvailableLike(int index,V1beta2DeviceSubRequest item) { - return new FirstAvailableNested(index, item); + return new FirstAvailableNested<>(index, item); } public A setToFirstAvailable(int index,V1beta2DeviceSubRequest item) { if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); } V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); if (index < 0 || index >= this.firstAvailable.size()) { @@ -315,8 +318,8 @@ public A withExactly(V1beta2ExactDeviceRequest exactly) { this.exactly = new V1beta2ExactDeviceRequestBuilder(exactly); this._visitables.get("exactly").add(this.exactly); } else { - this.exactly = null; this._visitables.get("exactly").remove(this.exactly); + this.exactly = null; } return (A) this; } @@ -326,7 +329,7 @@ public A withFirstAvailable(List firstAvailable) { this._visitables.get("firstAvailable").clear(); } if (firstAvailable != null) { - this.firstAvailable = new ArrayList(); + this.firstAvailable = new ArrayList<>(); for (V1beta2DeviceSubRequest item : firstAvailable) { this.addToFirstAvailable(item); } @@ -355,11 +358,11 @@ public A withName(String name) { } public ExactlyNested withNewExactly() { - return new ExactlyNested(null); + return new ExactlyNested<>(null); } public ExactlyNested withNewExactlyLike(V1beta2ExactDeviceRequest item) { - return new ExactlyNested(item); + return new ExactlyNested<>(item); } public class ExactlyNested extends V1beta2ExactDeviceRequestFluent> implements Nested{ 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 index 487b0e3407..0fd221fd85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceSelectorBuilder extends V1beta2DeviceSelectorFluent implements VisitableBuilder{ V1beta2DeviceSelectorFluent fluent; 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 index be11bbc2b4..285114a561 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceSelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceSelectorFluent> extends BaseFluent{ private V1beta2CELDeviceSelectorBuilder cel; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceSelectorFluent that = (V1beta2DeviceSelectorFluent) o; + V1beta2DeviceSelectorFluent that = (V1beta2DeviceSelectorFluent) o; if (!(Objects.equals(cel, that.cel))) { return false; } @@ -101,18 +103,18 @@ public A withCel(V1beta2CELDeviceSelector cel) { this.cel = new V1beta2CELDeviceSelectorBuilder(cel); this._visitables.get("cel").add(this.cel); } else { - this.cel = null; this._visitables.get("cel").remove(this.cel); + this.cel = null; } return (A) this; } public CelNested withNewCel() { - return new CelNested(null); + return new CelNested<>(null); } public CelNested withNewCelLike(V1beta2CELDeviceSelector item) { - return new CelNested(item); + return new CelNested<>(item); } public class CelNested extends V1beta2CELDeviceSelectorFluent> implements Nested{ 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 index cccae37d52..1fccf89ce3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceSubRequestBuilder extends V1beta2DeviceSubRequestFluent implements VisitableBuilder{ V1beta2DeviceSubRequestFluent fluent; @@ -41,6 +42,7 @@ public V1beta2DeviceSubRequest build() { buildable.setAllocationMode(fluent.getAllocationMode()); buildable.setCapacity(fluent.buildCapacity()); buildable.setCount(fluent.getCount()); + buildable.setDerivedAttributes(fluent.buildDerivedAttributes()); buildable.setDeviceClassName(fluent.getDeviceClassName()); buildable.setName(fluent.getName()); buildable.setSelectors(fluent.buildSelectors()); 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 index 425a39c1f2..4c83c1d458 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java @@ -27,16 +27,19 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceSubRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceSubRequestFluent> extends BaseFluent{ private String allocationMode; private V1beta2CapacityRequirementsBuilder capacity; private Long count; + private ArrayList derivedAttributes; private String deviceClassName; private String name; private ArrayList selectors; @@ -49,9 +52,21 @@ public V1beta2DeviceSubRequestFluent(V1beta2DeviceSubRequest instance) { this.copyInstance(instance); } + public A addAllToDerivedAttributes(Collection items) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + for (V1beta2DeviceDerivedAttribute item : items) { + V1beta2DeviceDerivedAttributeBuilder builder = new V1beta2DeviceDerivedAttributeBuilder(item); + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } + return (A) this; + } + public A addAllToSelectors(Collection items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1beta2DeviceSelector item : items) { V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); @@ -63,7 +78,7 @@ public A addAllToSelectors(Collection items) { public A addAllToTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1beta2DeviceToleration item : items) { V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); @@ -73,25 +88,60 @@ public A addAllToTolerations(Collection items) { return (A) this; } + public DerivedAttributesNested addNewDerivedAttribute() { + return new DerivedAttributesNested<>(-1, null); + } + + public DerivedAttributesNested addNewDerivedAttributeLike(V1beta2DeviceDerivedAttribute item) { + return new DerivedAttributesNested<>(-1, item); + } + public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + return new SelectorsNested<>(-1, null); } public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { - return new SelectorsNested(-1, item); + return new SelectorsNested<>(-1, item); } public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + return new TolerationsNested<>(-1, null); } public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { - return new TolerationsNested(-1, item); + return new TolerationsNested<>(-1, item); + } + + public A addToDerivedAttributes(V1beta2DeviceDerivedAttribute... items) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + for (V1beta2DeviceDerivedAttribute item : items) { + V1beta2DeviceDerivedAttributeBuilder builder = new V1beta2DeviceDerivedAttributeBuilder(item); + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } + return (A) this; + } + + public A addToDerivedAttributes(int index,V1beta2DeviceDerivedAttribute item) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + V1beta2DeviceDerivedAttributeBuilder builder = new V1beta2DeviceDerivedAttributeBuilder(item); + if (index < 0 || index >= this.derivedAttributes.size()) { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } else { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(index, builder); + } + return (A) this; } public A addToSelectors(V1beta2DeviceSelector... items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1beta2DeviceSelector item : items) { V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); @@ -103,7 +153,7 @@ public A addToSelectors(V1beta2DeviceSelector... items) { public A addToSelectors(int index,V1beta2DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -118,7 +168,7 @@ public A addToSelectors(int index,V1beta2DeviceSelector item) { public A addToTolerations(V1beta2DeviceToleration... items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1beta2DeviceToleration item : items) { V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); @@ -130,7 +180,7 @@ public A addToTolerations(V1beta2DeviceToleration... items) { public A addToTolerations(int index,V1beta2DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -147,6 +197,18 @@ public V1beta2CapacityRequirements buildCapacity() { return this.capacity != null ? this.capacity.build() : null; } + public V1beta2DeviceDerivedAttribute buildDerivedAttribute(int index) { + return this.derivedAttributes.get(index).build(); + } + + public List buildDerivedAttributes() { + return this.derivedAttributes != null ? build(derivedAttributes) : null; + } + + public V1beta2DeviceDerivedAttribute buildFirstDerivedAttribute() { + return this.derivedAttributes.get(0).build(); + } + public V1beta2DeviceSelector buildFirstSelector() { return this.selectors.get(0).build(); } @@ -155,6 +217,10 @@ public V1beta2DeviceToleration buildFirstToleration() { return this.tolerations.get(0).build(); } + public V1beta2DeviceDerivedAttribute buildLastDerivedAttribute() { + return this.derivedAttributes.get(derivedAttributes.size() - 1).build(); + } + public V1beta2DeviceSelector buildLastSelector() { return this.selectors.get(selectors.size() - 1).build(); } @@ -163,6 +229,15 @@ public V1beta2DeviceToleration buildLastToleration() { return this.tolerations.get(tolerations.size() - 1).build(); } + public V1beta2DeviceDerivedAttribute buildMatchingDerivedAttribute(Predicate predicate) { + for (V1beta2DeviceDerivedAttributeBuilder item : derivedAttributes) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { for (V1beta2DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -203,6 +278,7 @@ protected void copyInstance(V1beta2DeviceSubRequest instance) { this.withAllocationMode(instance.getAllocationMode()); this.withCapacity(instance.getCapacity()); this.withCount(instance.getCount()); + this.withDerivedAttributes(instance.getDerivedAttributes()); this.withDeviceClassName(instance.getDeviceClassName()); this.withName(instance.getName()); this.withSelectors(instance.getSelectors()); @@ -214,6 +290,20 @@ public CapacityNested editCapacity() { return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); } + public DerivedAttributesNested editDerivedAttribute(int index) { + if (derivedAttributes.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + + public DerivedAttributesNested editFirstDerivedAttribute() { + if (derivedAttributes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(0, this.buildDerivedAttribute(0)); + } + public SelectorsNested editFirstSelector() { if (selectors.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); @@ -228,6 +318,14 @@ public TolerationsNested editFirstToleration() { return this.setNewTolerationLike(0, this.buildToleration(0)); } + public DerivedAttributesNested editLastDerivedAttribute() { + int index = derivedAttributes.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + public SelectorsNested editLastSelector() { int index = selectors.size() - 1; if (index < 0) { @@ -244,6 +342,20 @@ public TolerationsNested editLastToleration() { return this.setNewTolerationLike(index, this.buildToleration(index)); } + public DerivedAttributesNested editMatchingDerivedAttribute(Predicate predicate) { + int index = -1; + for (int i = 0;i < derivedAttributes.size();i++) { + if (predicate.test(derivedAttributes.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; for (int i = 0;i < selectors.size();i++) { @@ -304,7 +416,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceSubRequestFluent that = (V1beta2DeviceSubRequestFluent) o; + V1beta2DeviceSubRequestFluent that = (V1beta2DeviceSubRequestFluent) o; if (!(Objects.equals(allocationMode, that.allocationMode))) { return false; } @@ -314,6 +426,9 @@ public boolean equals(Object o) { if (!(Objects.equals(count, that.count))) { return false; } + if (!(Objects.equals(derivedAttributes, that.derivedAttributes))) { + return false; + } if (!(Objects.equals(deviceClassName, that.deviceClassName))) { return false; } @@ -357,10 +472,23 @@ public boolean hasCount() { return this.count != null; } + public boolean hasDerivedAttributes() { + return this.derivedAttributes != null && !(this.derivedAttributes.isEmpty()); + } + public boolean hasDeviceClassName() { return this.deviceClassName != null; } + public boolean hasMatchingDerivedAttribute(Predicate predicate) { + for (V1beta2DeviceDerivedAttributeBuilder item : derivedAttributes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingSelector(Predicate predicate) { for (V1beta2DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -392,7 +520,19 @@ public boolean hasTolerations() { } public int hashCode() { - return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + return Objects.hash(allocationMode, capacity, count, derivedAttributes, deviceClassName, name, selectors, tolerations); + } + + public A removeAllFromDerivedAttributes(Collection items) { + if (this.derivedAttributes == null) { + return (A) this; + } + for (V1beta2DeviceDerivedAttribute item : items) { + V1beta2DeviceDerivedAttributeBuilder builder = new V1beta2DeviceDerivedAttributeBuilder(item); + _visitables.get("derivedAttributes").remove(builder); + this.derivedAttributes.remove(builder); + } + return (A) this; } public A removeAllFromSelectors(Collection items) { @@ -419,6 +559,18 @@ public A removeAllFromTolerations(Collection items) { return (A) this; } + public A removeFromDerivedAttributes(V1beta2DeviceDerivedAttribute... items) { + if (this.derivedAttributes == null) { + return (A) this; + } + for (V1beta2DeviceDerivedAttribute item : items) { + V1beta2DeviceDerivedAttributeBuilder builder = new V1beta2DeviceDerivedAttributeBuilder(item); + _visitables.get("derivedAttributes").remove(builder); + this.derivedAttributes.remove(builder); + } + return (A) this; + } + public A removeFromSelectors(V1beta2DeviceSelector... items) { if (this.selectors == null) { return (A) this; @@ -443,11 +595,29 @@ public A removeFromTolerations(V1beta2DeviceToleration... items) { return (A) this; } + public A removeMatchingFromDerivedAttributes(Predicate predicate) { + if (derivedAttributes == null) { + return (A) this; + } + Iterator each = derivedAttributes.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("derivedAttributes"); + while (each.hasNext()) { + V1beta2DeviceDerivedAttributeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public A removeMatchingFromSelectors(Predicate predicate) { if (selectors == null) { return (A) this; } Iterator each = selectors.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1beta2DeviceSelectorBuilder builder = each.next(); @@ -464,6 +634,7 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } Iterator each = tolerations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1beta2DeviceTolerationBuilder builder = each.next(); @@ -475,17 +646,36 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } + public DerivedAttributesNested setNewDerivedAttributeLike(int index,V1beta2DeviceDerivedAttribute item) { + return new DerivedAttributesNested<>(index, item); + } + public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { - return new SelectorsNested(index, item); + return new SelectorsNested<>(index, item); } public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { - return new TolerationsNested(index, item); + return new TolerationsNested<>(index, item); + } + + public A setToDerivedAttributes(int index,V1beta2DeviceDerivedAttribute item) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + V1beta2DeviceDerivedAttributeBuilder builder = new V1beta2DeviceDerivedAttributeBuilder(item); + if (index < 0 || index >= this.derivedAttributes.size()) { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } else { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.set(index, builder); + } + return (A) this; } public A setToSelectors(int index,V1beta2DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -500,7 +690,7 @@ public A setToSelectors(int index,V1beta2DeviceSelector item) { public A setToTolerations(int index,V1beta2DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -531,6 +721,11 @@ public String toString() { sb.append(count); sb.append(","); } + if (!(derivedAttributes == null) && !(derivedAttributes.isEmpty())) { + sb.append("derivedAttributes:"); + sb.append(derivedAttributes); + sb.append(","); + } if (!(deviceClassName == null)) { sb.append("deviceClassName:"); sb.append(deviceClassName); @@ -565,8 +760,8 @@ public A withCapacity(V1beta2CapacityRequirements capacity) { this.capacity = new V1beta2CapacityRequirementsBuilder(capacity); this._visitables.get("capacity").add(this.capacity); } else { - this.capacity = null; this._visitables.get("capacity").remove(this.capacity); + this.capacity = null; } return (A) this; } @@ -576,6 +771,34 @@ public A withCount(Long count) { return (A) this; } + public A withDerivedAttributes(List derivedAttributes) { + if (this.derivedAttributes != null) { + this._visitables.get("derivedAttributes").clear(); + } + if (derivedAttributes != null) { + this.derivedAttributes = new ArrayList<>(); + for (V1beta2DeviceDerivedAttribute item : derivedAttributes) { + this.addToDerivedAttributes(item); + } + } else { + this.derivedAttributes = null; + } + return (A) this; + } + + public A withDerivedAttributes(V1beta2DeviceDerivedAttribute... derivedAttributes) { + if (this.derivedAttributes != null) { + this.derivedAttributes.clear(); + _visitables.remove("derivedAttributes"); + } + if (derivedAttributes != null) { + for (V1beta2DeviceDerivedAttribute item : derivedAttributes) { + this.addToDerivedAttributes(item); + } + } + return (A) this; + } + public A withDeviceClassName(String deviceClassName) { this.deviceClassName = deviceClassName; return (A) this; @@ -587,11 +810,11 @@ public A withName(String name) { } public CapacityNested withNewCapacity() { - return new CapacityNested(null); + return new CapacityNested<>(null); } public CapacityNested withNewCapacityLike(V1beta2CapacityRequirements item) { - return new CapacityNested(item); + return new CapacityNested<>(item); } public A withSelectors(List selectors) { @@ -599,7 +822,7 @@ public A withSelectors(List selectors) { this._visitables.get("selectors").clear(); } if (selectors != null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); for (V1beta2DeviceSelector item : selectors) { this.addToSelectors(item); } @@ -627,7 +850,7 @@ public A withTolerations(List tolerations) { this._visitables.get("tolerations").clear(); } if (tolerations != null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); for (V1beta2DeviceToleration item : tolerations) { this.addToTolerations(item); } @@ -665,6 +888,25 @@ public N endCapacity() { return and(); } + } + public class DerivedAttributesNested extends V1beta2DeviceDerivedAttributeFluent> implements Nested{ + + V1beta2DeviceDerivedAttributeBuilder builder; + int index; + + DerivedAttributesNested(int index,V1beta2DeviceDerivedAttribute item) { + this.index = index; + this.builder = new V1beta2DeviceDerivedAttributeBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceSubRequestFluent.this.setToDerivedAttributes(index, builder.build()); + } + + public N endDerivedAttribute() { + return and(); + } + } public class SelectorsNested extends V1beta2DeviceSelectorFluent> implements Nested{ 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 index 702e1b0a69..cf68e7a1ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceTaintBuilder extends V1beta2DeviceTaintFluent implements VisitableBuilder{ V1beta2DeviceTaintFluent fluent; 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 index 2502aeff6b..90bcfe9030 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java @@ -19,12 +19,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceTaintFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceTaintFluent> extends BaseFluent{ private String effect; private String key; @@ -58,7 +60,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceTaintFluent that = (V1beta2DeviceTaintFluent) o; + V1beta2DeviceTaintFluent that = (V1beta2DeviceTaintFluent) o; if (!(Objects.equals(effect, that.effect))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleBuilder.java index 5014af3849..258b503218 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceTaintRuleBuilder extends V1beta2DeviceTaintRuleFluent implements VisitableBuilder{ V1beta2DeviceTaintRuleFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleFluent.java index c2dc923546..a0c499648b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceTaintRuleFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceTaintRuleFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceTaintRuleFluent that = (V1beta2DeviceTaintRuleFluent) o; + V1beta2DeviceTaintRuleFluent that = (V1beta2DeviceTaintRuleFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta2DeviceTaintRuleSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1beta2DeviceTaintRuleStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1beta2DeviceTaintRuleSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1beta2DeviceTaintRuleSpec spec) { this.spec = new V1beta2DeviceTaintRuleSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1beta2DeviceTaintRuleStatus status) { this.status = new V1beta2DeviceTaintRuleStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListBuilder.java index 15e44c1222..b1734353da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceTaintRuleListBuilder extends V1beta2DeviceTaintRuleListFluent implements VisitableBuilder{ V1beta2DeviceTaintRuleListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListFluent.java index 1b4ccda81d..f91f5b2c80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceTaintRuleListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceTaintRuleListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta2DeviceTaintRuleListFluent(V1beta2DeviceTaintRuleList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta2DeviceTaintRule item : items) { V1beta2DeviceTaintRuleBuilder builder = new V1beta2DeviceTaintRuleBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta2DeviceTaintRule item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta2DeviceTaintRule... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta2DeviceTaintRule item : items) { V1beta2DeviceTaintRuleBuilder builder = new V1beta2DeviceTaintRuleBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta2DeviceTaintRule... items) { public A addToItems(int index,V1beta2DeviceTaintRule item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta2DeviceTaintRuleBuilder builder = new V1beta2DeviceTaintRuleBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceTaintRuleListFluent that = (V1beta2DeviceTaintRuleListFluent) o; + V1beta2DeviceTaintRuleListFluent that = (V1beta2DeviceTaintRuleListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predic return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta2DeviceTaintRuleBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predic } public ItemsNested setNewItemLike(int index,V1beta2DeviceTaintRule item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta2DeviceTaintRule item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta2DeviceTaintRuleBuilder builder = new V1beta2DeviceTaintRuleBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta2DeviceTaintRule item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta2DeviceTaintRuleFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecBuilder.java index c0af5329ea..55d1c8c182 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceTaintRuleSpecBuilder extends V1beta2DeviceTaintRuleSpecFluent implements VisitableBuilder{ V1beta2DeviceTaintRuleSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecFluent.java index 139fa7f2ca..4a5f85ffce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceTaintRuleSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceTaintRuleSpecFluent> extends BaseFluent{ private V1beta2DeviceTaintSelectorBuilder deviceSelector; private V1beta2DeviceTaintBuilder taint; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceTaintRuleSpecFluent that = (V1beta2DeviceTaintRuleSpecFluent) o; + V1beta2DeviceTaintRuleSpecFluent that = (V1beta2DeviceTaintRuleSpecFluent) o; if (!(Objects.equals(deviceSelector, that.deviceSelector))) { return false; } @@ -131,26 +133,26 @@ public A withDeviceSelector(V1beta2DeviceTaintSelector deviceSelector) { this.deviceSelector = new V1beta2DeviceTaintSelectorBuilder(deviceSelector); this._visitables.get("deviceSelector").add(this.deviceSelector); } else { - this.deviceSelector = null; this._visitables.get("deviceSelector").remove(this.deviceSelector); + this.deviceSelector = null; } return (A) this; } public DeviceSelectorNested withNewDeviceSelector() { - return new DeviceSelectorNested(null); + return new DeviceSelectorNested<>(null); } public DeviceSelectorNested withNewDeviceSelectorLike(V1beta2DeviceTaintSelector item) { - return new DeviceSelectorNested(item); + return new DeviceSelectorNested<>(item); } public TaintNested withNewTaint() { - return new TaintNested(null); + return new TaintNested<>(null); } public TaintNested withNewTaintLike(V1beta2DeviceTaint item) { - return new TaintNested(item); + return new TaintNested<>(item); } public A withTaint(V1beta2DeviceTaint taint) { @@ -159,8 +161,8 @@ public A withTaint(V1beta2DeviceTaint taint) { this.taint = new V1beta2DeviceTaintBuilder(taint); this._visitables.get("taint").add(this.taint); } else { - this.taint = null; this._visitables.get("taint").remove(this.taint); + this.taint = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusBuilder.java index 8ad1a570f2..5d83033962 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceTaintRuleStatusBuilder extends V1beta2DeviceTaintRuleStatusFluent implements VisitableBuilder{ V1beta2DeviceTaintRuleStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusFluent.java index feebc99d90..809a566a5c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceTaintRuleStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceTaintRuleStatusFluent> extends BaseFluent{ private ArrayList conditions; @@ -43,7 +45,7 @@ public V1beta2DeviceTaintRuleStatusFluent(V1beta2DeviceTaintRuleStatus instance) public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -54,16 +56,16 @@ public A addAllToConditions(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public A addToConditions(V1Condition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); @@ -75,7 +77,7 @@ public A addToConditions(V1Condition... items) { public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -166,7 +168,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceTaintRuleStatusFluent that = (V1beta2DeviceTaintRuleStatusFluent) o; + V1beta2DeviceTaintRuleStatusFluent that = (V1beta2DeviceTaintRuleStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -219,6 +221,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); @@ -231,12 +234,12 @@ public A removeMatchingFromConditions(Predicate predicate) { } public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public A setToConditions(int index,V1Condition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -265,7 +268,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V1Condition item : conditions) { this.addToConditions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorBuilder.java index 3d0df69ecd..0e9329f9a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceTaintSelectorBuilder extends V1beta2DeviceTaintSelectorFluent implements VisitableBuilder{ V1beta2DeviceTaintSelectorFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorFluent.java index dc8eb5f122..2de7a3f80f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceTaintSelectorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceTaintSelectorFluent> extends BaseFluent{ private String device; private String driver; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceTaintSelectorFluent that = (V1beta2DeviceTaintSelectorFluent) o; + V1beta2DeviceTaintSelectorFluent that = (V1beta2DeviceTaintSelectorFluent) o; if (!(Objects.equals(device, that.device))) { return false; } 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 index 8a684999fb..c05317cb84 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2DeviceTolerationBuilder extends V1beta2DeviceTolerationFluent implements VisitableBuilder{ V1beta2DeviceTolerationFluent fluent; 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 index bc2584a62a..3c749f056f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2DeviceTolerationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2DeviceTolerationFluent> extends BaseFluent{ private String effect; private String key; @@ -60,7 +62,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2DeviceTolerationFluent that = (V1beta2DeviceTolerationFluent) o; + V1beta2DeviceTolerationFluent that = (V1beta2DeviceTolerationFluent) o; if (!(Objects.equals(effect, that.effect))) { return false; } 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 index c77e750474..08a9ead1a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2ExactDeviceRequestBuilder extends V1beta2ExactDeviceRequestFluent implements VisitableBuilder{ V1beta2ExactDeviceRequestFluent fluent; @@ -42,6 +43,7 @@ public V1beta2ExactDeviceRequest build() { buildable.setAllocationMode(fluent.getAllocationMode()); buildable.setCapacity(fluent.buildCapacity()); buildable.setCount(fluent.getCount()); + buildable.setDerivedAttributes(fluent.buildDerivedAttributes()); buildable.setDeviceClassName(fluent.getDeviceClassName()); buildable.setSelectors(fluent.buildSelectors()); buildable.setTolerations(fluent.buildTolerations()); 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 index fc8fd651bb..fb5f116dd3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java @@ -28,17 +28,20 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2ExactDeviceRequestFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2ExactDeviceRequestFluent> extends BaseFluent{ private Boolean adminAccess; private String allocationMode; private V1beta2CapacityRequirementsBuilder capacity; private Long count; + private ArrayList derivedAttributes; private String deviceClassName; private ArrayList selectors; private ArrayList tolerations; @@ -50,9 +53,21 @@ public V1beta2ExactDeviceRequestFluent(V1beta2ExactDeviceRequest instance) { this.copyInstance(instance); } + public A addAllToDerivedAttributes(Collection items) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + for (V1beta2DeviceDerivedAttribute item : items) { + V1beta2DeviceDerivedAttributeBuilder builder = new V1beta2DeviceDerivedAttributeBuilder(item); + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } + return (A) this; + } + public A addAllToSelectors(Collection items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1beta2DeviceSelector item : items) { V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); @@ -64,7 +79,7 @@ public A addAllToSelectors(Collection items) { public A addAllToTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1beta2DeviceToleration item : items) { V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); @@ -74,25 +89,60 @@ public A addAllToTolerations(Collection items) { return (A) this; } + public DerivedAttributesNested addNewDerivedAttribute() { + return new DerivedAttributesNested<>(-1, null); + } + + public DerivedAttributesNested addNewDerivedAttributeLike(V1beta2DeviceDerivedAttribute item) { + return new DerivedAttributesNested<>(-1, item); + } + public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + return new SelectorsNested<>(-1, null); } public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { - return new SelectorsNested(-1, item); + return new SelectorsNested<>(-1, item); } public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + return new TolerationsNested<>(-1, null); } public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { - return new TolerationsNested(-1, item); + return new TolerationsNested<>(-1, item); + } + + public A addToDerivedAttributes(V1beta2DeviceDerivedAttribute... items) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + for (V1beta2DeviceDerivedAttribute item : items) { + V1beta2DeviceDerivedAttributeBuilder builder = new V1beta2DeviceDerivedAttributeBuilder(item); + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } + return (A) this; + } + + public A addToDerivedAttributes(int index,V1beta2DeviceDerivedAttribute item) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + V1beta2DeviceDerivedAttributeBuilder builder = new V1beta2DeviceDerivedAttributeBuilder(item); + if (index < 0 || index >= this.derivedAttributes.size()) { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } else { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(index, builder); + } + return (A) this; } public A addToSelectors(V1beta2DeviceSelector... items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } for (V1beta2DeviceSelector item : items) { V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); @@ -104,7 +154,7 @@ public A addToSelectors(V1beta2DeviceSelector... items) { public A addToSelectors(int index,V1beta2DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -119,7 +169,7 @@ public A addToSelectors(int index,V1beta2DeviceSelector item) { public A addToTolerations(V1beta2DeviceToleration... items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } for (V1beta2DeviceToleration item : items) { V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); @@ -131,7 +181,7 @@ public A addToTolerations(V1beta2DeviceToleration... items) { public A addToTolerations(int index,V1beta2DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -148,6 +198,18 @@ public V1beta2CapacityRequirements buildCapacity() { return this.capacity != null ? this.capacity.build() : null; } + public V1beta2DeviceDerivedAttribute buildDerivedAttribute(int index) { + return this.derivedAttributes.get(index).build(); + } + + public List buildDerivedAttributes() { + return this.derivedAttributes != null ? build(derivedAttributes) : null; + } + + public V1beta2DeviceDerivedAttribute buildFirstDerivedAttribute() { + return this.derivedAttributes.get(0).build(); + } + public V1beta2DeviceSelector buildFirstSelector() { return this.selectors.get(0).build(); } @@ -156,6 +218,10 @@ public V1beta2DeviceToleration buildFirstToleration() { return this.tolerations.get(0).build(); } + public V1beta2DeviceDerivedAttribute buildLastDerivedAttribute() { + return this.derivedAttributes.get(derivedAttributes.size() - 1).build(); + } + public V1beta2DeviceSelector buildLastSelector() { return this.selectors.get(selectors.size() - 1).build(); } @@ -164,6 +230,15 @@ public V1beta2DeviceToleration buildLastToleration() { return this.tolerations.get(tolerations.size() - 1).build(); } + public V1beta2DeviceDerivedAttribute buildMatchingDerivedAttribute(Predicate predicate) { + for (V1beta2DeviceDerivedAttributeBuilder item : derivedAttributes) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { for (V1beta2DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -205,6 +280,7 @@ protected void copyInstance(V1beta2ExactDeviceRequest instance) { this.withAllocationMode(instance.getAllocationMode()); this.withCapacity(instance.getCapacity()); this.withCount(instance.getCount()); + this.withDerivedAttributes(instance.getDerivedAttributes()); this.withDeviceClassName(instance.getDeviceClassName()); this.withSelectors(instance.getSelectors()); this.withTolerations(instance.getTolerations()); @@ -215,6 +291,20 @@ public CapacityNested editCapacity() { return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); } + public DerivedAttributesNested editDerivedAttribute(int index) { + if (derivedAttributes.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + + public DerivedAttributesNested editFirstDerivedAttribute() { + if (derivedAttributes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(0, this.buildDerivedAttribute(0)); + } + public SelectorsNested editFirstSelector() { if (selectors.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); @@ -229,6 +319,14 @@ public TolerationsNested editFirstToleration() { return this.setNewTolerationLike(0, this.buildToleration(0)); } + public DerivedAttributesNested editLastDerivedAttribute() { + int index = derivedAttributes.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + public SelectorsNested editLastSelector() { int index = selectors.size() - 1; if (index < 0) { @@ -245,6 +343,20 @@ public TolerationsNested editLastToleration() { return this.setNewTolerationLike(index, this.buildToleration(index)); } + public DerivedAttributesNested editMatchingDerivedAttribute(Predicate predicate) { + int index = -1; + for (int i = 0;i < derivedAttributes.size();i++) { + if (predicate.test(derivedAttributes.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "derivedAttributes")); + } + return this.setNewDerivedAttributeLike(index, this.buildDerivedAttribute(index)); + } + public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; for (int i = 0;i < selectors.size();i++) { @@ -305,7 +417,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2ExactDeviceRequestFluent that = (V1beta2ExactDeviceRequestFluent) o; + V1beta2ExactDeviceRequestFluent that = (V1beta2ExactDeviceRequestFluent) o; if (!(Objects.equals(adminAccess, that.adminAccess))) { return false; } @@ -318,6 +430,9 @@ public boolean equals(Object o) { if (!(Objects.equals(count, that.count))) { return false; } + if (!(Objects.equals(derivedAttributes, that.derivedAttributes))) { + return false; + } if (!(Objects.equals(deviceClassName, that.deviceClassName))) { return false; } @@ -362,10 +477,23 @@ public boolean hasCount() { return this.count != null; } + public boolean hasDerivedAttributes() { + return this.derivedAttributes != null && !(this.derivedAttributes.isEmpty()); + } + public boolean hasDeviceClassName() { return this.deviceClassName != null; } + public boolean hasMatchingDerivedAttribute(Predicate predicate) { + for (V1beta2DeviceDerivedAttributeBuilder item : derivedAttributes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingSelector(Predicate predicate) { for (V1beta2DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -393,7 +521,19 @@ public boolean hasTolerations() { } public int hashCode() { - return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, selectors, tolerations); + return Objects.hash(adminAccess, allocationMode, capacity, count, derivedAttributes, deviceClassName, selectors, tolerations); + } + + public A removeAllFromDerivedAttributes(Collection items) { + if (this.derivedAttributes == null) { + return (A) this; + } + for (V1beta2DeviceDerivedAttribute item : items) { + V1beta2DeviceDerivedAttributeBuilder builder = new V1beta2DeviceDerivedAttributeBuilder(item); + _visitables.get("derivedAttributes").remove(builder); + this.derivedAttributes.remove(builder); + } + return (A) this; } public A removeAllFromSelectors(Collection items) { @@ -420,6 +560,18 @@ public A removeAllFromTolerations(Collection items) { return (A) this; } + public A removeFromDerivedAttributes(V1beta2DeviceDerivedAttribute... items) { + if (this.derivedAttributes == null) { + return (A) this; + } + for (V1beta2DeviceDerivedAttribute item : items) { + V1beta2DeviceDerivedAttributeBuilder builder = new V1beta2DeviceDerivedAttributeBuilder(item); + _visitables.get("derivedAttributes").remove(builder); + this.derivedAttributes.remove(builder); + } + return (A) this; + } + public A removeFromSelectors(V1beta2DeviceSelector... items) { if (this.selectors == null) { return (A) this; @@ -444,11 +596,29 @@ public A removeFromTolerations(V1beta2DeviceToleration... items) { return (A) this; } + public A removeMatchingFromDerivedAttributes(Predicate predicate) { + if (derivedAttributes == null) { + return (A) this; + } + Iterator each = derivedAttributes.iterator(); + @SuppressWarnings({"rawtypes"}) + List visitables = this._visitables.get("derivedAttributes"); + while (each.hasNext()) { + V1beta2DeviceDerivedAttributeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public A removeMatchingFromSelectors(Predicate predicate) { if (selectors == null) { return (A) this; } Iterator each = selectors.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1beta2DeviceSelectorBuilder builder = each.next(); @@ -465,6 +635,7 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } Iterator each = tolerations.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1beta2DeviceTolerationBuilder builder = each.next(); @@ -476,17 +647,36 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } + public DerivedAttributesNested setNewDerivedAttributeLike(int index,V1beta2DeviceDerivedAttribute item) { + return new DerivedAttributesNested<>(index, item); + } + public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { - return new SelectorsNested(index, item); + return new SelectorsNested<>(index, item); } public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { - return new TolerationsNested(index, item); + return new TolerationsNested<>(index, item); + } + + public A setToDerivedAttributes(int index,V1beta2DeviceDerivedAttribute item) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + V1beta2DeviceDerivedAttributeBuilder builder = new V1beta2DeviceDerivedAttributeBuilder(item); + if (index < 0 || index >= this.derivedAttributes.size()) { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.add(builder); + } else { + this._visitables.get("derivedAttributes").add(builder); + this.derivedAttributes.set(index, builder); + } + return (A) this; } public A setToSelectors(int index,V1beta2DeviceSelector item) { if (this.selectors == null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); if (index < 0 || index >= this.selectors.size()) { @@ -501,7 +691,7 @@ public A setToSelectors(int index,V1beta2DeviceSelector item) { public A setToTolerations(int index,V1beta2DeviceToleration item) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); if (index < 0 || index >= this.tolerations.size()) { @@ -537,6 +727,11 @@ public String toString() { sb.append(count); sb.append(","); } + if (!(derivedAttributes == null) && !(derivedAttributes.isEmpty())) { + sb.append("derivedAttributes:"); + sb.append(derivedAttributes); + sb.append(","); + } if (!(deviceClassName == null)) { sb.append("deviceClassName:"); sb.append(deviceClassName); @@ -575,8 +770,8 @@ public A withCapacity(V1beta2CapacityRequirements capacity) { this.capacity = new V1beta2CapacityRequirementsBuilder(capacity); this._visitables.get("capacity").add(this.capacity); } else { - this.capacity = null; this._visitables.get("capacity").remove(this.capacity); + this.capacity = null; } return (A) this; } @@ -586,17 +781,45 @@ public A withCount(Long count) { return (A) this; } + public A withDerivedAttributes(List derivedAttributes) { + if (this.derivedAttributes != null) { + this._visitables.get("derivedAttributes").clear(); + } + if (derivedAttributes != null) { + this.derivedAttributes = new ArrayList<>(); + for (V1beta2DeviceDerivedAttribute item : derivedAttributes) { + this.addToDerivedAttributes(item); + } + } else { + this.derivedAttributes = null; + } + return (A) this; + } + + public A withDerivedAttributes(V1beta2DeviceDerivedAttribute... derivedAttributes) { + if (this.derivedAttributes != null) { + this.derivedAttributes.clear(); + _visitables.remove("derivedAttributes"); + } + if (derivedAttributes != null) { + for (V1beta2DeviceDerivedAttribute item : derivedAttributes) { + this.addToDerivedAttributes(item); + } + } + return (A) this; + } + public A withDeviceClassName(String deviceClassName) { this.deviceClassName = deviceClassName; return (A) this; } public CapacityNested withNewCapacity() { - return new CapacityNested(null); + return new CapacityNested<>(null); } public CapacityNested withNewCapacityLike(V1beta2CapacityRequirements item) { - return new CapacityNested(item); + return new CapacityNested<>(item); } public A withSelectors(List selectors) { @@ -604,7 +827,7 @@ public A withSelectors(List selectors) { this._visitables.get("selectors").clear(); } if (selectors != null) { - this.selectors = new ArrayList(); + this.selectors = new ArrayList<>(); for (V1beta2DeviceSelector item : selectors) { this.addToSelectors(item); } @@ -632,7 +855,7 @@ public A withTolerations(List tolerations) { this._visitables.get("tolerations").clear(); } if (tolerations != null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); for (V1beta2DeviceToleration item : tolerations) { this.addToTolerations(item); } @@ -670,6 +893,25 @@ public N endCapacity() { return and(); } + } + public class DerivedAttributesNested extends V1beta2DeviceDerivedAttributeFluent> implements Nested{ + + V1beta2DeviceDerivedAttributeBuilder builder; + int index; + + DerivedAttributesNested(int index,V1beta2DeviceDerivedAttribute item) { + this.index = index; + this.builder = new V1beta2DeviceDerivedAttributeBuilder(this, item); + } + + public N and() { + return (N) V1beta2ExactDeviceRequestFluent.this.setToDerivedAttributes(index, builder.build()); + } + + public N endDerivedAttribute() { + return and(); + } + } public class SelectorsNested extends V1beta2DeviceSelectorFluent> implements Nested{ 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 index a9682ac984..622ecfac9c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2NetworkDeviceDataBuilder extends V1beta2NetworkDeviceDataFluent implements VisitableBuilder{ V1beta2NetworkDeviceDataFluent fluent; 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 index 0f744ca7b6..7a6cfb9bb5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java @@ -22,12 +22,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2NetworkDeviceDataFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2NetworkDeviceDataFluent> extends BaseFluent{ private String hardwareAddress; private String interfaceName; @@ -42,7 +44,7 @@ public V1beta2NetworkDeviceDataFluent(V1beta2NetworkDeviceData instance) { public A addAllToIps(Collection items) { if (this.ips == null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); } for (String item : items) { this.ips.add(item); @@ -52,7 +54,7 @@ public A addAllToIps(Collection items) { public A addToIps(String... items) { if (this.ips == null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); } for (String item : items) { this.ips.add(item); @@ -62,7 +64,7 @@ public A addToIps(String... items) { public A addToIps(int index,String item) { if (this.ips == null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); } this.ips.add(index, item); return (A) this; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2NetworkDeviceDataFluent that = (V1beta2NetworkDeviceDataFluent) o; + V1beta2NetworkDeviceDataFluent that = (V1beta2NetworkDeviceDataFluent) o; if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { return false; } @@ -180,7 +182,7 @@ public A removeFromIps(String... items) { public A setToIps(int index,String item) { if (this.ips == null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); } this.ips.set(index, item); return (A) this; @@ -219,7 +221,7 @@ public A withInterfaceName(String interfaceName) { public A withIps(List ips) { if (ips != null) { - this.ips = new ArrayList(); + this.ips = new ArrayList<>(); for (String item : ips) { this.addToIps(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableMappingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableMappingBuilder.java new file mode 100644 index 0000000000..beab033884 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableMappingBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta2NodeAllocatableMappingBuilder extends V1beta2NodeAllocatableMappingFluent implements VisitableBuilder{ + + V1beta2NodeAllocatableMappingFluent fluent; + + public V1beta2NodeAllocatableMappingBuilder() { + this(new V1beta2NodeAllocatableMapping()); + } + + public V1beta2NodeAllocatableMappingBuilder(V1beta2NodeAllocatableMappingFluent fluent) { + this(fluent, new V1beta2NodeAllocatableMapping()); + } + + public V1beta2NodeAllocatableMappingBuilder(V1beta2NodeAllocatableMapping instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2NodeAllocatableMappingBuilder(V1beta2NodeAllocatableMappingFluent fluent,V1beta2NodeAllocatableMapping instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2NodeAllocatableMapping build() { + V1beta2NodeAllocatableMapping buildable = new V1beta2NodeAllocatableMapping(); + buildable.setCapacityKey(fluent.getCapacityKey()); + buildable.setCapacityMultiplier(fluent.getCapacityMultiplier()); + buildable.setDeviceMultiplier(fluent.getDeviceMultiplier()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableMappingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableMappingFluent.java new file mode 100644 index 0000000000..5f96dd1331 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableMappingFluent.java @@ -0,0 +1,146 @@ +/* +Copyright 2026 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 io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2NodeAllocatableMappingFluent> extends BaseFluent{ + + private String capacityKey; + private Quantity capacityMultiplier; + private Quantity deviceMultiplier; + + public V1beta2NodeAllocatableMappingFluent() { + } + + public V1beta2NodeAllocatableMappingFluent(V1beta2NodeAllocatableMapping instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta2NodeAllocatableMapping instance) { + instance = instance != null ? instance : new V1beta2NodeAllocatableMapping(); + if (instance != null) { + this.withCapacityKey(instance.getCapacityKey()); + this.withCapacityMultiplier(instance.getCapacityMultiplier()); + this.withDeviceMultiplier(instance.getDeviceMultiplier()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2NodeAllocatableMappingFluent that = (V1beta2NodeAllocatableMappingFluent) o; + if (!(Objects.equals(capacityKey, that.capacityKey))) { + return false; + } + if (!(Objects.equals(capacityMultiplier, that.capacityMultiplier))) { + return false; + } + if (!(Objects.equals(deviceMultiplier, that.deviceMultiplier))) { + return false; + } + return true; + } + + public String getCapacityKey() { + return this.capacityKey; + } + + public Quantity getCapacityMultiplier() { + return this.capacityMultiplier; + } + + public Quantity getDeviceMultiplier() { + return this.deviceMultiplier; + } + + public boolean hasCapacityKey() { + return this.capacityKey != null; + } + + public boolean hasCapacityMultiplier() { + return this.capacityMultiplier != null; + } + + public boolean hasDeviceMultiplier() { + return this.deviceMultiplier != null; + } + + public int hashCode() { + return Objects.hash(capacityKey, capacityMultiplier, deviceMultiplier); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(capacityKey == null)) { + sb.append("capacityKey:"); + sb.append(capacityKey); + sb.append(","); + } + if (!(capacityMultiplier == null)) { + sb.append("capacityMultiplier:"); + sb.append(capacityMultiplier); + sb.append(","); + } + if (!(deviceMultiplier == null)) { + sb.append("deviceMultiplier:"); + sb.append(deviceMultiplier); + } + sb.append("}"); + return sb.toString(); + } + + public A withCapacityKey(String capacityKey) { + this.capacityKey = capacityKey; + return (A) this; + } + + public A withCapacityMultiplier(Quantity capacityMultiplier) { + this.capacityMultiplier = capacityMultiplier; + return (A) this; + } + + public A withDeviceMultiplier(Quantity deviceMultiplier) { + this.deviceMultiplier = deviceMultiplier; + return (A) this; + } + + public A withNewCapacityMultiplier(String value) { + return (A) this.withCapacityMultiplier(new Quantity(value)); + } + + public A withNewDeviceMultiplier(String value) { + return (A) this.withDeviceMultiplier(new Quantity(value)); + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableOverheadBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableOverheadBuilder.java new file mode 100644 index 0000000000..7b8945f94e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableOverheadBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta2NodeAllocatableOverheadBuilder extends V1beta2NodeAllocatableOverheadFluent implements VisitableBuilder{ + + V1beta2NodeAllocatableOverheadFluent fluent; + + public V1beta2NodeAllocatableOverheadBuilder() { + this(new V1beta2NodeAllocatableOverhead()); + } + + public V1beta2NodeAllocatableOverheadBuilder(V1beta2NodeAllocatableOverheadFluent fluent) { + this(fluent, new V1beta2NodeAllocatableOverhead()); + } + + public V1beta2NodeAllocatableOverheadBuilder(V1beta2NodeAllocatableOverhead instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2NodeAllocatableOverheadBuilder(V1beta2NodeAllocatableOverheadFluent fluent,V1beta2NodeAllocatableOverhead instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2NodeAllocatableOverhead build() { + V1beta2NodeAllocatableOverhead buildable = new V1beta2NodeAllocatableOverhead(); + buildable.setPerContainer(fluent.getPerContainer()); + buildable.setPerPod(fluent.getPerPod()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableOverheadFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableOverheadFluent.java new file mode 100644 index 0000000000..d180bd07bd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableOverheadFluent.java @@ -0,0 +1,123 @@ +/* +Copyright 2026 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 io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2NodeAllocatableOverheadFluent> extends BaseFluent{ + + private Quantity perContainer; + private Quantity perPod; + + public V1beta2NodeAllocatableOverheadFluent() { + } + + public V1beta2NodeAllocatableOverheadFluent(V1beta2NodeAllocatableOverhead instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta2NodeAllocatableOverhead instance) { + instance = instance != null ? instance : new V1beta2NodeAllocatableOverhead(); + if (instance != null) { + this.withPerContainer(instance.getPerContainer()); + this.withPerPod(instance.getPerPod()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2NodeAllocatableOverheadFluent that = (V1beta2NodeAllocatableOverheadFluent) o; + if (!(Objects.equals(perContainer, that.perContainer))) { + return false; + } + if (!(Objects.equals(perPod, that.perPod))) { + return false; + } + return true; + } + + public Quantity getPerContainer() { + return this.perContainer; + } + + public Quantity getPerPod() { + return this.perPod; + } + + public boolean hasPerContainer() { + return this.perContainer != null; + } + + public boolean hasPerPod() { + return this.perPod != null; + } + + public int hashCode() { + return Objects.hash(perContainer, perPod); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(perContainer == null)) { + sb.append("perContainer:"); + sb.append(perContainer); + sb.append(","); + } + if (!(perPod == null)) { + sb.append("perPod:"); + sb.append(perPod); + } + sb.append("}"); + return sb.toString(); + } + + public A withNewPerContainer(String value) { + return (A) this.withPerContainer(new Quantity(value)); + } + + public A withNewPerPod(String value) { + return (A) this.withPerPod(new Quantity(value)); + } + + public A withPerContainer(Quantity perContainer) { + this.perContainer = perContainer; + return (A) this; + } + + public A withPerPod(Quantity perPod) { + this.perPod = perPod; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceBuilder.java new file mode 100644 index 0000000000..5ff4e36080 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") +public class V1beta2NodeAllocatableResourceBuilder extends V1beta2NodeAllocatableResourceFluent implements VisitableBuilder{ + + V1beta2NodeAllocatableResourceFluent fluent; + + public V1beta2NodeAllocatableResourceBuilder() { + this(new V1beta2NodeAllocatableResource()); + } + + public V1beta2NodeAllocatableResourceBuilder(V1beta2NodeAllocatableResourceFluent fluent) { + this(fluent, new V1beta2NodeAllocatableResource()); + } + + public V1beta2NodeAllocatableResourceBuilder(V1beta2NodeAllocatableResource instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2NodeAllocatableResourceBuilder(V1beta2NodeAllocatableResourceFluent fluent,V1beta2NodeAllocatableResource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2NodeAllocatableResource build() { + V1beta2NodeAllocatableResource buildable = new V1beta2NodeAllocatableResource(); + buildable.setMapping(fluent.buildMapping()); + buildable.setOverhead(fluent.buildOverhead()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceFluent.java new file mode 100644 index 0000000000..9465af5cb2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceFluent.java @@ -0,0 +1,203 @@ +/* +Copyright 2026 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 io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.processing.Generated; + +/** + * Generated + */ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2NodeAllocatableResourceFluent> extends BaseFluent{ + + private V1beta2NodeAllocatableMappingBuilder mapping; + private V1beta2NodeAllocatableOverheadBuilder overhead; + + public V1beta2NodeAllocatableResourceFluent() { + } + + public V1beta2NodeAllocatableResourceFluent(V1beta2NodeAllocatableResource instance) { + this.copyInstance(instance); + } + + public V1beta2NodeAllocatableMapping buildMapping() { + return this.mapping != null ? this.mapping.build() : null; + } + + public V1beta2NodeAllocatableOverhead buildOverhead() { + return this.overhead != null ? this.overhead.build() : null; + } + + protected void copyInstance(V1beta2NodeAllocatableResource instance) { + instance = instance != null ? instance : new V1beta2NodeAllocatableResource(); + if (instance != null) { + this.withMapping(instance.getMapping()); + this.withOverhead(instance.getOverhead()); + } + } + + public MappingNested editMapping() { + return this.withNewMappingLike(Optional.ofNullable(this.buildMapping()).orElse(null)); + } + + public MappingNested editOrNewMapping() { + return this.withNewMappingLike(Optional.ofNullable(this.buildMapping()).orElse(new V1beta2NodeAllocatableMappingBuilder().build())); + } + + public MappingNested editOrNewMappingLike(V1beta2NodeAllocatableMapping item) { + return this.withNewMappingLike(Optional.ofNullable(this.buildMapping()).orElse(item)); + } + + public OverheadNested editOrNewOverhead() { + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(new V1beta2NodeAllocatableOverheadBuilder().build())); + } + + public OverheadNested editOrNewOverheadLike(V1beta2NodeAllocatableOverhead item) { + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(item)); + } + + public OverheadNested editOverhead() { + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2NodeAllocatableResourceFluent that = (V1beta2NodeAllocatableResourceFluent) o; + if (!(Objects.equals(mapping, that.mapping))) { + return false; + } + if (!(Objects.equals(overhead, that.overhead))) { + return false; + } + return true; + } + + public boolean hasMapping() { + return this.mapping != null; + } + + public boolean hasOverhead() { + return this.overhead != null; + } + + public int hashCode() { + return Objects.hash(mapping, overhead); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(mapping == null)) { + sb.append("mapping:"); + sb.append(mapping); + sb.append(","); + } + if (!(overhead == null)) { + sb.append("overhead:"); + sb.append(overhead); + } + sb.append("}"); + return sb.toString(); + } + + public A withMapping(V1beta2NodeAllocatableMapping mapping) { + this._visitables.remove("mapping"); + if (mapping != null) { + this.mapping = new V1beta2NodeAllocatableMappingBuilder(mapping); + this._visitables.get("mapping").add(this.mapping); + } else { + this._visitables.get("mapping").remove(this.mapping); + this.mapping = null; + } + return (A) this; + } + + public MappingNested withNewMapping() { + return new MappingNested<>(null); + } + + public MappingNested withNewMappingLike(V1beta2NodeAllocatableMapping item) { + return new MappingNested<>(item); + } + + public OverheadNested withNewOverhead() { + return new OverheadNested<>(null); + } + + public OverheadNested withNewOverheadLike(V1beta2NodeAllocatableOverhead item) { + return new OverheadNested<>(item); + } + + public A withOverhead(V1beta2NodeAllocatableOverhead overhead) { + this._visitables.remove("overhead"); + if (overhead != null) { + this.overhead = new V1beta2NodeAllocatableOverheadBuilder(overhead); + this._visitables.get("overhead").add(this.overhead); + } else { + this._visitables.get("overhead").remove(this.overhead); + this.overhead = null; + } + return (A) this; + } + public class MappingNested extends V1beta2NodeAllocatableMappingFluent> implements Nested{ + + V1beta2NodeAllocatableMappingBuilder builder; + + MappingNested(V1beta2NodeAllocatableMapping item) { + this.builder = new V1beta2NodeAllocatableMappingBuilder(this, item); + } + + public N and() { + return (N) V1beta2NodeAllocatableResourceFluent.this.withMapping(builder.build()); + } + + public N endMapping() { + return and(); + } + + } + public class OverheadNested extends V1beta2NodeAllocatableOverheadFluent> implements Nested{ + + V1beta2NodeAllocatableOverheadBuilder builder; + + OverheadNested(V1beta2NodeAllocatableOverhead item) { + this.builder = new V1beta2NodeAllocatableOverheadBuilder(this, item); + } + + public N and() { + return (N) V1beta2NodeAllocatableResourceFluent.this.withOverhead(builder.build()); + } + + public N endOverhead() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMappingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMappingBuilder.java deleted file mode 100644 index 422f9cc22c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMappingBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1beta2NodeAllocatableResourceMappingBuilder extends V1beta2NodeAllocatableResourceMappingFluent implements VisitableBuilder{ - - V1beta2NodeAllocatableResourceMappingFluent fluent; - - public V1beta2NodeAllocatableResourceMappingBuilder() { - this(new V1beta2NodeAllocatableResourceMapping()); - } - - public V1beta2NodeAllocatableResourceMappingBuilder(V1beta2NodeAllocatableResourceMappingFluent fluent) { - this(fluent, new V1beta2NodeAllocatableResourceMapping()); - } - - public V1beta2NodeAllocatableResourceMappingBuilder(V1beta2NodeAllocatableResourceMapping instance) { - this.fluent = this; - this.copyInstance(instance); - } - - public V1beta2NodeAllocatableResourceMappingBuilder(V1beta2NodeAllocatableResourceMappingFluent fluent,V1beta2NodeAllocatableResourceMapping instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta2NodeAllocatableResourceMapping build() { - V1beta2NodeAllocatableResourceMapping buildable = new V1beta2NodeAllocatableResourceMapping(); - buildable.setAllocationMultiplier(fluent.getAllocationMultiplier()); - buildable.setCapacityKey(fluent.getCapacityKey()); - return buildable; - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMappingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMappingFluent.java deleted file mode 100644 index 57da55aa6a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMappingFluent.java +++ /dev/null @@ -1,117 +0,0 @@ -/* -Copyright 2026 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 io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import java.util.Objects; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta2NodeAllocatableResourceMappingFluent> extends BaseFluent{ - - private Quantity allocationMultiplier; - private String capacityKey; - - public V1beta2NodeAllocatableResourceMappingFluent() { - } - - public V1beta2NodeAllocatableResourceMappingFluent(V1beta2NodeAllocatableResourceMapping instance) { - this.copyInstance(instance); - } - - protected void copyInstance(V1beta2NodeAllocatableResourceMapping instance) { - instance = instance != null ? instance : new V1beta2NodeAllocatableResourceMapping(); - if (instance != null) { - this.withAllocationMultiplier(instance.getAllocationMultiplier()); - this.withCapacityKey(instance.getCapacityKey()); - } - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2NodeAllocatableResourceMappingFluent that = (V1beta2NodeAllocatableResourceMappingFluent) o; - if (!(Objects.equals(allocationMultiplier, that.allocationMultiplier))) { - return false; - } - if (!(Objects.equals(capacityKey, that.capacityKey))) { - return false; - } - return true; - } - - public Quantity getAllocationMultiplier() { - return this.allocationMultiplier; - } - - public String getCapacityKey() { - return this.capacityKey; - } - - public boolean hasAllocationMultiplier() { - return this.allocationMultiplier != null; - } - - public boolean hasCapacityKey() { - return this.capacityKey != null; - } - - public int hashCode() { - return Objects.hash(allocationMultiplier, capacityKey); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(allocationMultiplier == null)) { - sb.append("allocationMultiplier:"); - sb.append(allocationMultiplier); - sb.append(","); - } - if (!(capacityKey == null)) { - sb.append("capacityKey:"); - sb.append(capacityKey); - } - sb.append("}"); - return sb.toString(); - } - - public A withAllocationMultiplier(Quantity allocationMultiplier) { - this.allocationMultiplier = allocationMultiplier; - return (A) this; - } - - public A withCapacityKey(String capacityKey) { - this.capacityKey = capacityKey; - return (A) this; - } - - public A withNewAllocationMultiplier(String value) { - return (A) this.withAllocationMultiplier(new Quantity(value)); - } - -} \ 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 index 6ecaf1409b..8d086b7382 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2OpaqueDeviceConfigurationBuilder extends V1beta2OpaqueDeviceConfigurationFluent implements VisitableBuilder{ V1beta2OpaqueDeviceConfigurationFluent fluent; 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 index df97929adb..1d16e734ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2OpaqueDeviceConfigurationFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2OpaqueDeviceConfigurationFluent> extends BaseFluent{ private String driver; private Object parameters; @@ -53,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2OpaqueDeviceConfigurationFluent that = (V1beta2OpaqueDeviceConfigurationFluent) o; + V1beta2OpaqueDeviceConfigurationFluent that = (V1beta2OpaqueDeviceConfigurationFluent) o; if (!(Objects.equals(driver, that.driver))) { return false; } 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 index 6996210fc1..2c47c42b38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2ResourceClaimBuilder extends V1beta2ResourceClaimFluent implements VisitableBuilder{ V1beta2ResourceClaimFluent fluent; 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 index 656bb8142f..7d93b43b82 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2ResourceClaimConsumerReferenceBuilder extends V1beta2ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ V1beta2ResourceClaimConsumerReferenceFluent fluent; 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 index 2f17d33324..d1aa2eb838 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2ResourceClaimConsumerReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2ResourceClaimConsumerReferenceFluent> extends BaseFluent{ private String apiGroup; private String name; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2ResourceClaimConsumerReferenceFluent that = (V1beta2ResourceClaimConsumerReferenceFluent) o; + V1beta2ResourceClaimConsumerReferenceFluent that = (V1beta2ResourceClaimConsumerReferenceFluent) o; if (!(Objects.equals(apiGroup, that.apiGroup))) { return false; } 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 index da5350d35e..63a7278c3e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2ResourceClaimFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2ResourceClaimFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2ResourceClaimFluent that = (V1beta2ResourceClaimFluent) o; + V1beta2ResourceClaimFluent that = (V1beta2ResourceClaimFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V1beta2ResourceClaimStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V1beta2ResourceClaimSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V1beta2ResourceClaimSpec spec) { this.spec = new V1beta2ResourceClaimSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V1beta2ResourceClaimStatus status) { this.status = new V1beta2ResourceClaimStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } 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 index 88e6045d7d..051990bd32 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2ResourceClaimListBuilder extends V1beta2ResourceClaimListFluent implements VisitableBuilder{ V1beta2ResourceClaimListFluent fluent; 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 index 30a470971b..5b5bb210c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2ResourceClaimListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2ResourceClaimListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta2ResourceClaimListFluent(V1beta2ResourceClaimList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta2ResourceClaim item : items) { V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta2ResourceClaim item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta2ResourceClaim... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta2ResourceClaim item : items) { V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta2ResourceClaim... items) { public A addToItems(int index,V1beta2ResourceClaim item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2ResourceClaimListFluent that = (V1beta2ResourceClaimListFluent) o; + V1beta2ResourceClaimListFluent that = (V1beta2ResourceClaimListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta2ResourceClaimBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicat } public ItemsNested setNewItemLike(int index,V1beta2ResourceClaim item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta2ResourceClaim item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta2ResourceClaim item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta2ResourceClaimFluent> implements Nested{ 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 index f671281561..92aef23aff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2ResourceClaimSpecBuilder extends V1beta2ResourceClaimSpecFluent implements VisitableBuilder{ V1beta2ResourceClaimSpecFluent fluent; 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 index 1f39da8971..26cfe58e8b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2ResourceClaimSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2ResourceClaimSpecFluent> extends BaseFluent{ private V1beta2DeviceClaimBuilder devices; @@ -69,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2ResourceClaimSpecFluent that = (V1beta2ResourceClaimSpecFluent) o; + V1beta2ResourceClaimSpecFluent that = (V1beta2ResourceClaimSpecFluent) o; if (!(Objects.equals(devices, that.devices))) { return false; } @@ -101,18 +103,18 @@ public A withDevices(V1beta2DeviceClaim devices) { this.devices = new V1beta2DeviceClaimBuilder(devices); this._visitables.get("devices").add(this.devices); } else { - this.devices = null; this._visitables.get("devices").remove(this.devices); + this.devices = null; } return (A) this; } public DevicesNested withNewDevices() { - return new DevicesNested(null); + return new DevicesNested<>(null); } public DevicesNested withNewDevicesLike(V1beta2DeviceClaim item) { - return new DevicesNested(item); + return new DevicesNested<>(item); } public class DevicesNested extends V1beta2DeviceClaimFluent> implements Nested{ 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 index 4bd2547530..3f40b35632 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2ResourceClaimStatusBuilder extends V1beta2ResourceClaimStatusFluent implements VisitableBuilder{ V1beta2ResourceClaimStatusFluent fluent; 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 index 322199ba26..9724ca5c4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2ResourceClaimStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2ResourceClaimStatusFluent> extends BaseFluent{ private V1beta2AllocationResultBuilder allocation; private ArrayList devices; @@ -46,7 +48,7 @@ public V1beta2ResourceClaimStatusFluent(V1beta2ResourceClaimStatus instance) { public A addAllToDevices(Collection items) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } for (V1beta2AllocatedDeviceStatus item : items) { V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); @@ -58,7 +60,7 @@ public A addAllToDevices(Collection items) { public A addAllToReservedFor(Collection items) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); } for (V1beta2ResourceClaimConsumerReference item : items) { V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); @@ -69,24 +71,24 @@ public A addAllToReservedFor(Collection i } public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); + return new DevicesNested<>(-1, null); } public DevicesNested addNewDeviceLike(V1beta2AllocatedDeviceStatus item) { - return new DevicesNested(-1, item); + return new DevicesNested<>(-1, item); } public ReservedForNested addNewReservedFor() { - return new ReservedForNested(-1, null); + return new ReservedForNested<>(-1, null); } public ReservedForNested addNewReservedForLike(V1beta2ResourceClaimConsumerReference item) { - return new ReservedForNested(-1, item); + return new ReservedForNested<>(-1, item); } public A addToDevices(V1beta2AllocatedDeviceStatus... items) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } for (V1beta2AllocatedDeviceStatus item : items) { V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); @@ -98,7 +100,7 @@ public A addToDevices(V1beta2AllocatedDeviceStatus... items) { public A addToDevices(int index,V1beta2AllocatedDeviceStatus item) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); if (index < 0 || index >= this.devices.size()) { @@ -113,7 +115,7 @@ public A addToDevices(int index,V1beta2AllocatedDeviceStatus item) { public A addToReservedFor(V1beta2ResourceClaimConsumerReference... items) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); } for (V1beta2ResourceClaimConsumerReference item : items) { V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); @@ -125,7 +127,7 @@ public A addToReservedFor(V1beta2ResourceClaimConsumerReference... items) { public A addToReservedFor(int index,V1beta2ResourceClaimConsumerReference item) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); } V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); if (index < 0 || index >= this.reservedFor.size()) { @@ -295,7 +297,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2ResourceClaimStatusFluent that = (V1beta2ResourceClaimStatusFluent) o; + V1beta2ResourceClaimStatusFluent that = (V1beta2ResourceClaimStatusFluent) o; if (!(Objects.equals(allocation, that.allocation))) { return false; } @@ -395,6 +397,7 @@ public A removeMatchingFromDevices(Predicate each = devices.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("devices"); while (each.hasNext()) { V1beta2AllocatedDeviceStatusBuilder builder = each.next(); @@ -411,6 +414,7 @@ public A removeMatchingFromReservedFor(Predicate each = reservedFor.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("reservedFor"); while (each.hasNext()) { V1beta2ResourceClaimConsumerReferenceBuilder builder = each.next(); @@ -423,16 +427,16 @@ public A removeMatchingFromReservedFor(Predicate setNewDeviceLike(int index,V1beta2AllocatedDeviceStatus item) { - return new DevicesNested(index, item); + return new DevicesNested<>(index, item); } public ReservedForNested setNewReservedForLike(int index,V1beta2ResourceClaimConsumerReference item) { - return new ReservedForNested(index, item); + return new ReservedForNested<>(index, item); } public A setToDevices(int index,V1beta2AllocatedDeviceStatus item) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); if (index < 0 || index >= this.devices.size()) { @@ -447,7 +451,7 @@ public A setToDevices(int index,V1beta2AllocatedDeviceStatus item) { public A setToReservedFor(int index,V1beta2ResourceClaimConsumerReference item) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); } V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); if (index < 0 || index >= this.reservedFor.size()) { @@ -487,8 +491,8 @@ public A withAllocation(V1beta2AllocationResult allocation) { this.allocation = new V1beta2AllocationResultBuilder(allocation); this._visitables.get("allocation").add(this.allocation); } else { - this.allocation = null; this._visitables.get("allocation").remove(this.allocation); + this.allocation = null; } return (A) this; } @@ -498,7 +502,7 @@ public A withDevices(List devices) { this._visitables.get("devices").clear(); } if (devices != null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); for (V1beta2AllocatedDeviceStatus item : devices) { this.addToDevices(item); } @@ -522,11 +526,11 @@ public A withDevices(V1beta2AllocatedDeviceStatus... devices) { } public AllocationNested withNewAllocation() { - return new AllocationNested(null); + return new AllocationNested<>(null); } public AllocationNested withNewAllocationLike(V1beta2AllocationResult item) { - return new AllocationNested(item); + return new AllocationNested<>(item); } public A withReservedFor(List reservedFor) { @@ -534,7 +538,7 @@ public A withReservedFor(List reservedFor this._visitables.get("reservedFor").clear(); } if (reservedFor != null) { - this.reservedFor = new ArrayList(); + this.reservedFor = new ArrayList<>(); for (V1beta2ResourceClaimConsumerReference item : reservedFor) { this.addToReservedFor(item); } 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 index 058d898eaf..84f017836c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2ResourceClaimTemplateBuilder extends V1beta2ResourceClaimTemplateFluent implements VisitableBuilder{ V1beta2ResourceClaimTemplateFluent fluent; 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 index 3bb6ac4d88..23ff2071d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2ResourceClaimTemplateFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2ResourceClaimTemplateFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2ResourceClaimTemplateFluent that = (V1beta2ResourceClaimTemplateFluent) o; + V1beta2ResourceClaimTemplateFluent that = (V1beta2ResourceClaimTemplateFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta2ResourceClaimTemplateSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1beta2ResourceClaimTemplateSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1beta2ResourceClaimTemplateSpec spec) { this.spec = new V1beta2ResourceClaimTemplateSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } 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 index f84c68bdfd..d7b65d4098 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2ResourceClaimTemplateListBuilder extends V1beta2ResourceClaimTemplateListFluent implements VisitableBuilder{ V1beta2ResourceClaimTemplateListFluent fluent; 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 index eab1d0011a..73b7ac2547 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2ResourceClaimTemplateListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2ResourceClaimTemplateListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta2ResourceClaimTemplateListFluent(V1beta2ResourceClaimTemplateList i public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta2ResourceClaimTemplate item : items) { V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta2ResourceClaimTemplate item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta2ResourceClaimTemplate... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta2ResourceClaimTemplate item : items) { V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta2ResourceClaimTemplate... items) { public A addToItems(int index,V1beta2ResourceClaimTemplate item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2ResourceClaimTemplateListFluent that = (V1beta2ResourceClaimTemplateListFluent) o; + V1beta2ResourceClaimTemplateListFluent that = (V1beta2ResourceClaimTemplateListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta2ResourceClaimTemplateBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate } public ItemsNested setNewItemLike(int index,V1beta2ResourceClaimTemplate item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta2ResourceClaimTemplate item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta2ResourceClaimTemplate item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta2ResourceClaimTemplateFluent> implements Nested{ 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 index d74d260da3..31cf4367ee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2ResourceClaimTemplateSpecBuilder extends V1beta2ResourceClaimTemplateSpecFluent implements VisitableBuilder{ V1beta2ResourceClaimTemplateSpecFluent fluent; 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 index 6af846cc86..c915c5d037 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2ResourceClaimTemplateSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2ResourceClaimTemplateSpecFluent> extends BaseFluent{ private V1ObjectMetaBuilder metadata; private V1beta2ResourceClaimSpecBuilder spec; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2ResourceClaimTemplateSpecFluent that = (V1beta2ResourceClaimTemplateSpecFluent) o; + V1beta2ResourceClaimTemplateSpecFluent that = (V1beta2ResourceClaimTemplateSpecFluent) o; if (!(Objects.equals(metadata, that.metadata))) { return false; } @@ -131,26 +133,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1beta2ResourceClaimSpec spec) { @@ -159,8 +161,8 @@ public A withSpec(V1beta2ResourceClaimSpec spec) { this.spec = new V1beta2ResourceClaimSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } 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 index ae02371e08..aaee99d599 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2ResourcePoolBuilder extends V1beta2ResourcePoolFluent implements VisitableBuilder{ V1beta2ResourcePoolFluent fluent; 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 index a5d74fcb5b..a52e6d5cea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2ResourcePoolFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2ResourcePoolFluent> extends BaseFluent{ private Long generation; private String name; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2ResourcePoolFluent that = (V1beta2ResourcePoolFluent) o; + V1beta2ResourcePoolFluent that = (V1beta2ResourcePoolFluent) o; if (!(Objects.equals(generation, that.generation))) { return false; } 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 index 16745e8977..56a065ad39 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2ResourceSliceBuilder extends V1beta2ResourceSliceFluent implements VisitableBuilder{ V1beta2ResourceSliceFluent fluent; 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 index bda3f1b360..472fef61a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2ResourceSliceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2ResourceSliceFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -91,7 +93,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2ResourceSliceFluent that = (V1beta2ResourceSliceFluent) o; + V1beta2ResourceSliceFluent that = (V1beta2ResourceSliceFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -177,26 +179,26 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V1beta2ResourceSliceSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public A withSpec(V1beta2ResourceSliceSpec spec) { @@ -205,8 +207,8 @@ public A withSpec(V1beta2ResourceSliceSpec spec) { this.spec = new V1beta2ResourceSliceSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } 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 index c0af79e66d..b7d124b85d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2ResourceSliceListBuilder extends V1beta2ResourceSliceListFluent implements VisitableBuilder{ V1beta2ResourceSliceListFluent fluent; 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 index 6cbfaeecc7..c2c240f633 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2ResourceSliceListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2ResourceSliceListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V1beta2ResourceSliceListFluent(V1beta2ResourceSliceList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta2ResourceSlice item : items) { V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V1beta2ResourceSlice item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V1beta2ResourceSlice... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V1beta2ResourceSlice item : items) { V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V1beta2ResourceSlice... items) { public A addToItems(int index,V1beta2ResourceSlice item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2ResourceSliceListFluent that = (V1beta2ResourceSliceListFluent) o; + V1beta2ResourceSliceListFluent that = (V1beta2ResourceSliceListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta2ResourceSliceBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicat } public ItemsNested setNewItemLike(int index,V1beta2ResourceSlice item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V1beta2ResourceSlice item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V1beta2ResourceSlice item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V1beta2ResourceSliceFluent> implements Nested{ 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 index fd839d2b61..e9cb870f94 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V1beta2ResourceSliceSpecBuilder extends V1beta2ResourceSliceSpecFluent implements VisitableBuilder{ V1beta2ResourceSliceSpecFluent fluent; @@ -43,9 +44,11 @@ public V1beta2ResourceSliceSpec build() { buildable.setDriver(fluent.getDriver()); buildable.setNodeName(fluent.getNodeName()); buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setPartitionTypeAttribute(fluent.getPartitionTypeAttribute()); buildable.setPerDeviceNodeSelection(fluent.getPerDeviceNodeSelection()); buildable.setPool(fluent.buildPool()); buildable.setSharedCounters(fluent.buildSharedCounters()); + buildable.setSkipNodeOperations(fluent.getSkipNodeOperations()); return buildable; } 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 index 063de908c4..fa47801114 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java @@ -27,21 +27,25 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V1beta2ResourceSliceSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V1beta2ResourceSliceSpecFluent> extends BaseFluent{ private Boolean allNodes; private ArrayList devices; private String driver; private String nodeName; private V1NodeSelectorBuilder nodeSelector; + private String partitionTypeAttribute; private Boolean perDeviceNodeSelection; private V1beta2ResourcePoolBuilder pool; private ArrayList sharedCounters; + private List skipNodeOperations; public V1beta2ResourceSliceSpecFluent() { } @@ -52,7 +56,7 @@ public V1beta2ResourceSliceSpecFluent(V1beta2ResourceSliceSpec instance) { public A addAllToDevices(Collection items) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } for (V1beta2Device item : items) { V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); @@ -64,7 +68,7 @@ public A addAllToDevices(Collection items) { public A addAllToSharedCounters(Collection items) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); } for (V1beta2CounterSet item : items) { V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); @@ -74,25 +78,35 @@ public A addAllToSharedCounters(Collection items) { return (A) this; } + public A addAllToSkipNodeOperations(Collection items) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + for (String item : items) { + this.skipNodeOperations.add(item); + } + return (A) this; + } + public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); + return new DevicesNested<>(-1, null); } public DevicesNested addNewDeviceLike(V1beta2Device item) { - return new DevicesNested(-1, item); + return new DevicesNested<>(-1, item); } public SharedCountersNested addNewSharedCounter() { - return new SharedCountersNested(-1, null); + return new SharedCountersNested<>(-1, null); } public SharedCountersNested addNewSharedCounterLike(V1beta2CounterSet item) { - return new SharedCountersNested(-1, item); + return new SharedCountersNested<>(-1, item); } public A addToDevices(V1beta2Device... items) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } for (V1beta2Device item : items) { V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); @@ -104,7 +118,7 @@ public A addToDevices(V1beta2Device... items) { public A addToDevices(int index,V1beta2Device item) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); if (index < 0 || index >= this.devices.size()) { @@ -119,7 +133,7 @@ public A addToDevices(int index,V1beta2Device item) { public A addToSharedCounters(V1beta2CounterSet... items) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); } for (V1beta2CounterSet item : items) { V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); @@ -131,7 +145,7 @@ public A addToSharedCounters(V1beta2CounterSet... items) { public A addToSharedCounters(int index,V1beta2CounterSet item) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); } V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); if (index < 0 || index >= this.sharedCounters.size()) { @@ -144,6 +158,24 @@ public A addToSharedCounters(int index,V1beta2CounterSet item) { return (A) this; } + public A addToSkipNodeOperations(String... items) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + for (String item : items) { + this.skipNodeOperations.add(item); + } + return (A) this; + } + + public A addToSkipNodeOperations(int index,String item) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.add(index, item); + return (A) this; + } + public V1beta2Device buildDevice(int index) { return this.devices.get(index).build(); } @@ -210,9 +242,11 @@ protected void copyInstance(V1beta2ResourceSliceSpec instance) { this.withDriver(instance.getDriver()); this.withNodeName(instance.getNodeName()); this.withNodeSelector(instance.getNodeSelector()); + this.withPartitionTypeAttribute(instance.getPartitionTypeAttribute()); this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); this.withPool(instance.getPool()); this.withSharedCounters(instance.getSharedCounters()); + this.withSkipNodeOperations(instance.getSkipNodeOperations()); } } @@ -322,7 +356,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1beta2ResourceSliceSpecFluent that = (V1beta2ResourceSliceSpecFluent) o; + V1beta2ResourceSliceSpecFluent that = (V1beta2ResourceSliceSpecFluent) o; if (!(Objects.equals(allNodes, that.allNodes))) { return false; } @@ -338,6 +372,9 @@ public boolean equals(Object o) { if (!(Objects.equals(nodeSelector, that.nodeSelector))) { return false; } + if (!(Objects.equals(partitionTypeAttribute, that.partitionTypeAttribute))) { + return false; + } if (!(Objects.equals(perDeviceNodeSelection, that.perDeviceNodeSelection))) { return false; } @@ -347,6 +384,9 @@ public boolean equals(Object o) { if (!(Objects.equals(sharedCounters, that.sharedCounters))) { return false; } + if (!(Objects.equals(skipNodeOperations, that.skipNodeOperations))) { + return false; + } return true; } @@ -358,14 +398,43 @@ public String getDriver() { return this.driver; } + public String getFirstSkipNodeOperation() { + return this.skipNodeOperations.get(0); + } + + public String getLastSkipNodeOperation() { + return this.skipNodeOperations.get(skipNodeOperations.size() - 1); + } + + public String getMatchingSkipNodeOperation(Predicate predicate) { + for (String item : skipNodeOperations) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + public String getNodeName() { return this.nodeName; } + public String getPartitionTypeAttribute() { + return this.partitionTypeAttribute; + } + public Boolean getPerDeviceNodeSelection() { return this.perDeviceNodeSelection; } + public String getSkipNodeOperation(int index) { + return this.skipNodeOperations.get(index); + } + + public List getSkipNodeOperations() { + return this.skipNodeOperations; + } + public boolean hasAllNodes() { return this.allNodes != null; } @@ -396,6 +465,15 @@ public boolean hasMatchingSharedCounter(Predicate pred return false; } + public boolean hasMatchingSkipNodeOperation(Predicate predicate) { + for (String item : skipNodeOperations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasNodeName() { return this.nodeName != null; } @@ -404,6 +482,10 @@ public boolean hasNodeSelector() { return this.nodeSelector != null; } + public boolean hasPartitionTypeAttribute() { + return this.partitionTypeAttribute != null; + } + public boolean hasPerDeviceNodeSelection() { return this.perDeviceNodeSelection != null; } @@ -416,8 +498,12 @@ public boolean hasSharedCounters() { return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); } + public boolean hasSkipNodeOperations() { + return this.skipNodeOperations != null && !(this.skipNodeOperations.isEmpty()); + } + public int hashCode() { - return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); + return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, partitionTypeAttribute, perDeviceNodeSelection, pool, sharedCounters, skipNodeOperations); } public A removeAllFromDevices(Collection items) { @@ -444,6 +530,16 @@ public A removeAllFromSharedCounters(Collection items) { return (A) this; } + public A removeAllFromSkipNodeOperations(Collection items) { + if (this.skipNodeOperations == null) { + return (A) this; + } + for (String item : items) { + this.skipNodeOperations.remove(item); + } + return (A) this; + } + public A removeFromDevices(V1beta2Device... items) { if (this.devices == null) { return (A) this; @@ -468,11 +564,22 @@ public A removeFromSharedCounters(V1beta2CounterSet... items) { return (A) this; } + public A removeFromSkipNodeOperations(String... items) { + if (this.skipNodeOperations == null) { + return (A) this; + } + for (String item : items) { + this.skipNodeOperations.remove(item); + } + return (A) this; + } + public A removeMatchingFromDevices(Predicate predicate) { if (devices == null) { return (A) this; } Iterator each = devices.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("devices"); while (each.hasNext()) { V1beta2DeviceBuilder builder = each.next(); @@ -489,6 +596,7 @@ public A removeMatchingFromSharedCounters(Predicate pr return (A) this; } Iterator each = sharedCounters.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("sharedCounters"); while (each.hasNext()) { V1beta2CounterSetBuilder builder = each.next(); @@ -501,16 +609,16 @@ public A removeMatchingFromSharedCounters(Predicate pr } public DevicesNested setNewDeviceLike(int index,V1beta2Device item) { - return new DevicesNested(index, item); + return new DevicesNested<>(index, item); } public SharedCountersNested setNewSharedCounterLike(int index,V1beta2CounterSet item) { - return new SharedCountersNested(index, item); + return new SharedCountersNested<>(index, item); } public A setToDevices(int index,V1beta2Device item) { if (this.devices == null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); } V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); if (index < 0 || index >= this.devices.size()) { @@ -525,7 +633,7 @@ public A setToDevices(int index,V1beta2Device item) { public A setToSharedCounters(int index,V1beta2CounterSet item) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); } V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); if (index < 0 || index >= this.sharedCounters.size()) { @@ -538,6 +646,14 @@ public A setToSharedCounters(int index,V1beta2CounterSet item) { return (A) this; } + public A setToSkipNodeOperations(int index,String item) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.set(index, item); + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -566,6 +682,11 @@ public String toString() { sb.append(nodeSelector); sb.append(","); } + if (!(partitionTypeAttribute == null)) { + sb.append("partitionTypeAttribute:"); + sb.append(partitionTypeAttribute); + sb.append(","); + } if (!(perDeviceNodeSelection == null)) { sb.append("perDeviceNodeSelection:"); sb.append(perDeviceNodeSelection); @@ -579,6 +700,11 @@ public String toString() { if (!(sharedCounters == null) && !(sharedCounters.isEmpty())) { sb.append("sharedCounters:"); sb.append(sharedCounters); + sb.append(","); + } + if (!(skipNodeOperations == null) && !(skipNodeOperations.isEmpty())) { + sb.append("skipNodeOperations:"); + sb.append(skipNodeOperations); } sb.append("}"); return sb.toString(); @@ -598,7 +724,7 @@ public A withDevices(List devices) { this._visitables.get("devices").clear(); } if (devices != null) { - this.devices = new ArrayList(); + this.devices = new ArrayList<>(); for (V1beta2Device item : devices) { this.addToDevices(item); } @@ -627,19 +753,19 @@ public A withDriver(String driver) { } public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + return new NodeSelectorNested<>(null); } public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + return new NodeSelectorNested<>(item); } public PoolNested withNewPool() { - return new PoolNested(null); + return new PoolNested<>(null); } public PoolNested withNewPoolLike(V1beta2ResourcePool item) { - return new PoolNested(item); + return new PoolNested<>(item); } public A withNodeName(String nodeName) { @@ -653,12 +779,17 @@ public A withNodeSelector(V1NodeSelector nodeSelector) { this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); this._visitables.get("nodeSelector").add(this.nodeSelector); } else { - this.nodeSelector = null; this._visitables.get("nodeSelector").remove(this.nodeSelector); + this.nodeSelector = null; } return (A) this; } + public A withPartitionTypeAttribute(String partitionTypeAttribute) { + this.partitionTypeAttribute = partitionTypeAttribute; + return (A) this; + } + public A withPerDeviceNodeSelection() { return withPerDeviceNodeSelection(true); } @@ -674,8 +805,8 @@ public A withPool(V1beta2ResourcePool pool) { this.pool = new V1beta2ResourcePoolBuilder(pool); this._visitables.get("pool").add(this.pool); } else { - this.pool = null; this._visitables.get("pool").remove(this.pool); + this.pool = null; } return (A) this; } @@ -685,7 +816,7 @@ public A withSharedCounters(List sharedCounters) { this._visitables.get("sharedCounters").clear(); } if (sharedCounters != null) { - this.sharedCounters = new ArrayList(); + this.sharedCounters = new ArrayList<>(); for (V1beta2CounterSet item : sharedCounters) { this.addToSharedCounters(item); } @@ -707,6 +838,31 @@ public A withSharedCounters(V1beta2CounterSet... sharedCounters) { } return (A) this; } + + public A withSkipNodeOperations(List skipNodeOperations) { + if (skipNodeOperations != null) { + this.skipNodeOperations = new ArrayList<>(); + for (String item : skipNodeOperations) { + this.addToSkipNodeOperations(item); + } + } else { + this.skipNodeOperations = null; + } + return (A) this; + } + + public A withSkipNodeOperations(String... skipNodeOperations) { + if (this.skipNodeOperations != null) { + this.skipNodeOperations.clear(); + _visitables.remove("skipNodeOperations"); + } + if (skipNodeOperations != null) { + for (String item : skipNodeOperations) { + this.addToSkipNodeOperations(item); + } + } + return (A) this; + } public class DevicesNested extends V1beta2DeviceFluent> implements Nested{ V1beta2DeviceBuilder builder; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryBuilder.java index 43ff9b630e..f47d2a7eb3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2APIGroupDiscoveryBuilder extends V2APIGroupDiscoveryFluent implements VisitableBuilder{ V2APIGroupDiscoveryFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryFluent.java index b228cbf4ff..d8ea36ad4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2APIGroupDiscoveryFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2APIGroupDiscoveryFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -47,7 +49,7 @@ public V2APIGroupDiscoveryFluent(V2APIGroupDiscovery instance) { public A addAllToVersions(Collection items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (V2APIVersionDiscovery item : items) { V2APIVersionDiscoveryBuilder builder = new V2APIVersionDiscoveryBuilder(item); @@ -58,16 +60,16 @@ public A addAllToVersions(Collection items) { } public VersionsNested addNewVersion() { - return new VersionsNested(-1, null); + return new VersionsNested<>(-1, null); } public VersionsNested addNewVersionLike(V2APIVersionDiscovery item) { - return new VersionsNested(-1, item); + return new VersionsNested<>(-1, item); } public A addToVersions(V2APIVersionDiscovery... items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (V2APIVersionDiscovery item : items) { V2APIVersionDiscoveryBuilder builder = new V2APIVersionDiscoveryBuilder(item); @@ -79,7 +81,7 @@ public A addToVersions(V2APIVersionDiscovery... items) { public A addToVersions(int index,V2APIVersionDiscovery item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } V2APIVersionDiscoveryBuilder builder = new V2APIVersionDiscoveryBuilder(item); if (index < 0 || index >= this.versions.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2APIGroupDiscoveryFluent that = (V2APIGroupDiscoveryFluent) o; + V2APIGroupDiscoveryFluent that = (V2APIGroupDiscoveryFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromVersions(Predicate pred return (A) this; } Iterator each = versions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("versions"); while (each.hasNext()) { V2APIVersionDiscoveryBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromVersions(Predicate pred } public VersionsNested setNewVersionLike(int index,V2APIVersionDiscovery item) { - return new VersionsNested(index, item); + return new VersionsNested<>(index, item); } public A setToVersions(int index,V2APIVersionDiscovery item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } V2APIVersionDiscoveryBuilder builder = new V2APIVersionDiscoveryBuilder(item); if (index < 0 || index >= this.versions.size()) { @@ -343,18 +346,18 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withVersions(List versions) { @@ -362,7 +365,7 @@ public A withVersions(List versions) { this._visitables.get("versions").clear(); } if (versions != null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); for (V2APIVersionDiscovery item : versions) { this.addToVersions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListBuilder.java index 3121a239c5..1defce3ac8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2APIGroupDiscoveryListBuilder extends V2APIGroupDiscoveryListFluent implements VisitableBuilder{ V2APIGroupDiscoveryListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListFluent.java index e9251e24df..4a2dd93fdf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2APIGroupDiscoveryListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2APIGroupDiscoveryListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V2APIGroupDiscoveryListFluent(V2APIGroupDiscoveryList instance) { public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V2APIGroupDiscovery item : items) { V2APIGroupDiscoveryBuilder builder = new V2APIGroupDiscoveryBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V2APIGroupDiscovery item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V2APIGroupDiscovery... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V2APIGroupDiscovery item : items) { V2APIGroupDiscoveryBuilder builder = new V2APIGroupDiscoveryBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V2APIGroupDiscovery... items) { public A addToItems(int index,V2APIGroupDiscovery item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V2APIGroupDiscoveryBuilder builder = new V2APIGroupDiscoveryBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2APIGroupDiscoveryListFluent that = (V2APIGroupDiscoveryListFluent) o; + V2APIGroupDiscoveryListFluent that = (V2APIGroupDiscoveryListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate predicate return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V2APIGroupDiscoveryBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate predicate } public ItemsNested setNewItemLike(int index,V2APIGroupDiscovery item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V2APIGroupDiscovery item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V2APIGroupDiscoveryBuilder builder = new V2APIGroupDiscoveryBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V2APIGroupDiscovery item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V2APIGroupDiscoveryFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryBuilder.java index 3d11bcc6d8..e5e52d5cf3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2APIResourceDiscoveryBuilder extends V2APIResourceDiscoveryFluent implements VisitableBuilder{ V2APIResourceDiscoveryFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryFluent.java index 4c517f9a60..be929e3646 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2APIResourceDiscoveryFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2APIResourceDiscoveryFluent> extends BaseFluent{ private List categories; private String resource; @@ -51,7 +53,7 @@ public V2APIResourceDiscoveryFluent(V2APIResourceDiscovery instance) { public A addAllToCategories(Collection items) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } for (String item : items) { this.categories.add(item); @@ -61,7 +63,7 @@ public A addAllToCategories(Collection items) { public A addAllToShortNames(Collection items) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } for (String item : items) { this.shortNames.add(item); @@ -71,7 +73,7 @@ public A addAllToShortNames(Collection items) { public A addAllToSubresources(Collection items) { if (this.subresources == null) { - this.subresources = new ArrayList(); + this.subresources = new ArrayList<>(); } for (V2APISubresourceDiscovery item : items) { V2APISubresourceDiscoveryBuilder builder = new V2APISubresourceDiscoveryBuilder(item); @@ -83,7 +85,7 @@ public A addAllToSubresources(Collection items) { public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -92,16 +94,16 @@ public A addAllToVerbs(Collection items) { } public SubresourcesNested addNewSubresource() { - return new SubresourcesNested(-1, null); + return new SubresourcesNested<>(-1, null); } public SubresourcesNested addNewSubresourceLike(V2APISubresourceDiscovery item) { - return new SubresourcesNested(-1, item); + return new SubresourcesNested<>(-1, item); } public A addToCategories(String... items) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } for (String item : items) { this.categories.add(item); @@ -111,7 +113,7 @@ public A addToCategories(String... items) { public A addToCategories(int index,String item) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } this.categories.add(index, item); return (A) this; @@ -119,7 +121,7 @@ public A addToCategories(int index,String item) { public A addToShortNames(String... items) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } for (String item : items) { this.shortNames.add(item); @@ -129,7 +131,7 @@ public A addToShortNames(String... items) { public A addToShortNames(int index,String item) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } this.shortNames.add(index, item); return (A) this; @@ -137,7 +139,7 @@ public A addToShortNames(int index,String item) { public A addToSubresources(V2APISubresourceDiscovery... items) { if (this.subresources == null) { - this.subresources = new ArrayList(); + this.subresources = new ArrayList<>(); } for (V2APISubresourceDiscovery item : items) { V2APISubresourceDiscoveryBuilder builder = new V2APISubresourceDiscoveryBuilder(item); @@ -149,7 +151,7 @@ public A addToSubresources(V2APISubresourceDiscovery... items) { public A addToSubresources(int index,V2APISubresourceDiscovery item) { if (this.subresources == null) { - this.subresources = new ArrayList(); + this.subresources = new ArrayList<>(); } V2APISubresourceDiscoveryBuilder builder = new V2APISubresourceDiscoveryBuilder(item); if (index < 0 || index >= this.subresources.size()) { @@ -164,7 +166,7 @@ public A addToSubresources(int index,V2APISubresourceDiscovery item) { public A addToVerbs(String... items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -174,7 +176,7 @@ public A addToVerbs(String... items) { public A addToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.add(index, item); return (A) this; @@ -281,7 +283,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2APIResourceDiscoveryFluent that = (V2APIResourceDiscoveryFluent) o; + V2APIResourceDiscoveryFluent that = (V2APIResourceDiscoveryFluent) o; if (!(Objects.equals(resource, that.resource))) { return false; } @@ -557,6 +559,7 @@ public A removeMatchingFromSubresources(Predicate each = subresources.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("subresources"); while (each.hasNext()) { V2APISubresourceDiscoveryBuilder builder = each.next(); @@ -569,12 +572,12 @@ public A removeMatchingFromSubresources(Predicate setNewSubresourceLike(int index,V2APISubresourceDiscovery item) { - return new SubresourcesNested(index, item); + return new SubresourcesNested<>(index, item); } public A setToCategories(int index,String item) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } this.categories.set(index, item); return (A) this; @@ -582,7 +585,7 @@ public A setToCategories(int index,String item) { public A setToShortNames(int index,String item) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } this.shortNames.set(index, item); return (A) this; @@ -590,7 +593,7 @@ public A setToShortNames(int index,String item) { public A setToSubresources(int index,V2APISubresourceDiscovery item) { if (this.subresources == null) { - this.subresources = new ArrayList(); + this.subresources = new ArrayList<>(); } V2APISubresourceDiscoveryBuilder builder = new V2APISubresourceDiscoveryBuilder(item); if (index < 0 || index >= this.subresources.size()) { @@ -605,7 +608,7 @@ public A setToSubresources(int index,V2APISubresourceDiscovery item) { public A setToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.set(index, item); return (A) this; @@ -659,7 +662,7 @@ public String toString() { public A withCategories(List categories) { if (categories != null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); for (String item : categories) { this.addToCategories(item); } @@ -683,11 +686,11 @@ public A withCategories(String... categories) { } public ResponseKindNested withNewResponseKind() { - return new ResponseKindNested(null); + return new ResponseKindNested<>(null); } public ResponseKindNested withNewResponseKindLike(V1GroupVersionKind item) { - return new ResponseKindNested(item); + return new ResponseKindNested<>(item); } public A withResource(String resource) { @@ -701,8 +704,8 @@ public A withResponseKind(V1GroupVersionKind responseKind) { this.responseKind = new V1GroupVersionKindBuilder(responseKind); this._visitables.get("responseKind").add(this.responseKind); } else { - this.responseKind = null; this._visitables.get("responseKind").remove(this.responseKind); + this.responseKind = null; } return (A) this; } @@ -714,7 +717,7 @@ public A withScope(String scope) { public A withShortNames(List shortNames) { if (shortNames != null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); for (String item : shortNames) { this.addToShortNames(item); } @@ -747,7 +750,7 @@ public A withSubresources(List subresources) { this._visitables.get("subresources").clear(); } if (subresources != null) { - this.subresources = new ArrayList(); + this.subresources = new ArrayList<>(); for (V2APISubresourceDiscovery item : subresources) { this.addToSubresources(item); } @@ -772,7 +775,7 @@ public A withSubresources(V2APISubresourceDiscovery... subresources) { public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); for (String item : verbs) { this.addToVerbs(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryBuilder.java index 7404702a78..0f3aa5a853 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2APISubresourceDiscoveryBuilder extends V2APISubresourceDiscoveryFluent implements VisitableBuilder{ V2APISubresourceDiscoveryFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryFluent.java index d2b4fdf4dc..34341347e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2APISubresourceDiscoveryFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2APISubresourceDiscoveryFluent> extends BaseFluent{ private ArrayList acceptedTypes; private V1GroupVersionKindBuilder responseKind; @@ -47,7 +49,7 @@ public V2APISubresourceDiscoveryFluent(V2APISubresourceDiscovery instance) { public A addAllToAcceptedTypes(Collection items) { if (this.acceptedTypes == null) { - this.acceptedTypes = new ArrayList(); + this.acceptedTypes = new ArrayList<>(); } for (V1GroupVersionKind item : items) { V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); @@ -59,7 +61,7 @@ public A addAllToAcceptedTypes(Collection items) { public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -68,16 +70,16 @@ public A addAllToVerbs(Collection items) { } public AcceptedTypesNested addNewAcceptedType() { - return new AcceptedTypesNested(-1, null); + return new AcceptedTypesNested<>(-1, null); } public AcceptedTypesNested addNewAcceptedTypeLike(V1GroupVersionKind item) { - return new AcceptedTypesNested(-1, item); + return new AcceptedTypesNested<>(-1, item); } public A addToAcceptedTypes(V1GroupVersionKind... items) { if (this.acceptedTypes == null) { - this.acceptedTypes = new ArrayList(); + this.acceptedTypes = new ArrayList<>(); } for (V1GroupVersionKind item : items) { V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); @@ -89,7 +91,7 @@ public A addToAcceptedTypes(V1GroupVersionKind... items) { public A addToAcceptedTypes(int index,V1GroupVersionKind item) { if (this.acceptedTypes == null) { - this.acceptedTypes = new ArrayList(); + this.acceptedTypes = new ArrayList<>(); } V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); if (index < 0 || index >= this.acceptedTypes.size()) { @@ -104,7 +106,7 @@ public A addToAcceptedTypes(int index,V1GroupVersionKind item) { public A addToVerbs(String... items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -114,7 +116,7 @@ public A addToVerbs(String... items) { public A addToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.add(index, item); return (A) this; @@ -217,7 +219,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2APISubresourceDiscoveryFluent that = (V2APISubresourceDiscoveryFluent) o; + V2APISubresourceDiscoveryFluent that = (V2APISubresourceDiscoveryFluent) o; if (!(Objects.equals(subresource, that.subresource))) { return false; } @@ -349,6 +351,7 @@ public A removeMatchingFromAcceptedTypes(Predicate pr return (A) this; } Iterator each = acceptedTypes.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("acceptedTypes"); while (each.hasNext()) { V1GroupVersionKindBuilder builder = each.next(); @@ -361,12 +364,12 @@ public A removeMatchingFromAcceptedTypes(Predicate pr } public AcceptedTypesNested setNewAcceptedTypeLike(int index,V1GroupVersionKind item) { - return new AcceptedTypesNested(index, item); + return new AcceptedTypesNested<>(index, item); } public A setToAcceptedTypes(int index,V1GroupVersionKind item) { if (this.acceptedTypes == null) { - this.acceptedTypes = new ArrayList(); + this.acceptedTypes = new ArrayList<>(); } V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); if (index < 0 || index >= this.acceptedTypes.size()) { @@ -381,7 +384,7 @@ public A setToAcceptedTypes(int index,V1GroupVersionKind item) { public A setToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.set(index, item); return (A) this; @@ -418,7 +421,7 @@ public A withAcceptedTypes(List acceptedTypes) { this._visitables.get("acceptedTypes").clear(); } if (acceptedTypes != null) { - this.acceptedTypes = new ArrayList(); + this.acceptedTypes = new ArrayList<>(); for (V1GroupVersionKind item : acceptedTypes) { this.addToAcceptedTypes(item); } @@ -442,11 +445,11 @@ public A withAcceptedTypes(V1GroupVersionKind... acceptedTypes) { } public ResponseKindNested withNewResponseKind() { - return new ResponseKindNested(null); + return new ResponseKindNested<>(null); } public ResponseKindNested withNewResponseKindLike(V1GroupVersionKind item) { - return new ResponseKindNested(item); + return new ResponseKindNested<>(item); } public A withResponseKind(V1GroupVersionKind responseKind) { @@ -455,8 +458,8 @@ public A withResponseKind(V1GroupVersionKind responseKind) { this.responseKind = new V1GroupVersionKindBuilder(responseKind); this._visitables.get("responseKind").add(this.responseKind); } else { - this.responseKind = null; this._visitables.get("responseKind").remove(this.responseKind); + this.responseKind = null; } return (A) this; } @@ -468,7 +471,7 @@ public A withSubresource(String subresource) { public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); for (String item : verbs) { this.addToVerbs(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryBuilder.java index a541c6341a..738fb33d8a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2APIVersionDiscoveryBuilder extends V2APIVersionDiscoveryFluent implements VisitableBuilder{ V2APIVersionDiscoveryFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryFluent.java index 2df6d1fbd2..f69828751e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2APIVersionDiscoveryFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2APIVersionDiscoveryFluent> extends BaseFluent{ private String freshness; private ArrayList resources; @@ -45,7 +47,7 @@ public V2APIVersionDiscoveryFluent(V2APIVersionDiscovery instance) { public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (V2APIResourceDiscovery item : items) { V2APIResourceDiscoveryBuilder builder = new V2APIResourceDiscoveryBuilder(item); @@ -56,16 +58,16 @@ public A addAllToResources(Collection items) { } public ResourcesNested addNewResource() { - return new ResourcesNested(-1, null); + return new ResourcesNested<>(-1, null); } public ResourcesNested addNewResourceLike(V2APIResourceDiscovery item) { - return new ResourcesNested(-1, item); + return new ResourcesNested<>(-1, item); } public A addToResources(V2APIResourceDiscovery... items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (V2APIResourceDiscovery item : items) { V2APIResourceDiscoveryBuilder builder = new V2APIResourceDiscoveryBuilder(item); @@ -77,7 +79,7 @@ public A addToResources(V2APIResourceDiscovery... items) { public A addToResources(int index,V2APIResourceDiscovery item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } V2APIResourceDiscoveryBuilder builder = new V2APIResourceDiscoveryBuilder(item); if (index < 0 || index >= this.resources.size()) { @@ -170,7 +172,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2APIVersionDiscoveryFluent that = (V2APIVersionDiscoveryFluent) o; + V2APIVersionDiscoveryFluent that = (V2APIVersionDiscoveryFluent) o; if (!(Objects.equals(version, that.version))) { return false; } @@ -245,6 +247,7 @@ public A removeMatchingFromResources(Predicate pr return (A) this; } Iterator each = resources.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resources"); while (each.hasNext()) { V2APIResourceDiscoveryBuilder builder = each.next(); @@ -257,12 +260,12 @@ public A removeMatchingFromResources(Predicate pr } public ResourcesNested setNewResourceLike(int index,V2APIResourceDiscovery item) { - return new ResourcesNested(index, item); + return new ResourcesNested<>(index, item); } public A setToResources(int index,V2APIResourceDiscovery item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } V2APIResourceDiscoveryBuilder builder = new V2APIResourceDiscoveryBuilder(item); if (index < 0 || index >= this.resources.size()) { @@ -306,7 +309,7 @@ public A withResources(List resources) { this._visitables.get("resources").clear(); } if (resources != null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); for (V2APIResourceDiscovery item : resources) { this.addToResources(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java index 475c2e9877..e8c86b2081 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2ContainerResourceMetricSourceBuilder extends V2ContainerResourceMetricSourceFluent implements VisitableBuilder{ V2ContainerResourceMetricSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java index dc1246cd66..f9e6dc7f26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2ContainerResourceMetricSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2ContainerResourceMetricSourceFluent> extends BaseFluent{ private String container; private String name; @@ -73,7 +75,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2ContainerResourceMetricSourceFluent that = (V2ContainerResourceMetricSourceFluent) o; + V2ContainerResourceMetricSourceFluent that = (V2ContainerResourceMetricSourceFluent) o; if (!(Objects.equals(container, that.container))) { return false; } @@ -142,11 +144,11 @@ public A withName(String name) { } public TargetNested withNewTarget() { - return new TargetNested(null); + return new TargetNested<>(null); } public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); + return new TargetNested<>(item); } public A withTarget(V2MetricTarget target) { @@ -155,8 +157,8 @@ public A withTarget(V2MetricTarget target) { this.target = new V2MetricTargetBuilder(target); this._visitables.get("target").add(this.target); } else { - this.target = null; this._visitables.get("target").remove(this.target); + this.target = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java index 8dedb8f90d..8ea44816e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2ContainerResourceMetricStatusBuilder extends V2ContainerResourceMetricStatusFluent implements VisitableBuilder{ V2ContainerResourceMetricStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java index 7cf6d1ac5f..41f7f8f614 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2ContainerResourceMetricStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2ContainerResourceMetricStatusFluent> extends BaseFluent{ private String container; private V2MetricValueStatusBuilder current; @@ -73,7 +75,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2ContainerResourceMetricStatusFluent that = (V2ContainerResourceMetricStatusFluent) o; + V2ContainerResourceMetricStatusFluent that = (V2ContainerResourceMetricStatusFluent) o; if (!(Objects.equals(container, that.container))) { return false; } @@ -142,8 +144,8 @@ public A withCurrent(V2MetricValueStatus current) { this.current = new V2MetricValueStatusBuilder(current); this._visitables.get("current").add(this.current); } else { - this.current = null; this._visitables.get("current").remove(this.current); + this.current = null; } return (A) this; } @@ -154,11 +156,11 @@ public A withName(String name) { } public CurrentNested withNewCurrent() { - return new CurrentNested(null); + return new CurrentNested<>(null); } public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); + return new CurrentNested<>(item); } public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java index a63c162abf..6dbacbf361 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2CrossVersionObjectReferenceBuilder extends V2CrossVersionObjectReferenceFluent implements VisitableBuilder{ V2CrossVersionObjectReferenceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java index 8730ddd45d..72e10495aa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java @@ -18,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2CrossVersionObjectReferenceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2CrossVersionObjectReferenceFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -55,7 +57,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2CrossVersionObjectReferenceFluent that = (V2CrossVersionObjectReferenceFluent) o; + V2CrossVersionObjectReferenceFluent that = (V2CrossVersionObjectReferenceFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java index 85356398d5..02bcc941e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2ExternalMetricSourceBuilder extends V2ExternalMetricSourceFluent implements VisitableBuilder{ V2ExternalMetricSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java index 4ecf009377..a0d0d0eb55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2ExternalMetricSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2ExternalMetricSourceFluent> extends BaseFluent{ private V2MetricIdentifierBuilder metric; private V2MetricTargetBuilder target; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2ExternalMetricSourceFluent that = (V2ExternalMetricSourceFluent) o; + V2ExternalMetricSourceFluent that = (V2ExternalMetricSourceFluent) o; if (!(Objects.equals(metric, that.metric))) { return false; } @@ -131,26 +133,26 @@ public A withMetric(V2MetricIdentifier metric) { this.metric = new V2MetricIdentifierBuilder(metric); this._visitables.get("metric").add(this.metric); } else { - this.metric = null; this._visitables.get("metric").remove(this.metric); + this.metric = null; } return (A) this; } public MetricNested withNewMetric() { - return new MetricNested(null); + return new MetricNested<>(null); } public MetricNested withNewMetricLike(V2MetricIdentifier item) { - return new MetricNested(item); + return new MetricNested<>(item); } public TargetNested withNewTarget() { - return new TargetNested(null); + return new TargetNested<>(null); } public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); + return new TargetNested<>(item); } public A withTarget(V2MetricTarget target) { @@ -159,8 +161,8 @@ public A withTarget(V2MetricTarget target) { this.target = new V2MetricTargetBuilder(target); this._visitables.get("target").add(this.target); } else { - this.target = null; this._visitables.get("target").remove(this.target); + this.target = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java index 9f45f348ee..7c93ed3e94 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2ExternalMetricStatusBuilder extends V2ExternalMetricStatusFluent implements VisitableBuilder{ V2ExternalMetricStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java index 20a8959aad..626a1bda57 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2ExternalMetricStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2ExternalMetricStatusFluent> extends BaseFluent{ private V2MetricValueStatusBuilder current; private V2MetricIdentifierBuilder metric; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2ExternalMetricStatusFluent that = (V2ExternalMetricStatusFluent) o; + V2ExternalMetricStatusFluent that = (V2ExternalMetricStatusFluent) o; if (!(Objects.equals(current, that.current))) { return false; } @@ -131,8 +133,8 @@ public A withCurrent(V2MetricValueStatus current) { this.current = new V2MetricValueStatusBuilder(current); this._visitables.get("current").add(this.current); } else { - this.current = null; this._visitables.get("current").remove(this.current); + this.current = null; } return (A) this; } @@ -143,26 +145,26 @@ public A withMetric(V2MetricIdentifier metric) { this.metric = new V2MetricIdentifierBuilder(metric); this._visitables.get("metric").add(this.metric); } else { - this.metric = null; this._visitables.get("metric").remove(this.metric); + this.metric = null; } return (A) this; } public CurrentNested withNewCurrent() { - return new CurrentNested(null); + return new CurrentNested<>(null); } public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); + return new CurrentNested<>(item); } public MetricNested withNewMetric() { - return new MetricNested(null); + return new MetricNested<>(null); } public MetricNested withNewMetricLike(V2MetricIdentifier item) { - return new MetricNested(item); + return new MetricNested<>(item); } public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java index d3ca2d4f6c..ffa5d603f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2HPAScalingPolicyBuilder extends V2HPAScalingPolicyFluent implements VisitableBuilder{ V2HPAScalingPolicyFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java index 1e4886991d..0d6b692b77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java @@ -19,12 +19,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2HPAScalingPolicyFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2HPAScalingPolicyFluent> extends BaseFluent{ private Integer periodSeconds; private String type; @@ -56,7 +58,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2HPAScalingPolicyFluent that = (V2HPAScalingPolicyFluent) o; + V2HPAScalingPolicyFluent that = (V2HPAScalingPolicyFluent) o; if (!(Objects.equals(periodSeconds, that.periodSeconds))) { return false; } 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 4783fe726d..54cae2420f 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2HPAScalingRulesBuilder extends V2HPAScalingRulesFluent implements VisitableBuilder{ V2HPAScalingRulesFluent fluent; 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 d0e507c0de..1e8bf5c646 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 @@ -27,12 +27,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2HPAScalingRulesFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2HPAScalingRulesFluent> extends BaseFluent{ private ArrayList policies; private String selectPolicy; @@ -48,7 +50,7 @@ public V2HPAScalingRulesFluent(V2HPAScalingRules instance) { public A addAllToPolicies(Collection items) { if (this.policies == null) { - this.policies = new ArrayList(); + this.policies = new ArrayList<>(); } for (V2HPAScalingPolicy item : items) { V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); @@ -59,16 +61,16 @@ public A addAllToPolicies(Collection items) { } public PoliciesNested addNewPolicy() { - return new PoliciesNested(-1, null); + return new PoliciesNested<>(-1, null); } public PoliciesNested addNewPolicyLike(V2HPAScalingPolicy item) { - return new PoliciesNested(-1, item); + return new PoliciesNested<>(-1, item); } public A addToPolicies(V2HPAScalingPolicy... items) { if (this.policies == null) { - this.policies = new ArrayList(); + this.policies = new ArrayList<>(); } for (V2HPAScalingPolicy item : items) { V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); @@ -80,7 +82,7 @@ public A addToPolicies(V2HPAScalingPolicy... items) { public A addToPolicies(int index,V2HPAScalingPolicy item) { if (this.policies == null) { - this.policies = new ArrayList(); + this.policies = new ArrayList<>(); } V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); if (index < 0 || index >= this.policies.size()) { @@ -174,7 +176,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2HPAScalingRulesFluent that = (V2HPAScalingRulesFluent) o; + V2HPAScalingRulesFluent that = (V2HPAScalingRulesFluent) o; if (!(Objects.equals(policies, that.policies))) { return false; } @@ -260,6 +262,7 @@ public A removeMatchingFromPolicies(Predicate predica return (A) this; } Iterator each = policies.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("policies"); while (each.hasNext()) { V2HPAScalingPolicyBuilder builder = each.next(); @@ -272,12 +275,12 @@ public A removeMatchingFromPolicies(Predicate predica } public PoliciesNested setNewPolicyLike(int index,V2HPAScalingPolicy item) { - return new PoliciesNested(index, item); + return new PoliciesNested<>(index, item); } public A setToPolicies(int index,V2HPAScalingPolicy item) { if (this.policies == null) { - this.policies = new ArrayList(); + this.policies = new ArrayList<>(); } V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); if (index < 0 || index >= this.policies.size()) { @@ -325,7 +328,7 @@ public A withPolicies(List policies) { this._visitables.get("policies").clear(); } if (policies != null) { - this.policies = new ArrayList(); + this.policies = new ArrayList<>(); for (V2HPAScalingPolicy item : policies) { this.addToPolicies(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java index 6393ff4197..a49723418d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2HorizontalPodAutoscalerBehaviorBuilder extends V2HorizontalPodAutoscalerBehaviorFluent implements VisitableBuilder{ V2HorizontalPodAutoscalerBehaviorFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java index ccbc82c8c0..cdb581e5f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerBehaviorFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2HorizontalPodAutoscalerBehaviorFluent> extends BaseFluent{ private V2HPAScalingRulesBuilder scaleDown; private V2HPAScalingRulesBuilder scaleUp; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2HorizontalPodAutoscalerBehaviorFluent that = (V2HorizontalPodAutoscalerBehaviorFluent) o; + V2HorizontalPodAutoscalerBehaviorFluent that = (V2HorizontalPodAutoscalerBehaviorFluent) o; if (!(Objects.equals(scaleDown, that.scaleDown))) { return false; } @@ -126,19 +128,19 @@ public String toString() { } public ScaleDownNested withNewScaleDown() { - return new ScaleDownNested(null); + return new ScaleDownNested<>(null); } public ScaleDownNested withNewScaleDownLike(V2HPAScalingRules item) { - return new ScaleDownNested(item); + return new ScaleDownNested<>(item); } public ScaleUpNested withNewScaleUp() { - return new ScaleUpNested(null); + return new ScaleUpNested<>(null); } public ScaleUpNested withNewScaleUpLike(V2HPAScalingRules item) { - return new ScaleUpNested(item); + return new ScaleUpNested<>(item); } public A withScaleDown(V2HPAScalingRules scaleDown) { @@ -147,8 +149,8 @@ public A withScaleDown(V2HPAScalingRules scaleDown) { this.scaleDown = new V2HPAScalingRulesBuilder(scaleDown); this._visitables.get("scaleDown").add(this.scaleDown); } else { - this.scaleDown = null; this._visitables.get("scaleDown").remove(this.scaleDown); + this.scaleDown = null; } return (A) this; } @@ -159,8 +161,8 @@ public A withScaleUp(V2HPAScalingRules scaleUp) { this.scaleUp = new V2HPAScalingRulesBuilder(scaleUp); this._visitables.get("scaleUp").add(this.scaleUp); } else { - this.scaleUp = null; this._visitables.get("scaleUp").remove(this.scaleUp); + this.scaleUp = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java index ffec42f665..3806ea8198 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2HorizontalPodAutoscalerBuilder extends V2HorizontalPodAutoscalerFluent implements VisitableBuilder{ V2HorizontalPodAutoscalerFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java index 57577c4e24..51c8d8615b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2HorizontalPodAutoscalerConditionBuilder extends V2HorizontalPodAutoscalerConditionFluent implements VisitableBuilder{ V2HorizontalPodAutoscalerConditionFluent fluent; @@ -40,6 +41,7 @@ public V2HorizontalPodAutoscalerCondition build() { V2HorizontalPodAutoscalerCondition buildable = new V2HorizontalPodAutoscalerCondition(); 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/V2HorizontalPodAutoscalerConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java index 287f5f6314..d3c5a340a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java @@ -13,21 +13,25 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; import java.lang.Object; import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerConditionFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2HorizontalPodAutoscalerConditionFluent> extends BaseFluent{ private OffsetDateTime lastTransitionTime; private String message; + private Long observedGeneration; private String reason; private String status; private String type; @@ -44,6 +48,7 @@ protected void copyInstance(V2HorizontalPodAutoscalerCondition instance) { if (instance != null) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); + this.withObservedGeneration(instance.getObservedGeneration()); this.withReason(instance.getReason()); this.withStatus(instance.getStatus()); this.withType(instance.getType()); @@ -60,13 +65,16 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2HorizontalPodAutoscalerConditionFluent that = (V2HorizontalPodAutoscalerConditionFluent) o; + V2HorizontalPodAutoscalerConditionFluent that = (V2HorizontalPodAutoscalerConditionFluent) o; if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { return false; } if (!(Objects.equals(message, that.message))) { return false; } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } if (!(Objects.equals(reason, that.reason))) { return false; } @@ -87,6 +95,10 @@ public String getMessage() { return this.message; } + public Long getObservedGeneration() { + return this.observedGeneration; + } + public String getReason() { return this.reason; } @@ -107,6 +119,10 @@ public boolean hasMessage() { return this.message != null; } + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + public boolean hasReason() { return this.reason != null; } @@ -120,7 +136,7 @@ public boolean hasType() { } public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); } public String toString() { @@ -136,6 +152,11 @@ public String toString() { sb.append(message); sb.append(","); } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } if (!(reason == null)) { sb.append("reason:"); sb.append(reason); @@ -164,6 +185,11 @@ public A withMessage(String message) { return (A) this; } + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + public A withReason(String reason) { this.reason = reason; return (A) this; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java index c127afdd0f..c10f5fb55b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2HorizontalPodAutoscalerFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -109,7 +111,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2HorizontalPodAutoscalerFluent that = (V2HorizontalPodAutoscalerFluent) o; + V2HorizontalPodAutoscalerFluent that = (V2HorizontalPodAutoscalerFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -207,34 +209,34 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public SpecNested withNewSpec() { - return new SpecNested(null); + return new SpecNested<>(null); } public SpecNested withNewSpecLike(V2HorizontalPodAutoscalerSpec item) { - return new SpecNested(item); + return new SpecNested<>(item); } public StatusNested withNewStatus() { - return new StatusNested(null); + return new StatusNested<>(null); } public StatusNested withNewStatusLike(V2HorizontalPodAutoscalerStatus item) { - return new StatusNested(item); + return new StatusNested<>(item); } public A withSpec(V2HorizontalPodAutoscalerSpec spec) { @@ -243,8 +245,8 @@ public A withSpec(V2HorizontalPodAutoscalerSpec spec) { this.spec = new V2HorizontalPodAutoscalerSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { - this.spec = null; this._visitables.get("spec").remove(this.spec); + this.spec = null; } return (A) this; } @@ -255,8 +257,8 @@ public A withStatus(V2HorizontalPodAutoscalerStatus status) { this.status = new V2HorizontalPodAutoscalerStatusBuilder(status); this._visitables.get("status").add(this.status); } else { - this.status = null; this._visitables.get("status").remove(this.status); + this.status = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java index 53d6ac88e4..c737473d00 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2HorizontalPodAutoscalerListBuilder extends V2HorizontalPodAutoscalerListFluent implements VisitableBuilder{ V2HorizontalPodAutoscalerListFluent fluent; 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 05a65e8306..a8fecea61d 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 @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2HorizontalPodAutoscalerListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V2HorizontalPodAutoscalerListFluent(V2HorizontalPodAutoscalerList instanc public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V2HorizontalPodAutoscaler item : items) { V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V2HorizontalPodAutoscaler item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V2HorizontalPodAutoscaler... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V2HorizontalPodAutoscaler item : items) { V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V2HorizontalPodAutoscaler... items) { public A addToItems(int index,V2HorizontalPodAutoscaler item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2HorizontalPodAutoscalerListFluent that = (V2HorizontalPodAutoscalerListFluent) o; + V2HorizontalPodAutoscalerListFluent that = (V2HorizontalPodAutoscalerListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate pre return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V2HorizontalPodAutoscalerBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate pre } public ItemsNested setNewItemLike(int index,V2HorizontalPodAutoscaler item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V2HorizontalPodAutoscaler item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V2HorizontalPodAutoscaler item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V2HorizontalPodAutoscalerFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java index dec673debc..929b96e22f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2HorizontalPodAutoscalerSpecBuilder extends V2HorizontalPodAutoscalerSpecFluent implements VisitableBuilder{ V2HorizontalPodAutoscalerSpecFluent fluent; 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 baf67a6e89..80f15e3a7f 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 @@ -27,12 +27,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ private V2HorizontalPodAutoscalerBehaviorBuilder behavior; private Integer maxReplicas; @@ -49,7 +51,7 @@ public V2HorizontalPodAutoscalerSpecFluent(V2HorizontalPodAutoscalerSpec instanc public A addAllToMetrics(Collection items) { if (this.metrics == null) { - this.metrics = new ArrayList(); + this.metrics = new ArrayList<>(); } for (V2MetricSpec item : items) { V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); @@ -60,16 +62,16 @@ public A addAllToMetrics(Collection items) { } public MetricsNested addNewMetric() { - return new MetricsNested(-1, null); + return new MetricsNested<>(-1, null); } public MetricsNested addNewMetricLike(V2MetricSpec item) { - return new MetricsNested(-1, item); + return new MetricsNested<>(-1, item); } public A addToMetrics(V2MetricSpec... items) { if (this.metrics == null) { - this.metrics = new ArrayList(); + this.metrics = new ArrayList<>(); } for (V2MetricSpec item : items) { V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); @@ -81,7 +83,7 @@ public A addToMetrics(V2MetricSpec... items) { public A addToMetrics(int index,V2MetricSpec item) { if (this.metrics == null) { - this.metrics = new ArrayList(); + this.metrics = new ArrayList<>(); } V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); if (index < 0 || index >= this.metrics.size()) { @@ -208,7 +210,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2HorizontalPodAutoscalerSpecFluent that = (V2HorizontalPodAutoscalerSpecFluent) o; + V2HorizontalPodAutoscalerSpecFluent that = (V2HorizontalPodAutoscalerSpecFluent) o; if (!(Objects.equals(behavior, that.behavior))) { return false; } @@ -297,6 +299,7 @@ public A removeMatchingFromMetrics(Predicate predicate) { return (A) this; } Iterator each = metrics.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("metrics"); while (each.hasNext()) { V2MetricSpecBuilder builder = each.next(); @@ -309,12 +312,12 @@ public A removeMatchingFromMetrics(Predicate predicate) { } public MetricsNested setNewMetricLike(int index,V2MetricSpec item) { - return new MetricsNested(index, item); + return new MetricsNested<>(index, item); } public A setToMetrics(int index,V2MetricSpec item) { if (this.metrics == null) { - this.metrics = new ArrayList(); + this.metrics = new ArrayList<>(); } V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); if (index < 0 || index >= this.metrics.size()) { @@ -364,8 +367,8 @@ public A withBehavior(V2HorizontalPodAutoscalerBehavior behavior) { this.behavior = new V2HorizontalPodAutoscalerBehaviorBuilder(behavior); this._visitables.get("behavior").add(this.behavior); } else { - this.behavior = null; this._visitables.get("behavior").remove(this.behavior); + this.behavior = null; } return (A) this; } @@ -380,7 +383,7 @@ public A withMetrics(List metrics) { this._visitables.get("metrics").clear(); } if (metrics != null) { - this.metrics = new ArrayList(); + this.metrics = new ArrayList<>(); for (V2MetricSpec item : metrics) { this.addToMetrics(item); } @@ -409,19 +412,19 @@ public A withMinReplicas(Integer minReplicas) { } public BehaviorNested withNewBehavior() { - return new BehaviorNested(null); + return new BehaviorNested<>(null); } public BehaviorNested withNewBehaviorLike(V2HorizontalPodAutoscalerBehavior item) { - return new BehaviorNested(item); + return new BehaviorNested<>(item); } public ScaleTargetRefNested withNewScaleTargetRef() { - return new ScaleTargetRefNested(null); + return new ScaleTargetRefNested<>(null); } public ScaleTargetRefNested withNewScaleTargetRefLike(V2CrossVersionObjectReference item) { - return new ScaleTargetRefNested(item); + return new ScaleTargetRefNested<>(item); } public A withScaleTargetRef(V2CrossVersionObjectReference scaleTargetRef) { @@ -430,8 +433,8 @@ public A withScaleTargetRef(V2CrossVersionObjectReference scaleTargetRef) { this.scaleTargetRef = new V2CrossVersionObjectReferenceBuilder(scaleTargetRef); this._visitables.get("scaleTargetRef").add(this.scaleTargetRef); } else { - this.scaleTargetRef = null; this._visitables.get("scaleTargetRef").remove(this.scaleTargetRef); + this.scaleTargetRef = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java index 642b98eb3e..20c1c95a75 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2HorizontalPodAutoscalerStatusBuilder extends V2HorizontalPodAutoscalerStatusFluent implements VisitableBuilder{ V2HorizontalPodAutoscalerStatusFluent fluent; 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 5068f4ca45..307473f519 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 @@ -28,12 +28,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ private ArrayList conditions; private ArrayList currentMetrics; @@ -51,7 +53,7 @@ public V2HorizontalPodAutoscalerStatusFluent(V2HorizontalPodAutoscalerStatus ins public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V2HorizontalPodAutoscalerCondition item : items) { V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); @@ -63,7 +65,7 @@ public A addAllToConditions(Collection items public A addAllToCurrentMetrics(Collection items) { if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); + this.currentMetrics = new ArrayList<>(); } for (V2MetricStatus item : items) { V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); @@ -74,24 +76,24 @@ public A addAllToCurrentMetrics(Collection items) { } public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + return new ConditionsNested<>(-1, null); } public ConditionsNested addNewConditionLike(V2HorizontalPodAutoscalerCondition item) { - return new ConditionsNested(-1, item); + return new ConditionsNested<>(-1, item); } public CurrentMetricsNested addNewCurrentMetric() { - return new CurrentMetricsNested(-1, null); + return new CurrentMetricsNested<>(-1, null); } public CurrentMetricsNested addNewCurrentMetricLike(V2MetricStatus item) { - return new CurrentMetricsNested(-1, item); + return new CurrentMetricsNested<>(-1, item); } public A addToConditions(V2HorizontalPodAutoscalerCondition... items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } for (V2HorizontalPodAutoscalerCondition item : items) { V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); @@ -103,7 +105,7 @@ public A addToConditions(V2HorizontalPodAutoscalerCondition... items) { public A addToConditions(int index,V2HorizontalPodAutoscalerCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -118,7 +120,7 @@ public A addToConditions(int index,V2HorizontalPodAutoscalerCondition item) { public A addToCurrentMetrics(V2MetricStatus... items) { if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); + this.currentMetrics = new ArrayList<>(); } for (V2MetricStatus item : items) { V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); @@ -130,7 +132,7 @@ public A addToCurrentMetrics(V2MetricStatus... items) { public A addToCurrentMetrics(int index,V2MetricStatus item) { if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); + this.currentMetrics = new ArrayList<>(); } V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); if (index < 0 || index >= this.currentMetrics.size()) { @@ -287,7 +289,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2HorizontalPodAutoscalerStatusFluent that = (V2HorizontalPodAutoscalerStatusFluent) o; + V2HorizontalPodAutoscalerStatusFluent that = (V2HorizontalPodAutoscalerStatusFluent) o; if (!(Objects.equals(conditions, that.conditions))) { return false; } @@ -424,6 +426,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V2HorizontalPodAutoscalerConditionBuilder builder = each.next(); @@ -440,6 +443,7 @@ public A removeMatchingFromCurrentMetrics(Predicate predi return (A) this; } Iterator each = currentMetrics.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("currentMetrics"); while (each.hasNext()) { V2MetricStatusBuilder builder = each.next(); @@ -452,16 +456,16 @@ public A removeMatchingFromCurrentMetrics(Predicate predi } public ConditionsNested setNewConditionLike(int index,V2HorizontalPodAutoscalerCondition item) { - return new ConditionsNested(index, item); + return new ConditionsNested<>(index, item); } public CurrentMetricsNested setNewCurrentMetricLike(int index,V2MetricStatus item) { - return new CurrentMetricsNested(index, item); + return new CurrentMetricsNested<>(index, item); } public A setToConditions(int index,V2HorizontalPodAutoscalerCondition item) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); if (index < 0 || index >= this.conditions.size()) { @@ -476,7 +480,7 @@ public A setToConditions(int index,V2HorizontalPodAutoscalerCondition item) { public A setToCurrentMetrics(int index,V2MetricStatus item) { if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); + this.currentMetrics = new ArrayList<>(); } V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); if (index < 0 || index >= this.currentMetrics.size()) { @@ -530,7 +534,7 @@ public A withConditions(List conditions) { this._visitables.get("conditions").clear(); } if (conditions != null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); for (V2HorizontalPodAutoscalerCondition item : conditions) { this.addToConditions(item); } @@ -558,7 +562,7 @@ public A withCurrentMetrics(List currentMetrics) { this._visitables.get("currentMetrics").clear(); } if (currentMetrics != null) { - this.currentMetrics = new ArrayList(); + this.currentMetrics = new ArrayList<>(); for (V2MetricStatus item : currentMetrics) { this.addToCurrentMetrics(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java index 9767f0c6c8..acd6a9245b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2MetricIdentifierBuilder extends V2MetricIdentifierFluent implements VisitableBuilder{ V2MetricIdentifierFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java index 28e1ab7e51..71bdf098a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2MetricIdentifierFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2MetricIdentifierFluent> extends BaseFluent{ private String name; private V1LabelSelectorBuilder selector; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2MetricIdentifierFluent that = (V2MetricIdentifierFluent) o; + V2MetricIdentifierFluent that = (V2MetricIdentifierFluent) o; if (!(Objects.equals(name, that.name))) { return false; } @@ -119,11 +121,11 @@ public A withName(String name) { } public SelectorNested withNewSelector() { - return new SelectorNested(null); + return new SelectorNested<>(null); } public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + return new SelectorNested<>(item); } public A withSelector(V1LabelSelector selector) { @@ -132,8 +134,8 @@ public A withSelector(V1LabelSelector selector) { this.selector = new V1LabelSelectorBuilder(selector); this._visitables.get("selector").add(this.selector); } else { - this.selector = null; this._visitables.get("selector").remove(this.selector); + this.selector = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java index 5ec9dd277f..08f93af9cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2MetricSpecBuilder extends V2MetricSpecFluent implements VisitableBuilder{ V2MetricSpecFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java index b888ba31c7..a4d5752729 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2MetricSpecFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2MetricSpecFluent> extends BaseFluent{ private V2ObjectMetricSourceBuilder _object; private V2ContainerResourceMetricSourceBuilder containerResource; @@ -142,7 +144,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2MetricSpecFluent that = (V2MetricSpecFluent) o; + V2MetricSpecFluent that = (V2MetricSpecFluent) o; if (!(Objects.equals(containerResource, that.containerResource))) { return false; } @@ -238,8 +240,8 @@ public A withContainerResource(V2ContainerResourceMetricSource containerResource this.containerResource = new V2ContainerResourceMetricSourceBuilder(containerResource); this._visitables.get("containerResource").add(this.containerResource); } else { - this.containerResource = null; this._visitables.get("containerResource").remove(this.containerResource); + this.containerResource = null; } return (A) this; } @@ -250,50 +252,50 @@ public A withExternal(V2ExternalMetricSource external) { this.external = new V2ExternalMetricSourceBuilder(external); this._visitables.get("external").add(this.external); } else { - this.external = null; this._visitables.get("external").remove(this.external); + this.external = null; } return (A) this; } public ContainerResourceNested withNewContainerResource() { - return new ContainerResourceNested(null); + return new ContainerResourceNested<>(null); } public ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricSource item) { - return new ContainerResourceNested(item); + return new ContainerResourceNested<>(item); } public ExternalNested withNewExternal() { - return new ExternalNested(null); + return new ExternalNested<>(null); } public ExternalNested withNewExternalLike(V2ExternalMetricSource item) { - return new ExternalNested(item); + return new ExternalNested<>(item); } public ObjectNested withNewObject() { - return new ObjectNested(null); + return new ObjectNested<>(null); } public ObjectNested withNewObjectLike(V2ObjectMetricSource item) { - return new ObjectNested(item); + return new ObjectNested<>(item); } public PodsNested withNewPods() { - return new PodsNested(null); + return new PodsNested<>(null); } public PodsNested withNewPodsLike(V2PodsMetricSource item) { - return new PodsNested(item); + return new PodsNested<>(item); } public ResourceNested withNewResource() { - return new ResourceNested(null); + return new ResourceNested<>(null); } public ResourceNested withNewResourceLike(V2ResourceMetricSource item) { - return new ResourceNested(item); + return new ResourceNested<>(item); } public A withObject(V2ObjectMetricSource _object) { @@ -302,8 +304,8 @@ public A withObject(V2ObjectMetricSource _object) { this._object = new V2ObjectMetricSourceBuilder(_object); this._visitables.get("_object").add(this._object); } else { - this._object = null; this._visitables.get("_object").remove(this._object); + this._object = null; } return (A) this; } @@ -314,8 +316,8 @@ public A withPods(V2PodsMetricSource pods) { this.pods = new V2PodsMetricSourceBuilder(pods); this._visitables.get("pods").add(this.pods); } else { - this.pods = null; this._visitables.get("pods").remove(this.pods); + this.pods = null; } return (A) this; } @@ -326,8 +328,8 @@ public A withResource(V2ResourceMetricSource resource) { this.resource = new V2ResourceMetricSourceBuilder(resource); this._visitables.get("resource").add(this.resource); } else { - this.resource = null; this._visitables.get("resource").remove(this.resource); + this.resource = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java index 187532a78a..24abb98513 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2MetricStatusBuilder extends V2MetricStatusFluent implements VisitableBuilder{ V2MetricStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java index cee852600d..2fa4f4978c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2MetricStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2MetricStatusFluent> extends BaseFluent{ private V2ObjectMetricStatusBuilder _object; private V2ContainerResourceMetricStatusBuilder containerResource; @@ -142,7 +144,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2MetricStatusFluent that = (V2MetricStatusFluent) o; + V2MetricStatusFluent that = (V2MetricStatusFluent) o; if (!(Objects.equals(containerResource, that.containerResource))) { return false; } @@ -238,8 +240,8 @@ public A withContainerResource(V2ContainerResourceMetricStatus containerResource this.containerResource = new V2ContainerResourceMetricStatusBuilder(containerResource); this._visitables.get("containerResource").add(this.containerResource); } else { - this.containerResource = null; this._visitables.get("containerResource").remove(this.containerResource); + this.containerResource = null; } return (A) this; } @@ -250,50 +252,50 @@ public A withExternal(V2ExternalMetricStatus external) { this.external = new V2ExternalMetricStatusBuilder(external); this._visitables.get("external").add(this.external); } else { - this.external = null; this._visitables.get("external").remove(this.external); + this.external = null; } return (A) this; } public ContainerResourceNested withNewContainerResource() { - return new ContainerResourceNested(null); + return new ContainerResourceNested<>(null); } public ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricStatus item) { - return new ContainerResourceNested(item); + return new ContainerResourceNested<>(item); } public ExternalNested withNewExternal() { - return new ExternalNested(null); + return new ExternalNested<>(null); } public ExternalNested withNewExternalLike(V2ExternalMetricStatus item) { - return new ExternalNested(item); + return new ExternalNested<>(item); } public ObjectNested withNewObject() { - return new ObjectNested(null); + return new ObjectNested<>(null); } public ObjectNested withNewObjectLike(V2ObjectMetricStatus item) { - return new ObjectNested(item); + return new ObjectNested<>(item); } public PodsNested withNewPods() { - return new PodsNested(null); + return new PodsNested<>(null); } public PodsNested withNewPodsLike(V2PodsMetricStatus item) { - return new PodsNested(item); + return new PodsNested<>(item); } public ResourceNested withNewResource() { - return new ResourceNested(null); + return new ResourceNested<>(null); } public ResourceNested withNewResourceLike(V2ResourceMetricStatus item) { - return new ResourceNested(item); + return new ResourceNested<>(item); } public A withObject(V2ObjectMetricStatus _object) { @@ -302,8 +304,8 @@ public A withObject(V2ObjectMetricStatus _object) { this._object = new V2ObjectMetricStatusBuilder(_object); this._visitables.get("_object").add(this._object); } else { - this._object = null; this._visitables.get("_object").remove(this._object); + this._object = null; } return (A) this; } @@ -314,8 +316,8 @@ public A withPods(V2PodsMetricStatus pods) { this.pods = new V2PodsMetricStatusBuilder(pods); this._visitables.get("pods").add(this.pods); } else { - this.pods = null; this._visitables.get("pods").remove(this.pods); + this.pods = null; } return (A) this; } @@ -326,8 +328,8 @@ public A withResource(V2ResourceMetricStatus resource) { this.resource = new V2ResourceMetricStatusBuilder(resource); this._visitables.get("resource").add(this.resource); } else { - this.resource = null; this._visitables.get("resource").remove(this.resource); + this.resource = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java index cdeeeaed3b..f4fddcf894 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2MetricTargetBuilder extends V2MetricTargetFluent implements VisitableBuilder{ V2MetricTargetFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java index cff6d5307c..2c23539e1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java @@ -20,12 +20,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2MetricTargetFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2MetricTargetFluent> extends BaseFluent{ private Integer averageUtilization; private Quantity averageValue; @@ -59,7 +61,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2MetricTargetFluent that = (V2MetricTargetFluent) o; + V2MetricTargetFluent that = (V2MetricTargetFluent) o; if (!(Objects.equals(averageUtilization, that.averageUtilization))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java index b376df3ea9..37e25c1df9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2MetricValueStatusBuilder extends V2MetricValueStatusFluent implements VisitableBuilder{ V2MetricValueStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java index 55653adda5..b2245ea05a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java @@ -20,12 +20,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2MetricValueStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2MetricValueStatusFluent> extends BaseFluent{ private Integer averageUtilization; private Quantity averageValue; @@ -57,7 +59,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2MetricValueStatusFluent that = (V2MetricValueStatusFluent) o; + V2MetricValueStatusFluent that = (V2MetricValueStatusFluent) o; if (!(Objects.equals(averageUtilization, that.averageUtilization))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java index 08c6230dd4..4b61fee196 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2ObjectMetricSourceBuilder extends V2ObjectMetricSourceFluent implements VisitableBuilder{ V2ObjectMetricSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java index 2c6bac2654..ef97651962 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2ObjectMetricSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2ObjectMetricSourceFluent> extends BaseFluent{ private V2CrossVersionObjectReferenceBuilder describedObject; private V2MetricIdentifierBuilder metric; @@ -105,7 +107,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2ObjectMetricSourceFluent that = (V2ObjectMetricSourceFluent) o; + V2ObjectMetricSourceFluent that = (V2ObjectMetricSourceFluent) o; if (!(Objects.equals(describedObject, that.describedObject))) { return false; } @@ -161,8 +163,8 @@ public A withDescribedObject(V2CrossVersionObjectReference describedObject) { this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); this._visitables.get("describedObject").add(this.describedObject); } else { - this.describedObject = null; this._visitables.get("describedObject").remove(this.describedObject); + this.describedObject = null; } return (A) this; } @@ -173,34 +175,34 @@ public A withMetric(V2MetricIdentifier metric) { this.metric = new V2MetricIdentifierBuilder(metric); this._visitables.get("metric").add(this.metric); } else { - this.metric = null; this._visitables.get("metric").remove(this.metric); + this.metric = null; } return (A) this; } public DescribedObjectNested withNewDescribedObject() { - return new DescribedObjectNested(null); + return new DescribedObjectNested<>(null); } public DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item) { - return new DescribedObjectNested(item); + return new DescribedObjectNested<>(item); } public MetricNested withNewMetric() { - return new MetricNested(null); + return new MetricNested<>(null); } public MetricNested withNewMetricLike(V2MetricIdentifier item) { - return new MetricNested(item); + return new MetricNested<>(item); } public TargetNested withNewTarget() { - return new TargetNested(null); + return new TargetNested<>(null); } public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); + return new TargetNested<>(item); } public A withTarget(V2MetricTarget target) { @@ -209,8 +211,8 @@ public A withTarget(V2MetricTarget target) { this.target = new V2MetricTargetBuilder(target); this._visitables.get("target").add(this.target); } else { - this.target = null; this._visitables.get("target").remove(this.target); + this.target = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java index faa76afadd..5c13526f4f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2ObjectMetricStatusBuilder extends V2ObjectMetricStatusFluent implements VisitableBuilder{ V2ObjectMetricStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java index cdf8b32770..412a44c446 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2ObjectMetricStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2ObjectMetricStatusFluent> extends BaseFluent{ private V2MetricValueStatusBuilder current; private V2CrossVersionObjectReferenceBuilder describedObject; @@ -105,7 +107,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2ObjectMetricStatusFluent that = (V2ObjectMetricStatusFluent) o; + V2ObjectMetricStatusFluent that = (V2ObjectMetricStatusFluent) o; if (!(Objects.equals(current, that.current))) { return false; } @@ -161,8 +163,8 @@ public A withCurrent(V2MetricValueStatus current) { this.current = new V2MetricValueStatusBuilder(current); this._visitables.get("current").add(this.current); } else { - this.current = null; this._visitables.get("current").remove(this.current); + this.current = null; } return (A) this; } @@ -173,8 +175,8 @@ public A withDescribedObject(V2CrossVersionObjectReference describedObject) { this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); this._visitables.get("describedObject").add(this.describedObject); } else { - this.describedObject = null; this._visitables.get("describedObject").remove(this.describedObject); + this.describedObject = null; } return (A) this; } @@ -185,34 +187,34 @@ public A withMetric(V2MetricIdentifier metric) { this.metric = new V2MetricIdentifierBuilder(metric); this._visitables.get("metric").add(this.metric); } else { - this.metric = null; this._visitables.get("metric").remove(this.metric); + this.metric = null; } return (A) this; } public CurrentNested withNewCurrent() { - return new CurrentNested(null); + return new CurrentNested<>(null); } public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); + return new CurrentNested<>(item); } public DescribedObjectNested withNewDescribedObject() { - return new DescribedObjectNested(null); + return new DescribedObjectNested<>(null); } public DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item) { - return new DescribedObjectNested(item); + return new DescribedObjectNested<>(item); } public MetricNested withNewMetric() { - return new MetricNested(null); + return new MetricNested<>(null); } public MetricNested withNewMetricLike(V2MetricIdentifier item) { - return new MetricNested(item); + return new MetricNested<>(item); } public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java index a4d65ed7d6..a03e289187 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2PodsMetricSourceBuilder extends V2PodsMetricSourceFluent implements VisitableBuilder{ V2PodsMetricSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java index ba61b46b54..38218dab32 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2PodsMetricSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2PodsMetricSourceFluent> extends BaseFluent{ private V2MetricIdentifierBuilder metric; private V2MetricTargetBuilder target; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2PodsMetricSourceFluent that = (V2PodsMetricSourceFluent) o; + V2PodsMetricSourceFluent that = (V2PodsMetricSourceFluent) o; if (!(Objects.equals(metric, that.metric))) { return false; } @@ -131,26 +133,26 @@ public A withMetric(V2MetricIdentifier metric) { this.metric = new V2MetricIdentifierBuilder(metric); this._visitables.get("metric").add(this.metric); } else { - this.metric = null; this._visitables.get("metric").remove(this.metric); + this.metric = null; } return (A) this; } public MetricNested withNewMetric() { - return new MetricNested(null); + return new MetricNested<>(null); } public MetricNested withNewMetricLike(V2MetricIdentifier item) { - return new MetricNested(item); + return new MetricNested<>(item); } public TargetNested withNewTarget() { - return new TargetNested(null); + return new TargetNested<>(null); } public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); + return new TargetNested<>(item); } public A withTarget(V2MetricTarget target) { @@ -159,8 +161,8 @@ public A withTarget(V2MetricTarget target) { this.target = new V2MetricTargetBuilder(target); this._visitables.get("target").add(this.target); } else { - this.target = null; this._visitables.get("target").remove(this.target); + this.target = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java index 386ad3f47a..3882231b2a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2PodsMetricStatusBuilder extends V2PodsMetricStatusFluent implements VisitableBuilder{ V2PodsMetricStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java index 1508d71dc1..a56574abd1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2PodsMetricStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2PodsMetricStatusFluent> extends BaseFluent{ private V2MetricValueStatusBuilder current; private V2MetricIdentifierBuilder metric; @@ -87,7 +89,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2PodsMetricStatusFluent that = (V2PodsMetricStatusFluent) o; + V2PodsMetricStatusFluent that = (V2PodsMetricStatusFluent) o; if (!(Objects.equals(current, that.current))) { return false; } @@ -131,8 +133,8 @@ public A withCurrent(V2MetricValueStatus current) { this.current = new V2MetricValueStatusBuilder(current); this._visitables.get("current").add(this.current); } else { - this.current = null; this._visitables.get("current").remove(this.current); + this.current = null; } return (A) this; } @@ -143,26 +145,26 @@ public A withMetric(V2MetricIdentifier metric) { this.metric = new V2MetricIdentifierBuilder(metric); this._visitables.get("metric").add(this.metric); } else { - this.metric = null; this._visitables.get("metric").remove(this.metric); + this.metric = null; } return (A) this; } public CurrentNested withNewCurrent() { - return new CurrentNested(null); + return new CurrentNested<>(null); } public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); + return new CurrentNested<>(item); } public MetricNested withNewMetric() { - return new MetricNested(null); + return new MetricNested<>(null); } public MetricNested withNewMetricLike(V2MetricIdentifier item) { - return new MetricNested(item); + return new MetricNested<>(item); } public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java index a5aec44d1a..311d3165d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2ResourceMetricSourceBuilder extends V2ResourceMetricSourceFluent implements VisitableBuilder{ V2ResourceMetricSourceFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java index 3c658b7503..5a9dabde22 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2ResourceMetricSourceFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2ResourceMetricSourceFluent> extends BaseFluent{ private String name; private V2MetricTargetBuilder target; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2ResourceMetricSourceFluent that = (V2ResourceMetricSourceFluent) o; + V2ResourceMetricSourceFluent that = (V2ResourceMetricSourceFluent) o; if (!(Objects.equals(name, that.name))) { return false; } @@ -119,11 +121,11 @@ public A withName(String name) { } public TargetNested withNewTarget() { - return new TargetNested(null); + return new TargetNested<>(null); } public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); + return new TargetNested<>(item); } public A withTarget(V2MetricTarget target) { @@ -132,8 +134,8 @@ public A withTarget(V2MetricTarget target) { this.target = new V2MetricTargetBuilder(target); this._visitables.get("target").add(this.target); } else { - this.target = null; this._visitables.get("target").remove(this.target); + this.target = null; } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java index 03b604dfc9..6863e610d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2ResourceMetricStatusBuilder extends V2ResourceMetricStatusFluent implements VisitableBuilder{ V2ResourceMetricStatusFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java index c15878b09f..69abf189f9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java @@ -20,12 +20,14 @@ import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2ResourceMetricStatusFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2ResourceMetricStatusFluent> extends BaseFluent{ private V2MetricValueStatusBuilder current; private String name; @@ -71,7 +73,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2ResourceMetricStatusFluent that = (V2ResourceMetricStatusFluent) o; + V2ResourceMetricStatusFluent that = (V2ResourceMetricStatusFluent) o; if (!(Objects.equals(current, that.current))) { return false; } @@ -119,8 +121,8 @@ public A withCurrent(V2MetricValueStatus current) { this.current = new V2MetricValueStatusBuilder(current); this._visitables.get("current").add(this.current); } else { - this.current = null; this._visitables.get("current").remove(this.current); + this.current = null; } return (A) this; } @@ -131,11 +133,11 @@ public A withName(String name) { } public CurrentNested withNewCurrent() { - return new CurrentNested(null); + return new CurrentNested<>(null); } public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); + return new CurrentNested<>(item); } public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryBuilder.java index 0d70390966..3cf0bd4b56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2beta1APIGroupDiscoveryBuilder extends V2beta1APIGroupDiscoveryFluent implements VisitableBuilder{ V2beta1APIGroupDiscoveryFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryFluent.java index e097948bb0..6fca3fc6ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2beta1APIGroupDiscoveryFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2beta1APIGroupDiscoveryFluent> extends BaseFluent{ private String apiVersion; private String kind; @@ -47,7 +49,7 @@ public V2beta1APIGroupDiscoveryFluent(V2beta1APIGroupDiscovery instance) { public A addAllToVersions(Collection items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (V2beta1APIVersionDiscovery item : items) { V2beta1APIVersionDiscoveryBuilder builder = new V2beta1APIVersionDiscoveryBuilder(item); @@ -58,16 +60,16 @@ public A addAllToVersions(Collection items) { } public VersionsNested addNewVersion() { - return new VersionsNested(-1, null); + return new VersionsNested<>(-1, null); } public VersionsNested addNewVersionLike(V2beta1APIVersionDiscovery item) { - return new VersionsNested(-1, item); + return new VersionsNested<>(-1, item); } public A addToVersions(V2beta1APIVersionDiscovery... items) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } for (V2beta1APIVersionDiscovery item : items) { V2beta1APIVersionDiscoveryBuilder builder = new V2beta1APIVersionDiscoveryBuilder(item); @@ -79,7 +81,7 @@ public A addToVersions(V2beta1APIVersionDiscovery... items) { public A addToVersions(int index,V2beta1APIVersionDiscovery item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } V2beta1APIVersionDiscoveryBuilder builder = new V2beta1APIVersionDiscoveryBuilder(item); if (index < 0 || index >= this.versions.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2beta1APIGroupDiscoveryFluent that = (V2beta1APIGroupDiscoveryFluent) o; + V2beta1APIGroupDiscoveryFluent that = (V2beta1APIGroupDiscoveryFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromVersions(Predicate return (A) this; } Iterator each = versions.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("versions"); while (each.hasNext()) { V2beta1APIVersionDiscoveryBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromVersions(Predicate } public VersionsNested setNewVersionLike(int index,V2beta1APIVersionDiscovery item) { - return new VersionsNested(index, item); + return new VersionsNested<>(index, item); } public A setToVersions(int index,V2beta1APIVersionDiscovery item) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } V2beta1APIVersionDiscoveryBuilder builder = new V2beta1APIVersionDiscoveryBuilder(item); if (index < 0 || index >= this.versions.size()) { @@ -343,18 +346,18 @@ public A withMetadata(V1ObjectMeta metadata) { this.metadata = new V1ObjectMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public A withVersions(List versions) { @@ -362,7 +365,7 @@ public A withVersions(List versions) { this._visitables.get("versions").clear(); } if (versions != null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); for (V2beta1APIVersionDiscovery item : versions) { this.addToVersions(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListBuilder.java index a5e1a81373..a92d706ff0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2beta1APIGroupDiscoveryListBuilder extends V2beta1APIGroupDiscoveryListFluent implements VisitableBuilder{ V2beta1APIGroupDiscoveryListFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListFluent.java index a0e1eae4ac..c4029f5a0e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2beta1APIGroupDiscoveryListFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2beta1APIGroupDiscoveryListFluent> extends BaseFluent{ private String apiVersion; private ArrayList items; @@ -47,7 +49,7 @@ public V2beta1APIGroupDiscoveryListFluent(V2beta1APIGroupDiscoveryList instance) public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V2beta1APIGroupDiscovery item : items) { V2beta1APIGroupDiscoveryBuilder builder = new V2beta1APIGroupDiscoveryBuilder(item); @@ -58,16 +60,16 @@ public A addAllToItems(Collection items) { } public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + return new ItemsNested<>(-1, null); } public ItemsNested addNewItemLike(V2beta1APIGroupDiscovery item) { - return new ItemsNested(-1, item); + return new ItemsNested<>(-1, item); } public A addToItems(V2beta1APIGroupDiscovery... items) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } for (V2beta1APIGroupDiscovery item : items) { V2beta1APIGroupDiscoveryBuilder builder = new V2beta1APIGroupDiscoveryBuilder(item); @@ -79,7 +81,7 @@ public A addToItems(V2beta1APIGroupDiscovery... items) { public A addToItems(int index,V2beta1APIGroupDiscovery item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V2beta1APIGroupDiscoveryBuilder builder = new V2beta1APIGroupDiscoveryBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -189,7 +191,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2beta1APIGroupDiscoveryListFluent that = (V2beta1APIGroupDiscoveryListFluent) o; + V2beta1APIGroupDiscoveryListFluent that = (V2beta1APIGroupDiscoveryListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -271,6 +273,7 @@ public A removeMatchingFromItems(Predicate pred return (A) this; } Iterator each = items.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("items"); while (each.hasNext()) { V2beta1APIGroupDiscoveryBuilder builder = each.next(); @@ -283,12 +286,12 @@ public A removeMatchingFromItems(Predicate pred } public ItemsNested setNewItemLike(int index,V2beta1APIGroupDiscovery item) { - return new ItemsNested(index, item); + return new ItemsNested<>(index, item); } public A setToItems(int index,V2beta1APIGroupDiscovery item) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } V2beta1APIGroupDiscoveryBuilder builder = new V2beta1APIGroupDiscoveryBuilder(item); if (index < 0 || index >= this.items.size()) { @@ -337,7 +340,7 @@ public A withItems(List items) { this._visitables.get("items").clear(); } if (items != null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); for (V2beta1APIGroupDiscovery item : items) { this.addToItems(item); } @@ -371,18 +374,18 @@ public A withMetadata(V1ListMeta metadata) { this.metadata = new V1ListMetaBuilder(metadata); this._visitables.get("metadata").add(this.metadata); } else { - this.metadata = null; this._visitables.get("metadata").remove(this.metadata); + this.metadata = null; } return (A) this; } public MetadataNested withNewMetadata() { - return new MetadataNested(null); + return new MetadataNested<>(null); } public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); + return new MetadataNested<>(item); } public class ItemsNested extends V2beta1APIGroupDiscoveryFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryBuilder.java index 58ecbcfbaf..55b8b814c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2beta1APIResourceDiscoveryBuilder extends V2beta1APIResourceDiscoveryFluent implements VisitableBuilder{ V2beta1APIResourceDiscoveryFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryFluent.java index b1b23eb2c0..4374d49e70 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2beta1APIResourceDiscoveryFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2beta1APIResourceDiscoveryFluent> extends BaseFluent{ private List categories; private String resource; @@ -51,7 +53,7 @@ public V2beta1APIResourceDiscoveryFluent(V2beta1APIResourceDiscovery instance) { public A addAllToCategories(Collection items) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } for (String item : items) { this.categories.add(item); @@ -61,7 +63,7 @@ public A addAllToCategories(Collection items) { public A addAllToShortNames(Collection items) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } for (String item : items) { this.shortNames.add(item); @@ -71,7 +73,7 @@ public A addAllToShortNames(Collection items) { public A addAllToSubresources(Collection items) { if (this.subresources == null) { - this.subresources = new ArrayList(); + this.subresources = new ArrayList<>(); } for (V2beta1APISubresourceDiscovery item : items) { V2beta1APISubresourceDiscoveryBuilder builder = new V2beta1APISubresourceDiscoveryBuilder(item); @@ -83,7 +85,7 @@ public A addAllToSubresources(Collection items) public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -92,16 +94,16 @@ public A addAllToVerbs(Collection items) { } public SubresourcesNested addNewSubresource() { - return new SubresourcesNested(-1, null); + return new SubresourcesNested<>(-1, null); } public SubresourcesNested addNewSubresourceLike(V2beta1APISubresourceDiscovery item) { - return new SubresourcesNested(-1, item); + return new SubresourcesNested<>(-1, item); } public A addToCategories(String... items) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } for (String item : items) { this.categories.add(item); @@ -111,7 +113,7 @@ public A addToCategories(String... items) { public A addToCategories(int index,String item) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } this.categories.add(index, item); return (A) this; @@ -119,7 +121,7 @@ public A addToCategories(int index,String item) { public A addToShortNames(String... items) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } for (String item : items) { this.shortNames.add(item); @@ -129,7 +131,7 @@ public A addToShortNames(String... items) { public A addToShortNames(int index,String item) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } this.shortNames.add(index, item); return (A) this; @@ -137,7 +139,7 @@ public A addToShortNames(int index,String item) { public A addToSubresources(V2beta1APISubresourceDiscovery... items) { if (this.subresources == null) { - this.subresources = new ArrayList(); + this.subresources = new ArrayList<>(); } for (V2beta1APISubresourceDiscovery item : items) { V2beta1APISubresourceDiscoveryBuilder builder = new V2beta1APISubresourceDiscoveryBuilder(item); @@ -149,7 +151,7 @@ public A addToSubresources(V2beta1APISubresourceDiscovery... items) { public A addToSubresources(int index,V2beta1APISubresourceDiscovery item) { if (this.subresources == null) { - this.subresources = new ArrayList(); + this.subresources = new ArrayList<>(); } V2beta1APISubresourceDiscoveryBuilder builder = new V2beta1APISubresourceDiscoveryBuilder(item); if (index < 0 || index >= this.subresources.size()) { @@ -164,7 +166,7 @@ public A addToSubresources(int index,V2beta1APISubresourceDiscovery item) { public A addToVerbs(String... items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -174,7 +176,7 @@ public A addToVerbs(String... items) { public A addToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.add(index, item); return (A) this; @@ -281,7 +283,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2beta1APIResourceDiscoveryFluent that = (V2beta1APIResourceDiscoveryFluent) o; + V2beta1APIResourceDiscoveryFluent that = (V2beta1APIResourceDiscoveryFluent) o; if (!(Objects.equals(resource, that.resource))) { return false; } @@ -557,6 +559,7 @@ public A removeMatchingFromSubresources(Predicate each = subresources.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("subresources"); while (each.hasNext()) { V2beta1APISubresourceDiscoveryBuilder builder = each.next(); @@ -569,12 +572,12 @@ public A removeMatchingFromSubresources(Predicate setNewSubresourceLike(int index,V2beta1APISubresourceDiscovery item) { - return new SubresourcesNested(index, item); + return new SubresourcesNested<>(index, item); } public A setToCategories(int index,String item) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } this.categories.set(index, item); return (A) this; @@ -582,7 +585,7 @@ public A setToCategories(int index,String item) { public A setToShortNames(int index,String item) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } this.shortNames.set(index, item); return (A) this; @@ -590,7 +593,7 @@ public A setToShortNames(int index,String item) { public A setToSubresources(int index,V2beta1APISubresourceDiscovery item) { if (this.subresources == null) { - this.subresources = new ArrayList(); + this.subresources = new ArrayList<>(); } V2beta1APISubresourceDiscoveryBuilder builder = new V2beta1APISubresourceDiscoveryBuilder(item); if (index < 0 || index >= this.subresources.size()) { @@ -605,7 +608,7 @@ public A setToSubresources(int index,V2beta1APISubresourceDiscovery item) { public A setToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.set(index, item); return (A) this; @@ -659,7 +662,7 @@ public String toString() { public A withCategories(List categories) { if (categories != null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); for (String item : categories) { this.addToCategories(item); } @@ -683,11 +686,11 @@ public A withCategories(String... categories) { } public ResponseKindNested withNewResponseKind() { - return new ResponseKindNested(null); + return new ResponseKindNested<>(null); } public ResponseKindNested withNewResponseKindLike(V1GroupVersionKind item) { - return new ResponseKindNested(item); + return new ResponseKindNested<>(item); } public A withResource(String resource) { @@ -701,8 +704,8 @@ public A withResponseKind(V1GroupVersionKind responseKind) { this.responseKind = new V1GroupVersionKindBuilder(responseKind); this._visitables.get("responseKind").add(this.responseKind); } else { - this.responseKind = null; this._visitables.get("responseKind").remove(this.responseKind); + this.responseKind = null; } return (A) this; } @@ -714,7 +717,7 @@ public A withScope(String scope) { public A withShortNames(List shortNames) { if (shortNames != null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); for (String item : shortNames) { this.addToShortNames(item); } @@ -747,7 +750,7 @@ public A withSubresources(List subresources) { this._visitables.get("subresources").clear(); } if (subresources != null) { - this.subresources = new ArrayList(); + this.subresources = new ArrayList<>(); for (V2beta1APISubresourceDiscovery item : subresources) { this.addToSubresources(item); } @@ -772,7 +775,7 @@ public A withSubresources(V2beta1APISubresourceDiscovery... subresources) { public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); for (String item : verbs) { this.addToVerbs(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryBuilder.java index 8c40dc4b10..5251c958ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2beta1APISubresourceDiscoveryBuilder extends V2beta1APISubresourceDiscoveryFluent implements VisitableBuilder{ V2beta1APISubresourceDiscoveryFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryFluent.java index ee2d08462c..8b7a702d3c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryFluent.java @@ -26,12 +26,14 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2beta1APISubresourceDiscoveryFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2beta1APISubresourceDiscoveryFluent> extends BaseFluent{ private ArrayList acceptedTypes; private V1GroupVersionKindBuilder responseKind; @@ -47,7 +49,7 @@ public V2beta1APISubresourceDiscoveryFluent(V2beta1APISubresourceDiscovery insta public A addAllToAcceptedTypes(Collection items) { if (this.acceptedTypes == null) { - this.acceptedTypes = new ArrayList(); + this.acceptedTypes = new ArrayList<>(); } for (V1GroupVersionKind item : items) { V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); @@ -59,7 +61,7 @@ public A addAllToAcceptedTypes(Collection items) { public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -68,16 +70,16 @@ public A addAllToVerbs(Collection items) { } public AcceptedTypesNested addNewAcceptedType() { - return new AcceptedTypesNested(-1, null); + return new AcceptedTypesNested<>(-1, null); } public AcceptedTypesNested addNewAcceptedTypeLike(V1GroupVersionKind item) { - return new AcceptedTypesNested(-1, item); + return new AcceptedTypesNested<>(-1, item); } public A addToAcceptedTypes(V1GroupVersionKind... items) { if (this.acceptedTypes == null) { - this.acceptedTypes = new ArrayList(); + this.acceptedTypes = new ArrayList<>(); } for (V1GroupVersionKind item : items) { V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); @@ -89,7 +91,7 @@ public A addToAcceptedTypes(V1GroupVersionKind... items) { public A addToAcceptedTypes(int index,V1GroupVersionKind item) { if (this.acceptedTypes == null) { - this.acceptedTypes = new ArrayList(); + this.acceptedTypes = new ArrayList<>(); } V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); if (index < 0 || index >= this.acceptedTypes.size()) { @@ -104,7 +106,7 @@ public A addToAcceptedTypes(int index,V1GroupVersionKind item) { public A addToVerbs(String... items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } for (String item : items) { this.verbs.add(item); @@ -114,7 +116,7 @@ public A addToVerbs(String... items) { public A addToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.add(index, item); return (A) this; @@ -217,7 +219,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2beta1APISubresourceDiscoveryFluent that = (V2beta1APISubresourceDiscoveryFluent) o; + V2beta1APISubresourceDiscoveryFluent that = (V2beta1APISubresourceDiscoveryFluent) o; if (!(Objects.equals(subresource, that.subresource))) { return false; } @@ -349,6 +351,7 @@ public A removeMatchingFromAcceptedTypes(Predicate pr return (A) this; } Iterator each = acceptedTypes.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("acceptedTypes"); while (each.hasNext()) { V1GroupVersionKindBuilder builder = each.next(); @@ -361,12 +364,12 @@ public A removeMatchingFromAcceptedTypes(Predicate pr } public AcceptedTypesNested setNewAcceptedTypeLike(int index,V1GroupVersionKind item) { - return new AcceptedTypesNested(index, item); + return new AcceptedTypesNested<>(index, item); } public A setToAcceptedTypes(int index,V1GroupVersionKind item) { if (this.acceptedTypes == null) { - this.acceptedTypes = new ArrayList(); + this.acceptedTypes = new ArrayList<>(); } V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); if (index < 0 || index >= this.acceptedTypes.size()) { @@ -381,7 +384,7 @@ public A setToAcceptedTypes(int index,V1GroupVersionKind item) { public A setToVerbs(int index,String item) { if (this.verbs == null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); } this.verbs.set(index, item); return (A) this; @@ -418,7 +421,7 @@ public A withAcceptedTypes(List acceptedTypes) { this._visitables.get("acceptedTypes").clear(); } if (acceptedTypes != null) { - this.acceptedTypes = new ArrayList(); + this.acceptedTypes = new ArrayList<>(); for (V1GroupVersionKind item : acceptedTypes) { this.addToAcceptedTypes(item); } @@ -442,11 +445,11 @@ public A withAcceptedTypes(V1GroupVersionKind... acceptedTypes) { } public ResponseKindNested withNewResponseKind() { - return new ResponseKindNested(null); + return new ResponseKindNested<>(null); } public ResponseKindNested withNewResponseKindLike(V1GroupVersionKind item) { - return new ResponseKindNested(item); + return new ResponseKindNested<>(item); } public A withResponseKind(V1GroupVersionKind responseKind) { @@ -455,8 +458,8 @@ public A withResponseKind(V1GroupVersionKind responseKind) { this.responseKind = new V1GroupVersionKindBuilder(responseKind); this._visitables.get("responseKind").add(this.responseKind); } else { - this.responseKind = null; this._visitables.get("responseKind").remove(this.responseKind); + this.responseKind = null; } return (A) this; } @@ -468,7 +471,7 @@ public A withSubresource(String subresource) { public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new ArrayList(); + this.verbs = new ArrayList<>(); for (String item : verbs) { this.addToVerbs(item); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryBuilder.java index 1dc95566ca..2026df95bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryBuilder.java @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class V2beta1APIVersionDiscoveryBuilder extends V2beta1APIVersionDiscoveryFluent implements VisitableBuilder{ V2beta1APIVersionDiscoveryFluent fluent; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryFluent.java index a39c63c864..40a14ada1b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryFluent.java @@ -25,12 +25,14 @@ import java.util.List; import java.util.Objects; import java.util.function.Predicate; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class V2beta1APIVersionDiscoveryFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class V2beta1APIVersionDiscoveryFluent> extends BaseFluent{ private String freshness; private ArrayList resources; @@ -45,7 +47,7 @@ public V2beta1APIVersionDiscoveryFluent(V2beta1APIVersionDiscovery instance) { public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (V2beta1APIResourceDiscovery item : items) { V2beta1APIResourceDiscoveryBuilder builder = new V2beta1APIResourceDiscoveryBuilder(item); @@ -56,16 +58,16 @@ public A addAllToResources(Collection items) { } public ResourcesNested addNewResource() { - return new ResourcesNested(-1, null); + return new ResourcesNested<>(-1, null); } public ResourcesNested addNewResourceLike(V2beta1APIResourceDiscovery item) { - return new ResourcesNested(-1, item); + return new ResourcesNested<>(-1, item); } public A addToResources(V2beta1APIResourceDiscovery... items) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } for (V2beta1APIResourceDiscovery item : items) { V2beta1APIResourceDiscoveryBuilder builder = new V2beta1APIResourceDiscoveryBuilder(item); @@ -77,7 +79,7 @@ public A addToResources(V2beta1APIResourceDiscovery... items) { public A addToResources(int index,V2beta1APIResourceDiscovery item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } V2beta1APIResourceDiscoveryBuilder builder = new V2beta1APIResourceDiscoveryBuilder(item); if (index < 0 || index >= this.resources.size()) { @@ -170,7 +172,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V2beta1APIVersionDiscoveryFluent that = (V2beta1APIVersionDiscoveryFluent) o; + V2beta1APIVersionDiscoveryFluent that = (V2beta1APIVersionDiscoveryFluent) o; if (!(Objects.equals(version, that.version))) { return false; } @@ -245,6 +247,7 @@ public A removeMatchingFromResources(Predicate each = resources.iterator(); + @SuppressWarnings({"rawtypes"}) List visitables = this._visitables.get("resources"); while (each.hasNext()) { V2beta1APIResourceDiscoveryBuilder builder = each.next(); @@ -257,12 +260,12 @@ public A removeMatchingFromResources(Predicate setNewResourceLike(int index,V2beta1APIResourceDiscovery item) { - return new ResourcesNested(index, item); + return new ResourcesNested<>(index, item); } public A setToResources(int index,V2beta1APIResourceDiscovery item) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } V2beta1APIResourceDiscoveryBuilder builder = new V2beta1APIResourceDiscoveryBuilder(item); if (index < 0 || index >= this.resources.size()) { @@ -306,7 +309,7 @@ public A withResources(List resources) { this._visitables.get("resources").clear(); } if (resources != null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); for (V2beta1APIResourceDiscovery item : resources) { this.addToResources(item); } 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 24f4930629..3f9a4ba2cf 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 @@ -13,7 +13,8 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; +import javax.annotation.processing.Generated; +@Generated("io.sundr:builder-annotations") public class VersionInfoBuilder extends VersionInfoFluent implements VisitableBuilder{ VersionInfoFluent fluent; 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 3e9b2cc601..a80afef6f1 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,12 +18,14 @@ import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import javax.annotation.processing.Generated; /** * Generated */ -@SuppressWarnings("unchecked") -public class VersionInfoFluent> extends BaseFluent{ +@Generated("io.sundr:builder-annotations") +@SuppressWarnings({"unchecked"}) +public class VersionInfoFluent> extends BaseFluent{ private String buildDate; private String compiler; @@ -75,7 +77,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - VersionInfoFluent that = (VersionInfoFluent) o; + VersionInfoFluent that = (VersionInfoFluent) o; if (!(Objects.equals(buildDate, that.buildDate))) { return false; } diff --git a/gen b/gen new file mode 160000 index 0000000000..d01fc8a159 --- /dev/null +++ b/gen @@ -0,0 +1 @@ +Subproject commit d01fc8a15955e08c5102b7f9916a99b094ebd0e1 diff --git a/kubernetes/.openapi-generator/FILES b/kubernetes/.openapi-generator/FILES index c29871a8c9..5681c6621c 100644 --- a/kubernetes/.openapi-generator/FILES +++ b/kubernetes/.openapi-generator/FILES @@ -28,7 +28,6 @@ docs/BatchApi.md docs/BatchV1Api.md docs/CertificatesApi.md docs/CertificatesV1Api.md -docs/CertificatesV1alpha1Api.md docs/CertificatesV1beta1Api.md docs/CoordinationApi.md docs/CoordinationV1Api.md @@ -55,10 +54,11 @@ docs/FlowcontrolApiserverV1Api.md docs/FlowcontrolV1Subject.md docs/InternalApiserverApi.md docs/InternalApiserverV1alpha1Api.md +docs/LifecycleApi.md +docs/LifecycleV1alpha1Api.md docs/LogsApi.md docs/NetworkingApi.md docs/NetworkingV1Api.md -docs/NetworkingV1beta1Api.md docs/NodeApi.md docs/NodeV1Api.md docs/OpenidApi.md @@ -75,12 +75,13 @@ docs/ResourceV1beta1Api.md docs/ResourceV1beta2Api.md docs/SchedulingApi.md docs/SchedulingV1Api.md -docs/SchedulingV1alpha2Api.md +docs/SchedulingV1alpha3Api.md +docs/SchedulingV1beta1Api.md docs/StorageApi.md docs/StorageV1Api.md docs/StorageV1TokenRequest.md -docs/StorageV1beta1Api.md docs/StoragemigrationApi.md +docs/StoragemigrationV1Api.md docs/StoragemigrationV1beta1Api.md docs/V1APIGroup.md docs/V1APIGroupList.md @@ -114,6 +115,7 @@ docs/V1CSINode.md docs/V1CSINodeDriver.md docs/V1CSINodeList.md docs/V1CSINodeSpec.md +docs/V1CSINodeStatus.md docs/V1CSIPersistentVolumeSource.md docs/V1CSIStorageCapacity.md docs/V1CSIStorageCapacityList.md @@ -136,7 +138,10 @@ docs/V1ClusterRole.md docs/V1ClusterRoleBinding.md docs/V1ClusterRoleBindingList.md docs/V1ClusterRoleList.md +docs/V1ClusterTrustBundle.md +docs/V1ClusterTrustBundleList.md docs/V1ClusterTrustBundleProjection.md +docs/V1ClusterTrustBundleSpec.md docs/V1ComponentCondition.md docs/V1ComponentStatus.md docs/V1ComponentStatusList.md @@ -209,11 +214,17 @@ docs/V1DeviceClassList.md docs/V1DeviceClassSpec.md docs/V1DeviceConstraint.md docs/V1DeviceCounterConsumption.md +docs/V1DeviceDerivedAttribute.md docs/V1DeviceRequest.md docs/V1DeviceRequestAllocationResult.md docs/V1DeviceSelector.md docs/V1DeviceSubRequest.md docs/V1DeviceTaint.md +docs/V1DeviceTaintRule.md +docs/V1DeviceTaintRuleList.md +docs/V1DeviceTaintRuleSpec.md +docs/V1DeviceTaintRuleStatus.md +docs/V1DeviceTaintSelector.md docs/V1DeviceToleration.md docs/V1DownwardAPIProjection.md docs/V1DownwardAPIVolumeFile.md @@ -235,6 +246,7 @@ docs/V1EphemeralContainer.md docs/V1EphemeralVolumeSource.md docs/V1EventSource.md docs/V1Eviction.md +docs/V1EvictionResponder.md docs/V1ExactDeviceRequest.md docs/V1ExecAction.md docs/V1ExemptPriorityLevelConfiguration.md @@ -303,6 +315,7 @@ docs/V1JSONSchemaProps.md docs/V1Job.md docs/V1JobCondition.md docs/V1JobList.md +docs/V1JobSchedulingConfiguration.md docs/V1JobSpec.md docs/V1JobStatus.md docs/V1JobTemplateSpec.md @@ -360,14 +373,19 @@ docs/V1NetworkPolicySpec.md docs/V1Node.md docs/V1NodeAddress.md docs/V1NodeAffinity.md +docs/V1NodeAllocatableMappedResources.md +docs/V1NodeAllocatableMapping.md +docs/V1NodeAllocatableOverhead.md +docs/V1NodeAllocatableOverheadResources.md +docs/V1NodeAllocatableResource.md docs/V1NodeAllocatableResourceClaimStatus.md -docs/V1NodeAllocatableResourceMapping.md docs/V1NodeCondition.md docs/V1NodeConfigSource.md docs/V1NodeConfigStatus.md docs/V1NodeDaemonEndpoints.md docs/V1NodeFeatures.md docs/V1NodeList.md +docs/V1NodePodPreemptionPolicy.md docs/V1NodeRuntimeHandler.md docs/V1NodeRuntimeHandlerFeatures.md docs/V1NodeSelector.md @@ -406,6 +424,10 @@ docs/V1PodAffinity.md docs/V1PodAffinityTerm.md docs/V1PodAntiAffinity.md docs/V1PodCertificateProjection.md +docs/V1PodCertificateRequest.md +docs/V1PodCertificateRequestList.md +docs/V1PodCertificateRequestSpec.md +docs/V1PodCertificateRequestStatus.md docs/V1PodCondition.md docs/V1PodDNSConfig.md docs/V1PodDNSConfigOption.md @@ -432,6 +454,7 @@ docs/V1PodStatus.md docs/V1PodTemplate.md docs/V1PodTemplateList.md docs/V1PodTemplateSpec.md +docs/V1PodVolumeHealth.md docs/V1PolicyRule.md docs/V1PolicyRulesWithSubjects.md docs/V1PortStatus.md @@ -551,8 +574,14 @@ docs/V1StatusCause.md docs/V1StatusDetails.md docs/V1StorageClass.md docs/V1StorageClassList.md +docs/V1StorageHealth.md +docs/V1StorageHealthCondition.md docs/V1StorageOSPersistentVolumeSource.md docs/V1StorageOSVolumeSource.md +docs/V1StorageVersionMigration.md +docs/V1StorageVersionMigrationList.md +docs/V1StorageVersionMigrationSpec.md +docs/V1StorageVersionMigrationStatus.md docs/V1SubjectAccessReview.md docs/V1SubjectAccessReviewSpec.md docs/V1SubjectAccessReviewStatus.md @@ -600,6 +629,8 @@ docs/V1VolumeAttributesClass.md docs/V1VolumeAttributesClassList.md docs/V1VolumeDevice.md docs/V1VolumeError.md +docs/V1VolumeHealthCondition.md +docs/V1VolumeHealthStatus.md docs/V1VolumeMount.md docs/V1VolumeMountStatus.md docs/V1VolumeNodeAffinity.md @@ -613,9 +644,18 @@ docs/V1WebhookConversion.md docs/V1WeightedPodAffinityTerm.md docs/V1WindowsSecurityContextOptions.md docs/V1alpha1ApplyConfiguration.md -docs/V1alpha1ClusterTrustBundle.md -docs/V1alpha1ClusterTrustBundleList.md -docs/V1alpha1ClusterTrustBundleSpec.md +docs/V1alpha1Eviction.md +docs/V1alpha1EvictionList.md +docs/V1alpha1EvictionPodReference.md +docs/V1alpha1EvictionRequest.md +docs/V1alpha1EvictionRequestList.md +docs/V1alpha1EvictionRequestPodReference.md +docs/V1alpha1EvictionRequestSpec.md +docs/V1alpha1EvictionRequestStatus.md +docs/V1alpha1EvictionRequestTarget.md +docs/V1alpha1EvictionSpec.md +docs/V1alpha1EvictionStatus.md +docs/V1alpha1EvictionTarget.md docs/V1alpha1JSONPatch.md docs/V1alpha1MatchCondition.md docs/V1alpha1MatchResources.md @@ -629,43 +669,63 @@ docs/V1alpha1Mutation.md docs/V1alpha1NamedRuleWithOperations.md docs/V1alpha1ParamKind.md docs/V1alpha1ParamRef.md +docs/V1alpha1Requester.md +docs/V1alpha1ResponderStatus.md docs/V1alpha1ServerStorageVersion.md docs/V1alpha1StorageVersion.md docs/V1alpha1StorageVersionCondition.md docs/V1alpha1StorageVersionList.md docs/V1alpha1StorageVersionStatus.md +docs/V1alpha1TargetResponder.md docs/V1alpha1Variable.md -docs/V1alpha2GangSchedulingPolicy.md docs/V1alpha2LeaseCandidate.md docs/V1alpha2LeaseCandidateList.md docs/V1alpha2LeaseCandidateSpec.md -docs/V1alpha2PodGroup.md -docs/V1alpha2PodGroupList.md -docs/V1alpha2PodGroupResourceClaim.md -docs/V1alpha2PodGroupResourceClaimStatus.md -docs/V1alpha2PodGroupSchedulingConstraints.md -docs/V1alpha2PodGroupSchedulingPolicy.md -docs/V1alpha2PodGroupSpec.md -docs/V1alpha2PodGroupStatus.md -docs/V1alpha2PodGroupTemplate.md -docs/V1alpha2PodGroupTemplateReference.md -docs/V1alpha2TopologyConstraint.md -docs/V1alpha2TypedLocalObjectReference.md -docs/V1alpha2Workload.md -docs/V1alpha2WorkloadList.md -docs/V1alpha2WorkloadPodGroupTemplateReference.md -docs/V1alpha2WorkloadSpec.md +docs/V1alpha3CompositeDisruptionMode.md +docs/V1alpha3CompositeGangSchedulingPolicy.md +docs/V1alpha3CompositePodGroup.md +docs/V1alpha3CompositePodGroupList.md +docs/V1alpha3CompositePodGroupSchedulingConstraints.md +docs/V1alpha3CompositePodGroupSchedulingPolicy.md +docs/V1alpha3CompositePodGroupSpec.md +docs/V1alpha3CompositePodGroupStatus.md +docs/V1alpha3CompositePodGroupTemplate.md docs/V1alpha3DeviceTaint.md docs/V1alpha3DeviceTaintRule.md docs/V1alpha3DeviceTaintRuleList.md docs/V1alpha3DeviceTaintRuleSpec.md docs/V1alpha3DeviceTaintRuleStatus.md docs/V1alpha3DeviceTaintSelector.md +docs/V1alpha3DisruptionMode.md +docs/V1alpha3GangSchedulingPolicy.md +docs/V1alpha3PartitionTypeStatus.md +docs/V1alpha3PodGroup.md +docs/V1alpha3PodGroupList.md +docs/V1alpha3PodGroupResourceClaim.md +docs/V1alpha3PodGroupResourceClaimStatus.md +docs/V1alpha3PodGroupSchedulingConstraints.md +docs/V1alpha3PodGroupSchedulingPolicy.md +docs/V1alpha3PodGroupSpec.md +docs/V1alpha3PodGroupStatus.md +docs/V1alpha3PodGroupTemplate.md docs/V1alpha3PoolStatus.md docs/V1alpha3ResourcePoolStatusRequest.md docs/V1alpha3ResourcePoolStatusRequestList.md docs/V1alpha3ResourcePoolStatusRequestSpec.md docs/V1alpha3ResourcePoolStatusRequestStatus.md +docs/V1alpha3ShareableCapacityStatus.md +docs/V1alpha3ShareableSummaryStatus.md +docs/V1alpha3TopologyConstraint.md +docs/V1alpha3TypedLocalObjectReference.md +docs/V1alpha3Workload.md +docs/V1alpha3WorkloadList.md +docs/V1alpha3WorkloadPodGroupDisruptionMode.md +docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md +docs/V1alpha3WorkloadPodGroupResourceClaim.md +docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md +docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md +docs/V1alpha3WorkloadReference.md +docs/V1alpha3WorkloadSpec.md docs/V1beta1AllocatedDeviceStatus.md docs/V1beta1AllocationResult.md docs/V1beta1ApplyConfiguration.md @@ -677,6 +737,11 @@ docs/V1beta1CapacityRequirements.md docs/V1beta1ClusterTrustBundle.md docs/V1beta1ClusterTrustBundleList.md docs/V1beta1ClusterTrustBundleSpec.md +docs/V1beta1CompositeDisruptionMode.md +docs/V1beta1CompositeGangSchedulingPolicy.md +docs/V1beta1CompositePodGroupSchedulingConstraints.md +docs/V1beta1CompositePodGroupSchedulingPolicy.md +docs/V1beta1CompositePodGroupTemplate.md docs/V1beta1Counter.md docs/V1beta1CounterSet.md docs/V1beta1Device.md @@ -692,15 +757,15 @@ docs/V1beta1DeviceClassList.md docs/V1beta1DeviceClassSpec.md docs/V1beta1DeviceConstraint.md docs/V1beta1DeviceCounterConsumption.md +docs/V1beta1DeviceDerivedAttribute.md docs/V1beta1DeviceRequest.md docs/V1beta1DeviceRequestAllocationResult.md docs/V1beta1DeviceSelector.md docs/V1beta1DeviceSubRequest.md docs/V1beta1DeviceTaint.md docs/V1beta1DeviceToleration.md -docs/V1beta1IPAddress.md -docs/V1beta1IPAddressList.md -docs/V1beta1IPAddressSpec.md +docs/V1beta1DisruptionMode.md +docs/V1beta1GangSchedulingPolicy.md docs/V1beta1JSONPatch.md docs/V1beta1LeaseCandidate.md docs/V1beta1LeaseCandidateList.md @@ -716,15 +781,25 @@ docs/V1beta1MutatingAdmissionPolicySpec.md docs/V1beta1Mutation.md docs/V1beta1NamedRuleWithOperations.md docs/V1beta1NetworkDeviceData.md -docs/V1beta1NodeAllocatableResourceMapping.md +docs/V1beta1NodeAllocatableMapping.md +docs/V1beta1NodeAllocatableOverhead.md +docs/V1beta1NodeAllocatableResource.md docs/V1beta1OpaqueDeviceConfiguration.md docs/V1beta1ParamKind.md docs/V1beta1ParamRef.md -docs/V1beta1ParentReference.md docs/V1beta1PodCertificateRequest.md docs/V1beta1PodCertificateRequestList.md docs/V1beta1PodCertificateRequestSpec.md docs/V1beta1PodCertificateRequestStatus.md +docs/V1beta1PodGroup.md +docs/V1beta1PodGroupList.md +docs/V1beta1PodGroupResourceClaim.md +docs/V1beta1PodGroupResourceClaimStatus.md +docs/V1beta1PodGroupSchedulingConstraints.md +docs/V1beta1PodGroupSchedulingPolicy.md +docs/V1beta1PodGroupSpec.md +docs/V1beta1PodGroupStatus.md +docs/V1beta1PodGroupTemplate.md docs/V1beta1ResourceClaim.md docs/V1beta1ResourceClaimConsumerReference.md docs/V1beta1ResourceClaimList.md @@ -737,17 +812,17 @@ docs/V1beta1ResourcePool.md docs/V1beta1ResourceSlice.md docs/V1beta1ResourceSliceList.md docs/V1beta1ResourceSliceSpec.md -docs/V1beta1ServiceCIDR.md -docs/V1beta1ServiceCIDRList.md -docs/V1beta1ServiceCIDRSpec.md -docs/V1beta1ServiceCIDRStatus.md docs/V1beta1StorageVersionMigration.md docs/V1beta1StorageVersionMigrationList.md docs/V1beta1StorageVersionMigrationSpec.md docs/V1beta1StorageVersionMigrationStatus.md +docs/V1beta1TopologyConstraint.md +docs/V1beta1TypedLocalObjectReference.md docs/V1beta1Variable.md -docs/V1beta1VolumeAttributesClass.md -docs/V1beta1VolumeAttributesClassList.md +docs/V1beta1Workload.md +docs/V1beta1WorkloadList.md +docs/V1beta1WorkloadReference.md +docs/V1beta1WorkloadSpec.md docs/V1beta2AllocatedDeviceStatus.md docs/V1beta2AllocationResult.md docs/V1beta2CELDeviceSelector.md @@ -769,6 +844,7 @@ docs/V1beta2DeviceClassList.md docs/V1beta2DeviceClassSpec.md docs/V1beta2DeviceConstraint.md docs/V1beta2DeviceCounterConsumption.md +docs/V1beta2DeviceDerivedAttribute.md docs/V1beta2DeviceRequest.md docs/V1beta2DeviceRequestAllocationResult.md docs/V1beta2DeviceSelector.md @@ -782,7 +858,9 @@ docs/V1beta2DeviceTaintSelector.md docs/V1beta2DeviceToleration.md docs/V1beta2ExactDeviceRequest.md docs/V1beta2NetworkDeviceData.md -docs/V1beta2NodeAllocatableResourceMapping.md +docs/V1beta2NodeAllocatableMapping.md +docs/V1beta2NodeAllocatableOverhead.md +docs/V1beta2NodeAllocatableResource.md docs/V1beta2OpaqueDeviceConfiguration.md docs/V1beta2ResourceClaim.md docs/V1beta2ResourceClaimConsumerReference.md @@ -871,7 +949,6 @@ src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java 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 @@ -888,10 +965,11 @@ src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java +src/main/java/io/kubernetes/client/openapi/apis/LifecycleApi.java +src/main/java/io/kubernetes/client/openapi/apis/LifecycleV1alpha1Api.java src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java -src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java @@ -906,11 +984,12 @@ 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/SchedulingV1alpha2Api.java +src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha3Api.java +src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java -src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java +src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1Api.java src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java @@ -970,6 +1049,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1CSINodeStatus.java src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java @@ -992,7 +1072,10 @@ src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java +src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundle.java +src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleList.java src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java +src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleSpec.java src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java @@ -1065,11 +1148,17 @@ src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceDerivedAttribute.java src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRule.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleList.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintSelector.java src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java @@ -1091,6 +1180,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java +src/main/java/io/kubernetes/client/openapi/models/V1EvictionResponder.java src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java @@ -1159,6 +1249,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java src/main/java/io/kubernetes/client/openapi/models/V1Job.java src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java src/main/java/io/kubernetes/client/openapi/models/V1JobList.java +src/main/java/io/kubernetes/client/openapi/models/V1JobSchedulingConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java @@ -1216,14 +1307,19 @@ src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java src/main/java/io/kubernetes/client/openapi/models/V1Node.java src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappedResources.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMapping.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverhead.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadResources.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResource.java src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMapping.java src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java +src/main/java/io/kubernetes/client/openapi/models/V1NodePodPreemptionPolicy.java src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java @@ -1262,6 +1358,10 @@ src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java +src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestList.java +src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestStatus.java src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java @@ -1288,6 +1388,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1PodVolumeHealth.java src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java @@ -1407,8 +1508,14 @@ src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java +src/main/java/io/kubernetes/client/openapi/models/V1StorageHealth.java +src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthCondition.java src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigration.java +src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationList.java +src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationStatus.java src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java @@ -1456,6 +1563,8 @@ src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthStatus.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java @@ -1469,9 +1578,18 @@ src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1Eviction.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionPodReference.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestPodReference.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestTarget.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionTarget.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java @@ -1485,43 +1603,63 @@ src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1Requester.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResponderStatus.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1TargetResponder.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicy.java src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroup.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaim.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraints.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicy.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplate.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReference.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraint.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReference.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2Workload.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReference.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeDisruptionMode.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeGangSchedulingPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroup.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingConstraints.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupTemplate.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/V1alpha3DeviceTaintRuleStatus.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DisruptionMode.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3GangSchedulingPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3PartitionTypeStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroup.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingConstraints.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupTemplate.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatus.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequest.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestList.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpec.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableCapacityStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableSummaryStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3TopologyConstraint.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3TypedLocalObjectReference.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3Workload.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupDisruptionMode.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupGangSchedulingPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupResourceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingConstraints.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadReference.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadSpec.java src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java @@ -1533,6 +1671,11 @@ src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.ja 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/V1beta1CompositeDisruptionMode.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeGangSchedulingPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingConstraints.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupTemplate.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 @@ -1548,15 +1691,15 @@ 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/V1beta1DeviceDerivedAttribute.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/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/V1beta1DisruptionMode.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1GangSchedulingPolicy.java src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java @@ -1572,15 +1715,25 @@ src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMapping.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableMapping.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableOverhead.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResource.java src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequest.java src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestList.java src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpec.java src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroup.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingConstraints.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupTemplate.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java @@ -1593,17 +1746,17 @@ 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/V1beta1ServiceCIDR.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigration.java src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationList.java src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpec.java src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1TopologyConstraint.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1TypedLocalObjectReference.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/V1beta1Workload.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadReference.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadSpec.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 @@ -1625,6 +1778,7 @@ 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/V1beta2DeviceDerivedAttribute.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 @@ -1638,7 +1792,9 @@ src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelector.jav 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/V1beta2NodeAllocatableResourceMapping.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableMapping.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableOverhead.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResource.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 diff --git a/kubernetes/.openapi-generator/swagger.json-default.sha256 b/kubernetes/.openapi-generator/swagger.json-default.sha256 index c1142dc0be..d369244fb0 100644 --- a/kubernetes/.openapi-generator/swagger.json-default.sha256 +++ b/kubernetes/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -a8141d8bcefffd44bfac51ca1224da97448638191872f8a40ded9f8d6f7b258a \ No newline at end of file +4800ef4306a1e5493f7159d59151da62cd8b527802f76b68370e1abb002b8c32 \ No newline at end of file diff --git a/kubernetes/api/openapi.yaml b/kubernetes/api/openapi.yaml index 221bf5cef4..c35d14a0ef 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.36 + version: release-1.37 servers: - url: / security: @@ -23,6 +23,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIVersions" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIVersions" description: OK "401": content: {} @@ -30,6 +33,7 @@ paths: tags: - core x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -21460,6 +21464,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroupList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroupList" description: OK "401": content: {} @@ -21467,6 +21474,7 @@ paths: tags: - apis x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -21486,6 +21494,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -21493,6 +21504,7 @@ paths: tags: - admissionregistration x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -30486,6 +30498,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -30493,6 +30508,7 @@ paths: tags: - apiextensions x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -31668,6 +31684,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -31675,6 +31694,7 @@ paths: tags: - apiregistration x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -32850,6 +32870,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -32857,6 +32880,7 @@ paths: tags: - apps x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40235,6 +40259,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -40242,6 +40269,7 @@ paths: tags: - authentication x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40517,6 +40545,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -40524,6 +40555,7 @@ paths: tags: - authorization x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -41031,6 +41063,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -41038,6 +41073,7 @@ paths: tags: - autoscaling x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -43823,6 +43859,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -43830,6 +43869,7 @@ paths: tags: - batch x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -46585,6 +46625,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -46592,6 +46635,7 @@ paths: tags: - certificates x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -48013,39 +48057,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1/watch/certificatesigningrequests: {} - /apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}: {} - /apis/certificates.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: - - certificates_v1alpha1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/certificates.k8s.io/v1alpha1/clustertrustbundles: + /apis/certificates.k8s.io/v1/clustertrustbundles: delete: description: delete collection of ClusterTrustBundle operationId: deleteCollectionClusterTrustBundle @@ -48229,12 +48241,12 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - certificates_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: certificates.k8s.io kind: ClusterTrustBundle - version: v1alpha1 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48369,36 +48381,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.ClusterTrustBundleList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.ClusterTrustBundleList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.ClusterTrustBundleList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.ClusterTrustBundleList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.ClusterTrustBundleList" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - certificates_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: certificates.k8s.io kind: ClusterTrustBundle - version: v1alpha1 + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -48454,64 +48466,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - certificates_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: certificates.k8s.io kind: ClusterTrustBundle - version: v1alpha1 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48519,7 +48531,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}: + /apis/certificates.k8s.io/v1/clustertrustbundles/{name}: delete: description: delete a ClusterTrustBundle operationId: deleteClusterTrustBundle @@ -48629,12 +48641,12 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - certificates_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: certificates.k8s.io kind: ClusterTrustBundle - version: v1alpha1 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48664,27 +48676,27 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - certificates_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: certificates.k8s.io kind: ClusterTrustBundle - version: v1alpha1 + version: v1 x-accepts: - application/cbor - application/json @@ -48759,42 +48771,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - certificates_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: certificates.k8s.io kind: ClusterTrustBundle - version: v1alpha1 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48855,49 +48867,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.ClusterTrustBundle" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - certificates_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: certificates.k8s.io kind: ClusterTrustBundle - version: v1alpha1 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48905,43 +48917,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles: {} - /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}: {} - /apis/certificates.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: - - certificates_v1beta1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/certificates.k8s.io/v1beta1/clustertrustbundles: + /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests: delete: - description: delete collection of ClusterTrustBundle - operationId: deleteCollectionClusterTrustBundle + description: delete collection of PodCertificateRequest + operationId: deleteCollectionNamespacedPodCertificateRequest 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)." @@ -49121,12 +49107,12 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1beta1 + - certificates_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49135,9 +49121,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ClusterTrustBundle - operationId: listClusterTrustBundle + description: list or watch objects of kind PodCertificateRequest + operationId: listNamespacedPodCertificateRequest 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)." @@ -49261,36 +49253,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.PodCertificateRequestList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.PodCertificateRequestList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.PodCertificateRequestList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.PodCertificateRequestList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.PodCertificateRequestList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.PodCertificateRequestList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.PodCertificateRequestList" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - certificates_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -49300,9 +49292,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ClusterTrustBundle - operationId: createClusterTrustBundle + description: create a PodCertificateRequest + operationId: createNamespacedPodCertificateRequest 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)." @@ -49346,64 +49344,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - certificates_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49411,17 +49409,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}: + /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}: delete: - description: delete a ClusterTrustBundle - operationId: deleteClusterTrustBundle + description: delete a PodCertificateRequest + operationId: deleteNamespacedPodCertificateRequest parameters: - - description: name of the ClusterTrustBundle + - description: name of the PodCertificateRequest 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)." @@ -49521,12 +49525,12 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1beta1 + - certificates_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49535,15 +49539,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ClusterTrustBundle - operationId: readClusterTrustBundle + description: read the specified PodCertificateRequest + operationId: readNamespacedPodCertificateRequest parameters: - - description: name of the ClusterTrustBundle + - description: name of the PodCertificateRequest 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)." @@ -49556,42 +49566,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - certificates_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ClusterTrustBundle - operationId: patchClusterTrustBundle + description: partially update the specified PodCertificateRequest + operationId: patchNamespacedPodCertificateRequest parameters: - - description: name of the ClusterTrustBundle + - description: name of the PodCertificateRequest 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)." @@ -49651,42 +49667,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - certificates_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49695,15 +49711,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ClusterTrustBundle - operationId: replaceClusterTrustBundle + description: replace the specified PodCertificateRequest + operationId: replaceNamespacedPodCertificateRequest parameters: - - description: name of the ClusterTrustBundle + - description: name of the PodCertificateRequest 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)." @@ -49747,49 +49769,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - certificates_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49797,17 +49819,496 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests: - delete: - description: delete collection of PodCertificateRequest - operationId: deleteCollectionNamespacedPodCertificateRequest + /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status: + get: + description: read status of the specified PodCertificateRequest + operationId: readNamespacedPodCertificateRequestStatus + parameters: + - description: name of the PodCertificateRequest + 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.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified PodCertificateRequest + operationId: patchNamespacedPodCertificateRequestStatus + parameters: + - description: name of the PodCertificateRequest + 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/v1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + 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 PodCertificateRequest + operationId: replaceNamespacedPodCertificateRequestStatus parameters: + - description: name of the PodCertificateRequest + 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/v1.PodCertificateRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequest" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + 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/certificates.k8s.io/v1/podcertificaterequests: + get: + description: list or watch objects of kind PodCertificateRequest + operationId: listPodCertificateRequestForAllNamespaces + 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequestList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequestList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequestList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequestList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequestList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequestList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.PodCertificateRequestList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + 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/certificates.k8s.io/v1/watch/certificatesigningrequests: {} + /apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}: {} + /apis/certificates.k8s.io/v1/watch/clustertrustbundles: {} + /apis/certificates.k8s.io/v1/watch/clustertrustbundles/{name}: {} + /apis/certificates.k8s.io/v1/watch/namespaces/{namespace}/podcertificaterequests: {} + /apis/certificates.k8s.io/v1/watch/namespaces/{namespace}/podcertificaterequests/{name}: {} + /apis/certificates.k8s.io/v1/watch/podcertificaterequests: {} + /apis/certificates.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: + - certificates_v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/certificates.k8s.io/v1beta1/clustertrustbundles: + delete: + description: delete collection of ClusterTrustBundle + operationId: deleteCollectionClusterTrustBundle + 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)." @@ -49991,7 +50492,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: PodCertificateRequest + kind: ClusterTrustBundle version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -50001,15 +50502,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PodCertificateRequest - operationId: listNamespacedPodCertificateRequest + 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)." @@ -50133,25 +50628,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" description: OK "401": content: {} @@ -50161,7 +50656,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: PodCertificateRequest + kind: ClusterTrustBundle version: v1beta1 x-accepts: - application/cbor @@ -50172,15 +50667,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PodCertificateRequest - operationId: createNamespacedPodCertificateRequest + 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)." @@ -50224,53 +50713,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: Accepted "401": content: {} @@ -50280,7 +50769,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: PodCertificateRequest + kind: ClusterTrustBundle version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -50289,23 +50778,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}: + /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}: delete: - description: delete a PodCertificateRequest - operationId: deleteNamespacedPodCertificateRequest + description: delete a ClusterTrustBundle + operationId: deleteClusterTrustBundle parameters: - - description: name of the PodCertificateRequest + - 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)." @@ -50409,7 +50892,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: PodCertificateRequest + kind: ClusterTrustBundle version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -50419,21 +50902,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified PodCertificateRequest - operationId: readNamespacedPodCertificateRequest + description: read the specified ClusterTrustBundle + operationId: readClusterTrustBundle parameters: - - description: name of the PodCertificateRequest + - 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)." @@ -50446,16 +50923,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: OK "401": content: {} @@ -50465,7 +50942,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: PodCertificateRequest + kind: ClusterTrustBundle version: v1beta1 x-accepts: - application/cbor @@ -50473,21 +50950,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified PodCertificateRequest - operationId: patchNamespacedPodCertificateRequest + description: partially update the specified ClusterTrustBundle + operationId: patchClusterTrustBundle parameters: - - description: name of the PodCertificateRequest + - 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)." @@ -50547,31 +51018,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: Created "401": content: {} @@ -50581,7 +51052,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: PodCertificateRequest + kind: ClusterTrustBundle version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -50591,21 +51062,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified PodCertificateRequest - operationId: replaceNamespacedPodCertificateRequest + description: replace the specified ClusterTrustBundle + operationId: replaceClusterTrustBundle parameters: - - description: name of the PodCertificateRequest + - 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)." @@ -50649,38 +51114,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: Created "401": content: {} @@ -50690,7 +51155,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: PodCertificateRequest + kind: ClusterTrustBundle version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -50699,17 +51164,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status: - get: - description: read status of the specified PodCertificateRequest - operationId: readNamespacedPodCertificateRequestStatus + /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests: + delete: + description: delete collection of PodCertificateRequest + operationId: deleteCollectionNamespacedPodCertificateRequest parameters: - - description: name of the PodCertificateRequest - 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 @@ -50723,58 +51182,12 @@ paths: name: pretty schema: type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - certificates_v1beta1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: PodCertificateRequest - version: v1beta1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified PodCertificateRequest - operationId: patchNamespacedPodCertificateRequestStatus - parameters: - - description: name of the PodCertificateRequest - 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)." + - 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: pretty + name: continue schema: type: string - description: "When present, indicates that modifications should not be persisted.\ @@ -50785,191 +51198,164 @@ 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." + - 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: 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: "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: force + name: ignoreStoreReadErrorWithClusterBreakingPotential 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.PodCertificateRequest" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - certificates_v1beta1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: PodCertificateRequest - 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 PodCertificateRequest - operationId: replaceNamespacedPodCertificateRequestStatus - parameters: - - description: name of the PodCertificateRequest - in: path - name: name - 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: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - 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: 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)." + 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: pretty + 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: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive 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: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector 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 requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - required: true + $ref: "#/components/schemas/v1.DeleteOptions" + required: false responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1.Status" description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - description: Created "401": content: {} description: Unauthorized tags: - certificates_v1beta1 - x-kubernetes-action: put + x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: certificates.k8s.io kind: PodCertificateRequest @@ -50981,11 +51367,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1beta1/podcertificaterequests: get: description: list or watch objects of kind PodCertificateRequest - operationId: listPodCertificateRequestForAllNamespaces + operationId: listNamespacedPodCertificateRequest 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: "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\ @@ -51024,13 +51422,6 @@ 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. @@ -51147,49 +51538,1029 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles: {} - /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}: {} - /apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests: {} - /apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}: {} - /apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests: {} - /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 - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: + post: + description: create a PodCertificateRequest + operationId: createNamespacedPodCertificateRequest + 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\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped 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.PodCertificateRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + 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/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}: + delete: + description: delete a PodCertificateRequest + operationId: deleteNamespacedPodCertificateRequest + parameters: + - description: name of the PodCertificateRequest + 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: "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.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: + - certificates_v1beta1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + 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 PodCertificateRequest + operationId: readNamespacedPodCertificateRequest + parameters: + - description: name of the PodCertificateRequest + 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.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified PodCertificateRequest + operationId: patchNamespacedPodCertificateRequest + parameters: + - description: name of the PodCertificateRequest + 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.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + 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 PodCertificateRequest + operationId: replaceNamespacedPodCertificateRequest + parameters: + - description: name of the PodCertificateRequest + 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.PodCertificateRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + 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/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status: + get: + description: read status of the specified PodCertificateRequest + operationId: readNamespacedPodCertificateRequestStatus + parameters: + - description: name of the PodCertificateRequest + 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.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified PodCertificateRequest + operationId: patchNamespacedPodCertificateRequestStatus + parameters: + - description: name of the PodCertificateRequest + 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.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + 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 PodCertificateRequest + operationId: replaceNamespacedPodCertificateRequestStatus + parameters: + - description: name of the PodCertificateRequest + 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.PodCertificateRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + 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/certificates.k8s.io/v1beta1/podcertificaterequests: + get: + description: list or watch objects of kind PodCertificateRequest + operationId: listPodCertificateRequestForAllNamespaces + 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + 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/certificates.k8s.io/v1beta1/watch/clustertrustbundles: {} + /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}: {} + /apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests: {} + /apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}: {} + /apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests: {} + /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" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - coordination + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/coordination.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: @@ -54497,6 +55868,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -54504,6 +55878,7 @@ paths: tags: - discovery x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -55624,6 +56999,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -55631,6 +57009,7 @@ paths: tags: - events x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -56751,6 +58130,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -56758,6 +58140,7 @@ paths: tags: - flowcontrolApiserver x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -59059,6 +60442,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -59066,6 +60452,7 @@ paths: tags: - internalApiserver x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -60225,7 +61612,7 @@ paths: - application/yaml /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions: {} /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}: {} - /apis/networking.k8s.io/: + /apis/lifecycle.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -60241,17 +61628,21 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} description: Unauthorized tags: - - networking + - lifecycle x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/: + /apis/lifecycle.k8s.io/v1alpha1/: get: description: get available resources operationId: getAPIResources @@ -60275,24 +61666,27 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ingressclasses: - delete: - description: delete collection of IngressClass - operationId: deleteCollectionIngressClass + /apis/lifecycle.k8s.io/v1alpha1/evictionrequests: + get: + description: list or watch objects of kind EvictionRequest + operationId: listEvictionRequestForAllNamespaces 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". @@ -60301,44 +61695,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 @@ -60353,23 +61715,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: |- @@ -60439,56 +61789,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/v1alpha1.EvictionRequestList" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1alpha1.EvictionRequestList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1alpha1.EvictionRequestList" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1alpha1.EvictionRequestList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequestList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequestList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequestList" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 - x-kubernetes-action: deletecollection + - lifecycle_v1alpha1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json + group: lifecycle.k8s.io + kind: EvictionRequest + 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 + /apis/lifecycle.k8s.io/v1alpha1/evictions: get: - description: list or watch objects of kind IngressClass - operationId: listIngressClass + description: list or watch objects of kind Eviction + operationId: listEvictionForAllNamespaces 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\ @@ -60527,6 +61881,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. @@ -60605,36 +61966,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1alpha1.EvictionList" application/yaml: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1alpha1.EvictionList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1alpha1.EvictionList" application/cbor: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1alpha1.EvictionList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1alpha1.EvictionList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1alpha1.EvictionList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1alpha1.EvictionList" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: lifecycle.k8s.io + kind: Eviction + version: v1alpha1 x-accepts: - application/cbor - application/cbor-seq @@ -60643,126 +62004,14 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - post: - description: create an IngressClass - operationId: createIngressClass - 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: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive 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.IngressClass" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/yaml: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/cbor: - schema: - $ref: "#/components/schemas/v1.IngressClass" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/yaml: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/cbor: - schema: - $ref: "#/components/schemas/v1.IngressClass" - description: Created - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/yaml: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/cbor: - schema: - $ref: "#/components/schemas/v1.IngressClass" - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - 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/ingressclasses/{name}: + /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests: delete: - description: delete an IngressClass - operationId: deleteIngressClass + description: delete collection of EvictionRequest + operationId: deleteCollectionNamespacedEvictionRequest parameters: - - description: name of the IngressClass + - description: "object name and auth scope, such as for teams and projects" in: path - name: name + name: namespace required: true schema: type: string @@ -60773,572 +62022,26 @@ 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\ \ 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/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: - - networking_v1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - 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 IngressClass - operationId: readIngressClass - parameters: - - description: name of the IngressClass - 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.IngressClass" - application/yaml: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/cbor: - schema: - $ref: "#/components/schemas/v1.IngressClass" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update the specified IngressClass - operationId: patchIngressClass - parameters: - - description: name of the IngressClass - 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.IngressClass" - application/yaml: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/cbor: - schema: - $ref: "#/components/schemas/v1.IngressClass" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/yaml: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/cbor: - schema: - $ref: "#/components/schemas/v1.IngressClass" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - 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 IngressClass - operationId: replaceIngressClass - parameters: - - description: name of the IngressClass - 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.IngressClass" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/yaml: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/cbor: - schema: - $ref: "#/components/schemas/v1.IngressClass" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/yaml: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.IngressClass" - application/cbor: - schema: - $ref: "#/components/schemas/v1.IngressClass" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - 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/ingresses: - get: - 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\ - \ 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: |- - shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: - - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - - Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: - - object.metadata.uid - - object.metadata.namespace - - hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. - - Examples: - 2-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') - shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - 4-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') - shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') - shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') - shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') - - This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - in: query - name: shardSelector - 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. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.IngressList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.IngressList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.IngressList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.IngressList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v1.IngressList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v1.IngressList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v1.IngressList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - 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/networking.k8s.io/v1/ipaddresses: - delete: - 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\ - \ 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: 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.\ @@ -61491,12 +62194,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1 + group: lifecycle.k8s.io + kind: EvictionRequest + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -61505,9 +62208,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind IPAddress - operationId: listIPAddress + description: list or watch objects of kind EvictionRequest + operationId: listNamespacedEvictionRequest 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)." @@ -61631,36 +62340,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1alpha1.EvictionRequestList" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1alpha1.EvictionRequestList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1alpha1.EvictionRequestList" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1alpha1.EvictionRequestList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1alpha1.EvictionRequestList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1alpha1.EvictionRequestList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1alpha1.EvictionRequestList" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1 + group: lifecycle.k8s.io + kind: EvictionRequest + version: v1alpha1 x-accepts: - application/cbor - application/cbor-seq @@ -61670,9 +62379,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an IPAddress - operationId: createIPAddress + description: create an EvictionRequest + operationId: createNamespacedEvictionRequest 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)." @@ -61716,64 +62431,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1 + group: lifecycle.k8s.io + kind: EvictionRequest + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -61781,17 +62496,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ipaddresses/{name}: + /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}: delete: - description: delete an IPAddress - operationId: deleteIPAddress + description: delete an EvictionRequest + operationId: deleteNamespacedEvictionRequest parameters: - - description: name of the IPAddress + - description: name of the EvictionRequest 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)." @@ -61891,12 +62612,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1 + group: lifecycle.k8s.io + kind: EvictionRequest + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -61905,15 +62626,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified IPAddress - operationId: readIPAddress + description: read the specified EvictionRequest + operationId: readNamespacedEvictionRequest parameters: - - description: name of the IPAddress + - description: name of the EvictionRequest 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)." @@ -61926,42 +62653,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1 + group: lifecycle.k8s.io + kind: EvictionRequest + version: v1alpha1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified IPAddress - operationId: patchIPAddress + description: partially update the specified EvictionRequest + operationId: patchNamespacedEvictionRequest parameters: - - description: name of the IPAddress + - description: name of the EvictionRequest 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)." @@ -62021,42 +62754,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1 + group: lifecycle.k8s.io + kind: EvictionRequest + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -62065,15 +62798,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified IPAddress - operationId: replaceIPAddress + description: replace the specified EvictionRequest + operationId: replaceNamespacedEvictionRequest parameters: - - description: name of the IPAddress + - description: name of the EvictionRequest 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)." @@ -62117,49 +62856,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1 + group: lifecycle.k8s.io + kind: EvictionRequest + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -62167,10 +62906,292 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: + /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status: + get: + description: read status of the specified EvictionRequest + operationId: readNamespacedEvictionRequestStatus + parameters: + - description: name of the EvictionRequest + 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/v1alpha1.EvictionRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - lifecycle_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: lifecycle.k8s.io + kind: EvictionRequest + version: v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified EvictionRequest + operationId: patchNamespacedEvictionRequestStatus + parameters: + - description: name of the EvictionRequest + 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/v1alpha1.EvictionRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - lifecycle_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: lifecycle.k8s.io + kind: EvictionRequest + 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 status of the specified EvictionRequest + operationId: replaceNamespacedEvictionRequestStatus + parameters: + - description: name of the EvictionRequest + 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/v1alpha1.EvictionRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.EvictionRequest" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - lifecycle_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: lifecycle.k8s.io + kind: EvictionRequest + 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/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions: delete: - description: delete collection of Ingress - operationId: deleteCollectionNamespacedIngress + description: delete collection of Eviction + operationId: deleteCollectionNamespacedEviction parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -62357,12 +63378,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: lifecycle.k8s.io + kind: Eviction + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -62371,8 +63392,8 @@ 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 Eviction + operationId: listNamespacedEviction parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -62503,36 +63524,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1alpha1.EvictionList" application/yaml: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1alpha1.EvictionList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1alpha1.EvictionList" application/cbor: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1alpha1.EvictionList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1alpha1.EvictionList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1alpha1.EvictionList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1alpha1.EvictionList" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: lifecycle.k8s.io + kind: Eviction + version: v1alpha1 x-accepts: - application/cbor - application/cbor-seq @@ -62542,8 +63563,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an Ingress - operationId: createNamespacedIngress + description: create an Eviction + operationId: createNamespacedEviction parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -62594,64 +63615,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: lifecycle.k8s.io + kind: Eviction + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -62659,12 +63680,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: + /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}: delete: - description: delete an Ingress - operationId: deleteNamespacedIngress + description: delete an Eviction + operationId: deleteNamespacedEviction parameters: - - description: name of the Ingress + - description: name of the Eviction in: path name: name required: true @@ -62775,12 +63796,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: lifecycle.k8s.io + kind: Eviction + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -62789,10 +63810,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Ingress - operationId: readNamespacedIngress + description: read the specified Eviction + operationId: readNamespacedEviction parameters: - - description: name of the Ingress + - description: name of the Eviction in: path name: name required: true @@ -62816,37 +63837,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: lifecycle.k8s.io + kind: Eviction + 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 Eviction + operationId: patchNamespacedEviction parameters: - - description: name of the Ingress + - description: name of the Eviction in: path name: name required: true @@ -62917,42 +63938,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: lifecycle.k8s.io + kind: Eviction + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -62961,10 +63982,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Ingress - operationId: replaceNamespacedIngress + description: replace the specified Eviction + operationId: replaceNamespacedEviction parameters: - - description: name of the Ingress + - description: name of the Eviction in: path name: name required: true @@ -63019,49 +64040,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: lifecycle.k8s.io + kind: Eviction + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -63069,12 +64090,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: + /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status: get: - description: read status of the specified Ingress - operationId: readNamespacedIngressStatus + description: read status of the specified Eviction + operationId: readNamespacedEvictionStatus parameters: - - description: name of the Ingress + - description: name of the Eviction in: path name: name required: true @@ -63098,37 +64119,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: lifecycle.k8s.io + kind: Eviction + 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 Eviction + operationId: patchNamespacedEvictionStatus parameters: - - description: name of the Ingress + - description: name of the Eviction in: path name: name required: true @@ -63199,42 +64220,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: lifecycle.k8s.io + kind: Eviction + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -63243,10 +64264,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified Ingress - operationId: replaceNamespacedIngressStatus + description: replace status of the specified Eviction + operationId: replaceNamespacedEvictionStatus parameters: - - description: name of the Ingress + - description: name of the Eviction in: path name: name required: true @@ -63301,49 +64322,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1alpha1.Eviction" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - lifecycle_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + group: lifecycle.k8s.io + kind: Eviction + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -63351,17 +64372,77 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies: + /apis/lifecycle.k8s.io/v1alpha1/watch/evictionrequests: {} + /apis/lifecycle.k8s.io/v1alpha1/watch/evictions: {} + /apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictionrequests: {} + /apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictionrequests/{name}: {} + /apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictions: {} + /apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictions/{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" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking + x-accepts: + - application/cbor + - 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)." @@ -63545,7 +64626,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 @@ -63555,15 +64636,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)." @@ -63687,25 +64762,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: {} @@ -63715,7 +64790,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 @@ -63726,15 +64801,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)." @@ -63778,53 +64847,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: {} @@ -63834,7 +64903,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 @@ -63843,23 +64912,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)." @@ -63963,7 +65026,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 @@ -63973,21 +65036,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)." @@ -64000,16 +65057,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: {} @@ -64019,7 +65076,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 @@ -64027,21 +65084,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)." @@ -64101,31 +65152,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: {} @@ -64135,7 +65186,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 @@ -64145,21 +65196,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)." @@ -64203,38 +65248,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: {} @@ -64244,7 +65289,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 @@ -64253,10 +65298,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\ @@ -64381,25 +65426,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: {} @@ -64409,7 +65454,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 @@ -64419,10 +65464,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/networking.k8s.io/v1/servicecidrs: + /apis/networking.k8s.io/v1/ipaddresses: delete: - description: delete collection of ServiceCIDR - operationId: deleteCollectionServiceCIDR + 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\ @@ -64607,7 +65652,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -64617,8 +65662,8 @@ 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 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\ @@ -64743,25 +65788,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.IPAddressList" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.IPAddressList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.IPAddressList" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.IPAddressList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.IPAddressList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.IPAddressList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.IPAddressList" description: OK "401": content: {} @@ -64771,7 +65816,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1 x-accepts: - application/cbor @@ -64782,8 +65827,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ServiceCIDR - operationId: createServiceCIDR + 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\ @@ -64828,53 +65873,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" description: Accepted "401": content: {} @@ -64884,7 +65929,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -64893,12 +65938,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/servicecidrs/{name}: + /apis/networking.k8s.io/v1/ipaddresses/{name}: delete: - description: delete a ServiceCIDR - operationId: deleteServiceCIDR + description: delete an IPAddress + operationId: deleteIPAddress parameters: - - description: name of the ServiceCIDR + - description: name of the IPAddress in: path name: name required: true @@ -65007,7 +66052,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -65017,10 +66062,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ServiceCIDR - operationId: readServiceCIDR + description: read the specified IPAddress + operationId: readIPAddress parameters: - - description: name of the ServiceCIDR + - description: name of the IPAddress in: path name: name required: true @@ -65038,16 +66083,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" description: OK "401": content: {} @@ -65057,7 +66102,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1 x-accepts: - application/cbor @@ -65065,10 +66110,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ServiceCIDR - operationId: patchServiceCIDR + description: partially update the specified IPAddress + operationId: patchIPAddress parameters: - - description: name of the ServiceCIDR + - description: name of the IPAddress in: path name: name required: true @@ -65133,31 +66178,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" description: Created "401": content: {} @@ -65167,7 +66212,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -65177,10 +66222,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ServiceCIDR - operationId: replaceServiceCIDR + description: replace the specified IPAddress + operationId: replaceIPAddress parameters: - - description: name of the ServiceCIDR + - description: name of the IPAddress in: path name: name required: true @@ -65229,38 +66274,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.IPAddress" description: Created "401": content: {} @@ -65270,168 +66315,7 @@ paths: 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: 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 - - description: "If 'true', 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.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: patch - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -65440,156 +66324,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace status of the specified ServiceCIDR - operationId: replaceServiceCIDRStatus + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: + delete: + description: delete collection of Ingress + operationId: deleteCollectionNamespacedIngress parameters: - - description: name of the ServiceCIDR + - 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.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/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 - 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: - delete: - 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\ \ and wget)." @@ -65769,12 +66514,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 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -65783,9 +66528,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind IPAddress - operationId: listIPAddress + 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)." @@ -65909,36 +66660,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $ref: "#/components/schemas/v1.IngressList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $ref: "#/components/schemas/v1.IngressList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $ref: "#/components/schemas/v1.IngressList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $ref: "#/components/schemas/v1.IngressList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $ref: "#/components/schemas/v1.IngressList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $ref: "#/components/schemas/v1.IngressList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $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: IPAddress - version: v1beta1 + kind: Ingress + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -65948,9 +66699,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an IPAddress - operationId: createIPAddress + 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)." @@ -65994,64 +66751,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $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: IPAddress - version: v1beta1 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -66059,17 +66816,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/ipaddresses/{name}: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: delete: - description: delete an IPAddress - operationId: deleteIPAddress + description: delete an Ingress + operationId: deleteNamespacedIngress parameters: - - description: name of the IPAddress + - 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)." @@ -66169,12 +66932,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 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -66183,15 +66946,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified IPAddress - operationId: readIPAddress + description: read the specified Ingress + operationId: readNamespacedIngress parameters: - - description: name of the IPAddress + - 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)." @@ -66204,42 +66973,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $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: IPAddress - version: v1beta1 + kind: Ingress + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified IPAddress - operationId: patchIPAddress + description: partially update the specified Ingress + operationId: patchNamespacedIngress parameters: - - description: name of the IPAddress + - 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)." @@ -66299,42 +67074,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $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: IPAddress - version: v1beta1 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -66343,15 +67118,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified IPAddress - operationId: replaceIPAddress + description: replace the specified Ingress + operationId: replaceNamespacedIngress parameters: - - description: name of the IPAddress + - 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)." @@ -66395,49 +67176,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $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: IPAddress - version: v1beta1 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -66445,11 +67226,299 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/servicecidrs: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: + get: + description: read status of the specified Ingress + operationId: readNamespacedIngressStatus + parameters: + - 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)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: Ingress + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified Ingress + operationId: patchNamespacedIngressStatus + parameters: + - 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)." + 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.Ingress" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: Ingress + 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 Ingress + operationId: replaceNamespacedIngressStatus + parameters: + - 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)." + 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.Ingress" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: Ingress + 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/namespaces/{namespace}/networkpolicies: delete: - description: delete collection of ServiceCIDR - operationId: deleteCollectionServiceCIDR + 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)." @@ -66629,12 +67698,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: NetworkPolicy + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -66643,9 +67712,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 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)." @@ -66769,36 +67844,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.NetworkPolicyList" 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: NetworkPolicy + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -66808,9 +67883,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ServiceCIDR - operationId: createServiceCIDR + 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)." @@ -66854,64 +67935,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" 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: NetworkPolicy + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -66919,17 +68000,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/servicecidrs/{name}: + /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}: delete: - description: delete a ServiceCIDR - operationId: deleteServiceCIDR + description: delete a NetworkPolicy + operationId: deleteNamespacedNetworkPolicy parameters: - - description: name of the ServiceCIDR + - 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)." @@ -67029,12 +68116,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: NetworkPolicy + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67043,15 +68130,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ServiceCIDR - operationId: readServiceCIDR + description: read the specified NetworkPolicy + operationId: readNamespacedNetworkPolicy parameters: - - description: name of the ServiceCIDR + - 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)." @@ -67064,42 +68157,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" 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: NetworkPolicy + 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 NetworkPolicy + operationId: patchNamespacedNetworkPolicy parameters: - - description: name of the ServiceCIDR + - 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)." @@ -67159,42 +68258,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" 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: NetworkPolicy + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67203,15 +68302,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ServiceCIDR - operationId: replaceServiceCIDR + description: replace the specified NetworkPolicy + operationId: replaceNamespacedNetworkPolicy parameters: - - description: name of the ServiceCIDR + - 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)." @@ -67255,49 +68360,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicy" 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: NetworkPolicy + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67305,65 +68410,49 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status: + /apis/networking.k8s.io/v1/networkpolicies: get: - description: read status of the specified ServiceCIDR - operationId: readServiceCIDRStatus + description: list or watch objects of kind NetworkPolicy + operationId: listNetworkPolicyForAllNamespaces parameters: - - description: name of the ServiceCIDR - 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: "If 'true', 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: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: pretty + name: fieldSelector 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 + - 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)." @@ -67371,268 +68460,126 @@ 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.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + - 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: fieldManager + name: resourceVersion 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: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set 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: fieldValidation + name: resourceVersionMatch 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: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any 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: force + name: sendInitialEvents 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" + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. in: query - name: dryRun + name: shardSelector 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: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query - name: fieldManager + name: timeoutSeconds 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." + 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: fieldValidation + name: watch schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - required: true + type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - application/yaml: + $ref: "#/components/schemas/v1.NetworkPolicyList" + application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1.NetworkPolicyList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - application/cbor: + $ref: "#/components/schemas/v1.NetworkPolicyList" + application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - description: Created + $ref: "#/components/schemas/v1.NetworkPolicyList" + description: OK "401": content: {} description: Unauthorized tags: - - networking_v1beta1 - x-kubernetes-action: put + - networking_v1 + x-kubernetes-action: list 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 + 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/node.k8s.io/v1/runtimeclasses: + /apis/networking.k8s.io/v1/servicecidrs: delete: - description: delete collection of RuntimeClass - operationId: deleteCollectionRuntimeClass + 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\ @@ -67813,11 +68760,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: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -67827,8 +68774,8 @@ 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 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\ @@ -67953,35 +68900,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ServiceCIDRList" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ServiceCIDRList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ServiceCIDRList" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ServiceCIDRList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ServiceCIDRList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ServiceCIDRList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ServiceCIDRList" 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: ServiceCIDR version: v1 x-accepts: - application/cbor @@ -67992,8 +68939,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a RuntimeClass - operationId: createRuntimeClass + 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\ @@ -68038,63 +68985,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" 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: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -68103,12 +69050,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/node.k8s.io/v1/runtimeclasses/{name}: + /apis/networking.k8s.io/v1/servicecidrs/{name}: delete: - description: delete a RuntimeClass - operationId: deleteRuntimeClass + description: delete a ServiceCIDR + operationId: deleteServiceCIDR parameters: - - description: name of the RuntimeClass + - description: name of the ServiceCIDR in: path name: name required: true @@ -68213,11 +69160,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: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -68227,10 +69174,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified RuntimeClass - operationId: readRuntimeClass + description: read the specified ServiceCIDR + operationId: readServiceCIDR parameters: - - description: name of the RuntimeClass + - description: name of the ServiceCIDR in: path name: name required: true @@ -68248,26 +69195,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" 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: ServiceCIDR version: v1 x-accepts: - application/cbor @@ -68275,10 +69222,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified RuntimeClass - operationId: patchRuntimeClass + description: partially update the specified ServiceCIDR + operationId: patchServiceCIDR parameters: - - description: name of the RuntimeClass + - description: name of the ServiceCIDR in: path name: name required: true @@ -68343,41 +69290,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" 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: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -68387,10 +69334,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified RuntimeClass - operationId: replaceRuntimeClass + description: replace the specified ServiceCIDR + operationId: replaceServiceCIDR parameters: - - description: name of the RuntimeClass + - description: name of the ServiceCIDR in: path name: name required: true @@ -68439,48 +69386,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ServiceCIDR" 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: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -68489,9 +69436,283 @@ 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/servicecidrs/{name}/status: + get: + description: read status of the specified ServiceCIDR + operationId: readServiceCIDRStatus + 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 + 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 + - description: "If 'true', 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.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: patch + 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 + 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/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/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/node.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -68507,17 +69728,21 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} description: Unauthorized tags: - - policy + - node x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/policy/v1/: + /apis/node.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -68541,23 +69766,17 @@ paths: content: {} description: Unauthorized tags: - - policy_v1 + - node_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets: + /apis/node.k8s.io/v1/runtimeclasses: delete: - description: delete collection of PodDisruptionBudget - operationId: deleteCollectionNamespacedPodDisruptionBudget + description: delete collection of RuntimeClass + operationId: deleteCollectionRuntimeClass 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)." @@ -68737,11 +69956,11 @@ paths: content: {} description: Unauthorized tags: - - policy_v1 + - node_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -68751,15 +69970,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 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)." @@ -68883,35 +70096,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" + $ref: "#/components/schemas/v1.RuntimeClassList" application/yaml: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" + $ref: "#/components/schemas/v1.RuntimeClassList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" + $ref: "#/components/schemas/v1.RuntimeClassList" application/cbor: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" + $ref: "#/components/schemas/v1.RuntimeClassList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" + $ref: "#/components/schemas/v1.RuntimeClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" + $ref: "#/components/schemas/v1.RuntimeClassList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" + $ref: "#/components/schemas/v1.RuntimeClassList" description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - node_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: node.k8s.io + kind: RuntimeClass version: v1 x-accepts: - application/cbor @@ -68922,15 +70135,949 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PodDisruptionBudget - operationId: createNamespacedPodDisruptionBudget + 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)." + 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.RuntimeClass" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - node_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: node.k8s.io + kind: RuntimeClass + 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/node.k8s.io/v1/runtimeclasses/{name}: + delete: + description: delete a RuntimeClass + operationId: deleteRuntimeClass + parameters: + - description: name of the RuntimeClass + 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: "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.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: + - node_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: node.k8s.io + kind: RuntimeClass + 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 RuntimeClass + operationId: readRuntimeClass + parameters: + - description: name of the RuntimeClass + 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.RuntimeClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - node_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: node.k8s.io + kind: RuntimeClass + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified RuntimeClass + operationId: patchRuntimeClass + parameters: + - description: name of the RuntimeClass + 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.RuntimeClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - node_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: node.k8s.io + kind: RuntimeClass + 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 RuntimeClass + operationId: replaceRuntimeClass + parameters: + - description: name of the RuntimeClass + 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.RuntimeClass" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - node_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: node.k8s.io + kind: RuntimeClass + 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/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" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - policy + x-accepts: + - application/cbor + - 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 PodDisruptionBudget + operationId: deleteCollectionNamespacedPodDisruptionBudget + 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: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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 + 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: + - policy_v1 + x-kubernetes-action: deletecollection + 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 + get: + 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 + 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: "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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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. 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 + post: + description: create a PodDisruptionBudget + operationId: createNamespacedPodDisruptionBudget + 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)." @@ -69916,6 +72063,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -69923,6 +72073,7 @@ paths: tags: - rbacAuthorization x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -73838,6 +75989,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -73845,6 +75999,7 @@ paths: tags: - resource x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -74738,17 +76893,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims: + /apis/resource.k8s.io/v1/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)." @@ -74932,7 +77081,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -74942,15 +77091,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)." @@ -75074,25 +77217,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1.DeviceTaintRuleList" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1.DeviceTaintRuleList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1.DeviceTaintRuleList" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1.DeviceTaintRuleList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1.DeviceTaintRuleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1.DeviceTaintRuleList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1.DeviceTaintRuleList" description: OK "401": content: {} @@ -75102,7 +77245,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1 x-accepts: - application/cbor @@ -75113,15 +77256,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)." @@ -75165,53 +77302,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" description: Accepted "401": content: {} @@ -75221,7 +77358,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -75230,23 +77367,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}: + /apis/resource.k8s.io/v1/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)." @@ -75316,31 +77447,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -75350,7 +77481,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -75360,21 +77491,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaim - operationId: readNamespacedResourceClaim + 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)." @@ -75387,16 +77512,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" description: OK "401": content: {} @@ -75406,7 +77531,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1 x-accepts: - application/cbor @@ -75414,21 +77539,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaim - operationId: patchNamespacedResourceClaim + 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)." @@ -75488,31 +77607,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" description: Created "401": content: {} @@ -75522,7 +77641,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -75532,18 +77651,164 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceClaim - operationId: replaceNamespacedResourceClaim + 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" + - description: "If 'true', 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.DeviceTaintRule" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeviceTaintRule" + application/yaml: + schema: + $ref: "#/components/schemas/v1.DeviceTaintRule" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceTaintRule" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeviceTaintRule" + application/yaml: + schema: + $ref: "#/components/schemas/v1.DeviceTaintRule" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceTaintRule" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceTaintRule + 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/resource.k8s.io/v1/devicetaintrules/{name}/status: + get: + description: read status of the specified DeviceTaintRule + operationId: readDeviceTaintRuleStatus + parameters: + - description: name of the DeviceTaintRule 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.DeviceTaintRule" + application/yaml: + schema: + $ref: "#/components/schemas/v1.DeviceTaintRule" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceTaintRule" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceTaintRule + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified DeviceTaintRule + operationId: patchDeviceTaintRuleStatus + parameters: + - description: name of the DeviceTaintRule + in: path + name: name required: true schema: type: string @@ -75564,173 +77829,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/resource.v1.ResourceClaim" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/yaml: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/cbor: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/yaml: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/cbor: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - 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/resource.k8s.io/v1/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/resource.v1.ResourceClaim" - application/yaml: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/cbor: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1 - 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)." + \ 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: @@ -75770,31 +77871,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" description: Created "401": content: {} @@ -75804,7 +77905,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -75814,21 +77915,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified ResourceClaim - operationId: replaceNamespacedResourceClaimStatus + description: replace status of the specified DeviceTaintRule + operationId: replaceDeviceTaintRuleStatus 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)." @@ -75872,38 +77967,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.DeviceTaintRule" description: Created "401": content: {} @@ -75913,7 +78008,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -75922,10 +78017,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates: + /apis/resource.k8s.io/v1/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 @@ -76116,7 +78211,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -76126,8 +78221,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 @@ -76258,25 +78353,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1.ResourceClaimList" description: OK "401": content: {} @@ -76286,7 +78381,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1 x-accepts: - application/cbor @@ -76297,8 +78392,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 @@ -76349,53 +78444,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Accepted "401": content: {} @@ -76405,7 +78500,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -76414,12 +78509,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}: + /apis/resource.k8s.io/v1/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 @@ -76500,31 +78595,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Accepted "401": content: {} @@ -76534,7 +78629,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -76544,10 +78639,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 @@ -76571,16 +78666,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "401": content: {} @@ -76590,7 +78685,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1 x-accepts: - application/cbor @@ -76598,10 +78693,10 @@ paths: - 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 @@ -76672,31 +78767,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "401": content: {} @@ -76706,7 +78801,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -76716,10 +78811,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 @@ -76774,38 +78869,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "401": content: {} @@ -76815,7 +78910,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -76824,49 +78919,77 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/resourceclaims: + /apis/resource.k8s.io/v1/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/resource.v1.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1 + 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)." @@ -76874,165 +78997,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: |- - shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: - - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - - Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: - - object.metadata.uid - - object.metadata.namespace - - hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. - - Examples: - 2-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') - shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - 4-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') - shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') - shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') - shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') - - This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + - 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: shardSelector + name: fieldValidation 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. Specify resourceVersion." + - 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.ResourceClaimList" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" - application/json;stream=watch: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" - application/cbor-seq: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" - description: OK + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: Created "401": content: {} description: Unauthorized tags: - resource_v1 - x-kubernetes-action: list + x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io kind: ResourceClaim 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/resource.k8s.io/v1/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)." @@ -77040,127 +79115,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: |- - shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: - - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - - Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: - - object.metadata.uid - - object.metadata.namespace - - hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. - - Examples: - 2-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') - shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - 4-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') - shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') - shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') - shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') - - This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + - 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: shardSelector + name: fieldValidation 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. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" - application/json;stream=watch: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" - application/cbor-seq: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" - description: OK + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: Created "401": content: {} description: Unauthorized tags: - resource_v1 - x-kubernetes-action: list + x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim 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/resource.k8s.io/v1/resourceslices: + /apis/resource.k8s.io/v1/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)." @@ -77344,7 +79395,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -77354,9 +79405,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)." @@ -77480,25 +79537,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" description: OK "401": content: {} @@ -77508,7 +79565,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1 x-accepts: - application/cbor @@ -77519,9 +79576,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)." @@ -77565,53 +79628,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -77621,7 +79684,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -77630,17 +79693,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/resourceslices/{name}: + /apis/resource.k8s.io/v1/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)." @@ -77710,31 +79779,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -77744,7 +79813,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -77754,15 +79823,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)." @@ -77775,16 +79850,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "401": content: {} @@ -77794,7 +79869,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1 x-accepts: - application/cbor @@ -77802,15 +79877,21 @@ paths: - 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)." @@ -77870,31 +79951,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Created "401": content: {} @@ -77904,7 +79985,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -77914,15 +79995,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)." @@ -77966,38 +80053,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Created "401": content: {} @@ -78007,7 +80094,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -78016,58 +80103,21 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/watch/deviceclasses: {} - /apis/resource.k8s.io/v1/watch/deviceclasses/{name}: {} - /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims: {} - /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims/{name}: {} - /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} - /apis/resource.k8s.io/v1/watch/resourceclaims: {} - /apis/resource.k8s.io/v1/watch/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1/watch/resourceslices: {} - /apis/resource.k8s.io/v1/watch/resourceslices/{name}: {} - /apis/resource.k8s.io/v1alpha3/: + /apis/resource.k8s.io/v1/resourceclaims: 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_v1alpha3 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1alpha3/devicetaintrules: - delete: - description: delete collection of DeviceTaintRule - operationId: deleteCollectionDeviceTaintRule + 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". @@ -78076,44 +80126,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 @@ -78128,23 +80146,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: |- @@ -78214,56 +80220,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/v1.ResourceClaimList" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ResourceClaimList" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ResourceClaimList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.ResourceClaimList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.ResourceClaimList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ResourceClaimList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 - x-kubernetes-action: deletecollection + - resource_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 - x-codegen-request-body-name: body - x-content-type: application/json + kind: ResourceClaim + 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/resource.k8s.io/v1/resourceclaimtemplates: get: - description: list or watch objects of kind DeviceTaintRule - operationId: listDeviceTaintRule + 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\ @@ -78302,6 +80312,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. @@ -78380,36 +80397,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceClaimTemplate + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -78418,9 +80435,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - post: - description: create a DeviceTaintRule - operationId: createDeviceTaintRule + /apis/resource.k8s.io/v1/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\ @@ -78429,123 +80447,12 @@ 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/v1alpha3.DeviceTaintRule" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - application/yaml: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - application/cbor: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - application/yaml: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - application/cbor: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - description: Created - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - application/yaml: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - application/cbor: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha3 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceTaintRule - 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/devicetaintrules/{name}: - delete: - description: delete a DeviceTaintRule - operationId: deleteDeviceTaintRule - parameters: - - description: name of the DeviceTaintRule - 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)." + - 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: pretty + name: continue schema: type: string - description: "When present, indicates that modifications should not be persisted.\ @@ -78556,6 +80463,12 @@ paths: 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\ @@ -78580,6 +80493,20 @@ paths: 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\ @@ -78599,6 +80526,73 @@ paths: 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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 requestBody: content: application/json: @@ -78610,42 +80604,27 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.Status" description: OK - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - application/yaml: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - application/cbor: - schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 - x-kubernetes-action: delete + - resource_v1 + x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceSlice + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -78654,15 +80633,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified DeviceTaintRule - operationId: readDeviceTaintRule + description: list or watch objects of kind ResourceSlice + operationId: listResourceSlice parameters: - - description: name of the DeviceTaintRule - 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)." @@ -78670,47 +80643,164 @@ paths: 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSliceList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSliceList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSliceList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.ResourceSliceList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.ResourceSliceList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ResourceSliceList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 - x-kubernetes-action: get + - resource_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceSlice + 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 the specified DeviceTaintRule - operationId: patchDeviceTaintRule + post: + description: create a ResourceSlice + operationId: createResourceSlice parameters: - - description: name of the DeviceTaintRule - 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)." @@ -78728,9 +80818,7 @@ 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.\ - \ 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." in: query name: fieldManager schema: @@ -78752,60 +80840,68 @@ paths: 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" + $ref: "#/components/schemas/v1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" + description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 - x-kubernetes-action: patch + - resource_v1 + x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceSlice + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -78813,11 +80909,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace the specified DeviceTaintRule - operationId: replaceDeviceTaintRule + /apis/resource.k8s.io/v1/resourceslices/{name}: + delete: + description: delete a ResourceSlice + operationId: deleteResourceSlice parameters: - - description: name of the DeviceTaintRule + - description: name of the ResourceSlice in: path name: name required: true @@ -78838,77 +80935,96 @@ 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: "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: fieldManager + name: gracePeriodSeconds 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." + 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: fieldValidation + 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/v1alpha3.DeviceTaintRule" - required: true + $ref: "#/components/schemas/v1.DeleteOptions" + required: false responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" description: OK - "201": + "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" - description: Created + $ref: "#/components/schemas/v1.ResourceSlice" + description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 - x-kubernetes-action: put + - resource_v1 + x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceSlice + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -78916,12 +81032,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status: get: - description: read status of the specified DeviceTaintRule - operationId: readDeviceTaintRuleStatus + description: read the specified ResourceSlice + operationId: readResourceSlice parameters: - - description: name of the DeviceTaintRule + - description: name of the ResourceSlice in: path name: name required: true @@ -78939,37 +81054,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceSlice + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified DeviceTaintRule - operationId: patchDeviceTaintRuleStatus + description: partially update the specified ResourceSlice + operationId: patchResourceSlice parameters: - - description: name of the DeviceTaintRule + - description: name of the ResourceSlice in: path name: name required: true @@ -79034,42 +81149,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceSlice + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -79078,10 +81193,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified DeviceTaintRule - operationId: replaceDeviceTaintRuleStatus + description: replace the specified ResourceSlice + operationId: replaceResourceSlice parameters: - - description: name of the DeviceTaintRule + - description: name of the ResourceSlice in: path name: name required: true @@ -79130,49 +81245,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1.ResourceSlice" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceSlice + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -79180,10 +81295,52 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests: + /apis/resource.k8s.io/v1/watch/deviceclasses: {} + /apis/resource.k8s.io/v1/watch/deviceclasses/{name}: {} + /apis/resource.k8s.io/v1/watch/devicetaintrules: {} + /apis/resource.k8s.io/v1/watch/devicetaintrules/{name}: {} + /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims: {} + /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims/{name}: {} + /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} + /apis/resource.k8s.io/v1/watch/resourceclaims: {} + /apis/resource.k8s.io/v1/watch/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1/watch/resourceslices: {} + /apis/resource.k8s.io/v1/watch/resourceslices/{name}: {} + /apis/resource.k8s.io/v1alpha3/: + 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_v1alpha3 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1alpha3/devicetaintrules: delete: - description: delete collection of ResourcePoolStatusRequest - operationId: deleteCollectionResourcePoolStatusRequest + description: delete collection of DeviceTaintRule + operationId: deleteCollectionDeviceTaintRule 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\ @@ -79368,7 +81525,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourcePoolStatusRequest + kind: DeviceTaintRule version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json @@ -79378,8 +81535,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourcePoolStatusRequest - operationId: listResourcePoolStatusRequest + description: list or watch objects of kind DeviceTaintRule + operationId: listDeviceTaintRule 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\ @@ -79504,25 +81661,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" description: OK "401": content: {} @@ -79532,7 +81689,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourcePoolStatusRequest + kind: DeviceTaintRule version: v1alpha3 x-accepts: - application/cbor @@ -79543,8 +81700,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourcePoolStatusRequest - operationId: createResourcePoolStatusRequest + description: create a DeviceTaintRule + operationId: createDeviceTaintRule 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\ @@ -79589,53 +81746,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Accepted "401": content: {} @@ -79645,7 +81802,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourcePoolStatusRequest + kind: DeviceTaintRule version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json @@ -79654,12 +81811,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}: + /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}: delete: - description: delete a ResourcePoolStatusRequest - operationId: deleteResourcePoolStatusRequest + description: delete a DeviceTaintRule + operationId: deleteDeviceTaintRule parameters: - - description: name of the ResourcePoolStatusRequest + - description: name of the DeviceTaintRule in: path name: name required: true @@ -79734,31 +81891,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Accepted "401": content: {} @@ -79768,7 +81925,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourcePoolStatusRequest + kind: DeviceTaintRule version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json @@ -79778,10 +81935,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourcePoolStatusRequest - operationId: readResourcePoolStatusRequest + description: read the specified DeviceTaintRule + operationId: readDeviceTaintRule parameters: - - description: name of the ResourcePoolStatusRequest + - description: name of the DeviceTaintRule in: path name: name required: true @@ -79799,16 +81956,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "401": content: {} @@ -79818,7 +81975,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourcePoolStatusRequest + kind: DeviceTaintRule version: v1alpha3 x-accepts: - application/cbor @@ -79826,10 +81983,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourcePoolStatusRequest - operationId: patchResourcePoolStatusRequest + description: partially update the specified DeviceTaintRule + operationId: patchDeviceTaintRule parameters: - - description: name of the ResourcePoolStatusRequest + - description: name of the DeviceTaintRule in: path name: name required: true @@ -79894,31 +82051,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Created "401": content: {} @@ -79928,7 +82085,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourcePoolStatusRequest + kind: DeviceTaintRule version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json @@ -79938,10 +82095,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourcePoolStatusRequest - operationId: replaceResourcePoolStatusRequest + description: replace the specified DeviceTaintRule + operationId: replaceDeviceTaintRule parameters: - - description: name of the ResourcePoolStatusRequest + - description: name of the DeviceTaintRule in: path name: name required: true @@ -79990,38 +82147,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Created "401": content: {} @@ -80031,7 +82188,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourcePoolStatusRequest + kind: DeviceTaintRule version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json @@ -80040,12 +82197,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status: + /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status: get: - description: read status of the specified ResourcePoolStatusRequest - operationId: readResourcePoolStatusRequestStatus + description: read status of the specified DeviceTaintRule + operationId: readDeviceTaintRuleStatus parameters: - - description: name of the ResourcePoolStatusRequest + - description: name of the DeviceTaintRule in: path name: name required: true @@ -80063,16 +82220,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "401": content: {} @@ -80082,7 +82239,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourcePoolStatusRequest + kind: DeviceTaintRule version: v1alpha3 x-accepts: - application/cbor @@ -80090,10 +82247,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified ResourcePoolStatusRequest - operationId: patchResourcePoolStatusRequestStatus + description: partially update status of the specified DeviceTaintRule + operationId: patchDeviceTaintRuleStatus parameters: - - description: name of the ResourcePoolStatusRequest + - description: name of the DeviceTaintRule in: path name: name required: true @@ -80158,31 +82315,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Created "401": content: {} @@ -80192,7 +82349,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourcePoolStatusRequest + kind: DeviceTaintRule version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json @@ -80202,10 +82359,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified ResourcePoolStatusRequest - operationId: replaceResourcePoolStatusRequestStatus + description: replace status of the specified DeviceTaintRule + operationId: replaceDeviceTaintRuleStatus parameters: - - description: name of the ResourcePoolStatusRequest + - description: name of the DeviceTaintRule in: path name: name required: true @@ -80254,38 +82411,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Created "401": content: {} @@ -80295,7 +82452,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourcePoolStatusRequest + kind: DeviceTaintRule version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json @@ -80304,44 +82461,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules: {} - /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{name}: {} - /apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests: {} - /apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests/{name}: {} - /apis/resource.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: - - resource_v1beta1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1beta1/deviceclasses: + /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests: delete: - description: delete collection of DeviceClass - operationId: deleteCollectionDeviceClass + description: delete collection of ResourcePoolStatusRequest + operationId: deleteCollectionResourcePoolStatusRequest 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\ @@ -80522,12 +82645,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 + kind: ResourcePoolStatusRequest + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -80536,8 +82659,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 ResourcePoolStatusRequest + operationId: listResourcePoolStatusRequest 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\ @@ -80662,36 +82785,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" 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 + kind: ResourcePoolStatusRequest + version: v1alpha3 x-accepts: - application/cbor - application/cbor-seq @@ -80701,8 +82824,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a DeviceClass - operationId: createDeviceClass + description: create a ResourcePoolStatusRequest + operationId: createResourcePoolStatusRequest 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\ @@ -80747,64 +82870,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" 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 + kind: ResourcePoolStatusRequest + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -80812,12 +82935,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/deviceclasses/{name}: + /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}: delete: - description: delete a DeviceClass - operationId: deleteDeviceClass + description: delete a ResourcePoolStatusRequest + operationId: deleteResourcePoolStatusRequest parameters: - - description: name of the DeviceClass + - description: name of the ResourcePoolStatusRequest in: path name: name required: true @@ -80892,42 +83015,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" 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 + kind: ResourcePoolStatusRequest + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -80936,10 +83059,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified DeviceClass - operationId: readDeviceClass + description: read the specified ResourcePoolStatusRequest + operationId: readResourcePoolStatusRequest parameters: - - description: name of the DeviceClass + - description: name of the ResourcePoolStatusRequest in: path name: name required: true @@ -80957,37 +83080,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" 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 + kind: ResourcePoolStatusRequest + version: v1alpha3 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 ResourcePoolStatusRequest + operationId: patchResourcePoolStatusRequest parameters: - - description: name of the DeviceClass + - description: name of the ResourcePoolStatusRequest in: path name: name required: true @@ -81052,42 +83175,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" 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 + kind: ResourcePoolStatusRequest + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -81096,10 +83219,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified DeviceClass - operationId: replaceDeviceClass + description: replace the specified ResourcePoolStatusRequest + operationId: replaceResourcePoolStatusRequest parameters: - - description: name of the DeviceClass + - description: name of the ResourcePoolStatusRequest in: path name: name required: true @@ -81148,49 +83271,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" 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 + kind: ResourcePoolStatusRequest + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -81198,17 +83321,309 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims: - delete: - description: delete collection of ResourceClaim - operationId: deleteCollectionNamespacedResourceClaim + /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status: + get: + description: read status of the specified ResourcePoolStatusRequest + operationId: readResourcePoolStatusRequestStatus parameters: - - description: "object name and auth scope, such as for teams and projects" + - description: name of the ResourcePoolStatusRequest 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/v1alpha3.ResourcePoolStatusRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourcePoolStatusRequest + version: v1alpha3 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified ResourcePoolStatusRequest + operationId: patchResourcePoolStatusRequestStatus + parameters: + - description: name of the ResourcePoolStatusRequest + 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/v1alpha3.ResourcePoolStatusRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourcePoolStatusRequest + 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 status of the specified ResourcePoolStatusRequest + operationId: replaceResourcePoolStatusRequestStatus + parameters: + - description: name of the ResourcePoolStatusRequest + 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/v1alpha3.ResourcePoolStatusRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourcePoolStatusRequest + 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/watch/devicetaintrules: {} + /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{name}: {} + /apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests: {} + /apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests/{name}: {} + /apis/resource.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: + - resource_v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1beta1/deviceclasses: + delete: + 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\ \ and wget)." @@ -81392,7 +83807,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -81402,15 +83817,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 DeviceClass + operationId: listDeviceClass 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)." @@ -81534,25 +83943,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" description: OK "401": content: {} @@ -81562,7 +83971,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta1 x-accepts: - application/cbor @@ -81573,15 +83982,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClaim - operationId: createNamespacedResourceClaim + description: create a DeviceClass + operationId: createDeviceClass 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)." @@ -81625,53 +84028,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Accepted "401": content: {} @@ -81681,7 +84084,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -81690,23 +84093,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}: + /apis/resource.k8s.io/v1beta1/deviceclasses/{name}: delete: - description: delete a ResourceClaim - operationId: deleteNamespacedResourceClaim + description: delete a DeviceClass + operationId: deleteDeviceClass parameters: - - description: name of the ResourceClaim + - description: name of the DeviceClass 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)." @@ -81776,31 +84173,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Accepted "401": content: {} @@ -81810,288 +84207,7 @@ paths: 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 + kind: DeviceClass version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -82100,23 +84216,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 DeviceClass + operationId: readDeviceClass parameters: - - description: name of the ResourceClaim + - description: name of the DeviceClass 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)." @@ -82129,16 +84238,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "401": content: {} @@ -82148,7 +84257,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta1 x-accepts: - application/cbor @@ -82156,21 +84265,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified ResourceClaim - operationId: patchNamespacedResourceClaimStatus + description: partially update the specified DeviceClass + operationId: patchDeviceClass parameters: - - description: name of the ResourceClaim + - description: name of the DeviceClass 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)." @@ -82230,31 +84333,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Created "401": content: {} @@ -82264,7 +84367,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -82274,21 +84377,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified ResourceClaim - operationId: replaceNamespacedResourceClaimStatus + description: replace the specified DeviceClass + operationId: replaceDeviceClass parameters: - - description: name of the ResourceClaim + - description: name of the DeviceClass 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)." @@ -82332,38 +84429,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Created "401": content: {} @@ -82373,7 +84470,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -82382,10 +84479,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates: + /apis/resource.k8s.io/v1beta1/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 @@ -82576,7 +84673,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -82586,8 +84683,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 @@ -82718,25 +84815,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" description: OK "401": content: {} @@ -82746,7 +84843,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta1 x-accepts: - application/cbor @@ -82757,8 +84854,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 @@ -82809,53 +84906,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Accepted "401": content: {} @@ -82865,7 +84962,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -82874,12 +84971,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}: + /apis/resource.k8s.io/v1beta1/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 @@ -82960,31 +85057,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Accepted "401": content: {} @@ -82994,7 +85091,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -83004,10 +85101,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 @@ -83031,16 +85128,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "401": content: {} @@ -83050,7 +85147,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta1 x-accepts: - application/cbor @@ -83058,10 +85155,10 @@ paths: - 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 @@ -83132,31 +85229,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "401": content: {} @@ -83166,7 +85263,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -83176,10 +85273,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 @@ -83234,38 +85331,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "401": content: {} @@ -83275,7 +85372,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -83284,49 +85381,77 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/resourceclaims: + /apis/resource.k8s.io/v1beta1/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/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)." @@ -83334,165 +85459,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: |- - shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: - - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - - Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: - - object.metadata.uid - - object.metadata.namespace - - hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. - - Examples: - 2-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') - shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - 4-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') - shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') - shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') - shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') - - This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + - 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: shardSelector + name: fieldValidation 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. Specify resourceVersion." + - 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/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" - application/json;stream=watch: + $ref: "#/components/schemas/v1beta1.ResourceClaim" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1beta1.ResourceClaim" + application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" - application/cbor-seq: + $ref: "#/components/schemas/v1beta1.ResourceClaim" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" - description: OK + $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: list + 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/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)." @@ -83500,127 +85577,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: |- - shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: - - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - - Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: - - object.metadata.uid - - object.metadata.namespace - - hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. - - Examples: - 2-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') - shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - 4-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') - shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') - shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') - shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') - - This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + - 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: shardSelector + name: fieldValidation 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. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaim" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" - application/json;stream=watch: + $ref: "#/components/schemas/v1beta1.ResourceClaim" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1beta1.ResourceClaim" + application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" - application/cbor-seq: + $ref: "#/components/schemas/v1beta1.ResourceClaim" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" - description: OK + $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: list + x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + 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/resource.k8s.io/v1beta1/resourceslices: + /apis/resource.k8s.io/v1beta1/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)." @@ -83804,7 +85857,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -83814,9 +85867,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)." @@ -83940,25 +85999,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" description: OK "401": content: {} @@ -83968,7 +86027,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta1 x-accepts: - application/cbor @@ -83979,9 +86038,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)." @@ -84025,53 +86090,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -84081,7 +86146,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -84090,17 +86155,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/resourceslices/{name}: + /apis/resource.k8s.io/v1beta1/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)." @@ -84170,31 +86241,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -84204,7 +86275,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -84214,15 +86285,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)." @@ -84235,16 +86312,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "401": content: {} @@ -84254,7 +86331,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta1 x-accepts: - application/cbor @@ -84262,15 +86339,21 @@ paths: - 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)." @@ -84330,31 +86413,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Created "401": content: {} @@ -84364,7 +86447,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -84374,15 +86457,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)." @@ -84426,38 +86515,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Created "401": content: {} @@ -84467,7 +86556,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -84476,58 +86565,21 @@ 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/resource.k8s.io/v1beta2/: + /apis/resource.k8s.io/v1beta1/resourceclaims: 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 DeviceClass - operationId: deleteCollectionDeviceClass + 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". @@ -84536,44 +86588,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 @@ -84588,23 +86608,384 @@ 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: |- + resourceVersion sets a constraint on what resource 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/cbor: + schema: + $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: + - resource_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + 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 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + 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: |- @@ -84700,12 +87081,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1beta2 + - resource_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass - version: v1beta2 + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -84714,8 +87095,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 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\ @@ -84840,36 +87221,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta2 + - resource_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass - version: v1beta2 + kind: ResourceSlice + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -84879,8 +87260,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a DeviceClass - operationId: createDeviceClass + 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\ @@ -84925,64 +87306,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta2 + - resource_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass - version: v1beta2 + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -84990,12 +87371,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/deviceclasses/{name}: + /apis/resource.k8s.io/v1beta1/resourceslices/{name}: delete: - description: delete a DeviceClass - operationId: deleteDeviceClass + description: delete a ResourceSlice + operationId: deleteResourceSlice parameters: - - description: name of the DeviceClass + - description: name of the ResourceSlice in: path name: name required: true @@ -85070,42 +87451,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta2 + - resource_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass - version: v1beta2 + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -85114,10 +87495,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified DeviceClass - operationId: readDeviceClass + description: read the specified ResourceSlice + operationId: readResourceSlice parameters: - - description: name of the DeviceClass + - description: name of the ResourceSlice in: path name: name required: true @@ -85135,37 +87516,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta2 + - resource_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass - version: v1beta2 + kind: ResourceSlice + version: v1beta1 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 ResourceSlice + operationId: patchResourceSlice parameters: - - description: name of the DeviceClass + - description: name of the ResourceSlice in: path name: name required: true @@ -85230,42 +87611,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta2 + - resource_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass - version: v1beta2 + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -85274,10 +87655,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified DeviceClass - operationId: replaceDeviceClass + description: replace the specified ResourceSlice + operationId: replaceResourceSlice parameters: - - description: name of the DeviceClass + - description: name of the ResourceSlice in: path name: name required: true @@ -85326,49 +87707,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta2 + - resource_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass - version: v1beta2 + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -85376,10 +87757,50 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/devicetaintrules: + /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 DeviceTaintRule - operationId: deleteCollectionDeviceTaintRule + 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\ @@ -85564,7 +87985,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule + kind: DeviceClass version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -85574,8 +87995,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind DeviceTaintRule - operationId: listDeviceTaintRule + 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\ @@ -85700,25 +88121,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" description: OK "401": content: {} @@ -85728,7 +88149,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule + kind: DeviceClass version: v1beta2 x-accepts: - application/cbor @@ -85739,8 +88160,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a DeviceTaintRule - operationId: createDeviceTaintRule + 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\ @@ -85785,53 +88206,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Accepted "401": content: {} @@ -85841,7 +88262,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule + kind: DeviceClass version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -85850,12 +88271,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}: + /apis/resource.k8s.io/v1beta2/deviceclasses/{name}: delete: - description: delete a DeviceTaintRule - operationId: deleteDeviceTaintRule + description: delete a DeviceClass + operationId: deleteDeviceClass parameters: - - description: name of the DeviceTaintRule + - description: name of the DeviceClass in: path name: name required: true @@ -85930,31 +88351,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Accepted "401": content: {} @@ -85964,7 +88385,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule + kind: DeviceClass version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -85974,10 +88395,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified DeviceTaintRule - operationId: readDeviceTaintRule + description: read the specified DeviceClass + operationId: readDeviceClass parameters: - - description: name of the DeviceTaintRule + - description: name of the DeviceClass in: path name: name required: true @@ -85995,16 +88416,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "401": content: {} @@ -86014,7 +88435,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule + kind: DeviceClass version: v1beta2 x-accepts: - application/cbor @@ -86022,10 +88443,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified DeviceTaintRule - operationId: patchDeviceTaintRule + description: partially update the specified DeviceClass + operationId: patchDeviceClass parameters: - - description: name of the DeviceTaintRule + - description: name of the DeviceClass in: path name: name required: true @@ -86090,295 +88511,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1beta2 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceTaintRule - 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 the specified DeviceTaintRule - operationId: replaceDeviceTaintRule - parameters: - - description: name of the DeviceTaintRule - 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/v1beta2.DeviceTaintRule" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1beta2 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceTaintRule - 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/devicetaintrules/{name}/status: - get: - description: read status of the specified DeviceTaintRule - operationId: readDeviceTaintRuleStatus - parameters: - - description: name of the DeviceTaintRule - 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/v1beta2.DeviceTaintRule" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1beta2 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceTaintRule - version: v1beta2 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified DeviceTaintRule - operationId: patchDeviceTaintRuleStatus - parameters: - - description: name of the DeviceTaintRule - 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/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Created "401": content: {} @@ -86388,7 +88545,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule + kind: DeviceClass version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -86398,10 +88555,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified DeviceTaintRule - operationId: replaceDeviceTaintRuleStatus + description: replace the specified DeviceClass + operationId: replaceDeviceClass parameters: - - description: name of the DeviceTaintRule + - description: name of the DeviceClass in: path name: name required: true @@ -86450,38 +88607,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Created "401": content: {} @@ -86491,7 +88648,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule + kind: DeviceClass version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -86500,17 +88657,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims: + /apis/resource.k8s.io/v1beta2/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)." @@ -86694,7 +88845,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -86704,15 +88855,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)." @@ -86836,25 +88981,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" description: OK "401": content: {} @@ -86864,7 +89009,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1beta2 x-accepts: - application/cbor @@ -86875,15 +89020,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)." @@ -86927,53 +89066,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: Accepted "401": content: {} @@ -86983,7 +89122,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -86992,23 +89131,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}: + /apis/resource.k8s.io/v1beta2/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)." @@ -87078,31 +89211,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: Accepted "401": content: {} @@ -87112,7 +89245,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -87122,21 +89255,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaim - operationId: readNamespacedResourceClaim + 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)." @@ -87149,16 +89276,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "401": content: {} @@ -87168,7 +89295,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1beta2 x-accepts: - application/cbor @@ -87176,21 +89303,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaim - operationId: patchNamespacedResourceClaim + 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)." @@ -87250,31 +89371,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: Created "401": content: {} @@ -87284,7 +89405,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -87294,21 +89415,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceClaim - operationId: replaceNamespacedResourceClaim + 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)." @@ -87352,38 +89467,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: Created "401": content: {} @@ -87393,7 +89508,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -87402,23 +89517,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status: + /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status: get: - description: read status of the specified ResourceClaim - operationId: readNamespacedResourceClaimStatus + description: read status of the specified DeviceTaintRule + operationId: readDeviceTaintRuleStatus 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)." @@ -87431,16 +89540,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "401": content: {} @@ -87450,7 +89559,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1beta2 x-accepts: - application/cbor @@ -87458,21 +89567,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified ResourceClaim - operationId: patchNamespacedResourceClaimStatus + description: partially update status of the specified DeviceTaintRule + operationId: patchDeviceTaintRuleStatus 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)." @@ -87532,31 +89635,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: Created "401": content: {} @@ -87566,7 +89669,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -87576,21 +89679,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified ResourceClaim - operationId: replaceNamespacedResourceClaimStatus + description: replace status of the specified DeviceTaintRule + operationId: replaceDeviceTaintRuleStatus 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)." @@ -87634,38 +89731,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: Created "401": content: {} @@ -87675,7 +89772,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceTaintRule version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -87684,10 +89781,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates: + /apis/resource.k8s.io/v1beta2/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 @@ -87878,7 +89975,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -87888,8 +89985,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 @@ -88020,25 +90117,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" description: OK "401": content: {} @@ -88048,7 +90145,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta2 x-accepts: - application/cbor @@ -88059,8 +90156,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 @@ -88111,53 +90208,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Accepted "401": content: {} @@ -88167,7 +90264,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -88176,12 +90273,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}: + /apis/resource.k8s.io/v1beta2/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 @@ -88262,31 +90359,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Accepted "401": content: {} @@ -88296,7 +90393,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -88306,10 +90403,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 @@ -88333,16 +90430,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "401": content: {} @@ -88352,7 +90449,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta2 x-accepts: - application/cbor @@ -88360,10 +90457,10 @@ paths: - 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 @@ -88434,31 +90531,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Created "401": content: {} @@ -88468,7 +90565,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -88478,10 +90575,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 @@ -88536,38 +90633,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Created "401": content: {} @@ -88577,7 +90674,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -88586,21 +90683,306 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/resourceclaims: + /apis/resource.k8s.io/v1beta2/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." + - 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: allowWatchBookmarks + name: pretty + schema: + type: string + 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 + "401": + content: {} + description: Unauthorized + tags: + - 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 + 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 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)." + 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". @@ -88609,12 +90991,44 @@ 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 @@ -88629,11 +91043,878 @@ 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)." + - 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: pretty + 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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 + 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_v1beta2 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + 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 + get: + 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)." + 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + application/cbor: + schema: + $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: + - 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 + post: + 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)." + 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.ResourceClaimTemplate" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + 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/{name}: + delete: + description: delete a ResourceClaimTemplate + operationId: deleteNamespacedResourceClaimTemplate + parameters: + - 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)." + 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: "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/v1beta2.ResourceClaimTemplate" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + description: OK + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + 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 + get: + description: read the specified ResourceClaimTemplate + operationId: readNamespacedResourceClaimTemplate + parameters: + - 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)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + 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 ResourceClaimTemplate + operationId: patchNamespacedResourceClaimTemplate + parameters: + - 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)." + 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.ResourceClaimTemplate" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + 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 the specified ResourceClaimTemplate + operationId: replaceNamespacedResourceClaimTemplate + parameters: + - 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)." + 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.ResourceClaimTemplate" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + 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/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: |- @@ -89806,6 +93087,9 @@ paths: application/vnd.kubernetes.protobuf: schema: $ref: "#/components/schemas/v1.APIGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -89813,6 +93097,7 @@ paths: tags: - scheduling x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -90708,7 +93993,7 @@ paths: - application/yaml /apis/scheduling.k8s.io/v1/watch/priorityclasses: {} /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}: {} - /apis/scheduling.k8s.io/v1alpha2/: + /apis/scheduling.k8s.io/v1alpha3/: get: description: get available resources operationId: getAPIResources @@ -90732,16 +94017,182 @@ paths: content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups: + /apis/scheduling.k8s.io/v1alpha3/compositepodgroups: + get: + description: list or watch objects of kind CompositePodGroup + operationId: listCompositePodGroupForAllNamespaces + 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha3 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: CompositePodGroup + 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/v1alpha3/namespaces/{namespace}/compositepodgroups: delete: - description: delete collection of PodGroup - operationId: deleteCollectionNamespacedPodGroup + description: delete collection of CompositePodGroup + operationId: deleteCollectionNamespacedCompositePodGroup parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -90928,12 +94379,12 @@ paths: content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PodGroup - version: v1alpha2 + kind: CompositePodGroup + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -90942,8 +94393,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PodGroup - operationId: listNamespacedPodGroup + description: list or watch objects of kind CompositePodGroup + operationId: listNamespacedCompositePodGroup parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -91074,36 +94525,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" + $ref: "#/components/schemas/v1alpha3.CompositePodGroupList" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PodGroup - version: v1alpha2 + kind: CompositePodGroup + version: v1alpha3 x-accepts: - application/cbor - application/cbor-seq @@ -91113,8 +94564,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PodGroup - operationId: createNamespacedPodGroup + description: create a CompositePodGroup + operationId: createNamespacedCompositePodGroup parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -91165,64 +94616,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" description: Accepted "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PodGroup - version: v1alpha2 + kind: CompositePodGroup + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -91230,12 +94681,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}: + /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}: delete: - description: delete a PodGroup - operationId: deleteNamespacedPodGroup + description: delete a CompositePodGroup + operationId: deleteNamespacedCompositePodGroup parameters: - - description: name of the PodGroup + - description: name of the CompositePodGroup in: path name: name required: true @@ -91346,12 +94797,12 @@ paths: content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PodGroup - version: v1alpha2 + kind: CompositePodGroup + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -91360,10 +94811,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified PodGroup - operationId: readNamespacedPodGroup + description: read the specified CompositePodGroup + operationId: readNamespacedCompositePodGroup parameters: - - description: name of the PodGroup + - description: name of the CompositePodGroup in: path name: name required: true @@ -91387,37 +94838,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PodGroup - version: v1alpha2 + kind: CompositePodGroup + version: v1alpha3 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified PodGroup - operationId: patchNamespacedPodGroup + description: partially update the specified CompositePodGroup + operationId: patchNamespacedCompositePodGroup parameters: - - description: name of the PodGroup + - description: name of the CompositePodGroup in: path name: name required: true @@ -91488,42 +94939,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PodGroup - version: v1alpha2 + kind: CompositePodGroup + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -91532,10 +94983,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified PodGroup - operationId: replaceNamespacedPodGroup + description: replace the specified CompositePodGroup + operationId: replaceNamespacedCompositePodGroup parameters: - - description: name of the PodGroup + - description: name of the CompositePodGroup in: path name: name required: true @@ -91590,49 +95041,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PodGroup - version: v1alpha2 + kind: CompositePodGroup + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -91640,12 +95091,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status: + /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status: get: - description: read status of the specified PodGroup - operationId: readNamespacedPodGroupStatus + description: read status of the specified CompositePodGroup + operationId: readNamespacedCompositePodGroupStatus parameters: - - description: name of the PodGroup + - description: name of the CompositePodGroup in: path name: name required: true @@ -91669,37 +95120,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PodGroup - version: v1alpha2 + kind: CompositePodGroup + version: v1alpha3 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified PodGroup - operationId: patchNamespacedPodGroupStatus + description: partially update status of the specified CompositePodGroup + operationId: patchNamespacedCompositePodGroupStatus parameters: - - description: name of the PodGroup + - description: name of the CompositePodGroup in: path name: name required: true @@ -91770,42 +95221,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PodGroup - version: v1alpha2 + kind: CompositePodGroup + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -91814,10 +95265,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified PodGroup - operationId: replaceNamespacedPodGroupStatus + description: replace status of the specified CompositePodGroup + operationId: replaceNamespacedCompositePodGroupStatus parameters: - - description: name of the PodGroup + - description: name of the CompositePodGroup in: path name: name required: true @@ -91872,49 +95323,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroup" + $ref: "#/components/schemas/v1alpha3.CompositePodGroup" description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PodGroup - version: v1alpha2 + kind: CompositePodGroup + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -91922,10 +95373,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads: + /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups: delete: - description: delete collection of Workload - operationId: deleteCollectionNamespacedWorkload + description: delete collection of PodGroup + operationId: deleteCollectionNamespacedPodGroup parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -92112,12 +95563,12 @@ paths: content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: Workload - version: v1alpha2 + kind: PodGroup + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -92126,8 +95577,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Workload - operationId: listNamespacedWorkload + description: list or watch objects of kind PodGroup + operationId: listNamespacedPodGroup parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -92258,36 +95709,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.WorkloadList" + $ref: "#/components/schemas/v1alpha3.PodGroupList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.WorkloadList" + $ref: "#/components/schemas/v1alpha3.PodGroupList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.WorkloadList" + $ref: "#/components/schemas/v1alpha3.PodGroupList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.WorkloadList" + $ref: "#/components/schemas/v1alpha3.PodGroupList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha2.WorkloadList" + $ref: "#/components/schemas/v1alpha3.PodGroupList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha2.WorkloadList" + $ref: "#/components/schemas/v1alpha3.PodGroupList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha2.WorkloadList" + $ref: "#/components/schemas/v1alpha3.PodGroupList" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: Workload - version: v1alpha2 + kind: PodGroup + version: v1alpha3 x-accepts: - application/cbor - application/cbor-seq @@ -92297,8 +95748,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a Workload - operationId: createNamespacedWorkload + description: create a PodGroup + operationId: createNamespacedPodGroup parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -92349,64 +95800,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" description: Accepted "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: Workload - version: v1alpha2 + kind: PodGroup + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -92414,12 +95865,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}: + /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}: delete: - description: delete a Workload - operationId: deleteNamespacedWorkload + description: delete a PodGroup + operationId: deleteNamespacedPodGroup parameters: - - description: name of the Workload + - description: name of the PodGroup in: path name: name required: true @@ -92530,12 +95981,12 @@ paths: content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: Workload - version: v1alpha2 + kind: PodGroup + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -92544,10 +95995,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Workload - operationId: readNamespacedWorkload + description: read the specified PodGroup + operationId: readNamespacedPodGroup parameters: - - description: name of the Workload + - description: name of the PodGroup in: path name: name required: true @@ -92571,37 +96022,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: Workload - version: v1alpha2 + kind: PodGroup + version: v1alpha3 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Workload - operationId: patchNamespacedWorkload + description: partially update the specified PodGroup + operationId: patchNamespacedPodGroup parameters: - - description: name of the Workload + - description: name of the PodGroup in: path name: name required: true @@ -92672,42 +96123,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: Workload - version: v1alpha2 + kind: PodGroup + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -92716,10 +96167,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Workload - operationId: replaceNamespacedWorkload + description: replace the specified PodGroup + operationId: replaceNamespacedPodGroup parameters: - - description: name of the Workload + - description: name of the PodGroup in: path name: name required: true @@ -92774,49 +96225,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.Workload" + $ref: "#/components/schemas/v1alpha3.PodGroup" description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 + - scheduling_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: Workload - version: v1alpha2 + kind: PodGroup + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -92824,49 +96275,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1alpha2/podgroups: + /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status: get: - description: list or watch objects of kind PodGroup - operationId: listPodGroupForAllNamespaces + description: read status of the specified PodGroup + operationId: readNamespacedPodGroupStatus 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 PodGroup + 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)." @@ -92874,171 +96299,53 @@ 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 - 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: |- - shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: - - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - - Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: - - object.metadata.uid - - object.metadata.namespace - - hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. - - Examples: - 2-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') - shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - 4-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') - shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') - shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') - shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') - - This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - in: query - name: shardSelector - 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. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v1alpha2.PodGroupList" + $ref: "#/components/schemas/v1alpha3.PodGroup" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 - x-kubernetes-action: list + - scheduling_v1alpha3 + x-kubernetes-action: get x-kubernetes-group-version-kind: group: scheduling.k8s.io kind: PodGroup - version: v1alpha2 + 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/v1alpha2/watch/namespaces/{namespace}/podgroups: {} - /apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/podgroups/{name}: {} - /apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads: {} - /apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads/{name}: {} - /apis/scheduling.k8s.io/v1alpha2/watch/podgroups: {} - /apis/scheduling.k8s.io/v1alpha2/watch/workloads: {} - /apis/scheduling.k8s.io/v1alpha2/workloads: - get: - description: list or watch objects of kind Workload - operationId: listWorkloadForAllNamespaces + patch: + description: partially update status of the specified PodGroup + operationId: patchNamespacedPodGroupStatus 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 PodGroup + 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)." @@ -93046,183 +96353,221 @@ 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: |- - shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: - - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - - Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: - - object.metadata.uid - - object.metadata.namespace - - hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. - - Examples: - 2-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') - shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - 4-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') - shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') - shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') - shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') - - This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + - 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: shardSelector + name: fieldValidation 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. Specify resourceVersion." + - 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/v1alpha2.WorkloadList" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.WorkloadList" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.WorkloadList" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.WorkloadList" - application/json;stream=watch: + $ref: "#/components/schemas/v1alpha3.PodGroup" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1alpha2.WorkloadList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1alpha3.PodGroup" + application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.WorkloadList" - application/cbor-seq: + $ref: "#/components/schemas/v1alpha3.PodGroup" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.WorkloadList" - description: OK + $ref: "#/components/schemas/v1alpha3.PodGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.PodGroup" + description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha2 - x-kubernetes-action: list + - scheduling_v1alpha3 + x-kubernetes-action: patch x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: Workload - version: v1alpha2 + kind: PodGroup + 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/storage.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup + put: + description: replace status of the specified PodGroup + operationId: replaceNamespacedPodGroupStatus + parameters: + - description: name of the PodGroup + 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.PodGroup" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIGroup" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.APIGroup" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIGroup" + $ref: "#/components/schemas/v1alpha3.PodGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.PodGroup" 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": + "201": content: application/json: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1alpha3.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK + $ref: "#/components/schemas/v1alpha3.PodGroup" + description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1alpha3 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PodGroup + 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/storage.k8s.io/v1/csidrivers: + /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads: delete: - description: delete collection of CSIDriver - operationId: deleteCollectionCSIDriver + description: delete collection of Workload + operationId: deleteCollectionNamespacedWorkload 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)." @@ -93402,12 +96747,12 @@ paths: content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: scheduling.k8s.io + kind: Workload + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -93416,9 +96761,15 @@ 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 Workload + operationId: listNamespacedWorkload 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)." @@ -93542,36 +96893,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSIDriverList" + $ref: "#/components/schemas/v1alpha3.WorkloadList" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIDriverList" + $ref: "#/components/schemas/v1alpha3.WorkloadList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIDriverList" + $ref: "#/components/schemas/v1alpha3.WorkloadList" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIDriverList" + $ref: "#/components/schemas/v1alpha3.WorkloadList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.CSIDriverList" + $ref: "#/components/schemas/v1alpha3.WorkloadList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.CSIDriverList" + $ref: "#/components/schemas/v1alpha3.WorkloadList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.CSIDriverList" + $ref: "#/components/schemas/v1alpha3.WorkloadList" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: scheduling.k8s.io + kind: Workload + version: v1alpha3 x-accepts: - application/cbor - application/cbor-seq @@ -93581,9 +96932,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CSIDriver - operationId: createCSIDriver + description: create a Workload + operationId: createNamespacedWorkload 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)." @@ -93627,64 +96984,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: scheduling.k8s.io + kind: Workload + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -93692,17 +97049,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csidrivers/{name}: + /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name}: delete: - description: delete a CSIDriver - operationId: deleteCSIDriver + description: delete a Workload + operationId: deleteNamespacedWorkload parameters: - - description: name of the CSIDriver + - description: name of the Workload 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)." @@ -93772,42 +97135,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: scheduling.k8s.io + kind: Workload + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -93816,15 +97179,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CSIDriver - operationId: readCSIDriver + description: read the specified Workload + operationId: readNamespacedWorkload parameters: - - description: name of the CSIDriver + - description: name of the Workload 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)." @@ -93837,42 +97206,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: scheduling.k8s.io + kind: Workload + version: v1alpha3 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 Workload + operationId: patchNamespacedWorkload parameters: - - description: name of the CSIDriver + - description: name of the Workload 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)." @@ -93932,42 +97307,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: scheduling.k8s.io + kind: Workload + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -93976,15 +97351,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CSIDriver - operationId: replaceCSIDriver + description: replace the specified Workload + operationId: replaceNamespacedWorkload parameters: - - description: name of the CSIDriver + - description: name of the Workload 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)." @@ -94028,49 +97409,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIDriver" + $ref: "#/components/schemas/v1alpha3.Workload" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + group: scheduling.k8s.io + kind: Workload + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -94078,11 +97459,388 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csinodes: + /apis/scheduling.k8s.io/v1alpha3/podgroups: + get: + description: list or watch objects of kind PodGroup + operationId: listPodGroupForAllNamespaces + 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.PodGroupList" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.PodGroupList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.PodGroupList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.PodGroupList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha3.PodGroupList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha3.PodGroupList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha3.PodGroupList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha3 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PodGroup + 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/v1alpha3/watch/compositepodgroups: {} + /apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/compositepodgroups: {} + /apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/compositepodgroups/{name}: {} + /apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/podgroups: {} + /apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/podgroups/{name}: {} + /apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/workloads: {} + /apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/workloads/{name}: {} + /apis/scheduling.k8s.io/v1alpha3/watch/podgroups: {} + /apis/scheduling.k8s.io/v1alpha3/watch/workloads: {} + /apis/scheduling.k8s.io/v1alpha3/workloads: + get: + description: list or watch objects of kind Workload + operationId: listWorkloadForAllNamespaces + 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.WorkloadList" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.WorkloadList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.WorkloadList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.WorkloadList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha3.WorkloadList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha3.WorkloadList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha3.WorkloadList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha3 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: Workload + 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/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: + - scheduling_v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups: delete: - description: delete collection of CSINode - operationId: deleteCollectionCSINode + description: delete collection of PodGroup + operationId: deleteCollectionNamespacedPodGroup 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)." @@ -94262,12 +98020,12 @@ paths: content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: scheduling.k8s.io + kind: PodGroup + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -94276,9 +98034,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 PodGroup + operationId: listNamespacedPodGroup 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)." @@ -94402,36 +98166,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSINodeList" + $ref: "#/components/schemas/v1beta1.PodGroupList" application/yaml: schema: - $ref: "#/components/schemas/v1.CSINodeList" + $ref: "#/components/schemas/v1beta1.PodGroupList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSINodeList" + $ref: "#/components/schemas/v1beta1.PodGroupList" application/cbor: schema: - $ref: "#/components/schemas/v1.CSINodeList" + $ref: "#/components/schemas/v1beta1.PodGroupList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.CSINodeList" + $ref: "#/components/schemas/v1beta1.PodGroupList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.CSINodeList" + $ref: "#/components/schemas/v1beta1.PodGroupList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.CSINodeList" + $ref: "#/components/schemas/v1beta1.PodGroupList" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: scheduling.k8s.io + kind: PodGroup + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -94441,9 +98205,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CSINode - operationId: createCSINode + description: create a PodGroup + operationId: createNamespacedPodGroup 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)." @@ -94487,64 +98257,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: scheduling.k8s.io + kind: PodGroup + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -94552,17 +98322,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csinodes/{name}: + /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}: delete: - description: delete a CSINode - operationId: deleteCSINode + description: delete a PodGroup + operationId: deleteNamespacedPodGroup parameters: - - description: name of the CSINode + - description: name of the PodGroup 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)." @@ -94632,42 +98408,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: scheduling.k8s.io + kind: PodGroup + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -94676,15 +98452,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CSINode - operationId: readCSINode + description: read the specified PodGroup + operationId: readNamespacedPodGroup parameters: - - description: name of the CSINode + - description: name of the PodGroup 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)." @@ -94697,42 +98479,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: scheduling.k8s.io + kind: PodGroup + 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 PodGroup + operationId: patchNamespacedPodGroup parameters: - - description: name of the CSINode + - description: name of the PodGroup 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)." @@ -94792,42 +98580,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: scheduling.k8s.io + kind: PodGroup + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -94836,15 +98624,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CSINode - operationId: replaceCSINode + description: replace the specified PodGroup + operationId: replaceNamespacedPodGroup parameters: - - description: name of the CSINode + - description: name of the PodGroup 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)." @@ -94888,49 +98682,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.CSINode" + $ref: "#/components/schemas/v1beta1.PodGroup" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + group: scheduling.k8s.io + kind: PodGroup + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -94938,49 +98732,77 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csistoragecapacities: + /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status: get: - description: list or watch objects of kind CSIStorageCapacity - operationId: listCSIStorageCapacityForAllNamespaces + description: read status of the specified PodGroup + operationId: readNamespacedPodGroupStatus 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 PodGroup + 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.PodGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PodGroup + version: v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified PodGroup + operationId: patchNamespacedPodGroupStatus + parameters: + - description: name of the PodGroup + 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)." @@ -94988,126 +98810,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: |- - shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: - - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') - shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - - Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: - - object.metadata.uid - - object.metadata.namespace - - hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. - - Examples: - 2-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') - shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - 4-shard split: - shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') - shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') - shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') - shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') - - This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodGroup" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodGroup" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PodGroup + 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 PodGroup + operationId: replaceNamespacedPodGroupStatus + parameters: + - description: name of the PodGroup + 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: shardSelector + 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." + - 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: timeoutSeconds + name: dryRun 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: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. 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: watch + name: fieldManager schema: - type: boolean + 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.PodGroup" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" + $ref: "#/components/schemas/v1beta1.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" + $ref: "#/components/schemas/v1beta1.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" + $ref: "#/components/schemas/v1beta1.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" - application/json;stream=watch: + $ref: "#/components/schemas/v1beta1.PodGroup" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1beta1.PodGroup" + application/yaml: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" - application/cbor-seq: + $ref: "#/components/schemas/v1beta1.PodGroup" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" - description: OK + $ref: "#/components/schemas/v1beta1.PodGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodGroup" + description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: list + - scheduling_v1beta1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: scheduling.k8s.io + kind: PodGroup + 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/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads: delete: - description: delete collection of CSIStorageCapacity - operationId: deleteCollectionNamespacedCSIStorageCapacity + description: delete collection of Workload + operationId: deleteCollectionNamespacedWorkload parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -95294,12 +99204,12 @@ paths: content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: scheduling.k8s.io + kind: Workload + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -95308,8 +99218,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 Workload + operationId: listNamespacedWorkload parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -95440,36 +99350,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" + $ref: "#/components/schemas/v1beta1.WorkloadList" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" + $ref: "#/components/schemas/v1beta1.WorkloadList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" + $ref: "#/components/schemas/v1beta1.WorkloadList" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" + $ref: "#/components/schemas/v1beta1.WorkloadList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" + $ref: "#/components/schemas/v1beta1.WorkloadList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" + $ref: "#/components/schemas/v1beta1.WorkloadList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" + $ref: "#/components/schemas/v1beta1.WorkloadList" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: scheduling.k8s.io + kind: Workload + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -95479,8 +99389,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CSIStorageCapacity - operationId: createNamespacedCSIStorageCapacity + description: create a Workload + operationId: createNamespacedWorkload parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -95531,64 +99441,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: scheduling.k8s.io + kind: Workload + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -95596,12 +99506,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}: + /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}: delete: - description: delete a CSIStorageCapacity - operationId: deleteNamespacedCSIStorageCapacity + description: delete a Workload + operationId: deleteNamespacedWorkload parameters: - - description: name of the CSIStorageCapacity + - description: name of the Workload in: path name: name required: true @@ -95712,12 +99622,12 @@ paths: content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: scheduling.k8s.io + kind: Workload + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -95726,10 +99636,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CSIStorageCapacity - operationId: readNamespacedCSIStorageCapacity + description: read the specified Workload + operationId: readNamespacedWorkload parameters: - - description: name of the CSIStorageCapacity + - description: name of the Workload in: path name: name required: true @@ -95753,37 +99663,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: scheduling.k8s.io + kind: Workload + 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 Workload + operationId: patchNamespacedWorkload parameters: - - description: name of the CSIStorageCapacity + - description: name of the Workload in: path name: name required: true @@ -95854,42 +99764,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: scheduling.k8s.io + kind: Workload + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -95898,10 +99808,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CSIStorageCapacity - operationId: replaceNamespacedCSIStorageCapacity + description: replace the specified Workload + operationId: replaceNamespacedWorkload parameters: - - description: name of the CSIStorageCapacity + - description: name of the Workload in: path name: name required: true @@ -95956,49 +99866,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1.CSIStorageCapacity" + $ref: "#/components/schemas/v1beta1.Workload" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: scheduling.k8s.io + kind: Workload + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -96006,10 +99916,408 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/storageclasses: + /apis/scheduling.k8s.io/v1beta1/podgroups: + get: + description: list or watch objects of kind PodGroup + operationId: listPodGroupForAllNamespaces + 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodGroupList" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodGroupList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodGroupList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodGroupList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.PodGroupList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.PodGroupList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.PodGroupList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PodGroup + 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/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/podgroups: {} + /apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/podgroups/{name}: {} + /apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/workloads: {} + /apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/workloads/{name}: {} + /apis/scheduling.k8s.io/v1beta1/watch/podgroups: {} + /apis/scheduling.k8s.io/v1beta1/watch/workloads: {} + /apis/scheduling.k8s.io/v1beta1/workloads: + get: + description: list or watch objects of kind Workload + operationId: listWorkloadForAllNamespaces + 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.WorkloadList" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.WorkloadList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.WorkloadList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.WorkloadList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.WorkloadList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.WorkloadList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.WorkloadList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: Workload + 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/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" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage + x-accepts: + - application/cbor + - 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 StorageClass - operationId: deleteCollectionStorageClass + description: delete collection of CSIDriver + operationId: deleteCollectionCSIDriver 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\ @@ -96194,7 +100502,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIDriver version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -96204,8 +100512,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind StorageClass - operationId: listStorageClass + 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\ @@ -96330,25 +100638,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.StorageClassList" + $ref: "#/components/schemas/v1.CSIDriverList" application/yaml: schema: - $ref: "#/components/schemas/v1.StorageClassList" + $ref: "#/components/schemas/v1.CSIDriverList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StorageClassList" + $ref: "#/components/schemas/v1.CSIDriverList" application/cbor: schema: - $ref: "#/components/schemas/v1.StorageClassList" + $ref: "#/components/schemas/v1.CSIDriverList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.StorageClassList" + $ref: "#/components/schemas/v1.CSIDriverList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.StorageClassList" + $ref: "#/components/schemas/v1.CSIDriverList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.StorageClassList" + $ref: "#/components/schemas/v1.CSIDriverList" description: OK "401": content: {} @@ -96358,7 +100666,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIDriver version: v1 x-accepts: - application/cbor @@ -96369,8 +100677,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a StorageClass - operationId: createStorageClass + description: create a CSIDriver + operationId: createCSIDriver 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\ @@ -96415,53 +100723,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" description: Accepted "401": content: {} @@ -96471,7 +100779,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIDriver version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -96480,12 +100788,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/storageclasses/{name}: + /apis/storage.k8s.io/v1/csidrivers/{name}: delete: - description: delete a StorageClass - operationId: deleteStorageClass + description: delete a CSIDriver + operationId: deleteCSIDriver parameters: - - description: name of the StorageClass + - description: name of the CSIDriver in: path name: name required: true @@ -96560,31 +100868,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" description: Accepted "401": content: {} @@ -96594,7 +100902,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIDriver version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -96604,10 +100912,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified StorageClass - operationId: readStorageClass + description: read the specified CSIDriver + operationId: readCSIDriver parameters: - - description: name of the StorageClass + - description: name of the CSIDriver in: path name: name required: true @@ -96625,16 +100933,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" description: OK "401": content: {} @@ -96644,7 +100952,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIDriver version: v1 x-accepts: - application/cbor @@ -96652,10 +100960,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified StorageClass - operationId: patchStorageClass + description: partially update the specified CSIDriver + operationId: patchCSIDriver parameters: - - description: name of the StorageClass + - description: name of the CSIDriver in: path name: name required: true @@ -96720,31 +101028,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" description: Created "401": content: {} @@ -96754,7 +101062,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIDriver version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -96764,10 +101072,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified StorageClass - operationId: replaceStorageClass + description: replace the specified CSIDriver + operationId: replaceCSIDriver parameters: - - description: name of the StorageClass + - description: name of the CSIDriver in: path name: name required: true @@ -96816,38 +101124,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: "#/components/schemas/v1.StorageClass" + $ref: "#/components/schemas/v1.CSIDriver" description: Created "401": content: {} @@ -96857,7 +101165,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIDriver version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -96866,10 +101174,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/volumeattachments: + /apis/storage.k8s.io/v1/csinodes: delete: - description: delete collection of VolumeAttachment - operationId: deleteCollectionVolumeAttachment + description: delete collection of CSINode + operationId: deleteCollectionCSINode 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\ @@ -97054,7 +101362,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: CSINode version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -97064,8 +101372,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 CSINode + operationId: listCSINode 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\ @@ -97190,25 +101498,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachmentList" + $ref: "#/components/schemas/v1.CSINodeList" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachmentList" + $ref: "#/components/schemas/v1.CSINodeList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachmentList" + $ref: "#/components/schemas/v1.CSINodeList" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachmentList" + $ref: "#/components/schemas/v1.CSINodeList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.VolumeAttachmentList" + $ref: "#/components/schemas/v1.CSINodeList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.VolumeAttachmentList" + $ref: "#/components/schemas/v1.CSINodeList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.VolumeAttachmentList" + $ref: "#/components/schemas/v1.CSINodeList" description: OK "401": content: {} @@ -97218,7 +101526,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: CSINode version: v1 x-accepts: - application/cbor @@ -97229,8 +101537,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a VolumeAttachment - operationId: createVolumeAttachment + description: create a CSINode + operationId: createCSINode 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\ @@ -97275,53 +101583,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: Accepted "401": content: {} @@ -97331,7 +101639,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: CSINode version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -97340,12 +101648,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/volumeattachments/{name}: + /apis/storage.k8s.io/v1/csinodes/{name}: delete: - description: delete a VolumeAttachment - operationId: deleteVolumeAttachment + description: delete a CSINode + operationId: deleteCSINode parameters: - - description: name of the VolumeAttachment + - description: name of the CSINode in: path name: name required: true @@ -97420,31 +101728,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: Accepted "401": content: {} @@ -97454,7 +101762,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: CSINode version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -97464,10 +101772,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified VolumeAttachment - operationId: readVolumeAttachment + description: read the specified CSINode + operationId: readCSINode parameters: - - description: name of the VolumeAttachment + - description: name of the CSINode in: path name: name required: true @@ -97485,16 +101793,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: OK "401": content: {} @@ -97504,7 +101812,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: CSINode version: v1 x-accepts: - application/cbor @@ -97512,10 +101820,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified VolumeAttachment - operationId: patchVolumeAttachment + description: partially update the specified CSINode + operationId: patchCSINode parameters: - - description: name of the VolumeAttachment + - description: name of the CSINode in: path name: name required: true @@ -97580,31 +101888,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: Created "401": content: {} @@ -97614,7 +101922,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: CSINode version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -97624,10 +101932,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified VolumeAttachment - operationId: replaceVolumeAttachment + description: replace the specified CSINode + operationId: replaceCSINode parameters: - - description: name of the VolumeAttachment + - description: name of the CSINode in: path name: name required: true @@ -97676,38 +101984,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: Created "401": content: {} @@ -97717,7 +102025,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: CSINode version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -97726,12 +102034,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/volumeattachments/{name}/status: + /apis/storage.k8s.io/v1/csinodes/{name}/status: get: - description: read status of the specified VolumeAttachment - operationId: readVolumeAttachmentStatus + description: read status of the specified CSINode + operationId: readCSINodeStatus parameters: - - description: name of the VolumeAttachment + - description: name of the CSINode in: path name: name required: true @@ -97749,16 +102057,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: OK "401": content: {} @@ -97768,7 +102076,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: CSINode version: v1 x-accepts: - application/cbor @@ -97776,10 +102084,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified VolumeAttachment - operationId: patchVolumeAttachmentStatus + description: partially update status of the specified CSINode + operationId: patchCSINodeStatus parameters: - - description: name of the VolumeAttachment + - description: name of the CSINode in: path name: name required: true @@ -97844,31 +102152,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: Created "401": content: {} @@ -97878,7 +102186,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: CSINode version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -97888,10 +102196,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified VolumeAttachment - operationId: replaceVolumeAttachmentStatus + description: replace status of the specified CSINode + operationId: replaceCSINodeStatus parameters: - - description: name of the VolumeAttachment + - description: name of the CSINode in: path name: name required: true @@ -97940,38 +102248,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttachment" + $ref: "#/components/schemas/v1.CSINode" description: Created "401": content: {} @@ -97981,7 +102289,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: CSINode version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -97990,18 +102298,21 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/volumeattributesclasses: - delete: - description: delete collection of VolumeAttributesClass - operationId: deleteCollectionVolumeAttributesClass + /apis/storage.k8s.io/v1/csistoragecapacities: + get: + description: list or watch objects of kind CSIStorageCapacity + operationId: listCSIStorageCapacityForAllNamespaces 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". @@ -98010,44 +102321,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 @@ -98062,23 +102341,224 @@ 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: |- + resourceVersion sets a constraint on what resource 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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. 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 + /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities: + delete: + description: delete collection of CSIStorageCapacity + operationId: deleteCollectionNamespacedCSIStorageCapacity + 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: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not 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: |- @@ -98178,7 +102658,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -98188,9 +102668,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 CSIStorageCapacity + operationId: listNamespacedCSIStorageCapacity 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)." @@ -98314,25 +102800,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.CSIStorageCapacityList" description: OK "401": content: {} @@ -98342,7 +102828,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass + kind: CSIStorageCapacity version: v1 x-accepts: - application/cbor @@ -98353,9 +102839,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a VolumeAttributesClass - operationId: createVolumeAttributesClass + 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)." @@ -98399,53 +102891,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: Accepted "401": content: {} @@ -98455,7 +102947,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -98464,17 +102956,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/volumeattributesclasses/{name}: + /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}: delete: - description: delete a VolumeAttributesClass - operationId: deleteVolumeAttributesClass + description: delete a CSIStorageCapacity + operationId: deleteNamespacedCSIStorageCapacity parameters: - - description: name of the VolumeAttributesClass + - description: name of the CSIStorageCapacity 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)." @@ -98544,31 +103042,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -98578,7 +103076,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -98588,15 +103086,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified VolumeAttributesClass - operationId: readVolumeAttributesClass + description: read the specified CSIStorageCapacity + operationId: readNamespacedCSIStorageCapacity parameters: - - description: name of the VolumeAttributesClass + - description: name of the CSIStorageCapacity 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)." @@ -98609,16 +103113,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: OK "401": content: {} @@ -98628,7 +103132,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass + kind: CSIStorageCapacity version: v1 x-accepts: - application/cbor @@ -98636,15 +103140,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified VolumeAttributesClass - operationId: patchVolumeAttributesClass + description: partially update the specified CSIStorageCapacity + operationId: patchNamespacedCSIStorageCapacity parameters: - - description: name of the VolumeAttributesClass + - description: name of the CSIStorageCapacity 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)." @@ -98704,31 +103214,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: Created "401": content: {} @@ -98738,7 +103248,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -98748,15 +103258,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified VolumeAttributesClass - operationId: replaceVolumeAttributesClass + description: replace the specified CSIStorageCapacity + operationId: replaceNamespacedCSIStorageCapacity parameters: - - description: name of the VolumeAttributesClass + - description: name of the CSIStorageCapacity 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)." @@ -98800,38 +103316,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: "#/components/schemas/v1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: Created "401": content: {} @@ -98841,7 +103357,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -98850,53 +103366,10 @@ paths: - 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/v1/watch/volumeattributesclasses: {} - /apis/storage.k8s.io/v1/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: + /apis/storage.k8s.io/v1/storageclasses: delete: - description: delete collection of VolumeAttributesClass - operationId: deleteCollectionVolumeAttributesClass + 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\ @@ -99077,12 +103550,12 @@ paths: content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + kind: StorageClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -99091,8 +103564,8 @@ 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 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\ @@ -99217,36 +103690,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.StorageClassList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.StorageClassList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.StorageClassList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.StorageClassList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.StorageClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.StorageClassList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" + $ref: "#/components/schemas/v1.StorageClassList" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + kind: StorageClass + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -99256,8 +103729,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a VolumeAttributesClass - operationId: createVolumeAttributesClass + 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\ @@ -99302,64 +103775,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + kind: StorageClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -99367,12 +103840,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}: + /apis/storage.k8s.io/v1/storageclasses/{name}: delete: - description: delete a VolumeAttributesClass - operationId: deleteVolumeAttributesClass + description: delete a StorageClass + operationId: deleteStorageClass parameters: - - description: name of the VolumeAttributesClass + - description: name of the StorageClass in: path name: name required: true @@ -99447,42 +103920,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + kind: StorageClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -99491,10 +103964,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified VolumeAttributesClass - operationId: readVolumeAttributesClass + description: read the specified StorageClass + operationId: readStorageClass parameters: - - description: name of the VolumeAttributesClass + - description: name of the StorageClass in: path name: name required: true @@ -99512,37 +103985,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + kind: StorageClass + version: v1 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 StorageClass + operationId: patchStorageClass parameters: - - description: name of the VolumeAttributesClass + - description: name of the StorageClass in: path name: name required: true @@ -99607,42 +104080,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + kind: StorageClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -99651,10 +104124,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified VolumeAttributesClass - operationId: replaceVolumeAttributesClass + description: replace the specified StorageClass + operationId: replaceStorageClass parameters: - - description: name of the VolumeAttributesClass + - description: name of the StorageClass in: path name: name required: true @@ -99703,49 +104176,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" + $ref: "#/components/schemas/v1.StorageClass" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1beta1 + kind: StorageClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -99753,68 +104226,10 @@ 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/: - 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/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: - - storagemigration_v1beta1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations: + /apis/storage.k8s.io/v1/volumeattachments: delete: - description: delete collection of StorageVersionMigration - operationId: deleteCollectionStorageVersionMigration + 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\ @@ -99995,12 +104410,12 @@ paths: content: {} description: Unauthorized tags: - - storagemigration_v1beta1 + - storage_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1beta1 + group: storage.k8s.io + kind: VolumeAttachment + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -100009,8 +104424,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 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\ @@ -100135,36 +104550,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + $ref: "#/components/schemas/v1.VolumeAttachmentList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + $ref: "#/components/schemas/v1.VolumeAttachmentList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + $ref: "#/components/schemas/v1.VolumeAttachmentList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + $ref: "#/components/schemas/v1.VolumeAttachmentList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + $ref: "#/components/schemas/v1.VolumeAttachmentList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + $ref: "#/components/schemas/v1.VolumeAttachmentList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + $ref: "#/components/schemas/v1.VolumeAttachmentList" description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1beta1 + - storage_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1beta1 + group: storage.k8s.io + kind: VolumeAttachment + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -100174,8 +104589,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a StorageVersionMigration - operationId: createStorageVersionMigration + 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\ @@ -100220,64 +104635,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" description: Accepted "401": content: {} description: Unauthorized tags: - - storagemigration_v1beta1 + - storage_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1beta1 + group: storage.k8s.io + kind: VolumeAttachment + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -100285,12 +104700,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name}: + /apis/storage.k8s.io/v1/volumeattachments/{name}: delete: - description: delete a StorageVersionMigration - operationId: deleteStorageVersionMigration + description: delete a VolumeAttachment + operationId: deleteVolumeAttachment parameters: - - description: name of the StorageVersionMigration + - description: name of the VolumeAttachment in: path name: name required: true @@ -100365,42 +104780,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.VolumeAttachment" description: Accepted "401": content: {} description: Unauthorized tags: - - storagemigration_v1beta1 + - storage_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1beta1 + group: storage.k8s.io + kind: VolumeAttachment + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -100409,10 +104824,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified StorageVersionMigration - operationId: readStorageVersionMigration + description: read the specified VolumeAttachment + operationId: readVolumeAttachment parameters: - - description: name of the StorageVersionMigration + - description: name of the VolumeAttachment in: path name: name required: true @@ -100430,37 +104845,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1beta1 + - storage_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1beta1 + group: storage.k8s.io + kind: VolumeAttachment + version: v1 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 VolumeAttachment + operationId: patchVolumeAttachment parameters: - - description: name of the StorageVersionMigration + - description: name of the VolumeAttachment in: path name: name required: true @@ -100525,42 +104940,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" description: Created "401": content: {} description: Unauthorized tags: - - storagemigration_v1beta1 + - storage_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1beta1 + group: storage.k8s.io + kind: VolumeAttachment + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -100569,10 +104984,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified StorageVersionMigration - operationId: replaceStorageVersionMigration + description: replace the specified VolumeAttachment + operationId: replaceVolumeAttachment parameters: - - description: name of the StorageVersionMigration + - description: name of the VolumeAttachment in: path name: name required: true @@ -100621,49 +105036,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" description: Created "401": content: {} description: Unauthorized tags: - - storagemigration_v1beta1 + - storage_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1beta1 + group: storage.k8s.io + kind: VolumeAttachment + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -100671,12 +105086,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name}/status: + /apis/storage.k8s.io/v1/volumeattachments/{name}/status: get: - description: read status of the specified StorageVersionMigration - operationId: readStorageVersionMigrationStatus + description: read status of the specified VolumeAttachment + operationId: readVolumeAttachmentStatus parameters: - - description: name of the StorageVersionMigration + - description: name of the VolumeAttachment in: path name: name required: true @@ -100694,37 +105109,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1beta1 + - storage_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1beta1 + 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 StorageVersionMigration - operationId: patchStorageVersionMigrationStatus + description: partially update status of the specified VolumeAttachment + operationId: patchVolumeAttachmentStatus parameters: - - description: name of the StorageVersionMigration + - description: name of the VolumeAttachment in: path name: name required: true @@ -100789,42 +105204,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" description: Created "401": content: {} description: Unauthorized tags: - - storagemigration_v1beta1 + - storage_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1beta1 + group: storage.k8s.io + kind: VolumeAttachment + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -100833,10 +105248,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified StorageVersionMigration - operationId: replaceStorageVersionMigrationStatus + description: replace status of the specified VolumeAttachment + operationId: replaceVolumeAttachmentStatus parameters: - - description: name of the StorageVersionMigration + - description: name of the VolumeAttachment in: path name: name required: true @@ -100885,49 +105300,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + $ref: "#/components/schemas/v1.VolumeAttachment" description: Created "401": content: {} description: Unauthorized tags: - - storagemigration_v1beta1 + - storage_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1beta1 + group: storage.k8s.io + kind: VolumeAttachment + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -100935,126 +105350,18 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storagemigration.k8s.io/v1beta1/watch/storageversionmigrations: {} - /apis/storagemigration.k8s.io/v1beta1/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 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 - - 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 + /apis/storage.k8s.io/v1/volumeattributesclasses: + delete: + description: delete collection of VolumeAttributesClass + operationId: deleteCollectionVolumeAttributesClass 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." - 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". @@ -101063,12 +105370,44 @@ 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 @@ -101083,12 +105422,29 @@ 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: "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: @@ -101101,104 +105457,57 @@ paths: 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." + - 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: watch + name: sendInitialEvents 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. + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. in: query - name: labelSelector + name: shardSelector 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." + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query - name: gracePeriodSeconds + name: timeoutSeconds 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: @@ -101210,52 +105519,51 @@ 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 "401": content: {} description: Unauthorized tags: - - custom_objects + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + 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: list or watch objects of kind VolumeAttributesClass + operationId: listVolumeAttributesClass 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: 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: @@ -101288,12 +105596,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: @@ -101306,6 +105612,51 @@ 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + 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 @@ -101313,7 +105664,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: @@ -101323,47 +105674,55 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.VolumeAttributesClassList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClassList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClassList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClassList" application/json;stream=watch: schema: - type: object + $ref: "#/components/schemas/v1.VolumeAttributesClassList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClassList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClassList" 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: VolumeAttributesClass + 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 cluster scoped Custom object - operationId: createClusterCustomObject + description: create a VolumeAttributesClass + operationId: createVolumeAttributesClass 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: 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\ @@ -101374,9 +105733,7 @@ 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.\ - \ 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." in: query name: fieldManager schema: @@ -101393,8 +105750,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: @@ -101403,64 +105759,95 @@ paths: content: application/json: schema: - type: object - description: The JSON schema of the Resource to create. + $ref: "#/components/schemas/v1.VolumeAttributesClass" required: true responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: OK "201": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + 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: VolumeAttributesClass + 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}: + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/volumeattributesclasses/{name}: delete: - description: Delete collection of namespace scoped custom objects - operationId: deleteCollectionNamespacedCustomObject + description: delete a VolumeAttributesClass + operationId: deleteVolumeAttributesClass 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 + - description: name of the VolumeAttributesClass 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: A selector to restrict the list of returned objects by their - labels. Defaults to everything. + - 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: labelSelector + name: dryRun schema: type: string - description: "The duration in seconds before the object should be deleted.\ @@ -101472,6 +105859,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\ @@ -101483,25 +105885,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 - - 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: @@ -101513,170 +105904,112 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" description: OK + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + 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: VolumeAttributesClass + 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 namespace scoped custom objects - operationId: listNamespacedCustomObject + description: read the specified VolumeAttributesClass + operationId: readVolumeAttributesClass 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 VolumeAttributesClass 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.VolumeAttributesClass" + application/yaml: schema: - type: object + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" 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: VolumeAttributesClass + version: v1 x-accepts: + - application/cbor - application/json - - application/json;stream=watch - post: - description: Creates a namespace scoped Custom object - operationId: createNamespacedCustomObject + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified VolumeAttributesClass + operationId: patchVolumeAttributesClass 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 + - description: name of the VolumeAttributesClass 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: "When present, indicates that modifications should not be persisted.\ @@ -101689,7 +106022,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." + \ 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: @@ -101706,63 +106041,280 @@ 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 - requestBody: - content: - application/json: - schema: - type: object - description: The JSON schema of the Resource to create. + - 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.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: OK "201": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" 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: VolumeAttributesClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - /apis/{group}/{version}/{plural}/{name}: - delete: - description: Deletes the specified cluster scoped custom object - operationId: deleteClusterCustomObject + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified VolumeAttributesClass + operationId: replaceVolumeAttributesClass parameters: - - description: the custom resource's group + - description: name of the VolumeAttributesClass in: path - name: group + name: name required: true schema: type: string - - description: the custom resource's version - in: path - name: version - 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 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 + - 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.VolumeAttributesClass" required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + 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/v1/watch/volumeattributesclasses: {} + /apis/storage.k8s.io/v1/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" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.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: + - storagemigration_v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1/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 + - 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.\ @@ -101774,6 +106326,35 @@ 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: 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\ @@ -101785,19 +106366,81 @@ 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" + - 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: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector 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 requestBody: content: application/json: @@ -101809,87 +106452,208 @@ 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 "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + 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: list or watch objects of kind StorageVersionMigration + operationId: listStorageVersionMigration 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: 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 plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - 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 object's name - in: path - name: name - 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: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector 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. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - type: object - description: A single Resource + $ref: "#/components/schemas/v1.StorageVersionMigrationList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigrationList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigrationList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigrationList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigrationList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigrationList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigrationList" + description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - patch: - description: patch the specified cluster scoped custom object - operationId: patchClusterCustomObject + - 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: 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 + - description: "If 'true', 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.\ @@ -101902,9 +106666,7 @@ 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.\ - \ 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." in: query name: fieldManager schema: @@ -101921,69 +106683,96 @@ 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 patch. + $ref: "#/components/schemas/v1.StorageVersionMigration" required: true responses: "200": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - put: - description: replace the specified cluster scoped custom object - operationId: replaceClusterCustomObject + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}: + delete: + description: delete a StorageVersionMigration + operationId: deleteStorageVersionMigration 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 StorageVersionMigration 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.\ @@ -101994,82 +106783,118 @@ 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: "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: fieldManager + name: gracePeriodSeconds 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: "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: fieldValidation + 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: - type: object - description: The JSON schema of the Resource to replace. - 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: + $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 + - storagemigration_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - /apis/{group}/{version}/{plural}/{name}/status: + - application/vnd.kubernetes.protobuf + - application/yaml get: - description: read status of the specified cluster scoped custom object - operationId: getClusterCustomObjectStatus + description: read the specified StorageVersionMigration + operationId: readStorageVersionMigration 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. + - description: name of the StorageVersionMigration 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: @@ -102077,51 +106902,47 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1 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 + description: partially update the specified StorageVersionMigration + operationId: patchStorageVersionMigration 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. + - description: name of the StorageVersionMigration 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.\ @@ -102153,8 +106974,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: @@ -102170,60 +106990,71 @@ 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.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + 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 + description: replace the specified StorageVersionMigration + operationId: replaceStorageVersionMigration 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. + - description: name of the StorageVersionMigration 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.\ @@ -102253,8 +107084,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: @@ -102263,72 +107093,72 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" required: true responses: "200": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" description: OK "201": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + 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}/{plural}/{name}/scale: + /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status: get: - description: read scale of the specified custom object - operationId: getClusterCustomObjectScale + description: read status of the specified StorageVersionMigration + operationId: readStorageVersionMigrationStatus 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. + - description: name of the StorageVersionMigration 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: @@ -102336,50 +107166,47 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update scale of the specified cluster scoped custom object - operationId: patchClusterCustomObjectScale + description: partially update status of the specified StorageVersionMigration + operationId: patchStorageVersionMigrationStatus 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. + - description: name of the StorageVersionMigration 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.\ @@ -102411,8 +107238,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: @@ -102428,60 +107254,71 @@ 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.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + 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 cluster scoped custom object - operationId: replaceClusterCustomObjectScale + description: replace status of the specified StorageVersionMigration + operationId: replaceStorageVersionMigrationStatus parameters: - - description: the custom resource's group + - description: name of the StorageVersionMigration 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 + 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.\ @@ -102511,8 +107348,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: @@ -102521,78 +107357,120 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" required: true responses: "200": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" description: OK "201": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StorageVersionMigration" description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + 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/storagemigration.k8s.io/v1/watch/storageversionmigrations: {} + /apis/storagemigration.k8s.io/v1/watch/storageversionmigrations/{name}: {} + /apis/storagemigration.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: + - storagemigration_v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations: delete: - description: Deletes the specified namespace scoped custom object - operationId: deleteNamespacedCustomObject + description: delete collection of StorageVersionMigration + operationId: deleteCollectionStorageVersionMigration 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 + - description: "If 'true', 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 namespace - in: path - name: namespace - 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 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: 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.\ @@ -102604,6 +107482,35 @@ 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: 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\ @@ -102615,19 +107522,81 @@ 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" + - 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: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector 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 requestBody: content: application/json: @@ -102639,99 +107608,208 @@ 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 "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1beta1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + 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: Returns a namespace scoped custom object - operationId: getNamespacedCustomObject + description: list or watch objects of kind StorageVersionMigration + operationId: listStorageVersionMigration 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: 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 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: 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 object's name - in: path - name: name - 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: |- + resourceVersion sets a constraint on what resource 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: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector 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. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - type: object - description: A single Resource + $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - patch: - description: patch the specified namespace scoped custom object - operationId: patchNamespacedCustomObject + - 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: 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 + - description: "If 'true', 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.\ @@ -102744,9 +107822,7 @@ 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.\ - \ 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." in: query name: fieldManager schema: @@ -102763,75 +107839,96 @@ 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 patch. + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" required: true responses: "200": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1beta1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - put: - description: replace the specified namespace scoped custom object - operationId: replaceNamespacedCustomObject + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name}: + delete: + description: delete a StorageVersionMigration + operationId: deleteStorageVersionMigration 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 StorageVersionMigration 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.\ @@ -102842,88 +107939,118 @@ 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: "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: fieldManager + name: gracePeriodSeconds 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: "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: fieldValidation + 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: - type: object - description: The JSON schema of the Resource to replace. - 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: + $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 + - storagemigration_v1beta1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 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 get: - description: read status of the specified namespace scoped custom object - operationId: getNamespacedCustomObjectStatus + description: read the specified StorageVersionMigration + operationId: readStorageVersionMigration 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 StorageVersionMigration 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: @@ -102931,57 +108058,47 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified namespace scoped custom - object - operationId: patchNamespacedCustomObjectStatus + description: partially update the specified StorageVersionMigration + operationId: patchStorageVersionMigration 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 StorageVersionMigration 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.\ @@ -103013,8 +108130,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: @@ -103030,66 +108146,71 @@ 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/v1beta1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + 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 namespace scoped custom object - operationId: replaceNamespacedCustomObjectStatus + description: replace the specified StorageVersionMigration + operationId: replaceStorageVersionMigration 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 StorageVersionMigration 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.\ @@ -103119,8 +108240,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: @@ -103129,78 +108249,72 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" required: true responses: "200": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" description: OK "201": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + 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/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale: + /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name}/status: get: - description: read scale of the specified namespace scoped custom object - operationId: getNamespacedCustomObjectScale + description: read status of the specified StorageVersionMigration + operationId: readStorageVersionMigrationStatus 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 StorageVersionMigration 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: @@ -103208,57 +108322,47 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 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 + description: partially update status of the specified StorageVersionMigration + operationId: patchStorageVersionMigrationStatus 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 StorageVersionMigration 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.\ @@ -103290,8 +108394,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: @@ -103307,66 +108410,71 @@ 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/v1beta1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + 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 scale of the specified namespace scoped custom object - operationId: replaceNamespacedCustomObjectScale + description: replace status of the specified StorageVersionMigration + operationId: replaceStorageVersionMigrationStatus 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 StorageVersionMigration 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.\ @@ -103396,8 +108504,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: @@ -103406,7575 +108513,2721 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" required: true responses: "200": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" description: OK "201": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - storagemigration_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + 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 - /.well-known/openid-configuration: + /apis/storagemigration.k8s.io/v1beta1/watch/storageversionmigrations: {} + /apis/storagemigration.k8s.io/v1beta1/watch/storageversionmigrations/{name}: {} + /logs/: get: - description: "get service account issuer OpenID configuration, also known as\ - \ the 'OIDC discovery doc'" - operationId: getServiceAccountIssuerOpenIDConfiguration + 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 version information for this server + operationId: getCode responses: "200": content: application/json: schema: - type: string + $ref: "#/components/schemas/version.Info" description: OK "401": content: {} description: Unauthorized tags: - - WellKnown + - version x-accepts: - application/json - /openid/v1/jwks: + /apis/{group}/{version}: get: - description: get service account issuer OpenID JSON Web Key Set (contains public - token verification keys) - operationId: getServiceAccountIssuerOpenIDKeyset + 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/jwk-set+json: + application/json: schema: - type: string + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - openid + - custom_objects x-accepts: - - application/jwk-set+json -components: - schemas: - v1.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." + - 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 - type: object - 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. + - 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". - 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 - 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. + - 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. - 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. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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. - Required. + Defaults to unset + in: query + name: resourceVersionMatch + 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: "fieldRef is the path to the field that refers to the expression.\ - \ For example, the reference to the expression of the first item of validations\ - \ is \"spec.validations[0].expression\"" + - 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 - warning: - description: "warning contains 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: The custom resource's group name + in: path + name: group + required: true + schema: type: string - required: - - fieldRef - - warning - type: object - v1.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." + - description: The custom resource's version + in: path + name: version + required: true + schema: type: string - 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: + - 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". - '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/ + This field is not 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. - 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: "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 - 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: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Required. + Defaults to unset + in: query + name: resourceVersionMatch + 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". + - 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". - - 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. + This field is not 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. - - 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. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 "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/v1.NamedRuleWithOperations" - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - v1.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: "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 - 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 custom resource's group name + in: path + name: group + required: true + schema: type: string - metadata: - $ref: "#/components/schemas/v1.ObjectMeta" - spec: - $ref: "#/components/schemas/v1.MutatingAdmissionPolicySpec" - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicy - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.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" + - description: The custom resource's version + in: path + name: version + 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: The custom resource's namespace + in: path + name: namespace + required: true + schema: type: string - metadata: - $ref: "#/components/schemas/v1.ObjectMeta" - spec: - $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBindingSpec" - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicyBinding - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.MutatingAdmissionPolicyBindingList: - description: MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - shardInfo: - selector: selector - 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" + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: type: string - items: - description: List of PolicyBinding. - items: - $ref: "#/components/schemas/v1.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 - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicyBindingList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.MutatingAdmissionPolicyBindingSpec: - description: MutatingAdmissionPolicyBindingSpec defines 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/v1.MatchResources" - paramRef: - $ref: "#/components/schemas/v1.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." + - 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 - v1.MutatingAdmissionPolicyList: - description: MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - shardInfo: - selector: selector - 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: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from 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 - items: - description: List of ValidatingAdmissionPolicy. - items: - $ref: "#/components/schemas/v1.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" + 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 - metadata: - $ref: "#/components/schemas/v1.ListMeta" - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicyList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.MutatingAdmissionPolicySpec: - description: MutatingAdmissionPolicySpec defines 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. + - description: the custom resource's version + in: path + name: version + 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/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" - 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/v1.Mutation" - type: array - x-kubernetes-list-type: atomic - paramKind: - $ref: "#/components/schemas/v1.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: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + 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/v1.Variable" - type: array - x-kubernetes-list-type: atomic - type: object - 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 custom object's name + 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. - - 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: "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 - name: - description: "name is 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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" - 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". + 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 - 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: the custom resource's version + in: path + name: version + required: true + 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.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" + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + 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: the custom object's name + in: path + name: name + required: true + 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.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 - shardInfo: - selector: selector - 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" + 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 - 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" + - description: the custom resource's version + in: path + name: version + required: true + 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.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/v1.ApplyConfiguration" - jsonPatch: - $ref: "#/components/schemas/v1.JSONPatch" - patchType: - description: patchType indicates the patch strategy used. Allowed values - are "ApplyConfiguration" and "JSONPatch". Required. + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: type: string - required: - - patchType - type: object - 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: the custom object's name + in: path + name: name + required: true + 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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 - 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: + - 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 - 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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 - 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: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. 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 - 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: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from 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 - 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: + 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 - namespace: namespace - properties: - name: - description: name is the name of the service. Required + required: true + schema: type: string - namespace: - description: namespace is the namespace of the service. Required + 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 - path: - description: path is an optional URL path which will be sent in any request - to this service. + - description: the custom resource's version + in: path + name: version + required: true + schema: type: string - port: - description: "port is the port on the service that hosts the 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: expressionWarnings contains 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" + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + 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: the custom object's name + in: path + name: name + required: true + schema: 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" + - 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.\ + \ 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 - metadata: - $ref: "#/components/schemas/v1.ObjectMeta" - spec: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingSpec" - required: - - spec - 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 - shardInfo: - selector: selector - 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" + - 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 - 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: 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 - 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." + - description: the custom resource's version + in: path + name: version + 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. - - 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 - required: - - policyName - - validationActions - type: object - v1.ValidatingAdmissionPolicyList: - description: ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - shardInfo: - selector: selector - 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: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: 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" + - description: the custom object's name + in: path + name: name + required: true + 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. - - Allowed values are Ignore or Fail. Defaults to Fail. + - 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 - 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: 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: observedGeneration is 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 + - 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 - 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. + 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. - - 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" + 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 - name: - description: "name is 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: the custom resource's version + in: path + name: version + required: true + 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: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + 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" - 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: the custom object's name + in: path + name: name + required: true + 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 - 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 - shardInfo: - selector: selector - 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" + - 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 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: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. 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 - 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." + - 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 - 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: 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 - 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: the custom resource's version + in: path + name: version + required: true + 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: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + 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: the custom object's name + 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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 - 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: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. 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 - 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: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from 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 - 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." + 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 - 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." + - description: the custom resource's version + in: path + name: version + required: true + 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/ - - Required. + - description: The custom resource's namespace + in: path + name: namespace + 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: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + 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 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" + - description: the custom object's name + in: path + name: name + required: true + 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 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" + - 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 - 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/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" + 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 - 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 custom resource's version + in: path + name: version + required: true + schema: 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 - shardInfo: - selector: selector - 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" + - description: The custom resource's namespace + in: path + name: namespace + required: true + 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: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: 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." + - description: the custom object's name + 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 - shardInfo: - selector: selector - 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" + 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 - 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: the custom resource's version + in: path + name: version + required: true + schema: 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. + - description: The custom resource's namespace + in: path + name: namespace + 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: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + 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. + - description: the custom object's name + 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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 - 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: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. 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 - 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.\ + \ (optional)" + in: query + name: fieldValidation + 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: - 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. + - 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 - 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: the custom resource's version + in: path + name: version + required: true + 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: The custom resource's namespace + in: path + name: namespace + required: true + 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 + - 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 - 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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 - v1beta1.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: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. 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 - v1beta1.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\ + - 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.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 + 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: "fieldRef is the path to the field that refers to the expression.\ + \ For example, the reference to the expression of the first item of validations\ + \ is \"spec.validations[0].expression\"" + type: string + warning: + description: "warning contains 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.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\ @@ -111002,8 +111255,8 @@ components: \ names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required." type: string type: object - v1beta1.MatchCondition: - description: MatchCondition represents a condition which must be fulfilled for + v1.MatchCondition: + description: MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. example: expression: expression @@ -111031,7 +111284,7 @@ components: - expression - name type: object - v1beta1.MatchResources: + 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)" @@ -111138,7 +111391,7 @@ components: \ take precedence over include rules (if a resource matches both, it is\ \ excluded)" items: - $ref: "#/components/schemas/v1beta1.NamedRuleWithOperations" + $ref: "#/components/schemas/v1.NamedRuleWithOperations" type: array x-kubernetes-list-type: atomic matchPolicy: @@ -111160,12 +111413,12 @@ components: the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. items: - $ref: "#/components/schemas/v1beta1.NamedRuleWithOperations" + $ref: "#/components/schemas/v1.NamedRuleWithOperations" type: array x-kubernetes-list-type: atomic type: object x-kubernetes-map-type: atomic - v1beta1.MutatingAdmissionPolicy: + v1.MutatingAdmissionPolicy: description: MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. example: @@ -111354,15 +111607,15 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicySpec" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicySpec" type: object x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io kind: MutatingAdmissionPolicy - version: v1beta1 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta1.MutatingAdmissionPolicyBinding: + v1.MutatingAdmissionPolicyBinding: description: |- MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. @@ -111548,15 +111801,15 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingSpec" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBindingSpec" type: object x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io kind: MutatingAdmissionPolicyBinding - version: v1beta1 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta1.MutatingAdmissionPolicyBindingList: + v1.MutatingAdmissionPolicyBindingList: description: MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. example: metadata: @@ -111906,7 +112159,7 @@ components: items: description: List of PolicyBinding. items: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -111921,12 +112174,12 @@ components: x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io kind: MutatingAdmissionPolicyBindingList - version: v1beta1 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta1.MutatingAdmissionPolicyBindingSpec: - description: MutatingAdmissionPolicyBindingSpec is the specification of the - MutatingAdmissionPolicyBinding. + v1.MutatingAdmissionPolicyBindingSpec: + description: MutatingAdmissionPolicyBindingSpec defines the specification of + the MutatingAdmissionPolicyBinding. example: paramRef: name: name @@ -112045,9 +112298,9 @@ components: key: matchLabels properties: matchResources: - $ref: "#/components/schemas/v1beta1.MatchResources" + $ref: "#/components/schemas/v1.MatchResources" paramRef: - $ref: "#/components/schemas/v1beta1.ParamRef" + $ref: "#/components/schemas/v1.ParamRef" policyName: description: "policyName references a MutatingAdmissionPolicy name which\ \ the MutatingAdmissionPolicyBinding binds to. If the referenced resource\ @@ -112055,7 +112308,7 @@ components: \ Required." type: string type: object - v1beta1.MutatingAdmissionPolicyList: + v1.MutatingAdmissionPolicyList: description: MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. example: metadata: @@ -112419,7 +112672,7 @@ components: items: description: List of ValidatingAdmissionPolicy. items: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -112434,12 +112687,12 @@ components: x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io kind: MutatingAdmissionPolicyList - version: v1beta1 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta1.MutatingAdmissionPolicySpec: - description: MutatingAdmissionPolicySpec is the specification of the desired - behavior of the admission policy. + v1.MutatingAdmissionPolicySpec: + description: MutatingAdmissionPolicySpec defines the desired behavior of the + admission policy. example: reinvocationPolicy: reinvocationPolicy variables: @@ -112587,7 +112840,7 @@ components: - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped items: - $ref: "#/components/schemas/v1beta1.MatchCondition" + $ref: "#/components/schemas/v1.MatchCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -112595,7 +112848,7 @@ components: - name x-kubernetes-patch-merge-key: name matchConstraints: - $ref: "#/components/schemas/v1beta1.MatchResources" + $ref: "#/components/schemas/v1.MatchResources" mutations: description: "mutations contain operations to perform on matching objects.\ \ mutations may not be empty; a minimum of one mutation is required. mutations\ @@ -112603,11 +112856,11 @@ components: \ 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/v1beta1.Mutation" + $ref: "#/components/schemas/v1.Mutation" type: array x-kubernetes-list-type: atomic paramKind: - $ref: "#/components/schemas/v1beta1.ParamKind" + $ref: "#/components/schemas/v1.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". @@ -112622,129 +112875,21 @@ components: 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-list-type: atomic - type: object - v1beta1.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/v1beta1.ApplyConfiguration" - jsonPatch: - $ref: "#/components/schemas/v1beta1.JSONPatch" - patchType: - description: patchType indicates the patch strategy used. Allowed values - are "ApplyConfiguration" and "JSONPatch". Required. - type: string - required: - - patchType - type: object - 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 + $ref: "#/components/schemas/v1.Variable" 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. + 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 - namespace: namespace - selector: + namespaceSelector: matchExpressions: - values: - values @@ -112758,103 +112903,169 @@ components: operator: operator matchLabels: key: matchLabels - parameterNotFoundAction: parameterNotFoundAction + 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: - name: + 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: |- - 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. + 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. - 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: + 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: |- - 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. + matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. + - 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. - - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. + - 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. - - 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 "Equivalent" type: string - parameterNotFoundAction: + name: + description: "name is 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: |- - 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. + reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - Allowed values are `Allow` or `Deny` + Never: the webhook will not be called more than once in a single admission evaluation. - Required - type: string - selector: - $ref: "#/components/schemas/v1.LabelSelector" - type: object - x-kubernetes-map-type: atomic - 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: apiServerID is the ID of the reporting API server. + 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 - decodableVersions: - description: decodableVersions are the encoding versions the API server - can handle to decode. The API server can decode objects encoded in these - versions. The encodingVersion must be included in the decodableVersions. + 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: - type: string + $ref: "#/components/schemas/v1.RuleWithOperations" type: array - x-kubernetes-list-type: set - encodingVersion: - description: "encodingVersion the API server encodes the object to when\ - \ persisting it in the backend (e.g., etcd)." + 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 - servedVersions: - description: servedVersions lists all versions the API server can serve. - DecodableVersions must include all ServedVersions. - items: - type: string - type: array - x-kubernetes-list-type: set + 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: - - apiServerID - - decodableVersions - - encodingVersion + - admissionReviewVersions + - clientConfig + - name + - sideEffects type: object - v1alpha1.StorageVersion: - description: Storage version of a specific resource. + v1.MutatingWebhookConfiguration: + description: MutatingWebhookConfiguration describes the configuration of and + admission webhook that accept or reject and may change the object. example: metadata: generation: 6 @@ -112903,40 +113114,162 @@ components: 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 - 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\ @@ -112950,63 +113283,26 @@ components: 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: - - metadata + 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: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + - group: admissionregistration.k8s.io + kind: MutatingWebhookConfiguration + version: v1 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: 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 string indicating details about - the transition. - type: string - observedGeneration: - description: "observedGeneration represents the .metadata.generation that\ - \ the condition was set based upon, if field is set." - format: int64 - type: integer - reason: - description: 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. + v1.MutatingWebhookConfigurationList: + description: MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. example: metadata: remainingItemCount: 1 @@ -113065,40 +113361,162 @@ components: 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 - 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: @@ -113146,40 +113564,162 @@ components: 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 - 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\ @@ -113187,9 +113727,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 holds a list of StorageVersion + description: List of MutatingWebhookConfiguration. items: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -113202,84 +113742,289 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: internal.apiserver.k8s.io - kind: StorageVersionList - version: v1alpha1 + - group: admissionregistration.k8s.io + kind: MutatingWebhookConfigurationList + version: v1 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. + v1.Mutation: + description: Mutation specifies the CEL expression which is used to apply the + Mutation. 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 + patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression properties: - commonEncodingVersion: - description: "commonEncodingVersion is set to an encoding storage version\ - \ if all API server instances share that same version. If they don't share\ - \ one storage version, 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." + applyConfiguration: + $ref: "#/components/schemas/v1.ApplyConfiguration" + jsonPatch: + $ref: "#/components/schemas/v1.JSONPatch" + patchType: + description: patchType indicates the patch strategy used. Allowed values + are "ApplyConfiguration" and "JSONPatch". Required. type: string - conditions: - description: conditions lists the latest available observations of the storageVersion's - state. + required: + - patchType + type: object + 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: - $ref: "#/components/schemas/v1alpha1.StorageVersionCondition" + type: string type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - storageVersions: - description: storageVersions lists the reported versions per API server - instance. + 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: - $ref: "#/components/schemas/v1alpha1.ServerStorageVersion" + type: string type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - apiServerID + 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 - 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." + 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: "port is the port on the service that hosts the 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: expressionWarnings contains 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 @@ -113328,19 +114073,159 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: "{}" kind: kind - revision: 0 + 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 - 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\ @@ -113348,23 +114233,218 @@ components: type: string metadata: $ref: "#/components/schemas/v1.ObjectMeta" - revision: - description: Revision indicates the revision of the state represented by - Data. - format: int64 - type: integer + 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" required: - - revision + - spec type: object x-kubernetes-group-version-kind: - - group: apps - kind: ControllerRevision + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBinding version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ControllerRevisionList: - description: ControllerRevisionList is a resource containing a list of ControllerRevision - objects. + v1.ValidatingAdmissionPolicyBindingList: + description: ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. example: metadata: remainingItemCount: 1 @@ -113423,9 +114503,126 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: "{}" kind: kind - revision: 0 + 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: @@ -113473,9 +114670,126 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: "{}" kind: kind - revision: 0 + 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\ @@ -113483,9 +114797,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 ControllerRevisions + description: List of PolicyBinding. items: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -113498,100 +114812,6414 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: apps - kind: ControllerRevisionList + - group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicyBindingList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.DaemonSet: - description: DaemonSet represents the configuration of a daemon set. + v1.ValidatingAdmissionPolicyBindingSpec: + description: ValidatingAdmissionPolicyBindingSpec is the specification of the + ValidatingAdmissionPolicyBinding. 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 + paramRef: 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 + 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 + required: + - policyName + - validationActions + type: object + v1.ValidatingAdmissionPolicyList: + description: ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + 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: 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: observedGeneration is 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: "name is 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 + shardInfo: + selector: selector + 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 + shardInfo: + selector: selector + 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 + shardInfo: + selector: selector + 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.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 + v1beta1.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 + 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.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/v1beta1.MutatingAdmissionPolicySpec" + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicy + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.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/v1beta1.MutatingAdmissionPolicyBindingSpec" + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBinding + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.MutatingAdmissionPolicyBindingList: + description: MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + 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/v1beta1.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: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.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/v1beta1.MatchResources" + paramRef: + $ref: "#/components/schemas/v1beta1.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 + v1beta1.MutatingAdmissionPolicyList: + description: MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + 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/v1beta1.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: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.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/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" + 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/v1beta1.Mutation" + type: array + x-kubernetes-list-type: atomic + paramKind: + $ref: "#/components/schemas/v1beta1.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/v1beta1.Variable" + type: array + x-kubernetes-list-type: atomic + type: object + v1beta1.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/v1beta1.ApplyConfiguration" + jsonPatch: + $ref: "#/components/schemas/v1beta1.JSONPatch" + patchType: + description: patchType indicates the patch strategy used. Allowed values + are "ApplyConfiguration" and "JSONPatch". Required. + type: string + required: + - patchType + type: object + 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.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: apiServerID is the ID of the reporting API server. + type: string + decodableVersions: + description: decodableVersions are the encoding versions the API server + can handle to decode. 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: "encodingVersion the API server encodes the object to when\ + \ persisting it in the backend (e.g., etcd)." + type: string + servedVersions: + description: servedVersions lists all versions the API server can serve. + DecodableVersions must include all ServedVersions. + items: + type: string + type: array + x-kubernetes-list-type: set + required: + - apiServerID + - decodableVersions + - encodingVersion + 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: + - metadata + 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: 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 string indicating details about + the transition. + type: string + observedGeneration: + description: "observedGeneration represents the .metadata.generation that\ + \ the condition was set based upon, if field is set." + format: int64 + type: integer + reason: + description: 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 + shardInfo: + selector: selector + 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: "commonEncodingVersion is set to an encoding storage version\ + \ if all API server instances share that same version. If they don't share\ + \ one storage version, 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: conditions lists 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: storageVersions lists 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: + - data + 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 + shardInfo: + selector: selector + 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 @@ -113605,7 +121233,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -113646,17 +121274,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -113676,12 +121304,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -113703,7 +121331,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -113719,14 +121347,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -113742,7 +121370,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -113854,19 +121482,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -113875,7 +121506,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -113884,39 +121516,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -113935,10 +121574,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -113947,7 +121587,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -113956,39 +121597,424 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 path: path + user: 6 key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + user: 3 + 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 + user: 4 + signerName: signerName + defaultMode: 6 + defaultUser: 0 + 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: + mode: 3 + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 0 + 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 + defaultUser: 5 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + awsElasticBlockStore: + partition: 3 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 7 + 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 + defaultUser: 1 + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + 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: 7 + 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: 7 + defaultUser: 5 + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 - mode: 6 path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + configMap: + name: name + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 8 + keyType: keyType + user: 7 + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -114007,368 +122033,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - defaultMode: 6 - 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: 1 - items: - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 6 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 5 - 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: 3 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - 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: 6 - 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: 7 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - downwardAPI: items: - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - mode: 6 - path: path - key: key - podCertificate: - certificateChainPath: certificateChainPath - userAnnotations: - key: userAnnotations - keyPath: keyPath - maxExpirationSeconds: 3 - keyType: keyType - credentialBundlePath: credentialBundlePath - signerName: signerName - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 3 - 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: 2 path: path resourceFieldRef: divisor: divisor @@ -114377,7 +122046,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -114386,39 +122056,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -114437,8 +122114,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -114462,6 +122141,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -114469,7 +122149,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -114493,9 +122173,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -114504,7 +122185,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -114513,8 +122195,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -114524,7 +122207,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -114549,15 +122232,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -114596,7 +122282,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -114685,10 +122371,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -114712,6 +122400,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -114719,6 +122410,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -114736,6 +122430,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -114756,6 +122451,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -114780,10 +122476,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -114829,10 +122527,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -114977,10 +122677,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115004,6 +122706,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -115011,6 +122716,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -115028,6 +122736,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115048,6 +122757,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115072,10 +122782,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115121,10 +122833,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115204,9 +122918,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -115283,10 +123002,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115310,6 +123031,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -115317,6 +123041,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -115334,6 +123061,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115354,6 +123082,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115378,10 +123107,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115427,10 +123158,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115574,10 +123307,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115601,6 +123336,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -115608,6 +123346,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -115625,6 +123366,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115645,6 +123387,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115669,10 +123412,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115718,10 +123463,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115866,10 +123613,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115893,6 +123642,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -115900,6 +123652,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -115917,6 +123672,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115937,6 +123693,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -115961,10 +123718,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -116010,10 +123769,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -116157,10 +123918,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -116184,6 +123947,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -116191,6 +123957,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -116208,6 +123977,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -116228,6 +123998,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -116252,10 +124023,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -116301,10 +124074,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -116857,6 +124632,8 @@ components: $ref: "#/components/schemas/v1.DaemonSetSpec" status: $ref: "#/components/schemas/v1.DaemonSetStatus" + required: + - spec type: object x-kubernetes-group-version-kind: - group: apps @@ -116890,9 +124667,6 @@ components: type: description: Type of DaemonSet condition. type: string - required: - - status - - type type: object v1.DaemonSetList: description: DaemonSetList is a collection of daemon sets. @@ -117006,7 +124780,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -117047,17 +124821,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -117077,12 +124851,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -117104,7 +124878,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -117120,14 +124894,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -117143,7 +124917,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -117255,19 +125029,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -117276,7 +125053,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -117285,39 +125063,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -117336,10 +125121,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -117348,7 +125134,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -117357,39 +125144,424 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 path: path + user: 6 key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + user: 3 + 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 + user: 4 + signerName: signerName + defaultMode: 6 + defaultUser: 0 + 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: + mode: 3 + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 0 + 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 + defaultUser: 5 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + awsElasticBlockStore: + partition: 3 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 7 + 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 + defaultUser: 1 + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + 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: 7 + 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: 7 + defaultUser: 5 + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 - mode: 6 path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + configMap: + name: name + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 8 + keyType: keyType + user: 7 + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -117408,368 +125580,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - defaultMode: 6 - 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: 1 - items: - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 6 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 5 - 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: 3 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - 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: 6 - 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: 7 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - downwardAPI: items: - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - podCertificate: - certificateChainPath: certificateChainPath - userAnnotations: - key: userAnnotations - keyPath: keyPath - maxExpirationSeconds: 3 - keyType: keyType - credentialBundlePath: credentialBundlePath - signerName: signerName - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 3 - 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: 2 path: path resourceFieldRef: divisor: divisor @@ -117778,7 +125593,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -117787,39 +125603,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -117838,8 +125661,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -117863,6 +125688,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -117870,7 +125696,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -117894,9 +125720,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -117905,7 +125732,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -117914,8 +125742,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -117925,7 +125754,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -117950,15 +125779,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -117997,7 +125829,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -118086,10 +125918,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118113,6 +125947,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -118120,6 +125957,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -118137,6 +125977,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118157,6 +125998,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118181,10 +126023,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118230,10 +126074,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118378,10 +126224,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118405,6 +126253,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -118412,6 +126263,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -118429,6 +126283,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118449,6 +126304,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118473,10 +126329,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118522,10 +126380,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118605,9 +126465,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -118684,10 +126549,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118711,6 +126578,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -118718,6 +126588,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -118735,6 +126608,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118755,6 +126629,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118779,10 +126654,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118828,10 +126705,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -118975,10 +126854,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119002,6 +126883,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -119009,6 +126893,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -119026,6 +126913,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119046,6 +126934,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119070,10 +126959,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119119,10 +127010,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119267,10 +127160,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119294,6 +127189,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -119301,6 +127199,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -119318,6 +127219,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119338,6 +127240,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119362,10 +127265,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119411,10 +127316,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119558,10 +127465,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119585,6 +127494,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -119592,6 +127504,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -119609,6 +127524,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119629,6 +127545,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119653,10 +127570,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -119702,10 +127621,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -120340,7 +128261,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -120381,17 +128302,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -120411,12 +128332,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -120438,7 +128359,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -120454,14 +128375,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -120477,7 +128398,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -120589,19 +128510,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -120610,7 +128534,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -120619,39 +128544,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -120670,10 +128602,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -120682,7 +128615,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -120691,39 +128625,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -120742,8 +128683,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -120767,6 +128710,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -120774,7 +128718,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -120798,9 +128742,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -120809,7 +128754,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -120818,8 +128764,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -120829,7 +128776,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -120854,15 +128801,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -120901,7 +128851,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -121019,19 +128969,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -121040,7 +128993,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -121049,39 +129003,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -121100,10 +129061,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -121112,7 +129074,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -121121,39 +129084,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -121172,8 +129142,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -121197,6 +129169,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -121204,7 +129177,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -121228,9 +129201,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -121239,7 +129213,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -121248,8 +129223,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -121259,7 +129235,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -121284,15 +129260,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -121331,7 +129310,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -121420,10 +129399,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -121447,6 +129428,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -121454,6 +129438,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -121471,6 +129458,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -121491,6 +129479,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -121515,10 +129504,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -121564,10 +129555,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -121712,10 +129705,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -121739,6 +129734,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -121746,6 +129744,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -121763,6 +129764,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -121783,6 +129785,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -121807,10 +129810,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -121856,10 +129861,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -121939,9 +129946,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -122018,10 +130030,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122045,6 +130059,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -122052,6 +130069,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -122069,6 +130089,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122089,6 +130110,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122113,10 +130135,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122162,10 +130186,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122309,10 +130335,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122336,6 +130364,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -122343,6 +130374,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -122360,6 +130394,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122380,6 +130415,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122404,10 +130440,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122453,10 +130491,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122601,10 +130641,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122628,6 +130670,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -122635,6 +130680,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -122652,6 +130700,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122672,6 +130721,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122696,10 +130746,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122745,10 +130797,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122892,10 +130946,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122919,6 +130975,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -122926,6 +130985,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -122943,6 +131005,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122963,6 +131026,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -122987,10 +131051,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -123036,10 +131102,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -123655,7 +131723,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -123696,17 +131764,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -123726,12 +131794,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -123753,7 +131821,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -123769,14 +131837,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -123792,7 +131860,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -123904,19 +131972,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -123925,7 +131996,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -123934,39 +132006,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -123985,10 +132064,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -123997,7 +132077,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -124006,39 +132087,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -124057,8 +132145,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -124082,6 +132172,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -124089,7 +132180,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -124113,9 +132204,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -124124,7 +132216,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -124133,8 +132226,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -124144,7 +132238,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -124169,15 +132263,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -124216,7 +132313,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -124334,19 +132431,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -124355,7 +132455,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -124364,39 +132465,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -124415,10 +132523,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -124427,7 +132536,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -124436,39 +132546,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -124487,8 +132604,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -124512,6 +132631,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -124519,7 +132639,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -124543,9 +132663,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -124554,7 +132675,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -124563,8 +132685,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -124574,7 +132697,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -124599,15 +132722,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -124646,7 +132772,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -124735,10 +132861,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -124762,6 +132890,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -124769,6 +132900,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -124786,6 +132920,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -124806,6 +132941,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -124830,10 +132966,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -124879,10 +133017,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125027,10 +133167,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125054,6 +133196,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -125061,6 +133206,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -125078,6 +133226,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125098,6 +133247,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125122,10 +133272,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125171,10 +133323,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125254,9 +133408,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -125333,10 +133492,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125360,6 +133521,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -125367,6 +133531,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -125384,6 +133551,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125404,6 +133572,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125428,10 +133597,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125477,10 +133648,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125624,10 +133797,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125651,6 +133826,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -125658,6 +133836,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -125675,6 +133856,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125695,6 +133877,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125719,10 +133902,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125768,10 +133953,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125916,10 +134103,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125943,6 +134132,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -125950,6 +134142,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -125967,6 +134162,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -125987,6 +134183,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -126011,10 +134208,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -126060,10 +134259,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -126207,10 +134408,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -126234,6 +134437,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -126241,6 +134447,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -126258,6 +134467,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -126278,6 +134488,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -126302,10 +134513,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -126351,10 +134564,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -127099,7 +135314,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -127140,17 +135355,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -127170,12 +135385,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -127197,7 +135412,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -127213,14 +135428,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -127236,7 +135451,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -127348,19 +135563,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -127369,7 +135587,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -127378,39 +135597,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -127429,10 +135655,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -127441,7 +135668,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -127450,39 +135678,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -127501,8 +135736,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -127526,6 +135763,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -127533,7 +135771,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -127557,9 +135795,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -127568,7 +135807,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -127577,8 +135817,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -127588,7 +135829,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -127613,15 +135854,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -127660,7 +135904,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -127778,19 +136022,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -127799,7 +136046,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -127808,39 +136056,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -127859,10 +136114,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -127871,7 +136127,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -127880,39 +136137,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -127931,8 +136195,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -127956,6 +136222,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -127963,7 +136230,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -127987,9 +136254,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -127998,7 +136266,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -128007,8 +136276,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -128018,7 +136288,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -128043,15 +136313,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -128090,7 +136363,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -128179,10 +136452,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128206,6 +136481,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -128213,6 +136491,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -128230,6 +136511,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128250,6 +136532,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128274,10 +136557,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128323,10 +136608,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128471,10 +136758,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128498,6 +136787,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -128505,6 +136797,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -128522,6 +136817,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128542,6 +136838,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128566,10 +136863,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128615,10 +136914,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128698,9 +136999,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -128777,10 +137083,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128804,6 +137112,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -128811,6 +137122,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -128828,6 +137142,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128848,6 +137163,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128872,10 +137188,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -128921,10 +137239,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129068,10 +137388,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129095,6 +137417,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -129102,6 +137427,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -129119,6 +137447,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129139,6 +137468,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129163,10 +137493,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129212,10 +137544,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129360,10 +137694,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129387,6 +137723,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -129394,6 +137733,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -129411,6 +137753,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129431,6 +137774,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129455,10 +137799,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129504,10 +137850,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129651,10 +137999,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129678,6 +138028,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -129685,6 +138038,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -129702,6 +138058,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129722,6 +138079,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129746,10 +138104,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -129795,10 +138155,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -130355,6 +138717,8 @@ components: $ref: "#/components/schemas/v1.DeploymentSpec" status: $ref: "#/components/schemas/v1.DeploymentStatus" + required: + - spec type: object x-kubernetes-group-version-kind: - group: apps @@ -130393,9 +138757,6 @@ components: type: description: Type of deployment condition. type: string - required: - - status - - type type: object v1.DeploymentList: description: DeploymentList is a list of Deployments. @@ -130509,7 +138870,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -130550,17 +138911,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -130580,12 +138941,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -130607,7 +138968,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -130623,14 +138984,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -130646,7 +139007,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -130758,19 +139119,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -130779,7 +139143,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -130788,39 +139153,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -130839,10 +139211,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -130851,7 +139224,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -130860,39 +139234,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -130911,8 +139292,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -130936,6 +139319,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -130943,7 +139327,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -130967,9 +139351,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -130978,7 +139363,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -130987,8 +139373,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -130998,7 +139385,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -131023,15 +139410,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -131070,7 +139460,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -131188,19 +139578,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -131209,7 +139602,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -131218,39 +139612,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -131269,10 +139670,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -131281,7 +139683,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -131290,39 +139693,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -131341,8 +139751,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -131366,6 +139778,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -131373,7 +139786,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -131397,9 +139810,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -131408,7 +139822,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -131417,8 +139832,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -131428,7 +139844,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -131453,15 +139869,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -131500,7 +139919,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -131589,10 +140008,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -131616,6 +140037,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -131623,6 +140047,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -131640,6 +140067,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -131660,6 +140088,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -131684,10 +140113,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -131733,10 +140164,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -131881,10 +140314,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -131908,6 +140343,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -131915,6 +140353,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -131932,6 +140373,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -131952,6 +140394,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -131976,10 +140419,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132025,10 +140470,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132108,9 +140555,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -132187,10 +140639,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132214,6 +140668,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -132221,6 +140678,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -132238,6 +140698,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132258,6 +140719,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132282,10 +140744,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132331,10 +140795,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132478,10 +140944,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132505,6 +140973,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -132512,6 +140983,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -132529,6 +141003,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132549,6 +141024,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132573,10 +141049,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132622,10 +141100,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132770,10 +141250,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132797,6 +141279,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -132804,6 +141289,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -132821,6 +141309,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132841,6 +141330,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132865,10 +141355,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -132914,10 +141406,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -133061,10 +141555,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -133088,6 +141584,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -133095,6 +141594,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -133112,6 +141614,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -133132,6 +141635,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -133156,10 +141660,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -133205,10 +141711,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -133847,7 +142355,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -133888,17 +142396,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -133918,12 +142426,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -133945,7 +142453,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -133961,14 +142469,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -133984,7 +142492,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -134096,19 +142604,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -134117,7 +142628,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -134126,39 +142638,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -134177,10 +142696,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -134189,7 +142709,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -134198,39 +142719,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -134249,8 +142777,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -134274,6 +142804,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -134281,7 +142812,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -134305,9 +142836,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -134316,7 +142848,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -134325,8 +142858,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -134336,7 +142870,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -134361,15 +142895,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -134408,7 +142945,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -134526,19 +143063,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -134547,7 +143087,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -134556,39 +143097,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -134607,10 +143155,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -134619,7 +143168,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -134628,39 +143178,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -134679,8 +143236,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -134704,6 +143263,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -134711,7 +143271,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -134735,9 +143295,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -134746,7 +143307,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -134755,8 +143317,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -134766,7 +143329,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -134791,15 +143354,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -134838,7 +143404,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -134927,10 +143493,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -134954,6 +143522,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -134961,6 +143532,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -134978,6 +143552,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -134998,6 +143573,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135022,10 +143598,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135071,10 +143649,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135219,10 +143799,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135246,6 +143828,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -135253,6 +143838,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -135270,6 +143858,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135290,6 +143879,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135314,10 +143904,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135363,10 +143955,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135446,9 +144040,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -135525,10 +144124,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135552,6 +144153,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -135559,6 +144163,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -135576,6 +144183,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135596,6 +144204,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135620,10 +144229,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135669,10 +144280,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135816,10 +144429,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135843,6 +144458,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -135850,6 +144468,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -135867,6 +144488,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135887,6 +144509,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135911,10 +144534,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -135960,10 +144585,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -136108,10 +144735,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -136135,6 +144764,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -136142,6 +144774,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -136159,6 +144794,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -136179,6 +144815,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -136203,10 +144840,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -136252,10 +144891,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -136399,10 +145040,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -136426,6 +145069,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -136433,6 +145079,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -136450,6 +145099,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -136470,6 +145120,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -136494,10 +145145,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -136543,10 +145196,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -137167,7 +145822,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -137208,17 +145863,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -137238,12 +145893,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -137265,7 +145920,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -137281,14 +145936,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -137304,7 +145959,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -137416,19 +146071,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -137437,7 +146095,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -137446,39 +146105,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -137497,10 +146163,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -137509,7 +146176,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -137518,39 +146186,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -137569,8 +146244,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -137594,6 +146271,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -137601,7 +146279,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -137625,9 +146303,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -137636,7 +146315,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -137645,8 +146325,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -137656,7 +146337,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -137681,15 +146362,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -137728,7 +146412,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -137846,19 +146530,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -137867,7 +146554,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -137876,39 +146564,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -137927,10 +146622,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -137939,7 +146635,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -137948,39 +146645,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -137999,8 +146703,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -138024,6 +146730,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -138031,7 +146738,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -138055,9 +146762,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -138066,7 +146774,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -138075,8 +146784,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -138086,7 +146796,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -138111,15 +146821,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -138158,7 +146871,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -138247,10 +146960,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138274,6 +146989,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -138281,6 +146999,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -138298,6 +147019,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138318,6 +147040,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138342,10 +147065,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138391,10 +147116,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138539,10 +147266,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138566,6 +147295,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -138573,6 +147305,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -138590,6 +147325,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138610,6 +147346,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138634,10 +147371,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138683,10 +147422,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138766,9 +147507,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -138845,10 +147591,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138872,6 +147620,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -138879,6 +147630,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -138896,6 +147650,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138916,6 +147671,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138940,10 +147696,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -138989,10 +147747,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139136,10 +147896,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139163,6 +147925,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -139170,6 +147935,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -139187,6 +147955,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139207,6 +147976,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139231,10 +148001,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139280,10 +148052,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139428,10 +148202,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139455,6 +148231,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -139462,6 +148241,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -139479,6 +148261,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139499,6 +148282,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139523,10 +148307,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139572,10 +148358,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139719,10 +148507,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139746,6 +148536,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -139753,6 +148546,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -139770,6 +148566,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139790,6 +148587,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139814,10 +148612,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -139863,10 +148663,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -140624,7 +149426,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -140665,17 +149467,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -140695,12 +149497,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -140722,7 +149524,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -140738,14 +149540,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -140761,7 +149563,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -140873,19 +149675,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -140894,7 +149699,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -140903,39 +149709,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -140954,10 +149767,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -140966,7 +149780,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -140975,39 +149790,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -141026,8 +149848,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -141051,6 +149875,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -141058,7 +149883,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -141082,9 +149907,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -141093,7 +149919,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -141102,8 +149929,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -141113,7 +149941,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -141138,15 +149966,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -141185,7 +150016,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -141303,19 +150134,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -141324,7 +150158,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -141333,39 +150168,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -141384,10 +150226,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -141396,7 +150239,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -141405,39 +150249,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -141456,8 +150307,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -141481,6 +150334,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -141488,7 +150342,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -141512,9 +150366,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -141523,7 +150378,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -141532,8 +150388,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -141543,7 +150400,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -141568,15 +150425,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -141615,7 +150475,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -141704,10 +150564,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -141731,6 +150593,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -141738,6 +150603,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -141755,6 +150623,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -141775,6 +150644,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -141799,10 +150669,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -141848,10 +150720,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -141996,10 +150870,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142023,6 +150899,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -142030,6 +150909,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -142047,6 +150929,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142067,6 +150950,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142091,10 +150975,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142140,10 +151026,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142223,9 +151111,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -142302,10 +151195,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142329,6 +151224,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -142336,6 +151234,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -142353,6 +151254,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142373,6 +151275,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142397,10 +151300,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142446,10 +151351,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142593,10 +151500,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142620,6 +151529,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -142627,6 +151539,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -142644,6 +151559,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142664,6 +151580,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142688,10 +151605,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142737,10 +151656,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142885,10 +151806,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142912,6 +151835,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -142919,6 +151845,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -142936,6 +151865,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142956,6 +151886,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -142980,10 +151911,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -143029,10 +151962,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -143176,10 +152111,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -143203,6 +152140,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -143210,6 +152150,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -143227,6 +152170,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -143247,6 +152191,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -143271,10 +152216,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -143320,10 +152267,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -143868,6 +152817,8 @@ components: $ref: "#/components/schemas/v1.ReplicaSetSpec" status: $ref: "#/components/schemas/v1.ReplicaSetStatus" + required: + - spec type: object x-kubernetes-group-version-kind: - group: apps @@ -143902,9 +152853,6 @@ components: type: description: Type of replica set condition. type: string - required: - - status - - type type: object v1.ReplicaSetList: description: ReplicaSetList is a collection of ReplicaSets. @@ -144018,7 +152966,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -144059,17 +153007,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -144089,12 +153037,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -144116,7 +153064,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -144132,14 +153080,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -144155,7 +153103,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -144267,19 +153215,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -144288,7 +153239,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -144297,39 +153249,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -144348,10 +153307,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -144360,7 +153320,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -144369,39 +153330,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -144420,8 +153388,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -144445,6 +153415,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -144452,7 +153423,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -144476,9 +153447,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -144487,7 +153459,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -144496,8 +153469,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -144507,7 +153481,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -144532,15 +153506,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -144579,7 +153556,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -144697,19 +153674,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -144718,7 +153698,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -144727,39 +153708,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -144778,10 +153766,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -144790,7 +153779,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -144799,39 +153789,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -144850,8 +153847,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -144875,6 +153874,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -144882,7 +153882,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -144906,9 +153906,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -144917,7 +153918,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -144926,8 +153928,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -144937,7 +153940,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -144962,15 +153965,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -145009,7 +154015,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -145098,10 +154104,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145125,6 +154133,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -145132,6 +154143,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -145149,6 +154163,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145169,6 +154184,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145193,10 +154209,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145242,10 +154260,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145390,10 +154410,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145417,6 +154439,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -145424,6 +154449,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -145441,6 +154469,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145461,6 +154490,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145485,10 +154515,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145534,10 +154566,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145617,9 +154651,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -145696,10 +154735,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145723,6 +154764,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -145730,6 +154774,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -145747,6 +154794,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145767,6 +154815,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145791,10 +154840,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145840,10 +154891,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -145987,10 +155040,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146014,6 +155069,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -146021,6 +155079,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -146038,6 +155099,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146058,6 +155120,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146082,10 +155145,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146131,10 +155196,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146279,10 +155346,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146306,6 +155375,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -146313,6 +155385,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -146330,6 +155405,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146350,6 +155426,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146374,10 +155451,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146423,10 +155502,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146570,10 +155651,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146597,6 +155680,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -146604,6 +155690,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -146621,6 +155710,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146641,6 +155731,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146665,10 +155756,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -146714,10 +155807,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -147344,7 +156439,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -147385,17 +156480,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -147415,12 +156510,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -147442,7 +156537,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -147458,14 +156553,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -147481,7 +156576,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -147593,19 +156688,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -147614,7 +156712,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -147623,39 +156722,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -147674,10 +156780,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -147686,7 +156793,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -147695,39 +156803,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -147746,8 +156861,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -147771,6 +156888,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -147778,7 +156896,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -147802,9 +156920,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -147813,7 +156932,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -147822,8 +156942,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -147833,7 +156954,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -147858,15 +156979,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -147905,7 +157029,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -148023,19 +157147,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -148044,7 +157171,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -148053,39 +157181,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -148104,10 +157239,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -148116,7 +157252,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -148125,39 +157262,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -148176,8 +157320,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -148201,6 +157347,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -148208,7 +157355,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -148232,9 +157379,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -148243,7 +157391,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -148252,8 +157401,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -148263,7 +157413,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -148288,15 +157438,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -148335,7 +157488,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -148424,10 +157577,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -148451,6 +157606,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -148458,6 +157616,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -148475,6 +157636,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -148495,6 +157657,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -148519,10 +157682,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -148568,10 +157733,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -148716,10 +157883,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -148743,6 +157912,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -148750,6 +157922,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -148767,6 +157942,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -148787,6 +157963,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -148811,10 +157988,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -148860,10 +158039,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -148943,9 +158124,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -149022,10 +158208,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149049,6 +158237,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -149056,6 +158247,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -149073,6 +158267,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149093,6 +158288,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149117,10 +158313,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149166,10 +158364,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149313,10 +158513,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149340,6 +158542,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -149347,6 +158552,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -149364,6 +158572,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149384,6 +158593,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149408,10 +158618,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149457,10 +158669,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149605,10 +158819,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149632,6 +158848,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -149639,6 +158858,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -149656,6 +158878,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149676,6 +158899,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149700,10 +158924,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149749,10 +158975,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149896,10 +159124,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149923,6 +159153,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -149930,6 +159163,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -149947,6 +159183,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149967,6 +159204,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -149991,10 +159229,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -150040,10 +159280,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -150651,7 +159893,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -150692,17 +159934,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -150722,12 +159964,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -150749,7 +159991,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -150765,14 +160007,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -150788,7 +160030,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -150900,19 +160142,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -150921,7 +160166,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -150930,39 +160176,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -150981,10 +160234,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -150993,7 +160247,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -151002,39 +160257,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -151053,8 +160315,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -151078,6 +160342,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -151085,7 +160350,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -151109,9 +160374,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -151120,7 +160386,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -151129,8 +160396,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -151140,7 +160408,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -151165,15 +160433,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -151212,7 +160483,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -151330,19 +160601,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -151351,7 +160625,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -151360,39 +160635,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -151411,10 +160693,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -151423,7 +160706,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -151432,39 +160716,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -151483,8 +160774,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -151508,6 +160801,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -151515,7 +160809,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -151539,9 +160833,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -151550,7 +160845,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -151559,8 +160855,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -151570,7 +160867,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -151595,15 +160892,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -151642,7 +160942,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -151731,10 +161031,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -151758,6 +161060,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -151765,6 +161070,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -151782,6 +161090,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -151802,6 +161111,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -151826,10 +161136,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -151875,10 +161187,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152023,10 +161337,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152050,6 +161366,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -152057,6 +161376,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -152074,6 +161396,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152094,6 +161417,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152118,10 +161442,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152167,10 +161493,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152250,9 +161578,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -152329,10 +161662,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152356,6 +161691,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -152363,6 +161701,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -152380,6 +161721,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152400,6 +161742,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152424,10 +161767,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152473,10 +161818,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152620,10 +161967,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152647,6 +161996,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -152654,6 +162006,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -152671,6 +162026,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152691,6 +162047,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152715,10 +162072,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152764,10 +162123,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152912,10 +162273,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152939,6 +162302,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -152946,6 +162312,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -152963,6 +162332,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -152983,6 +162353,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -153007,10 +162378,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -153056,10 +162429,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -153203,10 +162578,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -153230,6 +162607,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -153237,6 +162617,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -153254,6 +162637,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -153274,6 +162658,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -153298,10 +162683,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -153347,10 +162734,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -154120,7 +163509,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -154161,17 +163550,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -154191,12 +163580,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -154218,7 +163607,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -154234,14 +163623,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -154257,7 +163646,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -154369,19 +163758,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -154390,7 +163782,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -154399,39 +163792,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -154450,10 +163850,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -154462,7 +163863,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -154471,39 +163873,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -154522,8 +163931,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -154547,6 +163958,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -154554,7 +163966,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -154578,9 +163990,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -154589,7 +164002,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -154598,8 +164012,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -154609,7 +164024,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -154634,15 +164049,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -154681,7 +164099,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -154799,19 +164217,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -154820,7 +164241,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -154829,39 +164251,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -154880,10 +164309,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -154892,7 +164322,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -154901,39 +164332,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -154952,8 +164390,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -154977,6 +164417,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -154984,7 +164425,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -155008,9 +164449,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -155019,7 +164461,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -155028,8 +164471,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -155039,7 +164483,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -155064,15 +164508,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -155111,7 +164558,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -155200,10 +164647,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155227,6 +164676,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -155234,6 +164686,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -155251,6 +164706,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155271,6 +164727,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155295,10 +164752,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155344,10 +164803,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155492,10 +164953,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155519,6 +164982,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -155526,6 +164992,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -155543,6 +165012,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155563,6 +165033,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155587,10 +165058,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155636,10 +165109,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155719,9 +165194,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -155798,10 +165278,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155825,6 +165307,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -155832,6 +165317,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -155849,6 +165337,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155869,6 +165358,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155893,10 +165383,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -155942,10 +165434,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156089,10 +165583,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156116,6 +165612,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -156123,6 +165622,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -156140,6 +165642,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156160,6 +165663,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156184,10 +165688,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156233,10 +165739,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156381,10 +165889,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156408,6 +165918,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -156415,6 +165928,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -156432,6 +165948,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156452,6 +165969,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156476,10 +165994,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156525,10 +166045,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156672,10 +166194,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156699,6 +166223,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -156706,6 +166233,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -156723,6 +166253,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156743,6 +166274,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156767,10 +166299,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -156816,10 +166350,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -157432,6 +166968,15 @@ components: allocatedResources: key: null currentVolumeAttributesClassName: currentVolumeAttributesClassName + healthStatus: + healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -157544,6 +167089,15 @@ components: allocatedResources: key: null currentVolumeAttributesClassName: currentVolumeAttributesClassName + healthStatus: + healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -157605,6 +167159,8 @@ components: $ref: "#/components/schemas/v1.StatefulSetSpec" status: $ref: "#/components/schemas/v1.StatefulSetStatus" + required: + - spec type: object x-kubernetes-group-version-kind: - group: apps @@ -157638,9 +167194,6 @@ components: type: description: Type of statefulset condition. type: string - required: - - status - - type type: object v1.StatefulSetList: description: StatefulSetList is a collection of StatefulSets. @@ -157754,7 +167307,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -157795,17 +167348,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -157825,12 +167378,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -157852,7 +167405,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -157868,14 +167421,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -157891,7 +167444,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -158003,19 +167556,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -158024,7 +167580,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -158033,39 +167590,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -158084,10 +167648,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -158096,7 +167661,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -158105,39 +167671,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -158156,8 +167729,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -158181,6 +167756,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -158188,7 +167764,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -158212,9 +167788,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -158223,7 +167800,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -158232,8 +167810,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -158243,7 +167822,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -158268,15 +167847,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -158315,7 +167897,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -158433,19 +168015,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -158454,7 +168039,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -158463,39 +168049,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -158514,10 +168107,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -158526,7 +168120,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -158535,39 +168130,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -158586,8 +168188,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -158611,6 +168215,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -158618,7 +168223,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -158642,9 +168247,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -158653,7 +168259,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -158662,8 +168269,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -158673,7 +168281,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -158698,15 +168306,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -158745,7 +168356,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -158834,10 +168445,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -158861,6 +168474,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -158868,6 +168484,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -158885,6 +168504,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -158905,6 +168525,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -158929,10 +168550,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -158978,10 +168601,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159126,10 +168751,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159153,6 +168780,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -159160,6 +168790,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -159177,6 +168810,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159197,6 +168831,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159221,10 +168856,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159270,10 +168907,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159353,9 +168992,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -159432,10 +169076,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159459,6 +169105,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -159466,6 +169115,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -159483,6 +169135,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159503,6 +169156,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159527,10 +169181,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159576,10 +169232,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159723,10 +169381,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159750,6 +169410,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -159757,6 +169420,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -159774,6 +169440,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159794,6 +169461,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159818,10 +169486,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -159867,10 +169537,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -160015,10 +169687,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -160042,6 +169716,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -160049,6 +169726,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -160066,6 +169746,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -160086,6 +169767,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -160110,10 +169792,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -160159,10 +169843,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -160306,10 +169992,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -160333,6 +170021,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -160340,6 +170031,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -160357,6 +170051,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -160377,6 +170072,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -160401,10 +170097,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -160450,10 +170148,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -161066,6 +170766,15 @@ components: allocatedResources: key: null currentVolumeAttributesClassName: currentVolumeAttributesClassName + healthStatus: + healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -161178,6 +170887,15 @@ components: allocatedResources: key: null currentVolumeAttributesClassName: currentVolumeAttributesClassName + healthStatus: + healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -161321,7 +171039,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -161362,17 +171080,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -161392,12 +171110,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -161419,7 +171137,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -161435,14 +171153,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -161458,7 +171176,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -161570,19 +171288,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -161591,7 +171312,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -161600,39 +171322,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -161651,10 +171380,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -161663,7 +171393,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -161672,39 +171403,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -161723,8 +171461,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -161748,6 +171488,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -161755,7 +171496,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -161779,9 +171520,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -161790,7 +171532,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -161799,8 +171542,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -161810,7 +171554,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -161835,15 +171579,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -161882,7 +171629,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -162000,19 +171747,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -162021,7 +171771,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -162030,39 +171781,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -162081,10 +171839,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -162093,7 +171852,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -162102,39 +171862,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -162153,8 +171920,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -162178,6 +171947,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -162185,7 +171955,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -162209,9 +171979,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -162220,7 +171991,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -162229,8 +172001,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -162240,7 +172013,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -162265,15 +172038,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -162312,7 +172088,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -162401,10 +172177,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -162428,6 +172206,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -162435,6 +172216,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -162452,6 +172236,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -162472,6 +172257,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -162496,10 +172282,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -162545,10 +172333,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -162693,10 +172483,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -162720,6 +172512,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -162727,6 +172522,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -162744,6 +172542,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -162764,6 +172563,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -162788,10 +172588,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -162837,10 +172639,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -162920,9 +172724,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -162999,10 +172808,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163026,6 +172837,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -163033,6 +172847,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -163050,6 +172867,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163070,6 +172888,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163094,10 +172913,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163143,10 +172964,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163290,10 +173113,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163317,6 +173142,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -163324,6 +173152,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -163341,6 +173172,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163361,6 +173193,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163385,10 +173218,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163434,10 +173269,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163582,10 +173419,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163609,6 +173448,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -163616,6 +173458,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -163633,6 +173478,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163653,6 +173499,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163677,10 +173524,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163726,10 +173575,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163873,10 +173724,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163900,6 +173753,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -163907,6 +173763,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -163924,6 +173783,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163944,6 +173804,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -163968,10 +173829,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -164017,10 +173880,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -164633,6 +174498,15 @@ components: allocatedResources: key: null currentVolumeAttributesClassName: currentVolumeAttributesClassName + healthStatus: + healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -164745,6 +174619,15 @@ components: allocatedResources: key: null currentVolumeAttributesClassName: currentVolumeAttributesClassName + healthStatus: + healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -164905,7 +174788,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -164946,17 +174829,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -164976,12 +174859,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -165003,7 +174886,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -165019,14 +174902,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -165042,7 +174925,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -165154,19 +175037,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -165175,7 +175061,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -165184,39 +175071,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -165235,10 +175129,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -165247,7 +175142,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -165256,39 +175152,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -165307,8 +175210,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -165332,6 +175237,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -165339,7 +175245,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -165363,9 +175269,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -165374,7 +175281,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -165383,8 +175291,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -165394,7 +175303,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -165419,15 +175328,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -165466,7 +175378,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -165584,19 +175496,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -165605,7 +175520,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -165614,39 +175530,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -165665,10 +175588,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -165677,7 +175601,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -165686,39 +175611,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -165737,8 +175669,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -165762,6 +175696,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -165769,7 +175704,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -165793,9 +175728,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -165804,7 +175740,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -165813,8 +175750,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -165824,7 +175762,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -165849,15 +175787,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -165896,7 +175837,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -165985,10 +175926,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166012,6 +175955,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -166019,6 +175965,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -166036,6 +175985,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166056,6 +176006,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166080,10 +176031,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166129,10 +176082,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166277,10 +176232,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166304,6 +176261,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -166311,6 +176271,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -166328,6 +176291,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166348,6 +176312,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166372,10 +176337,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166421,10 +176388,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166504,9 +176473,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -166583,10 +176557,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166610,6 +176586,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -166617,6 +176596,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -166634,6 +176616,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166654,6 +176637,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166678,10 +176662,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166727,10 +176713,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166874,10 +176862,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166901,6 +176891,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -166908,6 +176901,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -166925,6 +176921,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166945,6 +176942,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -166969,10 +176967,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -167018,10 +177018,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -167166,10 +177168,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -167193,6 +177197,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -167200,6 +177207,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -167217,6 +177227,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -167237,6 +177248,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -167261,10 +177273,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -167310,10 +177324,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -167457,10 +177473,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -167484,6 +177502,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -167491,6 +177512,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -167508,6 +177532,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -167528,6 +177553,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -167552,10 +177578,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -167601,10 +177629,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -168217,6 +178247,15 @@ components: allocatedResources: key: null currentVolumeAttributesClassName: currentVolumeAttributesClassName + healthStatus: + healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -168329,6 +178368,15 @@ components: allocatedResources: key: null currentVolumeAttributesClassName: currentVolumeAttributesClassName + healthStatus: + healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -168529,7 +178577,8 @@ components: description: apiVersion is API version of the referent. type: string kind: - description: kind of the referent. Valid kinds are 'Pod' and 'Secret'. + description: "kind of the referent. Valid kinds are 'Pod', 'Secret', 'Node',\ + \ 'ValidatingWebhookConfiguration', and 'MutatingWebhookConfiguration'." type: string name: description: name of the referent. @@ -168702,6 +178751,10 @@ components: kind: kind name: name expirationSeconds: 0 + attestations: + key: + - attestations + - attestations audiences: - audiences - audiences @@ -168742,10 +178795,25 @@ components: kind: kind name: name expirationSeconds: 0 + attestations: + key: + - attestations + - attestations audiences: - audiences - audiences properties: + attestations: + additionalProperties: + items: + type: string + type: array + description: "attestations is a map of well-known keys to string-slice values.\ + \ The values for each key have a specific semantic meaning, which is documented\ + \ on the key definition. Requesters of tokens may ask the Kubernetes API\ + \ Server to attest to certain claims. The API Server may perform authorization\ + \ checks depending on the key of this map." + type: object 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\ @@ -170511,7 +180579,7 @@ components: container: container current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name properties: @@ -170591,7 +180659,7 @@ components: example: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -170651,7 +180719,7 @@ components: 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 the beta HPAConfigurableTolerance feature gate to be enabled.) + The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. example: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -170983,26 +181051,28 @@ components: kind: kind name: name status: - desiredReplicas: 3 - currentReplicas: 9 + desiredReplicas: 2 + currentReplicas: 3 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 7 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 7 status: status lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 2 + observedGeneration: 4 currentMetrics: - external: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -171023,20 +181093,20 @@ components: resource: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name containerResource: container: container current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name pods: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -171062,7 +181132,7 @@ components: name: name current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -171083,7 +181153,7 @@ components: - external: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -171104,20 +181174,20 @@ components: resource: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name containerResource: container: container current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name pods: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -171143,7 +181213,7 @@ components: name: name current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -171228,6 +181298,7 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 7 status: status properties: lastTransitionTime: @@ -171239,6 +181310,14 @@ components: description: message is a human-readable explanation containing details about the transition type: string + observedGeneration: + description: "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." + format: int64 + type: integer reason: description: reason is the reason for the condition's last transition. type: string @@ -171518,26 +181597,28 @@ components: kind: kind name: name status: - desiredReplicas: 3 - currentReplicas: 9 + desiredReplicas: 2 + currentReplicas: 3 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 7 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 7 status: status lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 2 + observedGeneration: 4 currentMetrics: - external: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -171558,20 +181639,20 @@ components: resource: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name containerResource: container: container current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name pods: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -171597,7 +181678,7 @@ components: name: name current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -171618,7 +181699,7 @@ components: - external: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -171639,20 +181720,20 @@ components: resource: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name containerResource: container: container current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name pods: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -171678,7 +181759,7 @@ components: name: name current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -171948,26 +182029,28 @@ components: kind: kind name: name status: - desiredReplicas: 3 - currentReplicas: 9 + desiredReplicas: 2 + currentReplicas: 3 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 7 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 7 status: status lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 2 + observedGeneration: 4 currentMetrics: - external: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -171988,20 +182071,20 @@ components: resource: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name containerResource: container: container current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name pods: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172027,7 +182110,7 @@ components: name: name current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172048,7 +182131,7 @@ components: - external: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172069,20 +182152,20 @@ components: resource: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name containerResource: container: container current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name pods: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172108,7 +182191,7 @@ components: name: name current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172398,26 +182481,28 @@ components: description: HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. example: - desiredReplicas: 3 - currentReplicas: 9 + desiredReplicas: 2 + currentReplicas: 3 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 7 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 7 status: status lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 2 + observedGeneration: 4 currentMetrics: - external: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172438,20 +182523,20 @@ components: resource: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name containerResource: container: container current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name pods: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172477,7 +182562,7 @@ components: name: name current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172498,7 +182583,7 @@ components: - external: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172519,20 +182604,20 @@ components: resource: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name containerResource: container: container current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name pods: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172558,7 +182643,7 @@ components: name: name current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172763,7 +182848,7 @@ components: external: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172784,20 +182869,20 @@ components: resource: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name containerResource: container: container current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name pods: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172823,7 +182908,7 @@ components: name: name current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -172963,12 +183048,12 @@ components: description: MetricValueStatus holds the current value for a metric example: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value properties: averageUtilization: - description: "currentAverageUtilization is the current value of the average\ - \ of the resource metric across all relevant pods, represented as a percentage\ + description: "averageUtilization is the current value of the average of\ + \ the resource metric across all relevant pods, represented as a percentage\ \ of the requested value of the resource for the pods." format: int32 type: integer @@ -173100,7 +183185,7 @@ components: name: name current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -173172,7 +183257,7 @@ components: example: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value metric: name: name @@ -173233,7 +183318,7 @@ components: example: current: averageValue: averageValue - averageUtilization: 7 + averageUtilization: 9 value: value name: name properties: @@ -173399,7 +183484,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -173440,17 +183525,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -173470,12 +183555,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -173497,7 +183582,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -173513,14 +183598,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -173536,7 +183621,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -173648,19 +183733,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -173669,7 +183757,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -173678,39 +183767,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -173729,10 +183825,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -173741,7 +183838,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -173750,39 +183848,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -173801,8 +183906,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -173826,6 +183933,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -173833,7 +183941,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -173857,9 +183965,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -173868,7 +183977,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -173877,8 +183987,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -173888,7 +183999,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -173913,15 +184024,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -173960,7 +184074,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -174078,19 +184192,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -174099,7 +184216,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -174108,39 +184226,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -174159,10 +184284,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -174171,7 +184297,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -174180,39 +184307,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -174231,8 +184365,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -174256,6 +184392,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -174263,7 +184400,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -174287,9 +184424,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -174298,7 +184436,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -174307,8 +184446,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -174318,7 +184458,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -174343,15 +184483,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -174390,7 +184533,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -174479,10 +184622,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -174506,6 +184651,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -174513,6 +184661,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -174530,6 +184681,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -174550,6 +184702,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -174574,10 +184727,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -174623,10 +184778,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -174771,10 +184928,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -174798,6 +184957,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -174805,6 +184967,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -174822,6 +184987,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -174842,6 +185008,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -174866,10 +185033,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -174915,10 +185084,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -174998,9 +185169,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -175077,10 +185253,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175104,6 +185282,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -175111,6 +185292,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -175128,6 +185312,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175148,6 +185333,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175172,10 +185358,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175221,10 +185409,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175368,10 +185558,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175395,6 +185587,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -175402,6 +185597,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -175419,6 +185617,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175439,6 +185638,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175463,10 +185663,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175512,10 +185714,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175660,10 +185864,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175687,6 +185893,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -175694,6 +185903,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -175711,6 +185923,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175731,6 +185944,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175755,10 +185969,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175804,10 +186020,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175951,10 +186169,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -175978,6 +186198,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -175985,6 +186208,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -176002,6 +186228,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -176022,6 +186249,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -176046,10 +186274,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -176095,10 +186325,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -176624,9 +186856,28 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 2 + ttlSecondsAfterFinished: 4 podReplacementPolicy: podReplacementPolicy managedBy: managedBy + scheduling: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + schedulingConstraints: + topology: + - key: key + - key: key + disruptionMode: + all: "{}" + single: "{}" + schedulingPolicy: + gang: + minCount: 3 + basic: "{}" selector: matchExpressions: - values: @@ -176645,15 +186896,15 @@ components: activeDeadlineSeconds: 6 successPolicy: rules: - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - startingDeadlineSeconds: 4 + startingDeadlineSeconds: 7 concurrencyPolicy: concurrencyPolicy timeZone: timeZone failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 7 + successfulJobsHistoryLimit: 1 status: lastScheduleTime: 2000-01-23T04:56:07.000+00:00 active: @@ -176861,7 +187112,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -176902,17 +187153,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -176932,12 +187183,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -176959,7 +187210,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -176975,14 +187226,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -176998,7 +187249,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -177110,19 +187361,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -177131,7 +187385,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -177140,39 +187395,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -177191,10 +187453,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -177203,7 +187466,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -177212,39 +187476,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -177263,8 +187534,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -177288,6 +187561,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -177295,7 +187569,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -177319,9 +187593,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -177330,7 +187605,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -177339,8 +187615,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -177350,7 +187627,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -177375,15 +187652,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -177422,7 +187702,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -177540,19 +187820,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -177561,7 +187844,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -177570,39 +187854,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -177621,10 +187912,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -177633,7 +187925,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -177642,39 +187935,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -177693,8 +187993,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -177718,6 +188020,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -177725,7 +188028,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -177749,9 +188052,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -177760,7 +188064,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -177769,8 +188074,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -177780,7 +188086,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -177805,15 +188111,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -177852,7 +188161,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -177941,10 +188250,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -177968,6 +188279,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -177975,6 +188289,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -177992,6 +188309,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178012,6 +188330,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178036,10 +188355,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178085,10 +188406,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178233,10 +188556,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178260,6 +188585,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -178267,6 +188595,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -178284,6 +188615,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178304,6 +188636,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178328,10 +188661,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178377,10 +188712,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178460,9 +188797,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -178539,10 +188881,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178566,6 +188910,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -178573,6 +188920,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -178590,6 +188940,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178610,6 +188961,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178634,10 +188986,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178683,10 +189037,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178830,10 +189186,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178857,6 +189215,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -178864,6 +189225,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -178881,6 +189245,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178901,6 +189266,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178925,10 +189291,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -178974,10 +189342,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -179122,10 +189492,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -179149,6 +189521,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -179156,6 +189531,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -179173,6 +189551,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -179193,6 +189572,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -179217,10 +189597,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -179266,10 +189648,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -179413,10 +189797,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -179440,6 +189826,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -179447,6 +189836,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -179464,6 +189856,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -179484,6 +189877,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -179508,10 +189902,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -179557,10 +189953,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -180086,9 +190484,28 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 2 + ttlSecondsAfterFinished: 4 podReplacementPolicy: podReplacementPolicy managedBy: managedBy + scheduling: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + schedulingConstraints: + topology: + - key: key + - key: key + disruptionMode: + all: "{}" + single: "{}" + schedulingPolicy: + gang: + minCount: 3 + basic: "{}" selector: matchExpressions: - values: @@ -180107,15 +190524,15 @@ components: activeDeadlineSeconds: 6 successPolicy: rules: - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - startingDeadlineSeconds: 4 + startingDeadlineSeconds: 7 concurrencyPolicy: concurrencyPolicy timeZone: timeZone failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 7 + successfulJobsHistoryLimit: 1 status: lastScheduleTime: 2000-01-23T04:56:07.000+00:00 active: @@ -180284,7 +190701,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -180325,17 +190742,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -180355,12 +190772,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -180382,7 +190799,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -180398,14 +190815,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -180421,7 +190838,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -180533,19 +190950,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -180554,7 +190974,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -180563,39 +190984,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -180614,10 +191042,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -180626,7 +191055,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -180635,39 +191065,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -180686,8 +191123,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -180711,6 +191150,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -180718,7 +191158,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -180742,9 +191182,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -180753,7 +191194,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -180762,8 +191204,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -180773,7 +191216,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -180798,15 +191241,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -180845,7 +191291,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -180963,19 +191409,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -180984,7 +191433,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -180993,39 +191443,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -181044,10 +191501,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -181056,7 +191514,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -181065,39 +191524,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -181116,8 +191582,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -181141,6 +191609,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -181148,7 +191617,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -181172,9 +191641,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -181183,7 +191653,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -181192,8 +191663,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -181203,7 +191675,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -181228,15 +191700,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -181275,7 +191750,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -181364,10 +191839,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -181391,6 +191868,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -181398,6 +191878,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -181415,6 +191898,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -181435,6 +191919,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -181459,10 +191944,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -181508,10 +191995,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -181656,10 +192145,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -181683,6 +192174,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -181690,6 +192184,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -181707,6 +192204,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -181727,6 +192225,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -181751,10 +192250,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -181800,10 +192301,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -181883,9 +192386,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -181962,10 +192470,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -181989,6 +192499,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -181996,6 +192509,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -182013,6 +192529,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182033,6 +192550,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182057,10 +192575,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182106,10 +192626,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182253,10 +192775,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182280,6 +192804,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -182287,6 +192814,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -182304,6 +192834,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182324,6 +192855,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182348,10 +192880,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182397,10 +192931,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182545,10 +193081,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182572,6 +193110,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -182579,6 +193120,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -182596,6 +193140,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182616,6 +193161,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182640,10 +193186,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182689,10 +193237,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182836,10 +193386,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182863,6 +193415,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -182870,6 +193425,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -182887,6 +193445,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182907,6 +193466,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182931,10 +193491,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -182980,10 +193542,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -183509,9 +194073,28 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 2 + ttlSecondsAfterFinished: 4 podReplacementPolicy: podReplacementPolicy managedBy: managedBy + scheduling: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + schedulingConstraints: + topology: + - key: key + - key: key + disruptionMode: + all: "{}" + single: "{}" + schedulingPolicy: + gang: + minCount: 3 + basic: "{}" selector: matchExpressions: - values: @@ -183530,15 +194113,15 @@ components: activeDeadlineSeconds: 6 successPolicy: rules: - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - startingDeadlineSeconds: 4 + startingDeadlineSeconds: 7 concurrencyPolicy: concurrencyPolicy timeZone: timeZone failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 7 + successfulJobsHistoryLimit: 1 status: lastScheduleTime: 2000-01-23T04:56:07.000+00:00 active: @@ -183689,7 +194272,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -183730,17 +194313,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -183760,12 +194343,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -183787,7 +194370,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -183803,14 +194386,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -183826,7 +194409,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -183938,19 +194521,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -183959,7 +194545,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -183968,39 +194555,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -184019,10 +194613,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -184031,7 +194626,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -184040,39 +194636,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -184091,8 +194694,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -184116,6 +194721,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -184123,7 +194729,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -184147,9 +194753,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -184158,7 +194765,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -184167,8 +194775,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -184178,7 +194787,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -184203,15 +194812,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -184250,7 +194862,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -184368,19 +194980,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -184389,7 +195004,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -184398,39 +195014,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -184449,10 +195072,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -184461,7 +195085,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -184470,39 +195095,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -184521,8 +195153,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -184546,6 +195180,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -184553,7 +195188,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -184577,9 +195212,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -184588,7 +195224,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -184597,8 +195234,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -184608,7 +195246,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -184633,15 +195271,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -184680,7 +195321,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -184769,10 +195410,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -184796,6 +195439,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -184803,6 +195449,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -184820,6 +195469,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -184840,6 +195490,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -184864,10 +195515,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -184913,10 +195566,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185061,10 +195716,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185088,6 +195745,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -185095,6 +195755,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -185112,6 +195775,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185132,6 +195796,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185156,10 +195821,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185205,10 +195872,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185288,9 +195957,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -185367,10 +196041,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185394,6 +196070,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -185401,6 +196080,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -185418,6 +196100,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185438,6 +196121,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185462,10 +196146,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185511,10 +196197,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185658,10 +196346,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185685,6 +196375,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -185692,6 +196385,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -185709,6 +196405,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185729,6 +196426,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185753,10 +196451,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185802,10 +196502,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185950,10 +196652,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -185977,6 +196681,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -185984,6 +196691,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -186001,6 +196711,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -186021,6 +196732,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -186045,10 +196757,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -186094,10 +196808,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -186241,10 +196957,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -186268,6 +196986,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -186275,6 +196996,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -186292,6 +197016,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -186312,6 +197037,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -186336,10 +197062,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -186385,10 +197113,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -186914,9 +197644,28 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 2 + ttlSecondsAfterFinished: 4 podReplacementPolicy: podReplacementPolicy managedBy: managedBy + scheduling: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + schedulingConstraints: + topology: + - key: key + - key: key + disruptionMode: + all: "{}" + single: "{}" + schedulingPolicy: + gang: + minCount: 3 + basic: "{}" selector: matchExpressions: - values: @@ -186935,15 +197684,15 @@ components: activeDeadlineSeconds: 6 successPolicy: rules: - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - startingDeadlineSeconds: 4 + startingDeadlineSeconds: 7 concurrencyPolicy: concurrencyPolicy timeZone: timeZone failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 7 + successfulJobsHistoryLimit: 1 properties: concurrencyPolicy: description: |- @@ -187133,7 +197882,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -187174,17 +197923,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -187204,12 +197953,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -187231,7 +197980,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -187247,14 +197996,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -187270,7 +198019,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -187382,19 +198131,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -187403,7 +198155,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -187412,39 +198165,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -187463,10 +198223,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -187475,7 +198236,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -187484,39 +198246,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -187535,8 +198304,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -187560,6 +198331,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -187567,7 +198339,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -187591,9 +198363,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -187602,7 +198375,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -187611,8 +198385,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -187622,7 +198397,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -187647,15 +198422,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -187694,7 +198472,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -187812,19 +198590,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -187833,7 +198614,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -187842,39 +198624,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -187893,10 +198682,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -187905,7 +198695,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -187914,39 +198705,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -187965,8 +198763,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -187990,6 +198790,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -187997,7 +198798,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -188021,9 +198822,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -188032,7 +198834,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -188041,8 +198844,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -188052,7 +198856,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -188077,15 +198881,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -188124,7 +198931,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -188213,10 +199020,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188240,6 +199049,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -188247,6 +199059,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -188264,6 +199079,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188284,6 +199100,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188308,10 +199125,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188357,10 +199176,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188505,10 +199326,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188532,6 +199355,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -188539,6 +199365,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -188556,6 +199385,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188576,6 +199406,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188600,10 +199431,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188649,10 +199482,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188732,9 +199567,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -188811,10 +199651,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188838,6 +199680,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -188845,6 +199690,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -188862,6 +199710,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188882,6 +199731,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188906,10 +199756,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -188955,10 +199807,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189102,10 +199956,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189129,6 +199985,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -189136,6 +199995,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -189153,6 +200015,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189173,6 +200036,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189197,10 +200061,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189246,10 +200112,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189394,10 +200262,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189421,6 +200291,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -189428,6 +200301,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -189445,6 +200321,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189465,6 +200342,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189489,10 +200367,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189538,10 +200418,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189685,10 +200567,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189712,6 +200596,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -189719,6 +200606,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -189736,6 +200626,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189756,6 +200647,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189780,10 +200672,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -189829,10 +200723,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -190358,9 +201254,28 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 2 + ttlSecondsAfterFinished: 4 podReplacementPolicy: podReplacementPolicy managedBy: managedBy + scheduling: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + schedulingConstraints: + topology: + - key: key + - key: key + disruptionMode: + all: "{}" + single: "{}" + schedulingPolicy: + gang: + minCount: 3 + basic: "{}" selector: matchExpressions: - values: @@ -190379,9 +201294,9 @@ components: activeDeadlineSeconds: 6 successPolicy: rules: - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes status: completionTime: 2000-01-23T04:56:07.000+00:00 @@ -190584,7 +201499,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -190625,17 +201540,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -190655,12 +201570,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -190682,7 +201597,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -190698,14 +201613,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -190721,7 +201636,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -190833,19 +201748,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -190854,7 +201772,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -190863,39 +201782,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -190914,10 +201840,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -190926,7 +201853,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -190935,39 +201863,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -190986,8 +201921,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -191011,6 +201948,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -191018,7 +201956,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -191042,9 +201980,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -191053,7 +201992,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -191062,8 +202002,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -191073,7 +202014,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -191098,15 +202039,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -191145,7 +202089,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -191263,19 +202207,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -191284,7 +202231,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -191293,39 +202241,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -191344,10 +202299,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -191356,7 +202312,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -191365,39 +202322,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -191416,8 +202380,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -191441,6 +202407,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -191448,7 +202415,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -191472,9 +202439,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -191483,7 +202451,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -191492,8 +202461,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -191503,7 +202473,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -191528,15 +202498,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -191575,7 +202548,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -191664,10 +202637,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -191691,6 +202666,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -191698,6 +202676,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -191715,6 +202696,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -191735,6 +202717,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -191759,10 +202742,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -191808,10 +202793,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -191956,10 +202943,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -191983,6 +202972,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -191990,6 +202982,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -192007,6 +203002,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192027,6 +203023,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192051,10 +203048,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192100,10 +203099,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192183,9 +203184,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -192262,10 +203268,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192289,6 +203297,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -192296,6 +203307,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -192313,6 +203327,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192333,6 +203348,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192357,10 +203373,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192406,10 +203424,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192553,10 +203573,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192580,6 +203602,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -192587,6 +203612,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -192604,6 +203632,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192624,6 +203653,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192648,10 +203678,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192697,10 +203729,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192845,10 +203879,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192872,6 +203908,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -192879,6 +203918,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -192896,6 +203938,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192916,6 +203959,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192940,10 +203984,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -192989,10 +204035,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -193136,10 +204184,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -193163,6 +204213,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -193170,6 +204223,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -193187,6 +204243,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -193207,6 +204264,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -193231,10 +204289,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -193280,10 +204340,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -193809,9 +204871,28 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 2 + ttlSecondsAfterFinished: 4 podReplacementPolicy: podReplacementPolicy managedBy: managedBy + scheduling: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + schedulingConstraints: + topology: + - key: key + - key: key + disruptionMode: + all: "{}" + single: "{}" + schedulingPolicy: + gang: + minCount: 3 + basic: "{}" selector: matchExpressions: - values: @@ -193830,9 +204911,9 @@ components: activeDeadlineSeconds: 6 successPolicy: rules: - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes status: completionTime: 2000-01-23T04:56:07.000+00:00 @@ -193964,7 +205045,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -194005,17 +205086,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -194035,12 +205116,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -194062,7 +205143,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -194078,14 +205159,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -194101,7 +205182,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -194213,19 +205294,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -194234,7 +205318,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -194243,39 +205328,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -194294,10 +205386,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -194306,7 +205399,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -194315,39 +205409,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -194366,8 +205467,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -194391,6 +205494,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -194398,7 +205502,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -194422,9 +205526,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -194433,7 +205538,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -194442,8 +205548,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -194453,7 +205560,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -194478,15 +205585,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -194525,7 +205635,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -194643,19 +205753,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -194664,7 +205777,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -194673,39 +205787,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -194724,10 +205845,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -194736,7 +205858,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -194745,39 +205868,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -194796,8 +205926,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -194821,6 +205953,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -194828,7 +205961,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -194852,9 +205985,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -194863,7 +205997,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -194872,8 +206007,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -194883,7 +206019,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -194908,15 +206044,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -194955,7 +206094,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -195044,10 +206183,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195071,6 +206212,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -195078,6 +206222,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -195095,6 +206242,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195115,6 +206263,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195139,10 +206288,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195188,10 +206339,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195336,10 +206489,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195363,6 +206518,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -195370,6 +206528,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -195387,6 +206548,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195407,6 +206569,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195431,10 +206594,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195480,10 +206645,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195563,9 +206730,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -195642,10 +206814,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195669,6 +206843,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -195676,6 +206853,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -195693,6 +206873,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195713,6 +206894,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195737,10 +206919,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195786,10 +206970,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195933,10 +207119,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -195960,6 +207148,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -195967,6 +207158,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -195984,6 +207178,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -196004,6 +207199,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -196028,10 +207224,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -196077,10 +207275,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -196225,10 +207425,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -196252,6 +207454,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -196259,6 +207464,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -196276,6 +207484,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -196296,6 +207505,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -196320,10 +207530,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -196369,10 +207581,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -196516,10 +207730,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -196543,6 +207759,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -196550,6 +207769,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -196567,6 +207789,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -196587,6 +207810,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -196611,10 +207835,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -196660,10 +207886,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -197189,9 +208417,28 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 2 + ttlSecondsAfterFinished: 4 podReplacementPolicy: podReplacementPolicy managedBy: managedBy + scheduling: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + schedulingConstraints: + topology: + - key: key + - key: key + disruptionMode: + all: "{}" + single: "{}" + schedulingPolicy: + gang: + minCount: 3 + basic: "{}" selector: matchExpressions: - values: @@ -197210,9 +208457,9 @@ components: activeDeadlineSeconds: 6 successPolicy: rules: - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes status: completionTime: 2000-01-23T04:56:07.000+00:00 @@ -197271,6 +208518,53 @@ components: version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject + v1.JobSchedulingConfiguration: + description: JobSchedulingConfiguration composes the reusable workload-aware + scheduling building blocks. + example: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + schedulingConstraints: + topology: + - key: key + - key: key + disruptionMode: + all: "{}" + single: "{}" + schedulingPolicy: + gang: + minCount: 3 + basic: "{}" + properties: + disruptionMode: + $ref: "#/components/schemas/v1alpha3.WorkloadPodGroupDisruptionMode" + resourceClaims: + description: "ResourceClaims defines which ResourceClaims may be shared\ + \ among Pods in the Job. Pods consume the devices allocated to a PodGroup's\ + \ claim by defining a claim in its own Spec.ResourceClaims that matches\ + \ the PodGroup's claim exactly. The claim must have the same name and\ + \ refer to the same ResourceClaim or ResourceClaimTemplate. At most 4\ + \ claims may be set, matching the limit on the resulting PodGroup. This\ + \ list is immutable after creation: entries may neither be added, removed,\ + \ nor modified." + items: + $ref: "#/components/schemas/v1alpha3.WorkloadPodGroupResourceClaim" + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + schedulingConstraints: + $ref: "#/components/schemas/v1alpha3.WorkloadPodGroupSchedulingConstraints" + schedulingPolicy: + $ref: "#/components/schemas/v1alpha3.WorkloadPodGroupSchedulingPolicy" + type: object v1.JobSpec: description: JobSpec describes how the job execution will look like. example: @@ -197325,7 +208619,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -197366,17 +208660,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -197396,12 +208690,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -197423,7 +208717,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -197439,14 +208733,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -197462,7 +208756,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -197574,19 +208868,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -197595,7 +208892,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -197604,39 +208902,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -197655,10 +208960,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -197667,7 +208973,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -197676,39 +208983,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -197727,8 +209041,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -197752,6 +209068,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -197759,7 +209076,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -197783,9 +209100,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -197794,7 +209112,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -197803,8 +209122,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -197814,7 +209134,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -197839,15 +209159,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -197886,7 +209209,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -198004,19 +209327,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -198025,7 +209351,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -198034,39 +209361,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -198085,10 +209419,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -198097,7 +209432,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -198106,39 +209442,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -198157,8 +209500,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -198182,6 +209527,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -198189,7 +209535,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -198213,9 +209559,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -198224,7 +209571,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -198233,8 +209581,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -198244,7 +209593,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -198269,15 +209618,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -198316,7 +209668,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -198405,10 +209757,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -198432,6 +209786,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -198439,6 +209796,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -198456,6 +209816,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -198476,6 +209837,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -198500,10 +209862,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -198549,10 +209913,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -198697,10 +210063,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -198724,6 +210092,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -198731,6 +210102,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -198748,6 +210122,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -198768,6 +210143,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -198792,10 +210168,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -198841,10 +210219,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -198924,9 +210304,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -199003,10 +210388,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199030,6 +210417,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -199037,6 +210427,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -199054,6 +210447,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199074,6 +210468,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199098,10 +210493,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199147,10 +210544,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199294,10 +210693,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199321,6 +210722,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -199328,6 +210732,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -199345,6 +210752,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199365,6 +210773,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199389,10 +210798,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199438,10 +210849,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199586,10 +210999,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199613,6 +211028,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -199620,6 +211038,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -199637,6 +211058,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199657,6 +211079,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199681,10 +211104,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199730,10 +211155,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199877,10 +211304,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199904,6 +211333,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -199911,6 +211343,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -199928,6 +211363,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199948,6 +211384,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -199972,10 +211409,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -200021,10 +211460,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -200550,9 +211991,28 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 2 + ttlSecondsAfterFinished: 4 podReplacementPolicy: podReplacementPolicy managedBy: managedBy + scheduling: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + schedulingConstraints: + topology: + - key: key + - key: key + disruptionMode: + all: "{}" + single: "{}" + schedulingPolicy: + gang: + minCount: 3 + basic: "{}" selector: matchExpressions: - values: @@ -200571,9 +212031,9 @@ components: activeDeadlineSeconds: 6 successPolicy: rules: - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes properties: activeDeadlineSeconds: @@ -200668,6 +212128,8 @@ components: When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. type: string + scheduling: + $ref: "#/components/schemas/v1.JobSchedulingConfiguration" selector: $ref: "#/components/schemas/v1.LabelSelector" successPolicy: @@ -200801,10 +212263,8 @@ components: format: int32 type: integer terminating: - description: |- - 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). + description: The number of pods which are terminating (in phase Pending + or Running and have a deletionTimestamp). format: int32 type: integer uncountedTerminatedPods: @@ -200912,7 +212372,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -200953,17 +212413,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -200983,12 +212443,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -201010,7 +212470,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -201026,14 +212486,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -201049,7 +212509,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -201161,19 +212621,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -201182,7 +212645,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -201191,39 +212655,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -201242,10 +212713,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -201254,7 +212726,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -201263,39 +212736,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -201314,8 +212794,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -201339,6 +212821,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -201346,7 +212829,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -201370,9 +212853,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -201381,7 +212865,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -201390,8 +212875,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -201401,7 +212887,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -201426,15 +212912,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -201473,7 +212962,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -201591,19 +213080,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -201612,7 +213104,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -201621,39 +213114,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -201672,10 +213172,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -201684,7 +213185,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -201693,39 +213195,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -201744,8 +213253,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -201769,6 +213280,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -201776,7 +213288,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -201800,9 +213312,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -201811,7 +213324,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -201820,8 +213334,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -201831,7 +213346,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -201856,15 +213371,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -201903,7 +213421,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -201992,10 +213510,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202019,6 +213539,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -202026,6 +213549,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -202043,6 +213569,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202063,6 +213590,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202087,10 +213615,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202136,10 +213666,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202284,10 +213816,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202311,6 +213845,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -202318,6 +213855,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -202335,6 +213875,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202355,6 +213896,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202379,10 +213921,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202428,10 +213972,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202511,9 +214057,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -202590,10 +214141,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202617,6 +214170,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -202624,6 +214180,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -202641,6 +214200,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202661,6 +214221,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202685,10 +214246,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202734,10 +214297,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202881,10 +214446,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202908,6 +214475,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -202915,6 +214485,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -202932,6 +214505,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202952,6 +214526,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -202976,10 +214551,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -203025,10 +214602,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -203173,10 +214752,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -203200,6 +214781,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -203207,6 +214791,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -203224,6 +214811,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -203244,6 +214832,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -203268,10 +214857,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -203317,10 +214908,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -203464,10 +215057,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -203491,6 +215086,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -203498,6 +215096,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -203515,6 +215116,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -203535,6 +215137,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -203559,10 +215162,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -203608,10 +215213,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -204137,9 +215744,28 @@ components: status: status - type: type status: status - ttlSecondsAfterFinished: 2 + ttlSecondsAfterFinished: 4 podReplacementPolicy: podReplacementPolicy managedBy: managedBy + scheduling: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + schedulingConstraints: + topology: + - key: key + - key: key + disruptionMode: + all: "{}" + single: "{}" + schedulingPolicy: + gang: + minCount: 3 + basic: "{}" selector: matchExpressions: - values: @@ -204158,9 +215784,9 @@ components: activeDeadlineSeconds: 6 successPolicy: rules: - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes properties: metadata: @@ -204328,9 +215954,9 @@ components: based on the success of some indexes. example: rules: - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes - - succeededCount: 3 + - succeededCount: 2 succeededIndexes: succeededIndexes properties: rules: @@ -204353,7 +215979,7 @@ components: Each rule must have at least one of the "succeededIndexes" or "succeededCount" specified. example: - succeededCount: 3 + succeededCount: 2 succeededIndexes: succeededIndexes properties: succeededCount: @@ -204942,13 +216568,13 @@ components: x-kubernetes-list-map-keys: - type type: object - v1alpha1.ClusterTrustBundle: + v1.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. + It can be optionally associated with a particular signer, 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 @@ -205015,17 +216641,17 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleSpec" + $ref: "#/components/schemas/v1.ClusterTrustBundleSpec" required: - spec type: object x-kubernetes-group-version-kind: - group: certificates.k8s.io kind: ClusterTrustBundle - version: v1alpha1 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1alpha1.ClusterTrustBundleList: + v1.ClusterTrustBundleList: description: ClusterTrustBundleList is a collection of ClusterTrustBundle objects example: metadata: @@ -205138,8 +216764,344 @@ components: apiVersion: apiVersion kind: kind spec: - trustBundle: trustBundle + 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/v1.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: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.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.PodCertificateRequest: + description: |- + PodCertificateRequest encodes a pod requesting a certificate from a given signer. + + Kubelets use this API to implement podCertificate projected volumes + 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: + nodeName: nodeName + stubPKCS10Request: stubPKCS10Request + podUID: podUID + serviceAccountName: serviceAccountName + maxExpirationSeconds: 0 + nodeUID: nodeUID + podName: podName + unverifiedUserAnnotations: + key: unverifiedUserAnnotations + serviceAccountUID: serviceAccountUID + signerName: signerName + status: + notAfter: 2000-01-23T04:56:07.000+00:00 + certificateChain: certificateChain + beginRefreshAt: 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 + notBefore: 2000-01-23T04:56:07.000+00:00 + 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.PodCertificateRequestSpec" + status: + $ref: "#/components/schemas/v1.PodCertificateRequestStatus" + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: certificates.k8s.io + kind: PodCertificateRequest + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.PodCertificateRequestList: + description: PodCertificateRequestList is a collection of PodCertificateRequest + objects + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + 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: + nodeName: nodeName + stubPKCS10Request: stubPKCS10Request + podUID: podUID + serviceAccountName: serviceAccountName + maxExpirationSeconds: 0 + nodeUID: nodeUID + podName: podName + unverifiedUserAnnotations: + key: unverifiedUserAnnotations + serviceAccountUID: serviceAccountUID + signerName: signerName + status: + notAfter: 2000-01-23T04:56:07.000+00:00 + certificateChain: certificateChain + beginRefreshAt: 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 + notBefore: 2000-01-23T04:56:07.000+00:00 + - 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: + nodeName: nodeName + stubPKCS10Request: stubPKCS10Request + podUID: podUID + serviceAccountName: serviceAccountName + maxExpirationSeconds: 0 + nodeUID: nodeUID + podName: podName + unverifiedUserAnnotations: + key: unverifiedUserAnnotations + serviceAccountUID: serviceAccountUID signerName: signerName + status: + notAfter: 2000-01-23T04:56:07.000+00:00 + certificateChain: certificateChain + beginRefreshAt: 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 + notBefore: 2000-01-23T04:56:07.000+00:00 properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -205147,9 +217109,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 collection of ClusterTrustBundle objects + description: items is a collection of PodCertificateRequest objects items: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.PodCertificateRequest" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -205163,38 +217125,168 @@ components: type: object x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundleList - version: v1alpha1 + kind: PodCertificateRequestList + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1alpha1.ClusterTrustBundleSpec: - description: ClusterTrustBundleSpec contains the signer and trust anchors. + v1.PodCertificateRequestSpec: + description: PodCertificateRequestSpec describes the certificate request. All + fields are immutable after creation. example: - trustBundle: trustBundle + nodeName: nodeName + stubPKCS10Request: stubPKCS10Request + podUID: podUID + serviceAccountName: serviceAccountName + maxExpirationSeconds: 0 + nodeUID: nodeUID + podName: podName + unverifiedUserAnnotations: + key: unverifiedUserAnnotations + serviceAccountUID: serviceAccountUID signerName: signerName properties: + maxExpirationSeconds: + description: |- + maxExpirationSeconds is the maximum lifetime permitted for the certificate. + + If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). + + The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. + format: int32 + type: integer + nodeName: + description: nodeName is the name of the node the pod is assigned to. + type: string + nodeUID: + description: nodeUID is the UID of the node the pod is assigned to. + type: string + podName: + description: podName is the name of the pod into which the certificate will + be mounted. + type: string + podUID: + description: podUID is the UID of the pod into which the certificate will + be mounted. + type: string + serviceAccountName: + description: serviceAccountName is the name of the service account the pod + is running as. + type: string + serviceAccountUID: + description: serviceAccountUID is the UID of the service account the pod + is running as. + type: string signerName: description: |- - signerName indicates the associated signer, if any. + signerName indicates the requested signer. - 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. + All signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented. + type: string + stubPKCS10Request: + description: |- + A PKCS#10 certificate signing request (DER-serialized) generated by Kubelet using the subject private key. - 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`. + Most signer implementations will ignore the contents of the CSR except to extract the subject public key. The API server automatically verifies the CSR signature during admission, so the signer does not need to repeat the verification. CSRs generated by kubelet are completely empty. - If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix. + The subject public key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. - List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector. + Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of "Denied" and a reason of "UnsupportedKeyType". It may also suggest a key type that it does support in the message field. + format: byte + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" type: string - trustBundle: + unverifiedUserAnnotations: + additionalProperties: + type: string description: |- - trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. + unverifiedUserAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. - 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. + Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field. - 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 + Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize. + type: object required: - - trustBundle + - nodeName + - nodeUID + - podName + - podUID + - serviceAccountName + - serviceAccountUID + - signerName + - stubPKCS10Request + type: object + v1.PodCertificateRequestStatus: + description: "PodCertificateRequestStatus describes the status of the request,\ + \ and holds the certificate data if the request is issued." + example: + notAfter: 2000-01-23T04:56:07.000+00:00 + certificateChain: certificateChain + beginRefreshAt: 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 + notBefore: 2000-01-23T04:56:07.000+00:00 + properties: + beginRefreshAt: + description: |- + beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable. + + This field is only a hint. Kubelet may start refreshing before or after this time if necessary. + format: date-time + type: string + certificateChain: + description: |- + certificateChain is populated with an issued certificate by the signer. 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. certificateChain must consist of one or more PEM-formatted certificates. + 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as + described in section 4 of RFC5280. + + If more than one 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. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers. + type: string + conditions: + description: |- + conditions applied to the request. + + The types "Issued", "Denied", and "Failed" have special handling. At most one of these conditions may be present, and they must have status "True". + + If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field. + 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 + notAfter: + description: "notAfter is the time at which the certificate expires. The\ + \ value must be the same as the notAfter value in the leaf certificate\ + \ in certificateChain. This field is set via the /status subresource.\ + \ Once populated, it is immutable. The signer must set this field at\ + \ the same time it sets certificateChain." + format: date-time + type: string + notBefore: + description: "notBefore is the time at which the certificate becomes valid.\ + \ The value must be the same as the notBefore value in the leaf certificate\ + \ in certificateChain. This field is set via the /status subresource.\ + \ Once populated, it is immutable. The signer must set this field at\ + \ the same time it sets certificateChain." + format: date-time + type: string type: object v1beta1.ClusterTrustBundle: description: |- @@ -205202,7 +217294,7 @@ components: 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. + It can be optionally associated with a particular signer, 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 @@ -206219,7 +218311,7 @@ components: format: int32 type: integer preferredHolder: - description: PreferredHolder signals to a lease holder that the lease has + description: 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. type: string @@ -206229,7 +218321,7 @@ components: format: date-time type: string strategy: - description: "Strategy indicates the strategy for picking the leader for\ + description: "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." @@ -206480,27 +218572,27 @@ components: strategy: strategy properties: binaryVersion: - description: BinaryVersion is the binary version. It must be in a semver + 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 + 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 + description: leaseName is the name of the lease for which this candidate is contending. This field is immutable. type: string pingTime: - description: "PingTime is the last time that the server has requested the\ + 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.\ + 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\ @@ -206509,7 +218601,7 @@ components: format: date-time type: string strategy: - description: "Strategy is the strategy that coordinated leader election\ + 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,\ @@ -206766,29 +218858,29 @@ components: strategy: strategy properties: binaryVersion: - description: BinaryVersion is the binary version. It must be in a semver + 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 + 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 + 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\ + 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.\ + 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\ @@ -206797,7 +218889,7 @@ components: format: date-time type: string strategy: - description: "Strategy is the strategy that coordinated leader election\ + 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,\ @@ -206815,7 +218907,7 @@ components: 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. example: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -207789,6 +219881,7 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName properties: labelSelector: @@ -207811,6 +219904,13 @@ components: Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. type: string + user: + description: "user is Optional: The owner UID of the created file. If specified,\ + \ the item-level user field takes precedence over defaultUser. (Alpha)\ + \ This field requires the AtomicWriteVolumeUserFields feature gate to\ + \ be enabled." + format: int64 + type: integer required: - path type: object @@ -208159,7 +220259,9 @@ components: \ 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." + \ kubelet. Note: BinaryData keys are not currently propagated to container\ + \ env vars via ConfigMapKeyRef or ConfigMapRef env sources; only Data\ + \ keys are used." type: object data: additionalProperties: @@ -208194,7 +220296,7 @@ components: 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. + The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. Keys in the BinaryData field are not currently propagated to container env vars. example: name: name optional: true @@ -208217,7 +220319,8 @@ components: key: key properties: key: - description: The key to select. + description: The key to select from the ConfigMap's Data field. Keys in + the BinaryData field are not currently propagated to container env vars. type: string name: description: "Name of the referent. This field is effectively required,\ @@ -208424,11 +220527,13 @@ components: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key properties: items: @@ -208460,15 +220565,18 @@ components: 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. example: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key properties: defaultMode: @@ -208481,6 +220589,13 @@ components: \ like fsGroup, and the result can be other mode bits set." format: int32 type: integer + defaultUser: + description: "defaultUser is Optional: The owner UID of the created files\ + \ by default. The defaultUser field is only used as a fallback when the\ + \ item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields\ + \ feature gate to be enabled." + format: int64 + type: integer items: description: "items if unspecified, each key-value pair in the Data field\ \ of the referenced ConfigMap will be projected into the volume as a file\ @@ -208573,10 +220688,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -208600,6 +220717,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -208607,6 +220727,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -208624,6 +220747,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -208644,6 +220768,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -208668,10 +220793,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -208717,10 +220844,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -209149,11 +221278,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 properties: running: @@ -209177,11 +221306,11 @@ components: description: ContainerStateTerminated is a terminated state of a container. example: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 properties: containerID: @@ -209248,7 +221377,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -209268,11 +221397,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -209301,21 +221430,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 properties: allocatedResources: additionalProperties: @@ -209410,11 +221539,11 @@ components: description: ContainerUser represents user identity information example: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 properties: linux: $ref: "#/components/schemas/v1.LinuxContainerUser" @@ -209437,7 +221566,7 @@ components: mode. example: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -209446,7 +221575,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -209455,6 +221585,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 properties: items: description: Items is a list of DownwardAPIVolume file @@ -209467,7 +221598,7 @@ components: description: DownwardAPIVolumeFile represents information to create the file containing the pod field example: - mode: 2 + mode: 6 path: path resourceFieldRef: divisor: divisor @@ -209476,6 +221607,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 properties: fieldRef: $ref: "#/components/schemas/v1.ObjectFieldSelector" @@ -209495,6 +221627,13 @@ components: type: string resourceFieldRef: $ref: "#/components/schemas/v1.ResourceFieldSelector" + user: + description: "user is Optional: The owner UID of the created file. If specified,\ + \ the item-level user field takes precedence over defaultUser. (Alpha)\ + \ This field requires the AtomicWriteVolumeUserFields feature gate to\ + \ be enabled." + format: int64 + type: integer required: - path type: object @@ -209502,9 +221641,10 @@ components: description: DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. example: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -209513,7 +221653,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -209522,6 +221663,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 properties: defaultMode: description: "Optional: mode bits to use on created files by default. Must\ @@ -209534,6 +221676,13 @@ components: \ result can be other mode bits set." format: int32 type: integer + defaultUser: + description: "defaultUser is Optional: The owner UID of the created files\ + \ by default. The defaultUser field is only used as a fallback when the\ + \ item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields\ + \ feature gate to be enabled." + format: int64 + type: integer items: description: Items is a list of downward API volume file items: @@ -209545,6 +221694,7 @@ components: description: Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. example: + mode: 3 sizeLimit: sizeLimit medium: medium properties: @@ -209553,6 +221703,16 @@ components: \ 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" type: string + mode: + description: "mode specifies the permission bits for the emptyDir directory,\ + \ in numeric notation (e.g., 0755, 01777). Must be a value between 0000\ + \ and 01777. If not specified, defaults to 0777. This might be in conflict\ + \ with other options that affect the file mode, like fsGroup. If fsGroup\ + \ is specified, the fsGroup permissions will override the mode specified\ + \ here. This field has no effect on Windows. This field is alpha and requires\ + \ EmptyDirVolumeMode featuregate to be enabled." + format: int32 + type: integer sizeLimit: description: "Quantity is a fixed-point representation of a number. It provides\ \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ @@ -210488,10 +222648,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -210515,6 +222677,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -210522,6 +222687,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -210539,6 +222707,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -210559,6 +222728,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -210583,10 +222753,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -210632,10 +222804,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -211368,6 +223542,35 @@ components: description: Node name on which the event is generated. type: string type: object + v1.EvictionResponder: + description: EvictionResponder allows you to specify the responder reacting + to an Eviction. Responders should observe and communicate through the Eviction + Resource API to help with the graceful eviction of a target (e.g. termination + of a pod). + example: + name: name + priority: 7 + properties: + name: + description: |- + name allows you to identify the responder responding to the Eviction. + + It must be a valid domain-prefixed key (such as "acme.io/foo"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required. + type: string + priority: + description: |- + priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. + + The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. + + The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required. + format: int32 + type: integer + required: + - name + - priority + type: object + x-kubernetes-map-type: atomic v1.ExecAction: description: ExecAction describes a "run in container" action. example: @@ -211392,7 +223595,7 @@ components: be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. example: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -211557,7 +223760,7 @@ components: 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. example: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -211590,9 +223793,16 @@ components: v1.GRPCAction: description: GRPCAction specifies an action involving a GRPC service. example: + mode: mode port: 2 service: service properties: + mode: + description: "mode specifies the connection mode for the gRPC health probe.\ + \ Set to \"TLS\" to use TLS without certificate verification. Set to \"\ + Plaintext\" to use a plaintext (insecure) connection explicitly. If not\ + \ specified, the probe uses a plaintext (insecure) connection." + type: string port: description: Port number of the gRPC service. Number must be in the range 1 to 65535. @@ -211687,6 +223897,7 @@ components: description: HTTPGetAction describes an action based on HTTP Get requests. example: path: path + protocol: protocol scheme: scheme port: port host: host @@ -211717,6 +223928,10 @@ components: \ JSON field that can accept a name or number." format: int-or-string type: string + protocol: + description: Protocol selects the wire protocol for the probe connection. + Nil defaults to HTTP/1.1. + type: string scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. type: string @@ -211870,7 +224085,7 @@ components: example: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -211980,8 +224195,9 @@ components: v1.KeyToPath: description: Maps a string key to a path within a volume. example: - mode: 6 + mode: 2 path: path + user: 6 key: key properties: key: @@ -212002,6 +224218,13 @@ components: not be an absolute path. May not contain the path element '..'. May not start with the string '..'. type: string + user: + description: "user is Optional: The owner UID of the created file. If specified,\ + \ the item-level user field takes precedence over defaultUser. (Alpha)\ + \ This field requires the AtomicWriteVolumeUserFields feature gate to\ + \ be enabled." + format: int64 + type: integer required: - key - path @@ -212025,6 +224248,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -212045,6 +224269,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -212082,6 +224307,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -212475,11 +224701,11 @@ components: description: LinuxContainerUser represents user identity information in Linux containers example: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 properties: gid: description: GID is the primary gid initially attached to the first process @@ -213051,6 +225277,10 @@ components: apiVersion: apiVersion kind: kind spec: + podPreemptionPolicy: + disableResizePreemption: + - disableResizePreemption + - disableResizePreemption podCIDRs: - podCIDRs - podCIDRs @@ -213121,6 +225351,7 @@ components: - volumesInUse nodeInfo: machineID: machineID + runningInUserNamespace: true swap: capacity: 1 bootID: bootID @@ -213324,13 +225555,165 @@ components: requiredDuringSchedulingIgnoredDuringExecution: $ref: "#/components/schemas/v1.NodeSelector" type: object + v1.NodeAllocatableMappedResources: + description: NodeAllocatableMappedResources describes mapped node allocatable + resource allocations. + example: + quantity: quantity + name: name + properties: + name: + description: "Name is the name of the resource (e.g., cpu, memory)." + type: string + quantity: + 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: + - name + - quantity + type: object + v1.NodeAllocatableOverheadResources: + description: NodeAllocatableOverheadResources describes auxiliary overhead resource + allocations. + example: + name: name + perPod: perPod + perContainer: perContainer + properties: + name: + description: "Name is the name of the resource (e.g., cpu, memory)." + type: string + perContainer: + 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 + perPod: + 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: + - name + type: object v1.NodeAllocatableResourceClaimStatus: description: NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA. example: + mapping: + - quantity: quantity + name: name + - quantity: quantity + name: name resourceClaimName: resourceClaimName - resources: - key: null + overhead: + - name: name + perPod: perPod + perContainer: perContainer + - name: name + perPod: perPod + perContainer: perContainer containers: - containers - containers @@ -213342,19 +225725,36 @@ components: type: string type: array x-kubernetes-list-type: set + mapping: + description: "Mapping contains allocations through devices mapped in the\ + \ device spec's `nodeAllocatableResources[...].mapping` field. This is\ + \ used by kubelet for pod level and container-level cgroup enforcement." + items: + $ref: "#/components/schemas/v1.NodeAllocatableMappedResources" + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + overhead: + description: "Overhead contains allocations through devices mapped in the\ + \ device spec's `nodeAllocatableResources[...].overhead` field. This is\ + \ used by kubelet for pod level and container-level cgroup enforcement." + items: + $ref: "#/components/schemas/v1.NodeAllocatableOverheadResources" + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name resourceClaimName: description: ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation. type: string - resources: - additionalProperties: - $ref: "#/components/schemas/resource.Quantity" - description: Resources is a map of the node-allocatable resource name to - the aggregate quantity allocated to the claim. - type: object required: - resourceClaimName - - resources type: object v1.NodeCondition: description: NodeCondition contains condition information for a node. @@ -213541,6 +225941,10 @@ components: apiVersion: apiVersion kind: kind spec: + podPreemptionPolicy: + disableResizePreemption: + - disableResizePreemption + - disableResizePreemption podCIDRs: - podCIDRs - podCIDRs @@ -213611,6 +226015,7 @@ components: - volumesInUse nodeInfo: machineID: machineID + runningInUserNamespace: true swap: capacity: 1 bootID: bootID @@ -213707,6 +226112,10 @@ components: apiVersion: apiVersion kind: kind spec: + podPreemptionPolicy: + disableResizePreemption: + - disableResizePreemption + - disableResizePreemption podCIDRs: - podCIDRs - podCIDRs @@ -213777,6 +226186,7 @@ components: - volumesInUse nodeInfo: machineID: machineID + runningInUserNamespace: true swap: capacity: 1 bootID: bootID @@ -213851,6 +226261,26 @@ components: version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject + v1.NodePodPreemptionPolicy: + description: NodePodPreemptionPolicy defines the node-level policies governing + preemption for pods on this node. + example: + disableResizePreemption: + - disableResizePreemption + - disableResizePreemption + properties: + disableResizePreemption: + description: "DisableResizePreemption lists the owners (e.g., autoscalers,\ + \ operators, administrators) that have requested to disable scheduler\ + \ and Kubelet preemption for in-place pod resize on this node. If this\ + \ list is non-empty, resize-induced preemption is disabled on this node.\ + \ This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption\ + \ feature gate." + items: + type: string + type: array + x-kubernetes-list-type: set + type: object v1.NodeRuntimeHandler: description: NodeRuntimeHandler is a set of runtime handler information. example: @@ -214018,6 +226448,10 @@ components: v1.NodeSpec: description: NodeSpec describes the attributes that a node is created with. example: + podPreemptionPolicy: + disableResizePreemption: + - disableResizePreemption + - disableResizePreemption podCIDRs: - podCIDRs - podCIDRs @@ -214061,6 +226495,8 @@ components: type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: set + podPreemptionPolicy: + $ref: "#/components/schemas/v1.NodePodPreemptionPolicy" providerID: description: "ID of the node assigned by the cloud provider in the format:\ \ ://" @@ -214125,6 +226561,7 @@ components: - volumesInUse nodeInfo: machineID: machineID + runningInUserNamespace: true swap: capacity: 1 bootID: bootID @@ -214273,6 +226710,7 @@ components: description: NodeSystemInfo is a set of ids/uuids to uniquely identify the node. example: machineID: machineID + runningInUserNamespace: true swap: capacity: 1 bootID: bootID @@ -214316,6 +226754,9 @@ components: description: OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). type: string + runningInUserNamespace: + description: Whether the node is running in a user namespace. + type: boolean swap: $ref: "#/components/schemas/v1.NodeSwapStatus" systemUUID: @@ -214519,7 +226960,7 @@ components: readOnly: true endpointsNamespace: endpointsNamespace gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -214541,7 +226982,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -214676,7 +227117,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -214810,6 +227251,15 @@ components: allocatedResources: key: null currentVolumeAttributesClassName: currentVolumeAttributesClassName + healthStatus: + healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -215000,118 +227450,136 @@ components: 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 + healthStatus: + healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + 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 + 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 + healthStatus: + healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status 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 - 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: @@ -215251,6 +227719,15 @@ components: allocatedResources: key: null currentVolumeAttributesClassName: currentVolumeAttributesClassName + healthStatus: + healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 allocatedResourceStatuses: key: allocatedResourceStatuses accessModes: @@ -215362,6 +227839,8 @@ components: \ VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass\ \ applied to this PersistentVolumeClaim" type: string + healthStatus: + $ref: "#/components/schemas/v1.VolumeHealthStatus" modifyVolumeStatus: $ref: "#/components/schemas/v1.ModifyVolumeStatus" phase: @@ -215615,7 +228094,7 @@ components: readOnly: true endpointsNamespace: endpointsNamespace gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -215637,7 +228116,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -215772,7 +228251,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -215909,7 +228388,7 @@ components: readOnly: true endpointsNamespace: endpointsNamespace gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -215931,7 +228410,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -216066,7 +228545,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -216184,7 +228663,7 @@ components: readOnly: true endpointsNamespace: endpointsNamespace gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -216206,7 +228685,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -216341,7 +228820,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -216551,7 +229030,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -216592,17 +229071,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -216622,12 +229101,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -216649,7 +229128,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -216665,14 +229144,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -216688,7 +229167,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -216800,19 +229279,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -216821,7 +229303,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -216830,39 +229313,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -216881,10 +229371,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -216893,7 +229384,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -216902,39 +229394,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -216953,8 +229452,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -216978,6 +229479,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -216985,7 +229487,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -217009,9 +229511,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -217020,7 +229523,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -217029,8 +229533,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -217040,7 +229545,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -217065,15 +229570,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -217112,7 +229620,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -217230,19 +229738,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -217251,7 +229762,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -217260,39 +229772,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -217311,10 +229830,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -217323,7 +229843,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -217332,39 +229853,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -217383,8 +229911,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -217408,6 +229938,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -217415,7 +229946,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -217439,9 +229970,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -217450,7 +229982,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -217459,8 +229992,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -217470,7 +230004,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -217495,15 +230029,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -217542,7 +230079,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -217631,10 +230168,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -217658,6 +230197,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -217665,6 +230207,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -217682,6 +230227,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -217702,6 +230248,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -217726,10 +230273,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -217775,10 +230324,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -217923,10 +230474,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -217950,6 +230503,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -217957,6 +230513,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -217974,6 +230533,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -217994,6 +230554,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218018,10 +230579,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218067,10 +230630,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218150,9 +230715,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -218229,10 +230799,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218256,6 +230828,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -218263,6 +230838,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -218280,6 +230858,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218300,6 +230879,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218324,10 +230904,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218373,10 +230955,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218520,10 +231104,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218547,6 +231133,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -218554,6 +231143,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -218571,6 +231163,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218591,6 +231184,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218615,10 +231209,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218664,10 +231260,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218812,10 +231410,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218839,6 +231439,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -218846,6 +231449,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -218863,6 +231469,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218883,6 +231490,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218907,10 +231515,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -218956,10 +231566,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -219103,10 +231715,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -219130,6 +231744,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -219137,6 +231754,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -219154,6 +231774,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -219174,6 +231795,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -219198,10 +231820,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -219247,10 +231871,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -219772,7 +232398,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -219792,11 +232418,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -219825,21 +232451,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 - allocatedResourcesStatus: - name: name resources: @@ -219859,7 +232485,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -219879,11 +232505,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -219912,32 +232538,52 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 hostIP: hostIP nodeAllocatableResourceClaimStatuses: - - resourceClaimName: resourceClaimName - resources: - key: null + - mapping: + - quantity: quantity + name: name + - quantity: quantity + name: name + resourceClaimName: resourceClaimName + overhead: + - name: name + perPod: perPod + perContainer: perContainer + - name: name + perPod: perPod + perContainer: perContainer containers: - containers - containers - - resourceClaimName: resourceClaimName - resources: - key: null + - mapping: + - quantity: quantity + name: name + - quantity: quantity + name: name + resourceClaimName: resourceClaimName + overhead: + - name: name + perPod: perPod + perContainer: perContainer + - name: name + perPod: perPod + perContainer: perContainer containers: - containers - containers @@ -219961,6 +232607,25 @@ components: limits: key: null nominatedNodeName: nominatedNodeName + volumeHealth: + - healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + name: name + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + - healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + name: name + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message podIPs: - ip: ip @@ -219988,7 +232653,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -220008,11 +232673,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -220041,21 +232706,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 - allocatedResourcesStatus: - name: name resources: @@ -220075,7 +232740,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -220095,11 +232760,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -220128,21 +232793,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 hostIPs: - ip: ip - ip: ip @@ -220154,14 +232819,14 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 0 + 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: 0 + observedGeneration: 3 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: @@ -220184,7 +232849,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -220204,11 +232869,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -220237,21 +232902,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 - allocatedResourcesStatus: - name: name resources: @@ -220271,7 +232936,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -220291,11 +232956,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -220324,22 +232989,22 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 - observedGeneration: 3 + - 1 + - 1 + observedGeneration: 7 properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -220849,8 +233514,9 @@ components: userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName properties: @@ -220896,6 +233562,13 @@ components: signerName: description: Kubelet's generated CSRs will be addressed to this signer. type: string + user: + description: "user is Optional: The owner UID of the created file. If specified,\ + \ the item-level user field takes precedence over defaultUser. (Alpha)\ + \ This field requires the AtomicWriteVolumeUserFields feature gate to\ + \ be enabled." + format: int64 + type: integer userAnnotations: additionalProperties: type: string @@ -220920,7 +233593,7 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 0 + observedGeneration: 3 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status properties: @@ -221114,7 +233787,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -221155,17 +233828,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -221185,12 +233858,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -221212,7 +233885,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -221228,14 +233901,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -221251,7 +233924,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -221363,19 +234036,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -221384,7 +234060,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -221393,39 +234070,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -221444,10 +234128,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -221456,7 +234141,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -221465,39 +234151,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -221516,8 +234209,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -221541,6 +234236,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -221548,7 +234244,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -221572,9 +234268,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -221583,7 +234280,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -221592,8 +234290,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -221603,7 +234302,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -221628,15 +234327,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -221675,7 +234377,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -221793,19 +234495,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -221814,7 +234519,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -221823,39 +234529,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -221874,10 +234587,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -221886,7 +234600,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -221895,39 +234610,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -221946,8 +234668,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -221971,6 +234695,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -221978,7 +234703,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -222002,9 +234727,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -222013,7 +234739,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -222022,8 +234749,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -222033,7 +234761,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -222058,15 +234786,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -222105,7 +234836,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -222194,10 +234925,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222221,6 +234954,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -222228,6 +234964,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -222245,6 +234984,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222265,6 +235005,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222289,10 +235030,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222338,10 +235081,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222486,10 +235231,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222513,6 +235260,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -222520,6 +235270,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -222537,6 +235290,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222557,6 +235311,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222581,10 +235336,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222630,10 +235387,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222713,9 +235472,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -222792,10 +235556,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222819,6 +235585,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -222826,6 +235595,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -222843,6 +235615,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222863,6 +235636,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222887,10 +235661,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -222936,10 +235712,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223083,10 +235861,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223110,6 +235890,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -223117,6 +235900,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -223134,6 +235920,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223154,6 +235941,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223178,10 +235966,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223227,10 +236017,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223375,10 +236167,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223402,6 +236196,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -223409,6 +236206,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -223426,6 +236226,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223446,6 +236247,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223470,10 +236272,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223519,10 +236323,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223666,10 +236472,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223693,6 +236501,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -223700,6 +236511,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -223717,6 +236531,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223737,6 +236552,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223761,10 +236577,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -223810,10 +236628,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -224335,7 +237155,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -224355,11 +237175,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -224388,21 +237208,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 - allocatedResourcesStatus: - name: name resources: @@ -224422,7 +237242,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -224442,11 +237262,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -224475,32 +237295,52 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 hostIP: hostIP nodeAllocatableResourceClaimStatuses: - - resourceClaimName: resourceClaimName - resources: - key: null + - mapping: + - quantity: quantity + name: name + - quantity: quantity + name: name + resourceClaimName: resourceClaimName + overhead: + - name: name + perPod: perPod + perContainer: perContainer + - name: name + perPod: perPod + perContainer: perContainer containers: - containers - containers - - resourceClaimName: resourceClaimName - resources: - key: null + - mapping: + - quantity: quantity + name: name + - quantity: quantity + name: name + resourceClaimName: resourceClaimName + overhead: + - name: name + perPod: perPod + perContainer: perContainer + - name: name + perPod: perPod + perContainer: perContainer containers: - containers - containers @@ -224524,6 +237364,25 @@ components: limits: key: null nominatedNodeName: nominatedNodeName + volumeHealth: + - healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + name: name + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + - healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + name: name + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message podIPs: - ip: ip @@ -224551,7 +237410,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -224571,11 +237430,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -224604,21 +237463,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 - allocatedResourcesStatus: - name: name resources: @@ -224638,7 +237497,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -224658,11 +237517,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -224691,21 +237550,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 hostIPs: - ip: ip - ip: ip @@ -224717,14 +237576,14 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 0 + 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: 0 + observedGeneration: 3 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: @@ -224747,7 +237606,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -224767,11 +237626,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -224800,21 +237659,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 - allocatedResourcesStatus: - name: name resources: @@ -224834,7 +237693,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -224854,11 +237713,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -224887,22 +237746,22 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 - observedGeneration: 3 + - 1 + - 1 + observedGeneration: 7 - metadata: generation: 6 finalizers: @@ -224954,7 +237813,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -224995,17 +237854,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -225025,12 +237884,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -225052,7 +237911,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -225068,14 +237927,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -225091,7 +237950,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -225203,19 +238062,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -225224,7 +238086,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -225233,39 +238096,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -225284,10 +238154,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -225296,7 +238167,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -225305,39 +238177,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -225356,8 +238235,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -225381,6 +238262,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -225388,7 +238270,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -225412,9 +238294,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -225423,7 +238306,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -225432,8 +238316,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -225443,7 +238328,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -225468,15 +238353,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -225515,7 +238403,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -225633,19 +238521,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -225654,7 +238545,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -225663,39 +238555,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -225714,10 +238613,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -225726,7 +238626,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -225735,39 +238636,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -225786,8 +238694,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -225811,6 +238721,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -225818,7 +238729,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -225842,9 +238753,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -225853,7 +238765,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -225862,8 +238775,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -225873,7 +238787,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -225898,15 +238812,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -225945,7 +238862,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -226034,10 +238951,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226061,6 +238980,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -226068,6 +238990,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -226085,6 +239010,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226105,6 +239031,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226129,10 +239056,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226178,10 +239107,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226326,10 +239257,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226353,6 +239286,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -226360,6 +239296,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -226377,6 +239316,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226397,6 +239337,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226421,10 +239362,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226470,10 +239413,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226553,9 +239498,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -226632,10 +239582,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226659,6 +239611,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -226666,6 +239621,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -226683,6 +239641,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226703,6 +239662,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226727,10 +239687,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226776,10 +239738,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226923,10 +239887,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226950,6 +239916,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -226957,6 +239926,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -226974,6 +239946,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -226994,6 +239967,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -227018,10 +239992,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -227067,10 +240043,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -227215,10 +240193,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -227242,6 +240222,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -227249,6 +240232,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -227266,6 +240252,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -227286,6 +240273,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -227310,10 +240298,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -227359,10 +240349,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -227506,10 +240498,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -227533,6 +240527,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -227540,6 +240537,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -227557,6 +240557,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -227577,6 +240578,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -227601,10 +240603,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -227650,10 +240654,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -228175,7 +241181,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -228195,11 +241201,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -228228,21 +241234,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 - allocatedResourcesStatus: - name: name resources: @@ -228262,7 +241268,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -228282,11 +241288,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -228315,32 +241321,52 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 hostIP: hostIP nodeAllocatableResourceClaimStatuses: - - resourceClaimName: resourceClaimName - resources: - key: null + - mapping: + - quantity: quantity + name: name + - quantity: quantity + name: name + resourceClaimName: resourceClaimName + overhead: + - name: name + perPod: perPod + perContainer: perContainer + - name: name + perPod: perPod + perContainer: perContainer containers: - containers - containers - - resourceClaimName: resourceClaimName - resources: - key: null + - mapping: + - quantity: quantity + name: name + - quantity: quantity + name: name + resourceClaimName: resourceClaimName + overhead: + - name: name + perPod: perPod + perContainer: perContainer + - name: name + perPod: perPod + perContainer: perContainer containers: - containers - containers @@ -228364,6 +241390,25 @@ components: limits: key: null nominatedNodeName: nominatedNodeName + volumeHealth: + - healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + name: name + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + - healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + name: name + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message podIPs: - ip: ip @@ -228391,7 +241436,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -228411,11 +241456,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -228444,21 +241489,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 - allocatedResourcesStatus: - name: name resources: @@ -228478,7 +241523,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -228498,11 +241543,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -228531,21 +241576,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 hostIPs: - ip: ip - ip: ip @@ -228557,14 +241602,14 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 0 + 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: 0 + observedGeneration: 3 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: @@ -228587,7 +241632,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -228607,11 +241652,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -228640,21 +241685,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 - allocatedResourcesStatus: - name: name resources: @@ -228674,7 +241719,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -228694,11 +241739,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -228727,22 +241772,22 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 - observedGeneration: 3 + - 1 + - 1 + observedGeneration: 7 properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -228899,17 +241944,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -228973,9 +242018,9 @@ components: "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. + "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. - 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. + If not specified, "MountOption" is used. This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. @@ -229023,7 +242068,7 @@ components: example: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -229064,17 +242109,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -229094,12 +242139,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -229121,7 +242166,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -229137,14 +242182,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -229160,7 +242205,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -229272,19 +242317,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -229293,7 +242341,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -229302,39 +242351,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -229353,10 +242409,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -229365,7 +242422,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -229374,39 +242432,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -229425,8 +242490,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -229450,6 +242517,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -229457,7 +242525,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -229481,9 +242549,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -229492,7 +242561,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -229501,8 +242571,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -229512,7 +242583,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -229537,15 +242608,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -229584,7 +242658,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -229702,19 +242776,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -229723,7 +242800,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -229732,39 +242810,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -229783,10 +242868,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -229795,7 +242881,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -229804,39 +242891,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -229855,8 +242949,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -229880,6 +242976,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -229887,7 +242984,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -229911,9 +243008,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -229922,7 +243020,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -229931,8 +243030,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -229942,7 +243042,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -229967,15 +243067,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -230014,7 +243117,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -230103,10 +243206,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230130,6 +243235,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -230137,6 +243245,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -230154,6 +243265,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230174,6 +243286,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230198,10 +243311,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230247,10 +243362,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230395,10 +243512,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230422,6 +243541,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -230429,6 +243551,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -230446,6 +243571,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230466,6 +243592,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230490,10 +243617,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230539,10 +243668,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230622,9 +243753,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -230701,10 +243837,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230728,6 +243866,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -230735,6 +243876,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -230752,6 +243896,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230772,6 +243917,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230796,10 +243942,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230845,10 +243993,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -230992,10 +244142,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231019,6 +244171,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -231026,6 +244181,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -231043,6 +244201,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231063,6 +244222,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231087,10 +244247,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231136,10 +244298,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231284,10 +244448,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231311,6 +244477,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -231318,6 +244487,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -231335,6 +244507,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231355,6 +244528,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231379,10 +244553,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231428,10 +244604,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231575,10 +244753,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231602,6 +244782,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -231609,6 +244792,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -231626,6 +244812,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231646,6 +244833,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231670,10 +244858,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -231719,10 +244909,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -232269,6 +245461,21 @@ components: x-kubernetes-list-map-keys: - name x-kubernetes-patch-merge-key: name + evictionResponders: + description: |- + evictionResponders reference responders that react to Evictions based on EvictionRequests. Responders should observe and communicate through the Eviction Resource API to help with the graceful termination of a pod. The responders are selected sequentially, according to their specified priority. + + Responders should periodically report on an eviction progress by updating the .status.responders[].heartbeatTime field of the Eviction object. If this field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there is no other responder, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource). + + The maximum length of the responders list is 10. Responders are not supported when the pod is part of a PodGroup (.spec.schedulingGroup is set). This field can only be set on creation and is immutable afterwards. + items: + $ref: "#/components/schemas/v1.EvictionResponder" + 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. @@ -232312,7 +245519,7 @@ components: description: |- HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. - This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled. + This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. type: string imagePullSecrets: description: "ImagePullSecrets is an optional list of references to secrets\ @@ -232381,8 +245588,10 @@ components: type: object preemptionPolicy: description: "PreemptionPolicy is the Policy for preempting pods with lower\ - \ priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority\ - \ if unset." + \ priority. One of Never, PreemptLowerPriority. When Priority Admission\ + \ Controller is enabled, it prevents users from setting this field. The\ + \ admission controller populates this field from PriorityClassName. Defaults\ + \ to PreemptLowerPriority if unset." type: string priority: description: "The priority value. Various system components use this field\ @@ -232566,7 +245775,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -232586,11 +245795,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -232619,21 +245828,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 - allocatedResourcesStatus: - name: name resources: @@ -232653,7 +245862,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -232673,11 +245882,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -232706,32 +245915,52 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 hostIP: hostIP nodeAllocatableResourceClaimStatuses: - - resourceClaimName: resourceClaimName - resources: - key: null + - mapping: + - quantity: quantity + name: name + - quantity: quantity + name: name + resourceClaimName: resourceClaimName + overhead: + - name: name + perPod: perPod + perContainer: perContainer + - name: name + perPod: perPod + perContainer: perContainer containers: - containers - containers - - resourceClaimName: resourceClaimName - resources: - key: null + - mapping: + - quantity: quantity + name: name + - quantity: quantity + name: name + resourceClaimName: resourceClaimName + overhead: + - name: name + perPod: perPod + perContainer: perContainer + - name: name + perPod: perPod + perContainer: perContainer containers: - containers - containers @@ -232755,6 +245984,25 @@ components: limits: key: null nominatedNodeName: nominatedNodeName + volumeHealth: + - healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + name: name + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + - healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + name: name + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message podIPs: - ip: ip @@ -232782,7 +246030,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -232802,11 +246050,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -232835,21 +246083,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 - allocatedResourcesStatus: - name: name resources: @@ -232869,7 +246117,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -232889,11 +246137,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -232922,21 +246170,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 hostIPs: - ip: ip - ip: ip @@ -232948,14 +246196,14 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 0 + 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: 0 + observedGeneration: 3 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: @@ -232978,7 +246226,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -232998,11 +246246,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -233031,21 +246279,21 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 + - 1 + - 1 - allocatedResourcesStatus: - name: name resources: @@ -233065,7 +246313,7 @@ components: message: message image: image imageID: imageID - restartCount: 0 + restartCount: 6 resources: claims: - request: request @@ -233085,11 +246333,11 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -233118,22 +246366,22 @@ components: message: message terminated: reason: reason - exitCode: 7 + exitCode: 4 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 6 + signal: 0 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 7 + uid: 4 gid: 4 supplementalGroups: - - 8 - - 8 - observedGeneration: 3 + - 1 + - 1 + observedGeneration: 7 properties: allocatedResources: additionalProperties: @@ -233221,7 +246469,11 @@ components: items: $ref: "#/components/schemas/v1.NodeAllocatableResourceClaimStatus" type: array - x-kubernetes-list-type: atomic + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - resourceClaimName + x-kubernetes-patch-merge-key: resourceClaimName nominatedNodeName: description: "nominatedNodeName is set only when this pod preempts other\ \ pods on the node, but it cannot be scheduled right away as preemption\ @@ -233300,6 +246552,15 @@ components: for the pod. format: date-time type: string + volumeHealth: + description: volumeHealth contains node-reported health for each volume + the pod is using. Populated by the kubelet on the pod's node. + items: + $ref: "#/components/schemas/v1.PodVolumeHealth" + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name type: object v1.PodTemplate: description: PodTemplate describes a template for creating copies of a predefined @@ -233355,7 +246616,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -233396,17 +246657,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -233426,12 +246687,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -233453,7 +246714,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -233469,14 +246730,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -233492,7 +246753,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -233604,19 +246865,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -233625,7 +246889,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -233634,39 +246899,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -233685,10 +246957,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -233697,7 +246970,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -233706,39 +246980,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -233757,8 +247038,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -233782,6 +247065,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -233789,7 +247073,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -233813,9 +247097,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -233824,7 +247109,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -233833,8 +247119,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -233844,7 +247131,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -233869,15 +247156,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -233916,7 +247206,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -234034,19 +247324,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -234055,7 +247348,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -234064,39 +247358,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -234115,10 +247416,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -234127,7 +247429,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -234136,39 +247439,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -234187,8 +247497,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -234212,6 +247524,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -234219,7 +247532,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -234243,9 +247556,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -234254,7 +247568,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -234263,8 +247578,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -234274,7 +247590,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -234299,15 +247615,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -234346,7 +247665,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -234435,10 +247754,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -234462,6 +247783,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -234469,6 +247793,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -234486,6 +247813,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -234506,6 +247834,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -234530,10 +247859,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -234579,10 +247910,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -234727,10 +248060,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -234754,6 +248089,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -234761,6 +248099,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -234778,6 +248119,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -234798,6 +248140,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -234822,10 +248165,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -234871,10 +248216,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -234954,9 +248301,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -235033,10 +248385,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235060,6 +248414,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -235067,6 +248424,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -235084,6 +248444,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235104,6 +248465,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235128,10 +248490,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235177,10 +248541,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235324,10 +248690,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235351,6 +248719,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -235358,6 +248729,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -235375,6 +248749,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235395,6 +248770,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235419,10 +248795,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235468,10 +248846,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235616,10 +248996,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235643,6 +249025,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -235650,6 +249035,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -235667,6 +249055,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235687,6 +249076,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235711,10 +249101,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235760,10 +249152,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235907,10 +249301,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235934,6 +249330,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -235941,6 +249340,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -235958,6 +249360,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -235978,6 +249381,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -236002,10 +249406,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -236051,10 +249457,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -236681,7 +250089,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -236722,17 +250130,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -236752,12 +250160,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -236779,7 +250187,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -236795,14 +250203,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -236818,7 +250226,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -236930,19 +250338,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -236951,7 +250362,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -236960,39 +250372,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -237011,10 +250430,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -237023,7 +250443,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -237032,39 +250453,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -237083,8 +250511,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -237108,6 +250538,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -237115,7 +250546,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -237139,9 +250570,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -237150,7 +250582,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -237159,8 +250592,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -237170,7 +250604,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -237195,15 +250629,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -237242,7 +250679,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -237360,19 +250797,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -237381,7 +250821,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -237390,39 +250831,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -237441,10 +250889,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -237453,7 +250902,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -237462,39 +250912,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -237513,8 +250970,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -237538,6 +250997,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -237545,7 +251005,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -237569,9 +251029,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -237580,7 +251041,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -237589,8 +251051,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -237600,7 +251063,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -237625,15 +251088,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -237672,7 +251138,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -237761,10 +251227,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -237788,6 +251256,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -237795,6 +251266,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -237812,6 +251286,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -237832,6 +251307,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -237856,10 +251332,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -237905,10 +251383,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238053,10 +251533,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238080,6 +251562,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -238087,6 +251572,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -238104,6 +251592,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238124,6 +251613,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238148,10 +251638,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238197,10 +251689,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238280,9 +251774,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -238359,10 +251858,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238386,6 +251887,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -238393,6 +251897,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -238410,6 +251917,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238430,6 +251938,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238454,10 +251963,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238503,10 +252014,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238650,10 +252163,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238677,6 +252192,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -238684,6 +252202,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -238701,6 +252222,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238721,6 +252243,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238745,10 +252268,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238794,10 +252319,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238942,10 +252469,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -238969,6 +252498,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -238976,6 +252508,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -238993,6 +252528,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -239013,6 +252549,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -239037,10 +252574,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -239086,10 +252625,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -239233,10 +252774,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -239260,6 +252803,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -239267,6 +252813,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -239284,6 +252833,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -239304,6 +252854,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -239328,10 +252879,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -239377,10 +252930,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -239972,7 +253527,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -240013,17 +253568,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -240043,12 +253598,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -240070,7 +253625,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -240086,14 +253641,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -240109,7 +253664,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -240221,19 +253776,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -240242,7 +253800,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -240251,39 +253810,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -240302,10 +253868,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -240314,7 +253881,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -240323,39 +253891,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -240374,8 +253949,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -240399,6 +253976,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -240406,7 +253984,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -240430,9 +254008,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -240441,7 +254020,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -240450,8 +254030,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -240461,7 +254042,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -240486,15 +254067,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -240533,7 +254117,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -240651,19 +254235,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -240672,7 +254259,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -240681,39 +254269,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -240732,10 +254327,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -240744,7 +254340,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -240753,39 +254350,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -240804,8 +254408,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -240829,6 +254435,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -240836,7 +254443,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -240860,9 +254467,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -240871,7 +254479,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -240880,8 +254489,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -240891,7 +254501,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -240916,15 +254526,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -240963,7 +254576,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -241052,10 +254665,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241079,6 +254694,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -241086,6 +254704,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -241103,6 +254724,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241123,6 +254745,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241147,10 +254770,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241196,10 +254821,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241344,10 +254971,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241371,6 +255000,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -241378,6 +255010,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -241395,6 +255030,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241415,6 +255051,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241439,10 +255076,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241488,10 +255127,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241571,9 +255212,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -241650,10 +255296,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241677,6 +255325,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -241684,6 +255335,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -241701,6 +255355,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241721,6 +255376,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241745,10 +255401,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241794,10 +255452,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241941,10 +255601,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -241968,6 +255630,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -241975,6 +255640,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -241992,6 +255660,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -242012,6 +255681,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -242036,10 +255706,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -242085,10 +255757,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -242233,10 +255907,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -242260,6 +255936,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -242267,6 +255946,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -242284,6 +255966,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -242304,6 +255987,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -242328,10 +256012,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -242377,10 +256063,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -242524,10 +256212,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -242551,6 +256241,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -242558,6 +256251,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -242575,6 +256271,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -242595,6 +256292,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -242619,10 +256317,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -242668,10 +256368,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -243293,7 +256995,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -243334,17 +257036,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -243364,12 +257066,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -243391,7 +257093,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -243407,14 +257109,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -243430,7 +257132,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -243542,19 +257244,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -243563,7 +257268,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -243572,39 +257278,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -243623,10 +257336,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -243635,7 +257349,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -243644,39 +257359,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -243695,8 +257417,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -243720,6 +257444,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -243727,7 +257452,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -243751,9 +257476,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -243762,7 +257488,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -243771,8 +257498,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -243782,7 +257510,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -243807,15 +257535,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -243854,7 +257585,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -243972,19 +257703,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -243993,7 +257727,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -244002,39 +257737,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -244053,10 +257795,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -244065,7 +257808,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -244074,39 +257818,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -244125,8 +257876,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -244150,6 +257903,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -244157,7 +257911,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -244181,9 +257935,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -244192,7 +257947,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -244201,8 +257957,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -244212,7 +257969,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -244237,15 +257994,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -244284,7 +258044,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -244373,10 +258133,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -244400,6 +258162,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -244407,6 +258172,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -244424,6 +258192,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -244444,6 +258213,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -244468,10 +258238,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -244517,10 +258289,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -244665,10 +258439,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -244692,6 +258468,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -244699,6 +258478,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -244716,6 +258498,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -244736,6 +258519,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -244760,10 +258544,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -244809,10 +258595,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -244892,9 +258680,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -244971,10 +258764,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -244998,6 +258793,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -245005,6 +258803,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -245022,6 +258823,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245042,6 +258844,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245066,10 +258869,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245115,10 +258920,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245262,10 +259069,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245289,6 +259098,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -245296,6 +259108,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -245313,6 +259128,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245333,6 +259149,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245357,10 +259174,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245406,10 +259225,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245554,10 +259375,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245581,6 +259404,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -245588,6 +259414,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -245605,6 +259434,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245625,6 +259455,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245649,10 +259480,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245698,10 +259531,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245845,10 +259680,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245872,6 +259709,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -245879,6 +259719,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -245896,6 +259739,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245916,6 +259760,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245940,10 +259785,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -245989,10 +259836,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -246492,6 +260341,44 @@ components: spec: $ref: "#/components/schemas/v1.PodSpec" type: object + v1.PodVolumeHealth: + description: "PodVolumeHealth contains health information for a volume used\ + \ by a pod, reported by the CSI node plugin via the kubelet." + example: + healthConditions: + - reason: reason + message: message + status: status + - reason: reason + message: message + status: status + name: name + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + properties: + healthConditions: + description: conditions is the set of adverse conditions reported by the + CSI node plugin for this volume on this node. At most 16 conditions may + be reported. + items: + $ref: "#/components/schemas/v1.VolumeHealthCondition" + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - status + - reason + x-kubernetes-patch-merge-key: status + lastTransitionTime: + description: lastTransitionTime is when the current set of conditions first + appeared. + format: date-time + type: string + name: + description: name matches an entry in pod.spec.volumes. + type: string + required: + - name + type: object v1.PortStatus: description: PortStatus represents the error condition of a service port example: @@ -246600,10 +260487,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -246668,7 +260557,7 @@ components: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -246677,7 +260566,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -246686,39 +260576,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -246737,10 +260634,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -246749,7 +260647,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -246758,39 +260657,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -246809,8 +260715,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 properties: defaultMode: description: "defaultMode are the mode bits used to set permissions on created\ @@ -246822,6 +260730,13 @@ components: \ result can be other mode bits set." format: int32 type: integer + defaultUser: + description: "defaultUser is Optional: The owner UID of the created files\ + \ by default. The defaultUser field is only used as a fallback when the\ + \ item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields\ + \ feature gate to be enabled." + format: int64 + type: integer sources: description: sources is the list of volume projections. Each entry in this list handles one source. @@ -247076,7 +260991,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -247117,17 +261032,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -247147,12 +261062,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -247174,7 +261089,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -247190,14 +261105,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -247213,7 +261128,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -247325,19 +261240,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -247346,7 +261264,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -247355,39 +261274,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -247406,10 +261332,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -247418,7 +261345,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -247427,39 +261355,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -247478,8 +261413,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -247503,6 +261440,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -247510,7 +261448,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -247534,9 +261472,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -247545,7 +261484,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -247554,8 +261494,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -247565,7 +261506,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -247590,15 +261531,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -247637,7 +261581,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -247755,19 +261699,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -247776,7 +261723,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -247785,39 +261733,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -247836,10 +261791,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -247848,7 +261804,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -247857,39 +261814,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -247908,8 +261872,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -247933,6 +261899,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -247940,7 +261907,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -247964,9 +261931,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -247975,7 +261943,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -247984,8 +261953,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -247995,7 +261965,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -248020,15 +261990,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -248067,7 +262040,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -248156,10 +262129,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248183,6 +262158,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -248190,6 +262168,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -248207,6 +262188,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248227,6 +262209,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248251,10 +262234,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248300,10 +262285,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248448,10 +262435,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248475,6 +262464,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -248482,6 +262474,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -248499,6 +262494,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248519,6 +262515,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248543,10 +262540,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248592,10 +262591,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248675,9 +262676,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -248754,10 +262760,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248781,6 +262789,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -248788,6 +262799,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -248805,6 +262819,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248825,6 +262840,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248849,10 +262865,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -248898,10 +262916,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249045,10 +263065,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249072,6 +263094,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -249079,6 +263104,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -249096,6 +263124,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249116,6 +263145,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249140,10 +263170,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249189,10 +263221,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249337,10 +263371,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249364,6 +263400,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -249371,6 +263410,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -249388,6 +263430,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249408,6 +263451,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249432,10 +263476,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249481,10 +263527,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249628,10 +263676,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249655,6 +263705,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -249662,6 +263715,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -249679,6 +263735,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249699,6 +263756,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249723,10 +263781,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -249772,10 +263832,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -250457,7 +264519,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -250498,17 +264560,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -250528,12 +264590,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -250555,7 +264617,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -250571,14 +264633,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -250594,7 +264656,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -250706,19 +264768,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -250727,7 +264792,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -250736,39 +264802,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -250787,10 +264860,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -250799,7 +264873,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -250808,39 +264883,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -250859,8 +264941,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -250884,6 +264968,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -250891,7 +264976,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -250915,9 +265000,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -250926,7 +265012,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -250935,8 +265022,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -250946,7 +265034,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -250971,15 +265059,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -251018,7 +265109,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -251136,19 +265227,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -251157,7 +265251,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -251166,39 +265261,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -251217,10 +265319,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -251229,7 +265332,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -251238,39 +265342,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -251289,8 +265400,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -251314,6 +265427,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -251321,7 +265435,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -251345,9 +265459,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -251356,7 +265471,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -251365,8 +265481,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -251376,7 +265493,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -251401,15 +265518,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -251448,7 +265568,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -251537,10 +265657,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -251564,6 +265686,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -251571,6 +265696,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -251588,6 +265716,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -251608,6 +265737,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -251632,10 +265762,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -251681,10 +265813,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -251829,10 +265963,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -251856,6 +265992,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -251863,6 +266002,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -251880,6 +266022,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -251900,6 +266043,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -251924,10 +266068,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -251973,10 +266119,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252056,9 +266204,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -252135,10 +266288,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252162,6 +266317,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -252169,6 +266327,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -252186,6 +266347,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252206,6 +266368,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252230,10 +266393,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252279,10 +266444,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252426,10 +266593,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252453,6 +266622,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -252460,6 +266632,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -252477,6 +266652,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252497,6 +266673,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252521,10 +266698,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252570,10 +266749,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252718,10 +266899,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252745,6 +266928,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -252752,6 +266938,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -252769,6 +266958,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252789,6 +266979,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252813,10 +267004,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -252862,10 +267055,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -253009,10 +267204,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -253036,6 +267233,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -253043,6 +267243,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -253060,6 +267263,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -253080,6 +267284,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -253104,10 +267309,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -253153,10 +267360,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -253770,7 +267979,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -253811,17 +268020,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -253841,12 +268050,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -253868,7 +268077,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -253884,14 +268093,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -253907,7 +268116,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -254019,19 +268228,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -254040,7 +268252,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -254049,39 +268262,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -254100,10 +268320,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -254112,7 +268333,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -254121,39 +268343,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -254172,8 +268401,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -254197,6 +268428,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -254204,7 +268436,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -254228,9 +268460,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -254239,7 +268472,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -254248,8 +268482,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -254259,7 +268494,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -254284,15 +268519,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -254331,7 +268569,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -254449,19 +268687,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -254470,7 +268711,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -254479,39 +268721,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -254530,10 +268779,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -254542,7 +268792,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -254551,39 +268802,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -254602,8 +268860,10 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName defaultMode: 6 + defaultUser: 0 cephfs: path: path secretRef: @@ -254627,6 +268887,7 @@ components: storagePool: storagePool gateway: gateway emptyDir: + mode: 3 sizeLimit: sizeLimit medium: medium glusterfs: @@ -254634,7 +268895,7 @@ components: endpoints: endpoints readOnly: true gcePersistentDisk: - partition: 6 + partition: 0 readOnly: true pdName: pdName fsType: fsType @@ -254658,9 +268919,10 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 1 + defaultMode: 6 + defaultUser: 5 items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -254669,7 +268931,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -254678,8 +268941,9 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 awsElasticBlockStore: - partition: 6 + partition: 3 volumeID: volumeID readOnly: true fsType: fsType @@ -254689,7 +268953,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 5 + lun: 7 chapAuthDiscovery: true iqn: iqn portals: @@ -254714,15 +268978,18 @@ components: - monitors - monitors configMap: - defaultMode: 3 + defaultMode: 6 name: name + defaultUser: 1 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key storageos: volumeNamespace: volumeNamespace @@ -254761,7 +269028,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 6 + lun: 7 targetWWNs: - targetWWNs - targetWWNs @@ -254850,10 +269117,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -254877,6 +269146,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -254884,6 +269156,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -254901,6 +269176,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -254921,6 +269197,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -254945,10 +269222,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -254994,10 +269273,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255142,10 +269423,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255169,6 +269452,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -255176,6 +269462,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -255193,6 +269482,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255213,6 +269503,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255237,10 +269528,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255286,10 +269579,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255369,9 +269664,14 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 7 + priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 hostUsers: true resourceClaims: - resourceClaimName: resourceClaimName @@ -255448,10 +269748,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255475,6 +269777,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -255482,6 +269787,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -255499,6 +269807,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255519,6 +269828,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255543,10 +269853,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255592,10 +269904,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255739,10 +270053,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255766,6 +270082,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -255773,6 +270092,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -255790,6 +270112,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255810,6 +270133,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255834,10 +270158,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -255883,10 +270209,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -256031,10 +270359,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -256058,6 +270388,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -256065,6 +270398,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -256082,6 +270418,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -256102,6 +270439,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -256126,10 +270464,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -256175,10 +270515,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -256322,10 +270664,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -256349,6 +270693,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -256356,6 +270703,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -256373,6 +270723,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -256393,6 +270744,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -256417,10 +270769,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -256466,10 +270820,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -257065,7 +271421,7 @@ components: spec: dnsPolicy: dnsPolicy nodeName: nodeName - terminationGracePeriodSeconds: 9 + terminationGracePeriodSeconds: 6 dnsConfig: searches: - searches @@ -257106,17 +271462,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 1 + fsGroup: 4 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 4 + runAsGroup: 5 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 5 + runAsUser: 9 seccompProfile: localhostProfile: localhostProfile type: type @@ -257136,12 +271492,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator - effect: effect - tolerationSeconds: 6 + tolerationSeconds: 8 value: value key: key operator: operator @@ -257163,7 +271519,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -257179,14 +271535,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 9 + minDomains: 6 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 8 + maxSkew: 9 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -257194,20 +271550,479 @@ components: - values - values key: key - operator: operator - - values: - - values - - values + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + 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: 7 + defaultUser: 5 + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + configMap: + name: name + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 8 + keyType: keyType + user: 7 + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + user: 3 + 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 + user: 4 + signerName: signerName + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + configMap: + name: name + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 8 + keyType: keyType + user: 7 + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + user: 3 + 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 + user: 4 + signerName: signerName + defaultMode: 6 + defaultUser: 0 + 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: + mode: 3 + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 0 + 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 + defaultUser: 5 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + awsElasticBlockStore: + partition: 3 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 7 + 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 + defaultUser: 1 + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 9 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: + 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: 7 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type - quobyte: volume: volume registry: registry @@ -257314,19 +272129,22 @@ components: secret: secretName: secretName defaultMode: 7 + defaultUser: 5 optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key projected: sources: - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -257335,7 +272153,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -257344,39 +272163,46 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path audience: audience expirationSeconds: 3 + user: 3 clusterTrustBundle: path: path labelSelector: @@ -257395,10 +272221,11 @@ components: key: matchLabels name: name optional: true + user: 4 signerName: signerName - downwardAPI: items: - - mode: 2 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -257407,7 +272234,8 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 2 + user: 3 + - mode: 6 path: path resourceFieldRef: divisor: divisor @@ -257416,669 +272244,1497 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + user: 3 configMap: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key podCertificate: certificateChainPath: certificateChainPath userAnnotations: key: userAnnotations keyPath: keyPath - maxExpirationSeconds: 3 + maxExpirationSeconds: 8 keyType: keyType + user: 7 credentialBundlePath: credentialBundlePath signerName: signerName secret: name: name optional: true items: - - mode: 6 + - mode: 2 path: path + user: 6 key: key - - mode: 6 + - mode: 2 path: path + user: 6 key: key serviceAccountToken: path: path - audience: audience - expirationSeconds: 3 - clusterTrustBundle: + audience: audience + expirationSeconds: 3 + user: 3 + 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 + user: 4 + signerName: signerName + defaultMode: 6 + defaultUser: 0 + 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: + mode: 3 + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 0 + 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 + defaultUser: 5 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + awsElasticBlockStore: + partition: 3 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 7 + 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 + defaultUser: 1 + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + 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: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: + mode: mode + port: 2 + service: service + httpGet: + path: path + protocol: protocol + 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 + bindMountOptions: + - bindMountOptions + - bindMountOptions + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions + 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 + protocol: protocol + 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 + protocol: protocol + 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: + mode: mode + port: 2 + service: service + httpGet: + path: path + protocol: protocol + 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: + mode: mode + port: 2 + service: service + httpGet: + path: path + protocol: protocol + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: + mode: mode + port: 2 + service: service + httpGet: + path: path + protocol: protocol + 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 + bindMountOptions: + - bindMountOptions + - bindMountOptions + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions + 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 + protocol: protocol + 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 + protocol: protocol + 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: + mode: mode + port: 2 + service: service + httpGet: + path: path + protocol: protocol + 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: + mode: mode + port: 2 + service: service + httpGet: + path: path + protocol: protocol + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + evictionResponders: + - name: name + priority: 7 + - name: name + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: + mode: mode + port: 2 + service: service + httpGet: + path: path + protocol: protocol + 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 + bindMountOptions: + - bindMountOptions + - bindMountOptions + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions + 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 + protocol: protocol + 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 - 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: 6 - cephfs: - path: path - secretRef: + protocol: protocol + 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: + mode: mode + port: 2 + service: service + httpGet: + path: path + protocol: protocol + 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 - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName + optional: true + prefix: prefix 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: + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix secretRef: name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 1 - items: - - mode: 2 + 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: + mode: mode + port: 2 + service: service + httpGet: path: path + protocol: protocol + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + 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 - - mode: 2 - path: path + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 - awsElasticBlockStore: - partition: 6 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 5 - 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: 3 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: + mode: mode + port: 2 + service: service + httpGet: 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: 6 - 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 + protocol: protocol + 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 + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions 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: 7 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - podCertificate: - certificateChainPath: certificateChainPath - userAnnotations: - key: userAnnotations - keyPath: keyPath - maxExpirationSeconds: 3 - keyType: keyType - credentialBundlePath: credentialBundlePath - signerName: signerName - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 3 - 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: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - podCertificate: - certificateChainPath: certificateChainPath - userAnnotations: - key: userAnnotations - keyPath: keyPath - maxExpirationSeconds: 3 - keyType: keyType - credentialBundlePath: credentialBundlePath - signerName: signerName - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + lifecycle: + postStart: + sleep: + seconds: 5 + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - audience: audience - expirationSeconds: 3 - clusterTrustBundle: + protocol: protocol + 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 - 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: 6 - cephfs: - path: path - secretRef: + protocol: protocol + 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: + mode: mode + port: 2 + service: service + httpGet: + path: path + protocol: protocol + 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 - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName + optional: true + prefix: prefix 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: + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix secretRef: name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 1 - items: - - mode: 2 + 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: + mode: mode + port: 2 + service: service + httpGet: path: path + protocol: protocol + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + 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 - - mode: 2 - path: path + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 - awsElasticBlockStore: - partition: 6 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 5 - 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: 3 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - 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: 6 - 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: + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: - volumeDevices: - devicePath: devicePath name: name @@ -258145,10 +273801,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -258172,6 +273830,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -258179,6 +273840,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -258196,6 +273860,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -258216,6 +273881,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -258240,10 +273906,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -258289,10 +273957,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -258301,7 +273971,6 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -258437,10 +274106,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -258464,6 +274135,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -258471,6 +274145,9 @@ components: - mountPath: mountPath mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly @@ -258488,6 +274165,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -258508,6 +274186,7 @@ components: - command httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -258532,10 +274211,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -258581,10 +274262,12 @@ components: - command - command grpc: + mode: mode port: 2 service: service httpGet: path: path + protocol: protocol scheme: scheme port: port host: host @@ -258593,7 +274276,6 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -258661,2167 +274343,4195 @@ components: - args - args name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 7 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName + tty: true + stdinOnce: 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 + core.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 + message: message + 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 + message: + description: "Message provides human-readable context for Health (e.g. \"\ + ECC error count exceeded threshold\"). This field is populated by the\ + \ kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin\ + \ returns a message, and is null otherwise." + 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 + shardInfo: + selector: selector + 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 field depends on the DynamicResourceAllocation feature gate. + + This field is immutable. It can only be set for containers. + items: + $ref: "#/components/schemas/core.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 + message: message + - resourceID: resourceID + health: health + message: message + 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 container.resources.claims[*].request is set or \"claim:\"\ + \ when container.resources.claims[*].request is empty. For DRA-backed\ + \ extended resources, \"claim:/\" is used when the\ + \ claim name and request name are recorded in pod.status.extendedResourceClaimStatus.\ + \ 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 + shardInfo: + selector: selector + 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 - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName + 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 - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - restartPolicyRules: - - action: action - exitCodes: - values: - - 1 - - 1 - operator: operator - - action: action - exitCodes: - values: - - 1 - - 1 - operator: operator - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 6 - 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 - 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 - fileKeyRef: - path: path - volumeName: volumeName - optional: true - key: key - - 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 - fileKeyRef: - path: path - volumeName: volumeName - optional: true - key: key - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - restartPolicyRules: - - action: action - exitCodes: - values: - - 1 - - 1 - operator: operator - - action: action - exitCodes: - values: - - 1 - - 1 - operator: operator - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 6 - 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 + 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: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + 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: 7 + defaultUser: 5 + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + 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 + defaultUser: + description: "defaultUser is Optional: The owner UID of the created files\ + \ by default. The defaultUser field is only used as a fallback when the\ + \ item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields\ + \ feature gate to be enabled." + format: int64 + 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: 6 + 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. 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 - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + port: 2 + error: error - 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 - 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 - fileKeyRef: - path: path - volumeName: volumeName - optional: true - key: key - - 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 - fileKeyRef: - path: path - volumeName: volumeName - optional: true - key: key - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args - name: name - tty: true - stdinOnce: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - restartPolicyRules: - - action: action - exitCodes: - values: - - 1 - - 1 - operator: operator - - action: action - exitCodes: - values: - - 1 - - 1 - operator: operator - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 6 - 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 + port: 2 + error: error + - ipMode: ipMode + hostname: hostname + ip: ip ports: - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + port: 2 + error: error - 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 + 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 + shardInfo: + selector: selector + 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: 3 + user: 3 + 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 + user: + description: "user is Optional: The owner UID of the created file. If specified,\ + \ the item-level user field takes precedence over defaultUser. (Alpha)\ + \ This field requires the AtomicWriteVolumeUserFields feature gate to\ + \ be enabled." + format: int64 + type: integer + required: + - path + type: object + v1.ServiceList: + description: ServiceList holds a list of services. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + 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 - 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: + error: error + - protocol: protocol port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - 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 - fileKeyRef: - path: path - volumeName: volumeName - optional: true - key: key - - 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 - fileKeyRef: - path: path - volumeName: volumeName - optional: true - key: key - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args + 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 - tty: true - stdinOnce: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - restartPolicyRules: - - action: action - exitCodes: - values: - - 1 - - 1 - operator: operator - - action: action - exitCodes: - values: - - 1 - - 1 - operator: operator - stdin: true - terminationMessagePolicy: terminationMessagePolicy - securityContext: - privileged: true - runAsUser: 6 - 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: + 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 - 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 + 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 + 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. + 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: 8 + 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, Equal, Lt, and Gt. Defaults to Equal. Exists is\ + \ equivalent to wildcard for value, so that a pod can tolerate all taints\ + \ of a particular category. Lt and Gt perform numeric comparisons (requires\ + \ feature gate TaintTolerationComparisonOperators)." + 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: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + 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 - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + 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 - 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 - terminationMessagePath: terminationMessagePath - workingDir: workingDir + namespace: namespace + volumeName: volumeName + volumeAttributesClassName: volumeAttributesClassName 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 - fileKeyRef: - path: path - volumeName: volumeName - optional: true - key: key - - 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 - fileKeyRef: - path: path - volumeName: volumeName - optional: true - key: key - restartPolicy: restartPolicy - command: - - command - - command - args: - - args - - args + 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: 7 + defaultUser: 5 + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + configMap: name: name - tty: true - stdinOnce: 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 + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 8 + keyType: keyType + user: 7 + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + user: 3 + 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 + user: 4 + signerName: signerName + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + configMap: + name: name + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 8 + keyType: keyType + user: 7 + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + user: 3 + 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 + user: 4 + signerName: signerName + defaultMode: 6 + defaultUser: 0 + 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: + mode: 3 + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 0 + 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 + defaultUser: 5 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + user: 3 + awsElasticBlockStore: + partition: 3 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 7 + 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 + defaultUser: 1 + optional: true + items: + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + 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: 7 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type 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" + 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.ReplicationControllerStatus: - description: ReplicationControllerStatus represents the current status of a - replication controller. + v1.VolumeDevice: + description: volumeDevice describes a mapping of a raw block device within a + container. example: - fullyLabeledReplicas: 5 - replicas: 7 - readyReplicas: 2 - conditions: + 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.VolumeHealthCondition: + description: VolumeHealthCondition represents an adverse health condition reported + for a volume. + example: + reason: reason + message: message + status: status + properties: + message: + description: message is a human-readable description. Maximum permitted + length of a message is 1024 bytes. + type: string + reason: + description: reason is a brief CamelCase machine-parseable reason. Together + with status it forms the unique identity of a condition entry. Maximum + permitted length of a reason is 256 bytes. + type: string + status: + description: "status is the machine-parseable health category. Possible\ + \ values: - \"Inaccessible\": the volume cannot be accessed. - \"DataLoss\"\ + : data loss has been detected on the volume. - \"Degraded\": the volume\ + \ is functioning with reduced capability." + type: string + required: + - reason + - status + type: object + v1.VolumeHealthStatus: + description: VolumeHealthStatus contains health information for a volume reported + by the CSI controller plugin. + example: + healthConditions: - 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 + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 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. + healthConditions: + description: conditions is the set of adverse conditions reported by the + CSI controller plugin. An empty list means no adverse condition. At most + 16 conditions may be reported. items: - $ref: "#/components/schemas/v1.ReplicationControllerCondition" + $ref: "#/components/schemas/v1.VolumeHealthCondition" 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 + - status + - reason + x-kubernetes-patch-merge-key: status + lastTransitionTime: + description: lastTransitionTime is when the current set of conditions first + appeared. + format: date-time + type: string type: object - core.v1.ResourceClaim: - description: ResourceClaim references one entry in PodSpec.ResourceClaims. + v1.VolumeMount: + description: VolumeMount describes a mounting of a Volume within a container. example: - request: request + mountPath: mountPath + mountPropagation: mountPropagation name: name + bindMountOptions: + - bindMountOptions + - bindMountOptions + readOnly: true + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr 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. + bindMountOptions: + description: "bindMountOptions is the list of additional bind mount options\ + \ to apply when mounting this volume into the container. Allowed values\ + \ are noexec, nodev, and nosuid. These are Linux mount options and have\ + \ no effect on Windows nodes. This field is not supported with image volumes.\ + \ This is an alpha field and requires enabling the VolumeBindMountOptions\ + \ feature gate." + items: + type: string + type: array + x-kubernetes-list-type: set + mountPath: + description: Path within the container at which the volume should be mounted. 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." + 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 - 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" + name: + description: This must match the Name of a Volume. 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 + 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 - resource: - description: "Required: resource to select" + 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: - - resource + - mountPath + - name 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. + v1.VolumeMountStatus: + description: VolumeMountStatus shows status of volume mounts. example: - resourceID: resourceID - health: health - message: message + mountPath: mountPath + name: name + readOnly: true + volumeStatus: + image: + imageRef: imageRef + recursiveReadOnly: recursiveReadOnly 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. + mountPath: + description: MountPath corresponds to the original VolumeMount. type: string - message: - description: "Message provides human-readable context for Health (e.g. \"\ - ECC error count exceeded threshold\"). This field is populated by the\ - \ kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin\ - \ returns a message, and is null otherwise." + name: + description: Name corresponds to the name of the original VolumeMount. type: string - resourceID: - description: ResourceID is the unique identifier of the resource. See the - ResourceID type for more information. + 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 + volumeStatus: + $ref: "#/components/schemas/v1.VolumeStatus" required: - - resourceID + - mountPath + - name type: object - v1.ResourceQuota: - description: ResourceQuota sets aggregate quota restrictions enforced per namespace + v1.VolumeNodeAffinity: + description: VolumeNodeAffinity defines constraints that limit what nodes this + volume can be accessed from. 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: + required: + nodeSelectorTerms: + - matchExpressions: + - values: - values - values + key: key operator: operator - - scopeName: scopeName - values: + - 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 - 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" + required: + $ref: "#/components/schemas/v1.NodeSelector" 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. + v1.VolumeProjection: + description: Projection that may be projected along with other supported volume + types. Exactly one of these fields must be set. example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - shardInfo: - selector: selector - 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 + downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true + fieldPath: fieldPath + user: 3 + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: 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/" + fieldPath: fieldPath + user: 3 + configMap: + name: name + optional: true 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." + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 8 + keyType: keyType + user: 7 + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: 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 + - mode: 2 + path: path + user: 6 + key: key + - mode: 2 + path: path + user: 6 + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + user: 3 + 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 + user: 4 + signerName: signerName 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 + clusterTrustBundle: + $ref: "#/components/schemas/v1.ClusterTrustBundleProjection" + configMap: + $ref: "#/components/schemas/v1.ConfigMapProjection" + downwardAPI: + $ref: "#/components/schemas/v1.DownwardAPIProjection" + podCertificate: + $ref: "#/components/schemas/v1.PodCertificateProjection" + secret: + $ref: "#/components/schemas/v1.SecretProjection" + serviceAccountToken: + $ref: "#/components/schemas/v1.ServiceAccountTokenProjection" type: object - v1.ResourceRequirements: - description: ResourceRequirements describes the compute resource requirements. + v1.VolumeResourceRequirements: + description: VolumeResourceRequirements describes the storage resource requirements + for a volume. 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 field depends on the DynamicResourceAllocation feature gate. - - This field is immutable. It can only be set for containers. - items: - $ref: "#/components/schemas/core.v1.ResourceClaim" - type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name limits: additionalProperties: $ref: "#/components/schemas/resource.Quantity" @@ -260834,268 +278544,370 @@ components: 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 - message: message - - resourceID: resourceID - health: health - message: message - 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 + \ value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + type: object type: object - v1.SELinuxOptions: - description: SELinuxOptions are the labels to be applied to the container + v1.VolumeStatus: + description: VolumeStatus represents the status of a mounted volume. At most + one of its members must be specified. example: - role: role - level: level - type: type - user: user + image: + imageRef: imageRef 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 + image: + $ref: "#/components/schemas/v1.ImageVolumeStatus" type: object - v1.ScaleIOPersistentVolumeSource: - description: ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume + v1.VsphereVirtualDiskVolumeSource: + description: Represents a vSphere volume resource. example: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - namespace: namespace - readOnly: true + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath 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. + 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 - storagePool: - description: storagePool is the ScaleIO Storage Pool associated with the - protection domain. + storagePolicyID: + description: storagePolicyID is the storage Policy Based Management (SPBM) + profile ID associated with the StoragePolicyName. type: string - system: - description: system is the name of the storage system as configured in ScaleIO. + storagePolicyName: + description: storagePolicyName is the storage Policy Based Management (SPBM) + profile name. type: string - volumeName: - description: volumeName is the name of a volume already created in the ScaleIO - system that is associated with this volume source. + volumePath: + description: volumePath is the path that identifies vSphere volume vmdk type: string required: - - gateway - - secretRef - - system + - volumePath type: object - v1.ScaleIOVolumeSource: - description: ScaleIOVolumeSource represents a persistent ScaleIO volume + v1.WeightedPodAffinityTerm: + description: The weights of all of the matched WeightedPodAffinityTerm fields + are added per-node to find the most preferred node(s) example: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway + 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: - 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. + 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 - protectionDomain: - description: protectionDomain is the name of the ScaleIO Protection Domain - for the configured storage. + gmsaCredentialSpecName: + description: GMSACredentialSpecName is the name of the GMSA credential spec + to use. 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" + 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 - storageMode: - description: storageMode indicates whether the storage for a volume should - be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + 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 - storagePool: - description: storagePool is the ScaleIO Storage Pool associated with the - protection domain. + 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 - system: - description: system is the name of the storage system as configured in ScaleIO. + 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 - volumeName: - description: volumeName is the name of a volume already created in the ScaleIO - system that is associated with this volume source. + targetRef: + $ref: "#/components/schemas/v1.ObjectReference" + zone: + description: zone is the name of the Zone this endpoint exists in. type: string required: - - gateway - - secretRef - - system + - addresses type: object - v1.ScopeSelector: - description: A scope selector represents the AND of the selectors represented - by the scoped-resource selector requirements. + v1.EndpointConditions: + description: EndpointConditions represents the current condition of an endpoint. example: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator + ready: true + terminating: true + serving: true 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 + 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 - 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.EndpointHints: + description: EndpointHints provides hints describing how an endpoint should + be consumed. example: - scopeName: scopeName - values: - - values - - values - operator: operator + forZones: + - name: name + - name: name + forNodes: + - name: name + - name: name 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." + 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. items: - type: string + $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 - required: - - operator - - scopeName type: object - v1.SeccompProfile: - description: SeccompProfile defines a pod/container's seccomp profile settings. - Only one profile source may be set. + discovery.v1.EndpointPort: + description: EndpointPort represents a Port used by an EndpointSlice example: - localhostProfile: localhostProfile - type: type + protocol: protocol + port: 0 + appProtocol: appProtocol + name: name 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: + appProtocol: description: |- - type indicates which kind of seccomp profile will be applied. Valid options are: + 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: - 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. + * 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 - 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. + 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: - immutable: true + 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: @@ -261143,34 +278955,40 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: - key: data + addressType: addressType kind: kind - type: type - stringData: - key: stringData + 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 - 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 + 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\ @@ -261178,71 +278996,28 @@ 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 + 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: + - addressType type: object x-kubernetes-group-version-kind: - - group: "" - kind: Secret + - group: discovery.k8s.io + kind: EndpointSlice 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.EndpointSliceList: + description: EndpointSliceList represents a list of endpoint slices example: metadata: remainingItemCount: 1 @@ -261254,500 +279029,293 @@ components: 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 + - endpoints: + - nodeName: nodeName + targetRef: + uid: uid apiVersion: apiVersion kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath name: name - blockOwnerDeletion: true - - uid: uid - controller: true + 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 - 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 + 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 - 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: 6 - path: path - key: key - - mode: 6 - 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: 7 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - 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: 6 - 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. 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 + - 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 - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + namespace: namespace + apiVersion: apiVersion + addressType: addressType + kind: kind + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol 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 + - protocol: protocol + port: 0 + appProtocol: appProtocol + name: name + - 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: 1 + port: 0 appProtocol: appProtocol name: name - nodePort: 6 - targetPort: targetPort - protocol: protocol - port: 1 + port: 0 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 + 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.ObjectMeta" - spec: - $ref: "#/components/schemas/v1.ServiceSpec" - status: - $ref: "#/components/schemas/v1.ServiceStatus" + $ref: "#/components/schemas/v1.ListMeta" + required: + - items type: object x-kubernetes-group-version-kind: - - group: "" - kind: Service + - group: discovery.k8s.io + kind: EndpointSliceList 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" + - 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: @@ -261794,48 +279362,71 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - apiVersion: apiVersion - automountServiceAccountToken: true + reportingInstance: reportingInstance + deprecatedCount: 0 kind: kind - imagePullSecrets: - - name: name - - name: name - secrets: - - uid: uid + 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 - - uid: uid + 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 - 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 + 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\ @@ -261843,34 +279434,47 @@ 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 + 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: "" - kind: ServiceAccount + - group: events.k8s.io + kind: Event version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ServiceAccountList: - description: ServiceAccountList is a list of ServiceAccount objects + events.v1.EventList: + description: EventList is a list of Event objects. example: metadata: remainingItemCount: 1 @@ -261882,7 +279486,9 @@ components: apiVersion: apiVersion kind: kind items: - - metadata: + - note: note + reason: reason + metadata: generation: 6 finalizers: - finalizers @@ -261928,28 +279534,41 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - apiVersion: apiVersion - automountServiceAccountToken: true + reportingInstance: reportingInstance + deprecatedCount: 0 kind: kind - imagePullSecrets: - - name: name - - name: name - secrets: - - uid: uid + 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 - - uid: uid + 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 - - metadata: + 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 @@ -261995,27 +279614,38 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - apiVersion: apiVersion - automountServiceAccountToken: true + reportingInstance: reportingInstance + deprecatedCount: 0 kind: kind - imagePullSecrets: - - name: name - - name: name - secrets: - - uid: uid + 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 - - uid: uid + 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\ @@ -262023,9 +279653,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 a list of schema objects. items: - $ref: "#/components/schemas/v1.ServiceAccount" + $ref: "#/components/schemas/events.v1.Event" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -262038,45 +279668,320 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: "" - kind: ServiceAccountList + - group: events.k8s.io + kind: EventList 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). + 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: - path: path - audience: audience - expirationSeconds: 3 + count: 6 + lastObservedTime: 2000-01-23T04:56:07.000+00:00 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." + 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 - 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 + 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 - path: - description: path is the path relative to the mount point of the file to - project the token into. + 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: - - path + - type type: object - v1.ServiceList: - description: ServiceList holds a list of services. + 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: + - 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: + 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" + required: + - spec + 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. Should be specified\ + \ and set to one of True, False, Unknown." + type: string + type: + description: '`type` is the type of the condition. Required.' + type: string + required: + - type + type: object + v1.FlowSchemaList: + description: FlowSchemaList is a list of FlowSchema objects. example: metadata: remainingItemCount: 1 @@ -262137,84 +280042,137 @@ 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 + priorityLevelConfiguration: 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 + 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 - 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 @@ -262265,84 +280223,137 @@ 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 + priorityLevelConfiguration: 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 + 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: - 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: @@ -262351,9 +280362,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 services + description: '`items` is a list of FlowSchemas.' items: - $ref: "#/components/schemas/v1.Service" + $ref: "#/components/schemas/v1.FlowSchema" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -262366,1911 +280377,1376 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: "" - kind: ServiceList + - group: flowcontrol.apiserver.k8s.io + kind: FlowSchemaList 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. + v1.FlowSchemaSpec: + description: FlowSchemaSpec describes how the FlowSchema's specification looks + like. 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 + priorityLevelConfiguration: 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 + 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: - 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." + 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 - 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/" + 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: - type: string + $ref: "#/components/schemas/v1.PolicyRulesWithSubjects" 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 + required: + - priorityLevelConfiguration type: object - v1.ServiceStatus: - description: ServiceStatus represents the current status of a service. + v1.FlowSchemaStatus: + description: FlowSchemaStatus represents the current state of a FlowSchema. 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 + description: '`conditions` is a list of the current states of FlowSchema.' items: - $ref: "#/components/schemas/v1.Condition" + $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 - 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 + v1.GroupSubject: + description: GroupSubject holds detailed information for group-kind subject. example: name: name - value: value properties: name: - description: Name of a property to set - type: string - value: - description: Value of a property to set + 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 - - value type: object - v1.TCPSocketAction: - description: TCPSocketAction describes an action based on opening a socket + v1.LimitResponse: + description: LimitResponse defines how to handle requests that can not be executed + right now. example: - port: port - host: host + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type 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 + 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: - - port + - type type: object - v1.Taint: - description: The node this Taint is attached to has the "effect" on any pod - that does not tolerate the Taint. + 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: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key + lendablePercent: 5 + borrowingLimitPercent: 1 + limitResponse: + queuing: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + type: type + nominalConcurrencyShares: 9 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. - format: date-time - type: string - value: - description: The taint value corresponding to the taint key. - type: string + 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 required: - - effect - - key + - limitResponse type: object - v1.Toleration: - description: "The pod this Toleration is attached to tolerates any taint that\ - \ matches the triple using the matching operator ." + 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: - effect: effect - tolerationSeconds: 6 - value: value - key: key - operator: operator + verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs 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, Equal, Lt, and Gt. Defaults to Equal. Exists is\ - \ equivalent to wildcard for value, so that a pod can tolerate all taints\ - \ of a particular category. Lt and Gt perform numeric comparisons (requires\ - \ feature gate TaintTolerationComparisonOperators)." - 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 + 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: + - nonResourceURLs + - verbs 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. + 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: - values: - - values - - values - key: key + 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: - 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. + nonResourceRules: + description: '`nonResourceRules` is a list of NonResourcePolicyRules that + identify matching requests according to their verb and the target non-resource + URL.' items: - type: string + $ref: "#/components/schemas/v1.NonResourcePolicyRule" 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. + 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.TopologySelectorLabelRequirement" + $ref: "#/components/schemas/v1.ResourcePolicyRule" 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: 8 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 9 - 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). + 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: - type: string + $ref: "#/components/schemas/flowcontrol.v1.Subject" 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 + - subjects type: object - v1.TypedLocalObjectReference: - description: TypedLocalObjectReference contains enough information to let you - locate the typed referenced object inside the same namespace. + v1.PriorityLevelConfiguration: + description: PriorityLevelConfiguration represents the configuration of a priority + level. example: - apiGroup: apiGroup + 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 - name: name + 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 + 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: - 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." + 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 the type of resource being referenced - type: string - name: - description: Name is the name of resource being referenced + 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.PriorityLevelConfigurationSpec" + status: + $ref: "#/components/schemas/v1.PriorityLevelConfigurationStatus" required: - - kind - - name + - spec type: object - x-kubernetes-map-type: atomic - v1.TypedObjectReference: - description: TypedObjectReference contains enough information to let you locate - the typed referenced object + x-kubernetes-group-version-kind: + - group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.PriorityLevelConfigurationCondition: + description: PriorityLevelConfigurationCondition defines the condition of priority + level. example: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status 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." + lastTransitionTime: + description: '`lastTransitionTime` is the last time the condition transitioned + from one status to another.' + format: date-time type: string - kind: - description: Kind is the type of resource being referenced + message: + description: '`message` is a human-readable message indicating details about + last transition.' type: string - name: - description: Name is the name of resource being referenced + reason: + description: "`reason` is a unique, one-word, CamelCase reason for the condition's\ + \ last transition." 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." + status: + description: "`status` is the status of the condition. Should be specified\ + \ and set to one of True, False, Unknown." + type: string + type: + description: '`type` is the type of the condition. Required.' type: string required: - - kind - - name + - type type: object - v1.Volume: - description: Volume represents a named volume in a pod that may be accessed - by any container in the pod. + v1.PriorityLevelConfigurationList: + description: PriorityLevelConfigurationList is a list of PriorityLevelConfiguration + objects. 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: 7 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - podCertificate: - certificateChainPath: certificateChainPath - userAnnotations: - key: userAnnotations - keyPath: keyPath - maxExpirationSeconds: 3 - keyType: keyType - credentialBundlePath: credentialBundlePath - signerName: signerName - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 3 - 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: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - podCertificate: - certificateChainPath: certificateChainPath - userAnnotations: - key: userAnnotations - keyPath: keyPath - maxExpirationSeconds: 3 - keyType: keyType - credentialBundlePath: credentialBundlePath - signerName: signerName - secret: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + 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 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 3 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - optional: true - signerName: signerName - defaultMode: 6 - 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: + 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 - 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 + namespace: namespace + apiVersion: apiVersion kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 1 - items: - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: + 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 + 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 - fieldPath: fieldPath - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 6 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 5 - 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: 3 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: + 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 - 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: 6 - 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 + namespace: namespace + 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 + 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: - 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). + 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 - 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. + items: + description: '`items` is a list of request-priorities.' + items: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + 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 + - items type: object - v1.VolumeMountStatus: - description: VolumeMountStatus shows status of volume mounts. + x-kubernetes-group-version-kind: + - group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfigurationList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.PriorityLevelConfigurationReference: + description: PriorityLevelConfigurationReference contains information that points + to the "request-priority" being used. example: - mountPath: mountPath name: name - readOnly: true - volumeStatus: - image: - imageRef: imageRef - 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." + description: '`name` is the name of the priority level configuration being + referenced Required.' type: string - volumeStatus: - $ref: "#/components/schemas/v1.VolumeStatus" required: - - mountPath - name type: object - v1.VolumeNodeAffinity: - description: VolumeNodeAffinity defines constraints that limit what nodes this - volume can be accessed from. + v1.PriorityLevelConfigurationSpec: + description: PriorityLevelConfigurationSpec specifies the configuration of a + priority level. 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 + 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: - required: - $ref: "#/components/schemas/v1.NodeSelector" + 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 - v1.VolumeProjection: - description: Projection that may be projected along with other supported volume - types. Exactly one of these fields must be set. + 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: - downwardAPI: - items: - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 2 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - podCertificate: - certificateChainPath: certificateChainPath - userAnnotations: - key: userAnnotations - keyPath: keyPath - maxExpirationSeconds: 3 - keyType: keyType - credentialBundlePath: credentialBundlePath - signerName: signerName - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 3 - 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 + 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: - clusterTrustBundle: - $ref: "#/components/schemas/v1.ClusterTrustBundleProjection" - configMap: - $ref: "#/components/schemas/v1.ConfigMapProjection" - downwardAPI: - $ref: "#/components/schemas/v1.DownwardAPIProjection" - podCertificate: - $ref: "#/components/schemas/v1.PodCertificateProjection" - secret: - $ref: "#/components/schemas/v1.SecretProjection" - serviceAccountToken: - $ref: "#/components/schemas/v1.ServiceAccountTokenProjection" + 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.VolumeResourceRequirements: - description: VolumeResourceRequirements describes the storage resource requirements - for a volume. + v1.QueuingConfiguration: + description: QueuingConfiguration holds the configuration parameters for queuing example: - requests: - key: null - limits: - key: null + handSize: 5 + queues: 7 + queueLengthLimit: 2 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 + 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.VolumeStatus: - description: VolumeStatus represents the status of a mounted volume. At most - one of its members must be specified. + 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: - image: - imageRef: imageRef + clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces properties: - image: - $ref: "#/components/schemas/v1.ImageVolumeStatus" + 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.VsphereVirtualDiskVolumeSource: - description: Represents a vSphere volume resource. + v1.ServiceAccountSubject: + description: ServiceAccountSubject holds detailed information for service-account-kind + subject. example: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType + name: name + namespace: namespace 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. + name: + description: "`name` is the name of matching ServiceAccount objects, or\ + \ \"*\" to match regardless of name. Required." type: string - volumePath: - description: volumePath is the path that identifies vSphere volume vmdk + namespace: + description: '`namespace` is the namespace of matching ServiceAccount objects. + Required.' type: string required: - - volumePath + - name + - namespace 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) + 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: - 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 + kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name 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 + 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: - - podAffinityTerm - - weight + - kind type: object - v1.WindowsSecurityContextOptions: - description: WindowsSecurityContextOptions contain Windows-specific options - and credentials. + 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: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName + name: name 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." + name: + description: "`name` is the username that matches, or \"*\" to match all\ + \ usernames. Required." type: string + required: + - name type: object - v1.Endpoint: - description: Endpoint represents a single logical "backend" implementing a service. + v1alpha1.Eviction: + description: |- + Eviction initiates an eviction process, which should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). + + The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. It manages the Eviction lifecycle. Requesters are preserved in .status.requesters even after they have withdrawn their request. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Once all EvictionRequest corresponding to this Eviction .spec.target have been removed, this Eviction object will eventually be garbage collected. + + If the target is a pod, the .status.targetResponders is populated from Pod's .spec.evictionResponders. + + Responders should observe and communicate through the .status to help with the eviction of the target when they see their state == Active in .status.targetResponders. ResponderStatus struct should then be periodically updated to indicate the progress or completion of the eviction process by each responder in .status.responders. If .status.responders[].heartbeatTime is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. + + If there are no other responders and the target is a pod, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource). example: - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers resourceVersion: resourceVersion - fieldPath: fieldPath + 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 - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: + apiVersion: apiVersion + kind: kind + spec: + target: + pod: + uid: uid + name: name + status: + requesters: - name: name + intent: intent - name: name - forNodes: + intent: intent + 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 + responders: + - completionTime: 2000-01-23T04:56:07.000+00:00 + expectedCompletionTime: 2000-01-23T04:56:07.000+00:00 + heartbeatTime: 2000-01-23T04:56:07.000+00:00 + name: name + startTime: 2000-01-23T04:56:07.000+00:00 + message: message + - completionTime: 2000-01-23T04:56:07.000+00:00 + expectedCompletionTime: 2000-01-23T04:56:07.000+00:00 + heartbeatTime: 2000-01-23T04:56:07.000+00:00 + name: name + startTime: 2000-01-23T04:56:07.000+00:00 + message: message + observedGeneration: 0 + targetResponders: - name: name + state: state + priority: 6 - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology + state: state + priority: 6 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. + 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 - targetRef: - $ref: "#/components/schemas/v1.ObjectReference" - zone: - description: zone is the name of the Zone this endpoint exists in. + 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.EvictionSpec" + status: + $ref: "#/components/schemas/v1alpha1.EvictionStatus" 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. - 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 + - spec 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. + x-kubernetes-group-version-kind: + - group: lifecycle.k8s.io + kind: Eviction + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha1.EvictionList: + description: EvictionList contains a list of Eviction resources. example: - endpoints: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers resourceVersion: resourceVersion - fieldPath: fieldPath + 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 - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: + apiVersion: apiVersion + kind: kind + spec: + target: + pod: + uid: uid + name: name + status: + requesters: - name: name + intent: intent - name: name - forNodes: + intent: intent + 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 + responders: + - completionTime: 2000-01-23T04:56:07.000+00:00 + expectedCompletionTime: 2000-01-23T04:56:07.000+00:00 + heartbeatTime: 2000-01-23T04:56:07.000+00:00 + name: name + startTime: 2000-01-23T04:56:07.000+00:00 + message: message + - completionTime: 2000-01-23T04:56:07.000+00:00 + expectedCompletionTime: 2000-01-23T04:56:07.000+00:00 + heartbeatTime: 2000-01-23T04:56:07.000+00:00 + name: name + startTime: 2000-01-23T04:56:07.000+00:00 + message: message + observedGeneration: 0 + targetResponders: - name: name + state: state + priority: 6 - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind + state: state + priority: 6 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers resourceVersion: resourceVersion - fieldPath: fieldPath + 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 - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: + apiVersion: apiVersion + kind: kind + spec: + target: + pod: + uid: uid + name: name + status: + requesters: - name: name + intent: intent - name: name - forNodes: + intent: intent + 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 + responders: + - completionTime: 2000-01-23T04:56:07.000+00:00 + expectedCompletionTime: 2000-01-23T04:56:07.000+00:00 + heartbeatTime: 2000-01-23T04:56:07.000+00:00 + name: name + startTime: 2000-01-23T04:56:07.000+00:00 + message: message + - completionTime: 2000-01-23T04:56:07.000+00:00 + expectedCompletionTime: 2000-01-23T04:56:07.000+00:00 + heartbeatTime: 2000-01-23T04:56:07.000+00:00 + name: name + startTime: 2000-01-23T04:56:07.000+00:00 + message: message + observedGeneration: 0 + targetResponders: - name: name + state: state + priority: 6 - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology + state: state + priority: 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 + items: + description: items is the list of Evictions. + items: + $ref: "#/components/schemas/v1alpha1.Eviction" + 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: lifecycle.k8s.io + kind: EvictionList + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha1.EvictionPodReference: + description: EvictionPodReference contains enough information to locate the + referenced pod inside the same namespace. + example: + uid: uid + name: name + properties: + name: + description: name of the target. This field is required. + type: string + uid: + description: uid of the target. It can be found in .metadata.uid of the + target and is a lowercase UUID in 8-4-4-4-12 format. This field is required. + type: string + required: + - name + - uid + type: object + v1alpha1.EvictionRequest: + description: |- + EvictionRequest defines a request that should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). + + The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. + - .spec.requester is set as a label on the Eviction for easier lookup. + - Each target can have a set of responders assigned to it. Eviction objects are observed by + these responders, who implement the eviction logic and update the Eviction's status with + progress. + + There is many-to-many relationship between EvictionRequests and Evictions in general. And many-to-one if the target is a pod. + + If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Deleting an EvictionRequest also counts as a withdrawal. Once all EvictionRequest of a target are removed, the corresponding Evictions are eventually garbage collected. + example: metadata: generation: 6 finalizers: @@ -264318,40 +281794,35 @@ 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 + kind: kind + spec: + requester: requester + intent: intent + target: + pod: + uid: uid + name: name + 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 + observedGeneration: 0 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.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\ @@ -264359,28 +281830,21 @@ 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. 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 + spec: + $ref: "#/components/schemas/v1alpha1.EvictionRequestSpec" + status: + $ref: "#/components/schemas/v1alpha1.EvictionRequestStatus" required: - - addressType + - spec type: object x-kubernetes-group-version-kind: - - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + - group: lifecycle.k8s.io + kind: EvictionRequest + version: v1alpha1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.EndpointSliceList: - description: EndpointSliceList represents a list of endpoint slices + v1alpha1.EvictionRequestList: + description: EvictionRequestList contains a list of EvictionRequests resources. example: metadata: remainingItemCount: 1 @@ -264392,62 +281856,7 @@ components: 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: + - metadata: generation: 6 finalizers: - finalizers @@ -264494,73 +281903,30 @@ 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 - - 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 + spec: + requester: requester + intent: intent + target: + pod: + uid: uid + name: name + 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 + observedGeneration: 0 + - metadata: generation: 6 finalizers: - finalizers @@ -264607,17 +281973,29 @@ 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: + requester: requester + intent: intent + target: + pod: + uid: uid + name: name + 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 + observedGeneration: 0 properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -264625,9 +282003,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 EvictionRequests. items: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1alpha1.EvictionRequest" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -264640,45 +282018,501 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: discovery.k8s.io - kind: EndpointSliceList - version: v1 + - group: lifecycle.k8s.io + kind: EvictionRequestList + version: v1alpha1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.ForNode: - description: ForNode provides information about which nodes should consume this - endpoint. + v1alpha1.EvictionRequestPodReference: + description: EvictionRequestPodReference contains enough information to locate + the referenced pod inside the same namespace. example: + uid: uid name: name properties: name: - description: name represents the name of the node. + description: name of the target. This field is required. + type: string + uid: + description: uid of the target. It can be found in .metadata.uid of the + target and is a lowercase UUID in 8-4-4-4-12 format. This field is required. type: string required: - name + - uid type: object - v1.ForZone: - description: ForZone provides information about which zones should consume this - endpoint. + v1alpha1.EvictionRequestSpec: + description: EvictionRequestSpec is a specification of an EvictionRequest. + example: + requester: requester + intent: intent + target: + pod: + uid: uid + name: name + properties: + intent: + description: |- + intent specifies the action that should be taken for the specified target. + + - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. + If all requesters' intents are withdrawn for a common target, the eviction will be canceled. + Cancellation consequences: + - Inactive responders will never run. + - Active responders are expected to cancel the eviction. + - Completed or Interrupted responders should not take any action. + type: string + requester: + description: |- + requester allows you to identify the entity, that requested the eviction of the target. + + It must be a valid domain-prefixed key (such as "acme.io/foo"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field is required and immutable. + type: string + target: + $ref: "#/components/schemas/v1alpha1.EvictionRequestTarget" + required: + - intent + - requester + - target + type: object + v1alpha1.EvictionRequestStatus: + description: EvictionRequestStatus represents the last observed status of the + eviction request. + 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 + observedGeneration: 0 + properties: + conditions: + description: |- + conditions contain information about the eviction request. + + EvictionRequest specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed + by any eviction responder. This can happen if the request is canceled or if no responder + managed to evict the target (e.g. terminate or delete a pod). + - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). + + These conditions can be reset if the eviction was unsuccessful and a new Eviction intent has been submitted. + + The maximum length of the conditions list is 100. + 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 + observedGeneration: + description: observedGeneration is EvictionRequest's .metadata.generation + observed by the evictionrequest-controller. The observed generation value + cannot be negative and can only be incremented. The minimum value is 1. + This field is managed by evictionrequest-controller. + format: int64 + type: integer + type: object + v1alpha1.EvictionRequestTarget: + description: EvictionRequestTarget contains a reference to an object that should + be evicted. + example: + pod: + uid: uid + name: name + properties: + pod: + $ref: "#/components/schemas/v1alpha1.EvictionRequestPodReference" + type: object + x-kubernetes-unions: + - fields-to-discriminateBy: + pod: Pod + v1alpha1.EvictionSpec: + description: EvictionSpec is a specification of an Eviction. + example: + target: + pod: + uid: uid + name: name + properties: + target: + $ref: "#/components/schemas/v1alpha1.EvictionTarget" + required: + - target + type: object + v1alpha1.EvictionStatus: + description: EvictionStatus represents the last observed status of the eviction + request. + example: + requesters: + - name: name + intent: intent + - name: name + intent: intent + 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 + responders: + - completionTime: 2000-01-23T04:56:07.000+00:00 + expectedCompletionTime: 2000-01-23T04:56:07.000+00:00 + heartbeatTime: 2000-01-23T04:56:07.000+00:00 + name: name + startTime: 2000-01-23T04:56:07.000+00:00 + message: message + - completionTime: 2000-01-23T04:56:07.000+00:00 + expectedCompletionTime: 2000-01-23T04:56:07.000+00:00 + heartbeatTime: 2000-01-23T04:56:07.000+00:00 + name: name + startTime: 2000-01-23T04:56:07.000+00:00 + message: message + observedGeneration: 0 + targetResponders: + - name: name + state: state + priority: 6 + - name: name + state: state + priority: 6 + properties: + conditions: + description: "conditions contain information about the eviction request.\n\ + \nEviction specific conditions are: TargetEvicted or Failed (managed by\ + \ evictionrequest-controller). - Failed means that the eviction request\ + \ is no longer being processed\n by any eviction responder. This can\ + \ happen if the request is canceled or if no responder\n managed to evict\ + \ the target (e.g. terminate or delete a pod).\n- TargetEvicted means\ + \ that the target has been evicted (e.g. a pod has been terminated or\ + \ deleted).\n\n\tThe maximum length of the conditions list is 100." + 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 + observedGeneration: + description: observedGeneration is Eviction's .metadata.generation observed + by the evictionrequest-controller. The observed generation value cannot + be negative and can only be incremented. The minimum value is 1. This + field is managed by evictionrequest-controller. + format: int64 + type: integer + requesters: + description: |- + requesters allow you to identify the entities, that requested the eviction of the target. If all the requesters withdraw their eviction intent, the eviction will be canceled. + + The maximum length of the requesters list is 100. If this limit is exceeded, requesters with Withdrawn intent should be dropped first. + items: + $ref: "#/components/schemas/v1alpha1.Requester" + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + responders: + description: |- + responders represents the eviction process status of each declared responder. + + The responder list should be the same length and have the same .name fields as .status.targetResponders. Only responders with .name that have Active state in .targetResponders[].state should be updated and can be mutated. First initialization of the list is allowed. + + Each ResponderStatus is initialized by evictionrequest-controller and then managed by the designated responder. + items: + $ref: "#/components/schemas/v1alpha1.ResponderStatus" + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + targetResponders: + description: |- + targetResponders reference responders that should eventually respond to this eviction to help with the graceful eviction of a target. These responders are selected sequentially, according to their specified priority by setting the Active state to the TargetResponder .state field. The maximum number of active responders allowed is 1. Eventually each responder can end up in an Interrupted, Canceled or, Completed state. Responders should observe these states in order to navigate their lifecycle. + + If the target is a pod, the field is populated from Pod's .spec.evictionResponders. Default responders may be added to the list according to the target. + + Default responders: - imperative-eviction.k8s.io/evictor responder with a priority of 100 is added to the list if the + target is a pod. It will call the imperative Eviction API (pods//eviction subresource). + This call may not succeed due to PodDisruptionBudgets, which may block the pod termination. + It will update the responder message and try again with a backoff. + + The maximum length of the responders list is 11. The length and keys of the list cannot change once set. This field is managed by evictionrequest-controller. + items: + $ref: "#/components/schemas/v1alpha1.TargetResponder" + 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 + v1alpha1.EvictionTarget: + description: EvictionTarget contains a reference to an object that should be + evicted. + example: + pod: + uid: uid + name: name + properties: + pod: + $ref: "#/components/schemas/v1alpha1.EvictionPodReference" + type: object + x-kubernetes-unions: + - fields-to-discriminateBy: + pod: Pod + v1alpha1.Requester: + description: "Requester allows you to identify the entity, that requested the\ + \ eviction of the target." example: name: name + intent: intent properties: + intent: + description: |- + intent specifies the action that should be taken for the specified target. + + - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. + If all requesters' intents are withdrawn, the eviction will be canceled. + Cancellation consequences: + - Inactive responders will never run. + - Active responders are expected to cancel the eviction. + - Completed or Interrupted responders should not take any action. + type: string name: - description: name represents the name of the zone. + description: |- + name allows you to identify the entity, that requested the eviction of the target. + + It must be a valid domain-prefixed key (such as "acme.io/foo"). This field must be unique for each requester. This field is required. type: string required: + - intent - 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." + x-kubernetes-map-type: atomic + v1alpha1.ResponderStatus: + description: ResponderStatus represents the last observed status of the eviction + process of the responder. It should be only updated by the designated responder + whose name is .name field. + example: + completionTime: 2000-01-23T04:56:07.000+00:00 + expectedCompletionTime: 2000-01-23T04:56:07.000+00:00 + heartbeatTime: 2000-01-23T04:56:07.000+00:00 + name: name + startTime: 2000-01-23T04:56:07.000+00:00 + message: message + properties: + completionTime: + description: "completionTime tracks the time at which the Responder stopped\ + \ processing the eviction request. Completion means that the responders\ + \ has either fully or partially completed the eviction process, which\ + \ may have resulted in target eviction (e.g. pod termination). It should\ + \ reflect the present time when set. This field becomes immutable once\ + \ set." + format: date-time + type: string + expectedCompletionTime: + description: expectedCompletionTime is the time at which the eviction process + step is expected to end for the responder. The time cannot be set to the + past. May be omitted if no estimate can be made. + format: date-time + type: string + heartbeatTime: + description: heartbeatTime is the last time at which the eviction process + was reported to be in progress by the responder. It should reflect the + present time when set. Responders should avoid heartbeats more frequent + than 20 seconds to avoid overloading the control-plane. + format: date-time + type: string + message: + description: message provides human-readable details about the state of + the responder and the eviction process. Maximum length is 4000 characters. + type: string + name: + description: |- + name allows you to identify the responder reacting to the Eviction. + + It must be a valid domain-prefixed key (such as "acme.io/foo"). This field is initialized by Kubernetes and must be unique for each responder. This field is required. + type: string + startTime: + description: startTime tracks the time at which this responder was designated + as active and should start processing the eviction request. It should + reflect the present time when set. This field is initialized by Kubernetes + when this responder becomes active. This field becomes immutable once + set. + format: date-time + type: string + required: + - name + type: object + x-kubernetes-map-type: granular + v1alpha1.TargetResponder: + description: TargetResponder allows you to specify the responder reacting to + the Eviction. Responders should observe and communicate through the Eviction + API (see .state) to help with the graceful eviction of a target (e.g. termination + of a pod). + example: + name: name + state: state + priority: 6 + properties: + name: + description: |- + name allows you to identify the responder reacting to the Eviction. + + It must be a valid domain-prefixed key (such as "acme.io/foo"). This field must be unique for each responder. This field is required. + type: string + priority: + description: |- + priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. + + The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. + + The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required and immutable. + format: int32 + type: integer + state: + description: "state specifies a state that is assigned by the evictionrequest-controller.\ + \ Responders should observe this state in order to navigate their lifecycle.\ + \ - Inactive means that the responder should not yet process this eviction\ + \ request. - Active means that the responder is either running or expected\ + \ to start soon.\n Also, startTime has been set in the ResponderStatus\ + \ by the evictionrequest-controller.\n\n An active responder should currently\ + \ interact with the eviction process by updating\n .status.responders,\ + \ where .name is the active responder name. ResponderStatus fields\n \ + \ should be periodically updated to indicate the progress or completion\ + \ of the eviction process.\n If .status.responders[].heartbeatTime field\ + \ is not updated within the heartbeat deadline defined\n by the Eviction\ + \ API (currently 20 minutes), the eviction is passed over to the next\ + \ responder\n\t with a lower priority. Only one responder can be active\ + \ at a time.\n- Interrupted means that the responder has failed to start\ + \ or failed to update\n heartbeatTime in ResponderStatus in a timely\ + \ manner.\n- Canceled means that the responder has been canceled. In other\ + \ words, there\tis no\n EvictionRequest with the same target and Eviction\ + \ intent in .spec.intent.\n- Completed means that the responder has successfully\ + \ completed and set completionTime\n in ResponderStatus.\n\nPlease refer\ + \ to the ResponderStatus in .status.responders for more details on each\ + \ responder." + type: string + required: + - name + - priority + - state + type: object + x-kubernetes-map-type: atomic + 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 + required: + - paths + type: object + 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: - note: note - reason: reason metadata: generation: 6 finalizers: @@ -264725,71 +282559,20 @@ 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: + parentRef: + resource: resource + name: name + namespace: namespace + group: group 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\ @@ -264797,47 +282580,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 + spec: + $ref: "#/components/schemas/v1.IPAddressSpec" required: - - eventTime + - spec type: object x-kubernetes-group-version-kind: - - group: events.k8s.io - kind: Event + - group: networking.k8s.io + kind: IPAddress version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - events.v1.EventList: - description: EventList is a list of Event objects. + v1.IPAddressList: + description: IPAddressList contains a list of IPAddress. example: metadata: remainingItemCount: 1 @@ -264849,9 +282604,7 @@ components: apiVersion: apiVersion kind: kind items: - - note: note - reason: reason - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -264897,41 +282650,15 @@ 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: + parentRef: + resource: resource + name: name + namespace: namespace + group: group + - metadata: generation: 6 finalizers: - finalizers @@ -264977,38 +282704,14 @@ 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: + parentRef: + resource: resource + name: name + namespace: namespace + group: group properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -265016,9 +282719,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 IPAddresses. items: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1.IPAddress" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -265031,78 +282734,252 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: events.k8s.io - kind: EventList + - group: networking.k8s.io + kind: IPAddressList 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." + v1.IPAddressSpec: + description: IPAddressSpec describe the attributes in an IP Address. example: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 + parentRef: + resource: resource + name: name + namespace: namespace + group: group 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 + parentRef: + $ref: "#/components/schemas/v1.ParentReference" required: - - count - - lastObservedTime + - parentRef 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`." + 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: - lendablePercent: 0 - nominalConcurrencyShares: 6 + cidr: cidr + except: + - except + - except 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 + 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 + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - cidr type: object - v1.FlowDistinguisherMethod: - description: FlowDistinguisherMethod specifies the method of a flow distinguisher. + 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: - type: type + 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: + 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 properties: - type: - description: '`type` is the type of flow distinguisher method The supported - types are "ByUser" and "ByNamespace". Required.' + 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 - required: - - type + 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.IngressSpec" + status: + $ref: "#/components/schemas/v1.IngressStatus" 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\"." + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: Ingress + 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." example: metadata: generation: 6 @@ -265153,138 +283030,13 @@ components: apiVersion: apiVersion kind: kind spec: - priorityLevelConfiguration: + controller: controller + parameters: + apiGroup: apiGroup + kind: kind + scope: scope 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 + namespace: namespace properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -265299,48 +283051,224 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: "#/components/schemas/v1.FlowSchemaSpec" - status: - $ref: "#/components/schemas/v1.FlowSchemaStatus" + $ref: "#/components/schemas/v1.IngressClassSpec" type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + - group: networking.k8s.io + kind: IngressClass version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.FlowSchemaCondition: - description: FlowSchemaCondition describes conditions for a FlowSchema. + v1.IngressClassList: + description: IngressClassList is a collection of IngressClasses. example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + 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: + controller: controller + parameters: + apiGroup: apiGroup + kind: kind + scope: scope + 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 + kind: kind + spec: + controller: controller + parameters: + apiGroup: apiGroup + kind: kind + scope: scope + name: name + namespace: namespace properties: - lastTransitionTime: - description: '`lastTransitionTime` is the last time the condition transitioned - from one status to another.' - format: date-time + 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 - message: - description: '`message` is a human-readable message indicating details about - last transition.' + items: + description: items is the list of IngressClasses. + items: + $ref: "#/components/schemas/v1.IngressClass" + 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 - reason: - description: "`reason` is a unique, one-word, CamelCase reason for the condition's\ - \ last transition." + metadata: + $ref: "#/components/schemas/v1.ListMeta" + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: IngressClassList + 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 - status: - description: "`status` is the status of the condition. Can be True, False,\ - \ Unknown. Required." + kind: + description: kind is the type of resource being referenced. type: string - type: - description: '`type` is the type of the condition. Required.' + 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.FlowSchemaList: - description: FlowSchemaList is a list of FlowSchema objects. + 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 @@ -265401,138 +283329,102 @@ components: 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: + defaultBackend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 name: name - distinguisherMethod: - type: type + 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: - 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 + 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 - metadata: generation: 6 finalizers: @@ -265582,138 +283474,102 @@ components: 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: + defaultBackend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 name: name - distinguisherMethod: - type: type + 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: - 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 + 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: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -265721,9 +283577,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 the list of Ingress. items: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.Ingress" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -265736,407 +283592,340 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: FlowSchemaList + - group: networking.k8s.io + kind: IngressList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.FlowSchemaSpec: - description: FlowSchemaSpec describes how the FlowSchema's specification looks - like. + v1.IngressLoadBalancerIngress: + description: IngressLoadBalancerIngress represents the status of a load-balancer + ingress point. 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 + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 6 + error: error + - protocol: protocol + port: 6 + error: error 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." + 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. items: - $ref: "#/components/schemas/v1.PolicyRulesWithSubjects" + $ref: "#/components/schemas/v1.IngressPortStatus" type: array x-kubernetes-list-type: atomic - required: - - priorityLevelConfiguration type: object - v1.FlowSchemaStatus: - description: FlowSchemaStatus represents the current state of a FlowSchema. + v1.IngressLoadBalancerStatus: + description: IngressLoadBalancerStatus represents the status of a load-balancer. 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 + 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: - conditions: - description: '`conditions` is a list of the current states of FlowSchema.' + ingress: + description: ingress is a list containing ingress points for the load-balancer. items: - $ref: "#/components/schemas/v1.FlowSchemaCondition" + $ref: "#/components/schemas/v1.IngressLoadBalancerIngress" 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 type: object - v1.GroupSubject: - description: GroupSubject holds detailed information for group-kind subject. + v1.IngressPortStatus: + description: IngressPortStatus represents the error condition of a service port example: - name: name + protocol: protocol + port: 6 + error: error 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." + 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 - 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.' + 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: - - type + - port + - protocol 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? + 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: - lendablePercent: 5 - borrowingLimitPercent: 1 - limitResponse: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - nominalConcurrencyShares: 9 + 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: - 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 + 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.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.IngressServiceBackend: + description: IngressServiceBackend references a Kubernetes Service as a Backend. example: - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs + port: + number: 0 + name: name + name: name 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 + 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: - - nonResourceURLs - - verbs + - name 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.IngressSpec: + description: IngressSpec describes the Ingress the user wishes to exist. 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: + defaultBackend: + resource: + apiGroup: apiGroup + kind: kind name: name - group: + 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: - nonResourceRules: - description: '`nonResourceRules` is a list of NonResourcePolicyRules that - identify matching requests according to their verb and the target non-resource - URL.' + 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.NonResourcePolicyRule" + $ref: "#/components/schemas/v1.IngressRule" 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.' + 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.ResourcePolicyRule" + $ref: "#/components/schemas/v1.IngressTLS" 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." + 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: - $ref: "#/components/schemas/flowcontrol.v1.Subject" + type: string type: array x-kubernetes-list-type: atomic - required: - - subjects + 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.PriorityLevelConfiguration: - description: PriorityLevelConfiguration represents the configuration of a priority - level. + v1.NetworkPolicy: + description: NetworkPolicy describes what network traffic is allowed for a set + of Pods example: metadata: generation: 6 @@ -266187,32 +283976,321 @@ 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 - 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 + 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: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -266227,50 +284305,222 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: "#/components/schemas/v1.PriorityLevelConfigurationSpec" - status: - $ref: "#/components/schemas/v1.PriorityLevelConfigurationStatus" + $ref: "#/components/schemas/v1.NetworkPolicySpec" type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + - group: networking.k8s.io + kind: NetworkPolicy version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.PriorityLevelConfigurationCondition: - description: PriorityLevelConfigurationCondition defines the condition of priority - level. + 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: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status + 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: - 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 + 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.PriorityLevelConfigurationList: - description: PriorityLevelConfigurationList is a list of PriorityLevelConfiguration - objects. + v1.NetworkPolicyList: + description: NetworkPolicyList is a list of NetworkPolicy objects. example: metadata: remainingItemCount: 1 @@ -266331,32 +284581,321 @@ 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 - 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 + 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: @@ -266406,32 +284945,321 @@ 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 - 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 + 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: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -266439,9 +285267,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 schema objects. items: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.NetworkPolicy" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -266454,356 +285282,493 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfigurationList + - group: networking.k8s.io + kind: NetworkPolicyList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.PriorityLevelConfigurationReference: - description: PriorityLevelConfigurationReference contains information that points - to the "request-priority" being used. - example: - name: name - properties: - 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". + v1.NetworkPolicyPeer: + description: NetworkPolicyPeer describes a peer to allow traffic to/from. Only + certain combinations of fields are allowed 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 + 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 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 + ipBlock: + $ref: "#/components/schemas/v1.IPBlock" + namespaceSelector: + $ref: "#/components/schemas/v1.LabelSelector" + podSelector: + $ref: "#/components/schemas/v1.LabelSelector" type: object - v1.QueuingConfiguration: - description: QueuingConfiguration holds the configuration parameters for queuing + v1.NetworkPolicyPort: + description: NetworkPolicyPort describes a port to allow traffic on example: - handSize: 5 - queues: 7 - queueLengthLimit: 2 + protocol: protocol + port: port + endPort: 0 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.' + 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 + type: string + protocol: + description: "protocol represents the protocol (TCP, UDP, or SCTP) which\ + \ traffic must match. If not specified, this field defaults to TCP." + type: string 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." + v1.NetworkPolicySpec: + description: NetworkPolicySpec provides the specification of a NetworkPolicy example: - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces + 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: - 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." + 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: - type: string + $ref: "#/components/schemas/v1.NetworkPolicyEgressRule" 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." + 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: - type: string + $ref: "#/components/schemas/v1.NetworkPolicyIngressRule" 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." + 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: set - required: - - apiGroups - - resources - - verbs + x-kubernetes-list-type: atomic type: object - v1.ServiceAccountSubject: - description: ServiceAccountSubject holds detailed information for service-account-kind - subject. + v1.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` is the name of matching ServiceAccount objects, or\ - \ \"*\" to match regardless of name. Required." + description: name is the name of the object being referenced. type: string namespace: - description: '`namespace` is the namespace of matching ServiceAccount objects. - Required.' + description: namespace is the namespace of the object being referenced. 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' + resource: + description: resource is the resource of the object being referenced. type: string - serviceAccount: - $ref: "#/components/schemas/v1.ServiceAccountSubject" - user: - $ref: "#/components/schemas/v1.UserSubject" required: - - kind + - name + - resource 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. + v1.ServiceBackendPort: + description: ServiceBackendPort is the service port being referenced. example: + number: 0 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. + description: name is the name of the port on the Service. This is a mutually + exclusive setting with "Number". 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 - required: - - paths + 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 type: object - 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" + x-kubernetes-map-type: atomic + 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: metadata: generation: 6 @@ -266854,11 +285819,23 @@ components: apiVersion: apiVersion kind: kind spec: - parentRef: - resource: resource - name: name - namespace: namespace - group: group + 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\ @@ -266873,18 +285850,18 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: "#/components/schemas/v1.IPAddressSpec" - required: - - spec + $ref: "#/components/schemas/v1.ServiceCIDRSpec" + status: + $ref: "#/components/schemas/v1.ServiceCIDRStatus" type: object x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress + kind: ServiceCIDR version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.IPAddressList: - description: IPAddressList contains a list of IPAddress. + v1.ServiceCIDRList: + description: ServiceCIDRList contains a list of ServiceCIDR objects. example: metadata: remainingItemCount: 1 @@ -266945,11 +285922,23 @@ components: apiVersion: apiVersion kind: kind spec: - parentRef: - resource: resource - name: name - namespace: namespace - group: group + 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: @@ -266999,11 +285988,23 @@ components: apiVersion: apiVersion kind: kind spec: - parentRef: - resource: resource - name: name - namespace: namespace - group: group + 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\ @@ -267011,9 +286012,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 ServiceCIDRs. items: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -267027,252 +286028,79 @@ components: type: object x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddressList + kind: ServiceCIDRList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.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/v1.ParentReference" - required: - - parentRef - 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.ServiceCIDRSpec: + description: ServiceCIDRSpec define the CIDRs the user wants to use for allocating + ClusterIPs for Services. example: - cidr: cidr - except: - - except - - except + cidrs: + - cidrs + - cidrs 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 + 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 - 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.ServiceCIDRStatus: + description: ServiceCIDRStatus describes the current state of the ServiceCIDR. 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: - 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 + 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.IngressSpec" - status: - $ref: "#/components/schemas/v1.IngressStatus" + 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 - x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: Ingress - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.IngressBackend: - description: IngressBackend describes all endpoints for a given service and - port. + v1.Overhead: + description: Overhead structure represents the resource overhead associated + with running a pod. example: - resource: - apiGroup: apiGroup - kind: kind - name: name - service: - port: - number: 0 - name: name - name: name + podFixed: + key: null properties: - resource: - $ref: "#/components/schemas/v1.TypedLocalObjectReference" - service: - $ref: "#/components/schemas/v1.IngressServiceBackend" + podFixed: + additionalProperties: + $ref: "#/components/schemas/resource.Quantity" + description: podFixed represents the fixed resource overhead associated + with running a pod. + type: object 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.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: @@ -267321,246 +286149,62 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - controller: controller - parameters: - apiGroup: apiGroup - kind: kind - scope: scope - name: name - namespace: namespace + overhead: + podFixed: + key: null + scheduling: + tolerations: + - effect: effect + tolerationSeconds: 8 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 8 + 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 - 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.IngressClassSpec" - type: object - x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: IngressClass - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.IngressClassList: - description: IngressClassList is a collection of IngressClasses. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - shardInfo: - selector: selector - 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: - controller: controller - parameters: - apiGroup: apiGroup - kind: kind - scope: scope - 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 - kind: kind - 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" + 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 - items: - description: items is the list of IngressClasses. - items: - $ref: "#/components/schemas/v1.IngressClass" - 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: IngressClassList - 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". + \ object represents. Servers may infer this from the endpoint the client\ + \ 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" + overhead: + $ref: "#/components/schemas/v1.Overhead" + scheduling: + $ref: "#/components/schemas/v1.Scheduling" 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" + - handler type: object - v1.IngressList: - description: IngressList is a collection of Ingress. + x-kubernetes-group-version-kind: + - group: node.k8s.io + kind: RuntimeClass + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.RuntimeClassList: + description: RuntimeClassList is a list of RuntimeClass objects. example: metadata: remainingItemCount: 1 @@ -267572,7 +286216,8 @@ components: apiVersion: apiVersion kind: kind items: - - metadata: + - handler: handler + metadata: generation: 6 finalizers: - finalizers @@ -267620,104 +286265,25 @@ components: namespace: namespace 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 - - metadata: + overhead: + podFixed: + key: null + scheduling: + tolerations: + - effect: effect + tolerationSeconds: 8 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 8 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector + - handler: handler + metadata: generation: 6 finalizers: - finalizers @@ -267765,103 +286331,23 @@ components: namespace: namespace 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 + overhead: + podFixed: + key: null + scheduling: + tolerations: + - effect: effect + tolerationSeconds: 8 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 8 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -267869,9 +286355,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 schema objects. items: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1.RuntimeClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -267884,340 +286370,139 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: IngressList + - group: node.k8s.io + kind: RuntimeClassList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.IngressLoadBalancerIngress: - description: IngressLoadBalancerIngress represents the status of a load-balancer - ingress point. - example: - hostname: hostname - ip: ip - ports: - - protocol: protocol - port: 6 - error: error - - protocol: protocol - port: 6 - error: error - 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. - items: - $ref: "#/components/schemas/v1.IngressPortStatus" - type: array - x-kubernetes-list-type: atomic - type: object - v1.IngressLoadBalancerStatus: - description: IngressLoadBalancerStatus represents the status of a load-balancer. + v1.Scheduling: + description: Scheduling specifies the scheduling constraints for nodes supporting + a RuntimeClass. 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 + tolerations: + - effect: effect + tolerationSeconds: 8 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 8 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector properties: - ingress: - description: ingress is a list containing ingress points for the load-balancer. + 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." items: - $ref: "#/components/schemas/v1.IngressLoadBalancerIngress" + $ref: "#/components/schemas/v1.Toleration" 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. + 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: - defaultBackend: - resource: - apiGroup: apiGroup + 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 - service: - port: - number: 0 - name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind 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 + 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: - 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." + 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 - 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." + 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 - v1.NetworkPolicy: - description: NetworkPolicy describes what network traffic is allowed for a set - of Pods + 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 @@ -268267,322 +286552,45 @@ 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 + spec: + 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\ @@ -268597,222 +286605,18 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: "#/components/schemas/v1.NetworkPolicySpec" + $ref: "#/components/schemas/v1.PodDisruptionBudgetSpec" + status: + $ref: "#/components/schemas/v1.PodDisruptionBudgetStatus" type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: NetworkPolicy + - group: policy + kind: PodDisruptionBudget 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.PodDisruptionBudgetList: + description: PodDisruptionBudgetList is a collection of PodDisruptionBudgets. example: metadata: remainingItemCount: 1 @@ -268873,156 +286677,10 @@ components: 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: + minAvailable: minAvailable + maxUnavailable: maxUnavailable + unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy + selector: matchExpressions: - values: - values @@ -269036,158 +286694,567 @@ components: 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 + 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: + - 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: + 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\ + \ of an object. Servers should convert recognized schemas to 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 PodDisruptionBudgets + items: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + 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: policy + kind: PodDisruptionBudgetList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.PodDisruptionBudgetSpec: + description: PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. + example: + 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: + 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 + 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 + type: object + 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 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.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 + currentHealthy: + description: current number of healthy pods + format: int32 + type: integer + desiredHealthy: + description: minimum desired number of healthy pods + format: int32 + type: integer + 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 + 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 + type: object + v1.AggregationRule: + description: AggregationRule describes how to locate ClusterRoles to aggregate + into the ClusterRole + example: + 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: + 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: + $ref: "#/components/schemas/v1.LabelSelector" + type: array + x-kubernetes-list-type: atomic + type: object + 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 + 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 + 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 + 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\ + \ 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 ClusterRole + 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: ClusterRole + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + 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 + 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\ + \ of an object. Servers should convert recognized schemas to 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" + 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: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ClusterRoleBindingList: + description: ClusterRoleBindingList is a collection of ClusterRoleBindings + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: - metadata: generation: 6 finalizers: @@ -269236,322 +287303,80 @@ 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: + - 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\ @@ -269559,9 +287384,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 ClusterRoleBindings items: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1.ClusterRoleBinding" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -269574,330 +287399,73 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: NetworkPolicyList + - group: rbac.authorization.k8s.io + kind: ClusterRoleBindingList 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: - 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 - properties: - ipBlock: - $ref: "#/components/schemas/v1.IPBlock" - namespaceSelector: - $ref: "#/components/schemas/v1.LabelSelector" - podSelector: - $ref: "#/components/schemas/v1.LabelSelector" - type: object - v1.NetworkPolicyPort: - description: NetworkPolicyPort describes a port to allow traffic on - example: - protocol: protocol - port: port - endPort: 0 - 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 - type: string - protocol: - description: "protocol represents the protocol (TCP, UDP, or SCTP) which\ - \ traffic must match. If not specified, this field defaults to TCP." - type: string - type: object - v1.NetworkPolicySpec: - description: NetworkPolicySpec provides the specification of a NetworkPolicy + v1.ClusterRoleList: + description: ClusterRoleList is a collection of ClusterRoles 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: - - 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: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + 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 + aggregationRule: + clusterRoleSelectors: + - matchExpressions: - values: - values - values @@ -269910,13 +287478,7 @@ components: operator: operator matchLabels: key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: + - matchExpressions: - values: - values - values @@ -269929,8 +287491,88 @@ components: operator: operator matchLabels: key: matchLabels - - podSelector: - matchExpressions: + 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 + aggregationRule: + clusterRoleSelectors: + - matchExpressions: - values: - values - values @@ -269943,13 +287585,7 @@ components: operator: operator matchLabels: key: matchLabels - ipBlock: - cidr: cidr - except: - - except - - except - namespaceSelector: - matchExpressions: + - matchExpressions: - values: - values - values @@ -269962,105 +287598,246 @@ components: operator: operator matchLabels: key: matchLabels - ports: - - protocol: protocol - port: port - endPort: 0 - - protocol: protocol - port: port - endPort: 0 + 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\ + \ of an object. Servers should convert recognized schemas to 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 ClusterRoles + items: + $ref: "#/components/schemas/v1.ClusterRole" + 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: ClusterRoleList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + 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: + resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs 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" + 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.NetworkPolicyEgressRule" + type: string 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)" + 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.NetworkPolicyIngressRule" + type: string 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" + 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. '*' + represents all resources. + items: + type: string + type: array + x-kubernetes-list-type: atomic + 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 - type: object - v1.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 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 + - verbs type: object - v1.ServiceBackendPort: - description: ServiceBackendPort is the service port being referenced. + v1.Role: + description: "Role is a namespaced, logical grouping of PolicyRules that can\ + \ be referenced as a unit by a RoleBinding." example: - number: 0 - name: name + 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: - name: - description: name is the name of the port on the Service. This is a mutually - exclusive setting with "Number". + 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 - 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 + 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-map-type: atomic - 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. + 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 @@ -270110,24 +287887,19 @@ components: 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 + 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\ @@ -270141,19 +287913,25 @@ components: type: string metadata: $ref: "#/components/schemas/v1.ObjectMeta" - spec: - $ref: "#/components/schemas/v1.ServiceCIDRSpec" - status: - $ref: "#/components/schemas/v1.ServiceCIDRStatus" + 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: ServiceCIDR + - group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ServiceCIDRList: - description: ServiceCIDRList contains a list of ServiceCIDR objects. + v1.RoleBindingList: + description: RoleBindingList is a collection of RoleBindings example: metadata: remainingItemCount: 1 @@ -270213,24 +287991,19 @@ components: 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 + 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: @@ -270279,24 +288052,19 @@ components: 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 + 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\ @@ -270304,9 +288072,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 ServiceCIDRs. + description: Items is a list of RoleBindings items: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RoleBinding" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -270319,147 +288087,13 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: ServiceCIDRList + - group: rbac.authorization.k8s.io + kind: RoleBindingList 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 - 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: - 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" - required: - - spec - 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. + v1.RoleList: + description: RoleList is a collection of Roles example: metadata: remainingItemCount: 1 @@ -270519,12 +288153,37 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - parentRef: - resource: resource - name: name - namespace: namespace - group: group + 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: @@ -270573,465 +288232,1006 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - spec: - parentRef: - resource: resource - name: name - namespace: namespace - group: group + 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 - items: - description: items is the list of IPAddresses. - items: - $ref: "#/components/schemas/v1beta1.IPAddress" - 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" + items: + description: Items is a list of Roles + items: + $ref: "#/components/schemas/v1.Role" + 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: RoleList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.RoleRef: + description: RoleRef contains information that points to the role being used + example: + apiGroup: apiGroup + kind: kind + name: name + properties: + 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: + - kind + - name + type: object + 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: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + properties: + 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 + 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 + v1.AllocatedDeviceStatus: + description: |- + AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. + + The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. + example: + data: "{}" + driver: driver + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool + shareID: shareID + 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. It should use only lower case characters. + type: string + networkData: + $ref: "#/components/schemas/v1.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 + shareID: + description: ShareID uniquely identifies an individual allocation share + of the device. + type: string + required: + - device + - driver + - pool + type: object + v1.AllocationResult: + description: AllocationResult contains attributes of an allocated resource. + example: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 + 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 + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + - request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + 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: + allocationTimestamp: + description: |- + AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. + + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + format: date-time + type: string + devices: + $ref: "#/components/schemas/v1.DeviceAllocationResult" + nodeSelector: + $ref: "#/components/schemas/v1.NodeSelector" + type: object + v1.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. + - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device + (v1.34+ with the DRAConsumableCapacity feature enabled). + + 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. + + Common errors: - "no such key": Use optional chaining (.? followed by orValue()) + or guarding the check with has() for optional fields. + See CEL Optional Types for details: + https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes + + For more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/ + + 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) + + When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: + + device.attributes["dra.example.com"].models.includes("some-model") + + 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 + v1.CapacityRequestPolicy: + description: |- + CapacityRequestPolicy defines how requests consume device capacity. + + Must not set more than one ValidRequestValues. + example: + default: default + validRange: + min: min + max: max + step: step + validValues: + - null + - null + properties: + default: + 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 + validRange: + $ref: "#/components/schemas/v1.CapacityRequestPolicyRange" + validValues: + description: |- + ValidValues defines a set of acceptable quantity values in consuming requests. + + Must not contain more than 10 entries. Must be sorted in ascending order. + + If this field is set, Default must be defined and it must be included in ValidValues list. + + If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). + + If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. + items: + $ref: "#/components/schemas/resource.Quantity" + type: array + x-kubernetes-list-type: atomic + type: object + v1.CapacityRequestPolicyRange: + description: |- + CapacityRequestPolicyRange defines a valid range for consumable capacity values. + + If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). + + - If the requested amount is less than Min, it is rounded up to the Min value. + - If Step is set and the requested amount is between Min and Max but not aligned with Step, + it will be rounded up to the next value equal to Min + (n * Step). + - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). + - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, + and the device cannot be allocated. + example: + min: min + max: max + step: step + properties: + max: + 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 + min: + 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 + step: + 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 - metadata: - $ref: "#/components/schemas/v1.ListMeta" required: - - items + - min type: object - x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: IPAddressList - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1beta1.IPAddressSpec: - description: IPAddressSpec describe the attributes in an IP Address. + v1.CapacityRequirements: + description: CapacityRequirements defines the capacity requirements for a specific + device request. example: - parentRef: - resource: resource - name: name - namespace: namespace - group: group + requests: + key: null properties: - parentRef: - $ref: "#/components/schemas/v1beta1.ParentReference" + requests: + additionalProperties: + $ref: "#/components/schemas/resource.Quantity" + description: |- + Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. + + This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[]..compareTo(quantity()) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. + + When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. + + For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity + (i.e., the whole device is claimed). + - If a requestPolicy is set, the default consumed capacity is determined according to that policy. + + If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. + type: object + type: object + v1.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: - - parentRef + - value type: object - v1beta1.ParentReference: - description: ParentReference describes a reference to a parent object. + v1.CounterSet: + description: |- + CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. + + 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: - resource: resource + counters: + key: + value: value name: name - namespace: namespace - group: group properties: - group: - description: Group is the group of the object being referenced. - type: string + counters: + additionalProperties: + $ref: "#/components/schemas/v1.Counter" + description: |- + 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. + type: object 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. + description: Name defines the name of the counter set. It must be a DNS + label. type: string required: + - counters - name - - resource 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. + v1.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: - 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 + nodeName: nodeName + allowMultipleAllocations: true + consumesCounters: + - counters: + key: + value: value + compatibilityGroups: + - compatibilityGroups + - compatibilityGroups + counterSet: counterSet + - counters: + key: + value: value + compatibilityGroups: + - compatibilityGroups + - compatibilityGroups + counterSet: counterSet + 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 + bindingConditions: + - bindingConditions + - bindingConditions + capacity: + key: + value: value + requestPolicy: + default: default + validRange: + min: min + max: max + step: step + validValues: + - null + - 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 + nodeAllocatableResources: + key: + mapping: + capacityMultiplier: capacityMultiplier + deviceMultiplier: deviceMultiplier + capacityKey: capacityKey + overhead: + perPod: perPod + perContainer: perContainer + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: 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" - 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" + 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 + allowMultipleAllocations: + description: |- + AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. + + If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. + type: boolean + attributes: + additionalProperties: + $ref: "#/components/schemas/v1.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 + bindingConditions: + description: |- + BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. + + The maximum number of binding conditions is 4. + + The conditions must be a valid condition type string. + + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + bindingFailureConditions: + description: |- + BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to "True", a binding failure occurred. + + The maximum number of binding failure conditions is 4. + + The conditions must be a valid condition type string. + + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + bindsToNode: + description: |- + BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. + + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + type: boolean + capacity: + additionalProperties: + $ref: "#/components/schemas/v1.DeviceCapacity" + 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 maximum number of device counter consumptions per device is 2. + items: + $ref: "#/components/schemas/v1.DeviceCounterConsumption" + type: array + x-kubernetes-list-type: atomic + name: + description: Name is unique identifier among all devices managed by the + driver in the pool. It must be a DNS label. type: string - metadata: - $ref: "#/components/schemas/v1.ObjectMeta" - spec: - $ref: "#/components/schemas/v1beta1.ServiceCIDRSpec" - status: - $ref: "#/components/schemas/v1beta1.ServiceCIDRStatus" - 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. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - shardInfo: - selector: selector - 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 - 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" + nodeAllocatableResources: + additionalProperties: + $ref: "#/components/schemas/v1.NodeAllocatableResource" + description: "NodeAllocatableResources defines the mapping of node resources\ + \ that are managed by the DRA driver exposing this device. This includes\ + \ resources currently reported in v1.Node `status.allocatable` that are\ + \ not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).\ + \ Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages.\ + \ In addition to standard requests made through the Pod `spec`, these\ + \ resources can also be requested through claims and allocated by the\ + \ DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs\ + \ or auxiliary node memory dependencies of an accelerator device. The\ + \ keys of this map are the node-allocatable resource names (e.g., \"cpu\"\ + , \"memory\"). Extended resource names are not permitted as keys." + type: object + 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 - items: - description: items is the list of ServiceCIDRs. + nodeSelector: + $ref: "#/components/schemas/v1.NodeSelector" + taints: + description: |- + If specified, these are the driver-defined taints. + + The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. + + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.DeviceTaint" 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" + 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. + v1.DeviceAllocationConfiguration: + description: DeviceAllocationConfiguration gets embedded in an AllocationResult. example: - cidrs: - - cidrs - - cidrs + opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + source: source 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." + opaque: + $ref: "#/components/schemas/v1.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 - v1beta1.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 - v1.Overhead: - description: Overhead structure represents the resource overhead associated - with running a pod. - example: - podFixed: - key: null - properties: - podFixed: - additionalProperties: - $ref: "#/components/schemas/resource.Quantity" - description: podFixed represents the fixed resource overhead associated - with running a pod. - type: object - 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/" + v1.DeviceAllocationResult: + description: DeviceAllocationResult is the result of allocating devices. example: - handler: handler - 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 - overhead: - podFixed: + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + source: source + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + source: source + results: + - request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: key: null - scheduling: + device: device + bindingConditions: + - bindingConditions + - bindingConditions + - request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations tolerations: - effect: effect tolerationSeconds: 6 @@ -271043,111 +289243,201 @@ components: value: value key: key operator: operator - nodeSelector: - key: nodeSelector + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions 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." + 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.DeviceAllocationConfiguration" + type: array + x-kubernetes-list-type: atomic + results: + description: Results lists all allocated devices. + items: + $ref: "#/components/schemas/v1.DeviceRequestAllocationResult" + type: array + x-kubernetes-list-type: atomic + type: object + v1.DeviceAttribute: + description: DeviceAttribute must have exactly one field set. + example: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + properties: + bool: + description: BoolValue is a true/false value. + type: boolean + bools: + description: BoolValues is a non-empty list of true/false values. + items: + type: boolean + type: array + x-kubernetes-list-type: atomic + int: + description: IntValue is a number. + format: int64 + type: integer + ints: + description: |- + IntValues is a non-empty list of numbers. + + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + format: int64 + type: integer + type: array + x-kubernetes-list-type: atomic + string: + description: StringValue is a string. Must not be longer than 64 characters. 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" + strings: + description: |- + StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. + + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + type: string + type: array + x-kubernetes-list-type: atomic + version: + description: VersionValue is a semantic version according to semver.org + spec 2.0.0. Must not be longer than 64 characters. type: string - metadata: - $ref: "#/components/schemas/v1.ObjectMeta" - overhead: - $ref: "#/components/schemas/v1.Overhead" - scheduling: - $ref: "#/components/schemas/v1.Scheduling" - required: - - handler + versions: + description: |- + VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. + + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + type: string + type: array + x-kubernetes-list-type: atomic type: object - x-kubernetes-group-version-kind: - - group: node.k8s.io - kind: RuntimeClass - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.RuntimeClassList: - description: RuntimeClassList is a list of RuntimeClass objects. + v1.DeviceCapacity: + description: DeviceCapacity describes a quantity associated with a device. + example: + value: value + requestPolicy: + default: default + validRange: + min: min + max: max + step: step + validValues: + - null + - null + properties: + requestPolicy: + $ref: "#/components/schemas/v1.CapacityRequestPolicy" + 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 + v1.DeviceClaim: + description: DeviceClaim defines how to request devices with a ResourceClaim. example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - shardInfo: - selector: selector - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - handler: handler - 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 + requests: + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + - expression: expression 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 + 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 - namespace: namespace - apiVersion: apiVersion - kind: kind - overhead: - podFixed: - key: null - scheduling: + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + deviceClassName: deviceClassName tolerations: - effect: effect tolerationSeconds: 6 @@ -271159,61 +289449,82 @@ components: value: value key: key operator: operator - nodeSelector: - key: nodeSelector - - handler: handler - 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 + count: 1 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + - expression: expression 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 + 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 + capacity: + requests: + key: null + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 - namespace: namespace - apiVersion: apiVersion - kind: kind - overhead: - podFixed: - key: null - scheduling: + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + deviceClassName: deviceClassName tolerations: - effect: effect tolerationSeconds: 6 @@ -271225,90 +289536,122 @@ components: value: value key: key operator: operator - nodeSelector: - key: nodeSelector + count: 1 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests 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. + 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: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.DeviceClaimConfiguration" 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 + 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/v1.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/v1.DeviceRequest" + type: array + x-kubernetes-list-type: atomic type: object - x-kubernetes-group-version-kind: - - group: node.k8s.io - kind: RuntimeClassList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.Scheduling: - description: Scheduling specifies the scheduling constraints for nodes supporting - a RuntimeClass. + v1.DeviceClaimConfiguration: + description: DeviceClaimConfiguration is used for configuration parameters in + DeviceClaim. example: - tolerations: - - effect: effect - tolerationSeconds: 6 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 6 - value: value - key: key - operator: operator - nodeSelector: - key: nodeSelector + opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests 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." + opaque: + $ref: "#/components/schemas/v1.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: - $ref: "#/components/schemas/v1.Toleration" + type: string 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. + v1.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. 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: @@ -271357,14 +289700,26 @@ components: namespace: namespace apiVersion: apiVersion kind: kind + spec: + extendedResourceName: extendedResourceName + 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\ \ of an object. Servers should convert recognized schemas to 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\ @@ -271372,130 +289727,27 @@ components: type: string metadata: $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1.DeviceClassSpec" type: object x-kubernetes-group-version-kind: - - group: policy - kind: Eviction + - group: resource.k8s.io + kind: DeviceClass 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 + v1.DeviceClassConfiguration: + description: DeviceClassConfiguration is used in DeviceClass. 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: - 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 + opaque: + driver: driver + parameters: "{}" 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.PodDisruptionBudgetSpec" - status: - $ref: "#/components/schemas/v1.PodDisruptionBudgetStatus" + opaque: + $ref: "#/components/schemas/v1.OpaqueDeviceConfiguration" type: object - x-kubernetes-group-version-kind: - - group: policy - kind: PodDisruptionBudget - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.PodDisruptionBudgetList: - description: PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + v1.DeviceClassList: + description: DeviceClassList is a collection of classes. example: metadata: remainingItemCount: 1 @@ -271556,44 +289808,19 @@ components: apiVersion: apiVersion kind: kind spec: - 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 + extendedResourceName: extendedResourceName + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" - metadata: generation: 6 finalizers: @@ -271643,44 +289870,19 @@ components: apiVersion: apiVersion kind: kind spec: - 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 + extendedResourceName: extendedResourceName + 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\ @@ -271688,9 +289890,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 PodDisruptionBudgets + description: Items is the list of resource classes. items: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.DeviceClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -271703,332 +289905,574 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: policy - kind: PodDisruptionBudgetList + - group: resource.k8s.io + kind: DeviceClassList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.PodDisruptionBudgetSpec: - description: PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. + v1.DeviceClassSpec: + description: "DeviceClassSpec is used in a [DeviceClass] to define what can\ + \ be allocated and how to configure it." + example: + extendedResourceName: extendedResourceName + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" + properties: + 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/v1.DeviceClassConfiguration" + type: array + x-kubernetes-list-type: atomic + extendedResourceName: + description: "ExtendedResourceName is the extended resource name for the\ + \ devices of this class. The devices of this class can be used to satisfy\ + \ a pod's extended resource requests. It has the same format as the name\ + \ of a pod's extended resource. It should be unique among all the device\ + \ classes in a cluster. If two device classes have the same name, then\ + \ the class created later is picked to satisfy a pod's extended resource\ + \ requests. If two classes are created at the same time, then the name\ + \ of the class lexicographically sorted first is picked." + type: string + selectors: + description: Each selector must be satisfied by a device which is claimed + via this class. + items: + $ref: "#/components/schemas/v1.DeviceSelector" + type: array + x-kubernetes-list-type: atomic + type: object + v1.DeviceConstraint: + description: DeviceConstraint must have exactly one field set besides Requests. + example: + distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + properties: + distinctAttribute: + description: |- + DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. + + When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. + + This acts as the inverse of MatchAttribute. + + This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. + + This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. + type: string + 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. + + When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as single-element lists for backward compatibility. + + 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. + + 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 + v1.DeviceCounterConsumption: + description: DeviceCounterConsumption defines a set of counters that a device + will consume from a CounterSet. + example: + counters: + key: + value: value + compatibilityGroups: + - compatibilityGroups + - compatibilityGroups + counterSet: counterSet + properties: + compatibilityGroups: + description: |- + CompatibilityGroups is a list of opaque group names for this counter set consumption. + + Devices that consume counters from the same counter set may only be allocated at the same time ("co-allocated") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. + + An unset field, an explicit nil, and an empty list are equivalent and mean "no groups": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. + + Group names are opaque and meaningful only within the publishing driver's pool. + + The maximum number of groups is 2, and the names must be unique. + items: + type: string + type: array + x-kubernetes-list-type: atomic + counterSet: + description: CounterSet is the name of the set from which the counters defined + will be consumed. + type: string + counters: + additionalProperties: + $ref: "#/components/schemas/v1.Counter" + description: |- + Counters defines the counters that will be consumed by the device. + + The maximum number of counters is 32. + type: object + required: + - counterSet + - counters + type: object + v1.DeviceDerivedAttribute: + description: DeviceDerivedAttribute defines a derived attribute computed via + CEL. + example: + expression: expression + name: name + properties: + expression: + description: |- + Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. + + The expression's input is an object named "device", which carries the same properties as in a CELDeviceSelector. + + When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. + + The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). + + 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. + type: string + name: + description: |- + Name is the identifier for this derived attribute, used in constraints. + + It must be a DNS subdomain followed by a slash ("/") followed by a C identifier (e.g. "example.com/numaNode" or "derived/numaNode"). + + If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. "derived/myAttribute"). + + It is not valid to define a derived attribute that isn't used in at least one constraint. + type: string + required: + - expression + - name + type: object + v1.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 + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + properties: + exactly: + $ref: "#/components/schemas/v1.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/v1.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 + v1.DeviceRequestAllocationResult: + description: DeviceRequestAllocationResult contains the allocation result for + one request. + example: + request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + properties: + adminAccess: + description: |- + AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. + + Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + type: boolean + bindingConditions: + description: |- + BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. + + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + bindingFailureConditions: + description: |- + BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. + + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + consumedCapacity: + additionalProperties: + $ref: "#/components/schemas/resource.Quantity" + description: |- + ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). + + The total consumed capacity for each device must not exceed the DeviceCapacity's Value. + + This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. + 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. It should use only lower case characters. + 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 + shareID: + description: "ShareID uniquely identifies an individual allocation share\ + \ of the device, used when the device supports multiple simultaneous allocations.\ + \ It serves as an additional map key to differentiate concurrent shares\ + \ of the same device." + type: string + skipNodeOperations: + description: "SkipNodeOperations lists node-local resource operations (gRPC\ + \ calls) that will be skipped for this allocated device when determining\ + \ whether operations are necessary on the node. If all allocated devices\ + \ for a driver in a claim skip an operation, that gRPC call will be skipped.\ + \ It is a copy of the ResourceSlice.spec.skipNodeOperations value at the\ + \ time when the device was allocated." + items: + type: string + type: array + x-kubernetes-list-type: set + 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 a beta field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: "#/components/schemas/v1.DeviceToleration" + type: array + x-kubernetes-list-type: atomic + required: + - device + - driver + - pool + - request + type: object + v1.DeviceSelector: + description: DeviceSelector must have exactly one field set. + example: + cel: + expression: expression + properties: + cel: + $ref: "#/components/schemas/v1.CELDeviceSelector" + type: object + v1.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 ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device. example: - 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 + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null properties: - 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 - 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 + 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 - selector: - $ref: "#/components/schemas/v1.LabelSelector" - unhealthyPodEvictionPolicy: + capacity: + $ref: "#/components/schemas/v1.CapacityRequirements" + 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 + derivedAttributes: 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". + DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. - Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. + Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. - 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. + Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. - 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. + The maximum number of derived attributes is 32. - 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 is an alpha field and requires enabling the DRADerivedAttributes feature gate. + items: + $ref: "#/components/schemas/v1.DeviceDerivedAttribute" + type: array + x-kubernetes-list-type: atomic + 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 - type: object - 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: + name: 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. + 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/v1.Condition" + $ref: "#/components/schemas/v1.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 - currentHealthy: - description: current number of healthy pods - format: int32 - type: integer - desiredHealthy: - description: minimum desired number of healthy pods - format: int32 - type: integer - 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 - 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 - type: object - v1.AggregationRule: - description: AggregationRule describes how to locate ClusterRoles to aggregate - into the ClusterRole - example: - 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: - 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" + 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 a beta field and requires enabling the DRADeviceTaints feature gate. items: - $ref: "#/components/schemas/v1.LabelSelector" + $ref: "#/components/schemas/v1.DeviceToleration" type: array x-kubernetes-list-type: atomic + required: + - deviceClassName + - name type: object - v1.ClusterRole: - description: "ClusterRole is a cluster level, logical grouping of PolicyRules\ - \ that can be referenced as a unit by a RoleBinding or ClusterRoleBinding." + v1.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: - 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 - 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 - 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 + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key 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\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + 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 None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. 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" + key: + description: The taint key to be applied to a device. Must be a label name. type: string - metadata: - $ref: "#/components/schemas/v1.ObjectMeta" - rules: - description: Rules holds all the PolicyRules for this ClusterRole - items: - $ref: "#/components/schemas/v1.PolicyRule" - type: array - x-kubernetes-list-type: atomic + timeAdded: + description: |- + TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. + + In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). + 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 - x-kubernetes-group-version-kind: - - group: rbac.authorization.k8s.io - kind: ClusterRole - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - 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." + v1.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: metadata: generation: 6 @@ -272078,19 +290522,30 @@ components: 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 + spec: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + 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\ @@ -272104,25 +290559,21 @@ components: type: string metadata: $ref: "#/components/schemas/v1.ObjectMeta" - 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 + spec: + $ref: "#/components/schemas/v1.DeviceTaintRuleSpec" + status: + $ref: "#/components/schemas/v1.DeviceTaintRuleStatus" required: - - roleRef + - spec type: object x-kubernetes-group-version-kind: - - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + - group: resource.k8s.io + kind: DeviceTaintRule version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ClusterRoleBindingList: - description: ClusterRoleBindingList is a collection of ClusterRoleBindings + v1.DeviceTaintRuleList: + description: DeviceTaintRuleList is a collection of DeviceTaintRules. example: metadata: remainingItemCount: 1 @@ -272182,19 +290633,30 @@ components: 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 + spec: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + 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: @@ -272243,19 +290705,30 @@ components: 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 + spec: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + 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\ @@ -272263,9 +290736,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 ClusterRoleBindings + description: Items is the list of DeviceTaintRules. items: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.DeviceTaintRule" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -272278,333 +290751,527 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: rbac.authorization.k8s.io - kind: ClusterRoleBindingList + - group: resource.k8s.io + kind: DeviceTaintRuleList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.ClusterRoleList: - description: ClusterRoleList is a collection of ClusterRoles + v1.DeviceTaintRuleSpec: + description: DeviceTaintRuleSpec specifies the selector and one taint. example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - shardInfo: - selector: selector - 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 - 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 - 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 - 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 - 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 + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + 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 - items: - description: Items is a list of ClusterRoles - items: - $ref: "#/components/schemas/v1.ClusterRole" - 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" + deviceSelector: + $ref: "#/components/schemas/v1.DeviceTaintSelector" + taint: + $ref: "#/components/schemas/v1.DeviceTaint" required: - - items + - taint type: object - x-kubernetes-group-version-kind: - - group: rbac.authorization.k8s.io - kind: ClusterRoleList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - 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." + v1.DeviceTaintRuleStatus: + description: DeviceTaintRuleStatus provides information about an on-going pod + eviction. example: - resourceNames: - - resourceNames - - resourceNames - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs + 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: - 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." + conditions: + description: |- + Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. + + The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise + (includes the effects which don't cause eviction). + - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods + in a human-readable format, updated periodically, may change + + For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. + + Must have 8 or fewer entries. items: - type: string + $ref: "#/components/schemas/v1.Condition" type: array - x-kubernetes-list-type: atomic - 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." + 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.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: + driver: driver + pool: pool + 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 + 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 + type: object + v1.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
[/]. 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 - v1.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: 6 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 6 - value: value - key: key - operator: operator - driver: driver - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - pool: pool - shareID: shareID - consumedCapacity: - key: null - device: device - bindingConditions: - - bindingConditions - - bindingConditions - - 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 - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - pool: pool - shareID: shareID - consumedCapacity: - key: null - device: device - bindingConditions: - - bindingConditions - - bindingConditions - properties: - 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.DeviceAllocationConfiguration" - type: array - x-kubernetes-list-type: atomic - results: - description: Results lists all allocated devices. - items: - $ref: "#/components/schemas/v1.DeviceRequestAllocationResult" - type: array - x-kubernetes-list-type: atomic - type: object - v1.DeviceAttribute: - description: DeviceAttribute must have exactly one field set. - example: - bools: - - true - - true - bool: true - string: string - strings: - - strings - - strings - ints: - - 6 - - 6 - versions: - - versions - - versions - version: version - int: 0 - properties: - bool: - description: BoolValue is a true/false value. - type: boolean - bools: - description: BoolValues is a non-empty list of true/false values. - items: - type: boolean - type: array - x-kubernetes-list-type: atomic - int: - description: IntValue is a number. - format: int64 - type: integer - ints: - description: |- - IntValues is a non-empty list of numbers. - - This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. - items: - format: int64 - type: integer - type: array - x-kubernetes-list-type: atomic - string: - description: StringValue is a string. Must not be longer than 64 characters. - type: string - strings: - description: |- - StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. - - This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. - items: - type: string - type: array - x-kubernetes-list-type: atomic - version: - description: VersionValue is a semantic version according to semver.org - spec 2.0.0. Must not be longer than 64 characters. - type: string - versions: - description: |- - VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. - - This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. - items: - type: string - type: array - x-kubernetes-list-type: atomic - type: object - v1.DeviceCapacity: - description: DeviceCapacity describes a quantity associated with a device. - example: - value: value - requestPolicy: - default: default - validRange: - min: min - max: max - step: step - validValues: - - null - - null - properties: - requestPolicy: - $ref: "#/components/schemas/v1.CapacityRequestPolicy" - 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 + $ref: "#/components/schemas/v1.DeviceClaim" type: object - v1.DeviceClaim: - description: DeviceClaim defines how to request devices with a ResourceClaim. - example: - requests: - - 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 - capacity: - requests: - key: null - - 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 - capacity: - requests: - key: null - 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 - capacity: + v1.ResourceClaimStatus: + description: ResourceClaimStatus tracks whether the resource has been allocated + and what the result of that was. + example: + allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 + devices: + config: + - opaque: + driver: driver + parameters: "{}" requests: - key: null - - 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 - capacity: + - requests + - requests + source: source + - opaque: + driver: driver + parameters: "{}" requests: + - requests + - requests + source: source + results: + - request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: key: null - - 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 - capacity: - requests: + device: device + bindingConditions: + - bindingConditions + - bindingConditions + - request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + 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 + reservedFor: + - uid: uid + apiGroup: apiGroup + resource: resource 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 - capacity: - requests: - key: null - config: - - opaque: - driver: driver - parameters: "{}" - requests: - - requests - - requests - - opaque: - driver: driver - parameters: "{}" - requests: - - requests - - requests - constraints: - - distinctAttribute: distinctAttribute - matchAttribute: matchAttribute - requests: - - requests - - requests - - distinctAttribute: distinctAttribute - matchAttribute: matchAttribute - requests: - - requests - - requests + - uid: uid + apiGroup: apiGroup + resource: resource + name: name + devices: + - data: "{}" + driver: driver + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool + shareID: shareID + 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 + - data: "{}" + driver: driver + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool + shareID: shareID + 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: - 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: - $ref: "#/components/schemas/v1.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/v1.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." + allocation: + $ref: "#/components/schemas/v1.AllocationResult" + devices: + description: "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." items: - $ref: "#/components/schemas/v1.DeviceRequest" + $ref: "#/components/schemas/v1.AllocatedDeviceStatus" type: array - x-kubernetes-list-type: atomic - type: object - v1.DeviceClaimConfiguration: - description: DeviceClaimConfiguration is used for configuration parameters in - DeviceClaim. - example: - opaque: - driver: driver - parameters: "{}" - requests: - - requests - - requests - properties: - opaque: - $ref: "#/components/schemas/v1.OpaqueDeviceConfiguration" - requests: + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - driver + - device + - pool + - shareID + reservedFor: description: |- - Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. + 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. - 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. + 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. items: - type: string + $ref: "#/components/schemas/v1.ResourceClaimConsumerReference" type: array - x-kubernetes-list-type: atomic + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - uid + x-kubernetes-patch-merge-key: uid type: object - v1.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. + v1.ResourceClaimTemplate: + description: ResourceClaimTemplate is used to produce ResourceClaim objects. example: metadata: generation: 6 @@ -274518,19 +293131,253 @@ components: apiVersion: apiVersion kind: kind spec: - extendedResourceName: extendedResourceName - selectors: - - cel: - expression: expression - - cel: - expression: expression - config: - - opaque: - driver: driver - parameters: "{}" - - opaque: - driver: driver - parameters: "{}" + 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: + devices: + requests: + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -274545,28 +293392,16 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: "#/components/schemas/v1.DeviceClassSpec" - required: - - spec + $ref: "#/components/schemas/v1.ResourceClaimTemplateSpec" type: object x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaimTemplate version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.DeviceClassConfiguration: - description: DeviceClassConfiguration is used in DeviceClass. - example: - opaque: - driver: driver - parameters: "{}" - properties: - opaque: - $ref: "#/components/schemas/v1.OpaqueDeviceConfiguration" - type: object - v1.DeviceClassList: - description: DeviceClassList is a collection of classes. + v1.ResourceClaimTemplateList: + description: ResourceClaimTemplateList is a collection of claim templates. example: metadata: remainingItemCount: 1 @@ -274627,19 +293462,253 @@ components: apiVersion: apiVersion kind: kind spec: - extendedResourceName: extendedResourceName - selectors: - - cel: - expression: expression - - cel: - expression: expression - config: - - opaque: - driver: driver - parameters: "{}" - - opaque: - driver: driver - parameters: "{}" + 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: + devices: + requests: + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests - metadata: generation: 6 finalizers: @@ -274689,19 +293758,253 @@ components: apiVersion: apiVersion kind: kind spec: - extendedResourceName: extendedResourceName - selectors: - - cel: - expression: expression - - cel: - expression: expression - config: - - opaque: - driver: driver - parameters: "{}" - - opaque: - driver: driver - parameters: "{}" + 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: + devices: + requests: + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -274709,9 +294012,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 resource classes. + description: Items is the list of resource claim templates. items: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -274725,727 +294028,13 @@ components: type: object x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClassList + kind: ResourceClaimTemplateList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.DeviceClassSpec: - description: "DeviceClassSpec is used in a [DeviceClass] to define what can\ - \ be allocated and how to configure it." - example: - extendedResourceName: extendedResourceName - selectors: - - cel: - expression: expression - - cel: - expression: expression - config: - - opaque: - driver: driver - parameters: "{}" - - opaque: - driver: driver - parameters: "{}" - properties: - 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/v1.DeviceClassConfiguration" - type: array - x-kubernetes-list-type: atomic - extendedResourceName: - description: |- - ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. - - This is a beta field. - type: string - selectors: - description: Each selector must be satisfied by a device which is claimed - via this class. - items: - $ref: "#/components/schemas/v1.DeviceSelector" - type: array - x-kubernetes-list-type: atomic - type: object - v1.DeviceConstraint: - description: DeviceConstraint must have exactly one field set besides Requests. - example: - distinctAttribute: distinctAttribute - matchAttribute: matchAttribute - requests: - - requests - - requests - properties: - distinctAttribute: - description: |- - DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. - - When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. - - This acts as the inverse of MatchAttribute. - - This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. - - This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. - type: string - 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. - - When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as single-element lists for backward compatibility. - - 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. - - 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 - v1.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/v1.Counter" - description: |- - Counters defines the counters that will be consumed by the device. - - The maximum number of counters is 32. - type: object - required: - - counterSet - - counters - type: object - v1.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 - capacity: - requests: - key: null - - 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 - capacity: - requests: - key: null - 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 - capacity: - requests: - key: null - properties: - exactly: - $ref: "#/components/schemas/v1.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/v1.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 - v1.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 - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - pool: pool - shareID: shareID - consumedCapacity: - key: null - device: device - bindingConditions: - - bindingConditions - - bindingConditions - properties: - adminAccess: - description: |- - AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. - - Admin access is disabled if this field is unset or set to false, otherwise it is enabled. - type: boolean - bindingConditions: - description: |- - BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. - - This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. - items: - type: string - type: array - x-kubernetes-list-type: atomic - bindingFailureConditions: - description: |- - BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. - - This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. - items: - type: string - type: array - x-kubernetes-list-type: atomic - consumedCapacity: - additionalProperties: - $ref: "#/components/schemas/resource.Quantity" - description: |- - ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). - - The total consumed capacity for each device must not exceed the DeviceCapacity's Value. - - This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. - 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. It should use only lower case characters. - 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 - shareID: - description: "ShareID uniquely identifies an individual allocation share\ - \ of the device, used when the device supports multiple simultaneous allocations.\ - \ It serves as an additional map key to differentiate concurrent shares\ - \ of the same device." - 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 a beta field and requires enabling the DRADeviceTaints feature gate. - items: - $ref: "#/components/schemas/v1.DeviceToleration" - type: array - x-kubernetes-list-type: atomic - required: - - device - - driver - - pool - - request - type: object - v1.DeviceSelector: - description: DeviceSelector must have exactly one field set. - example: - cel: - expression: expression - properties: - cel: - $ref: "#/components/schemas/v1.CELDeviceSelector" - type: object - v1.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 ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device. - example: - 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 - capacity: - requests: - key: null - 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 - capacity: - $ref: "#/components/schemas/v1.CapacityRequirements" - 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/v1.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 a beta field and requires enabling the DRADeviceTaints feature gate. - items: - $ref: "#/components/schemas/v1.DeviceToleration" - type: array - x-kubernetes-list-type: atomic - required: - - deviceClassName - - name - type: object - v1.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 None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. - 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 or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. - - In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). - 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.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
[/]. 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 + v1beta1.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 + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver bindingFailureConditions: - bindingFailureConditions - bindingFailureConditions - name: name - attributes: - key: - bools: - - true - - true - bool: true - string: string - strings: - - strings - - strings - ints: - - 6 - - 6 - versions: - - versions - - versions - version: version - int: 0 - bindsToNode: true - pool: - generation: 1 - resourceSliceCount: 5 - name: name - sharedCounters: - - counters: - key: - value: value - name: name - - counters: - key: - value: value - name: name - allNodes: true - 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 + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + - request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions properties: - allNodes: + config: description: |- - AllNodes indicates that all nodes have access to the resources in the pool. + This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. - Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. + 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" + type: array + x-kubernetes-list-type: atomic + results: + description: Results lists all allocated devices. + items: + $ref: "#/components/schemas/v1beta1.DeviceRequestAllocationResult" + type: array + x-kubernetes-list-type: atomic + type: object + v1beta1.DeviceAttribute: + description: DeviceAttribute must have exactly one field set. + example: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + properties: + bool: + description: BoolValue is a true/false value. type: boolean - devices: - description: |- - Devices lists some or all of the devices in this pool. - - Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64. - - Only one of Devices and SharedCounters can be set in a ResourceSlice. + bools: + description: BoolValues is a non-empty list of true/false values. items: - $ref: "#/components/schemas/v1.Device" + type: boolean type: array x-kubernetes-list-type: atomic - driver: + int: + description: IntValue is a number. + format: int64 + type: integer + ints: description: |- - 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. + IntValues is a non-empty list of numbers. - Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. This field is immutable. + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + format: int64 + type: integer + type: array + x-kubernetes-list-type: atomic + string: + description: StringValue is a string. Must not be longer than 64 characters. type: string - nodeName: + strings: description: |- - 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. + StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. - Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + type: string + type: array + x-kubernetes-list-type: atomic + version: + description: VersionValue is a semantic version according to semver.org + spec 2.0.0. Must not be longer than 64 characters. type: string - nodeSelector: - $ref: "#/components/schemas/v1.NodeSelector" - perDeviceNodeSelection: - description: |- - 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. - type: boolean - pool: - $ref: "#/components/schemas/v1.ResourcePool" - sharedCounters: + versions: description: |- - SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. - - The names of the counter sets must be unique in the ResourcePool. - - Only one of Devices and SharedCounters can be set in a ResourceSlice. + VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. - The maximum number of counter sets is 8. + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. items: - $ref: "#/components/schemas/v1.CounterSet" + type: string type: array x-kubernetes-list-type: atomic - required: - - driver - - pool type: object - 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." + v1beta1.DeviceCapacity: + description: DeviceCapacity describes a quantity associated with a device. example: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect value: value - key: key + requestPolicy: + default: default + validRange: + min: min + max: max + step: step + validValues: + - null + - null 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 None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. - 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 or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. - - In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). - format: date-time - type: string + requestPolicy: + $ref: "#/components/schemas/v1beta1.CapacityRequestPolicy" value: - description: The taint value corresponding to the taint key. Must be a label - 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: - - effect - - key + - value type: object - 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. + v1beta1.DeviceClaim: + description: DeviceClaim defines how to request devices with a ResourceClaim. 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 + requests: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + - expression: expression 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: - taint: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 1 value: value key: key - deviceSelector: - driver: driver - pool: pool - device: device - 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 - 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/v1alpha3.DeviceTaintRuleSpec" - status: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleStatus" - required: - - spec - type: object - x-kubernetes-group-version-kind: - - group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1alpha3.DeviceTaintRuleList: - description: DeviceTaintRuleList is a collection of DeviceTaintRules. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - shardInfo: - selector: selector - 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 + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + - expression: expression 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 + 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 - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - taint: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 value: value key: key - deviceSelector: - driver: driver - pool: pool - device: device - 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 + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + derivedAttributes: + - expression: expression name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + - expression: expression 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 + 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 - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - taint: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + deviceClassName: deviceClassName + tolerations: + - effect: effect + tolerationSeconds: 1 value: value key: key - deviceSelector: - driver: driver - pool: pool - device: device - 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 + operator: operator + - effect: effect + tolerationSeconds: 1 + value: value + key: key + operator: operator + count: 6 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests 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 DeviceTaintRules. + 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: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.DeviceClaimConfiguration" 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 + 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" + 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" + type: array + x-kubernetes-list-type: atomic type: object - x-kubernetes-group-version-kind: - - group: resource.k8s.io - kind: DeviceTaintRuleList - version: v1alpha3 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1alpha3.DeviceTaintRuleSpec: - description: DeviceTaintRuleSpec specifies the selector and one taint. + v1beta1.DeviceClaimConfiguration: + description: DeviceClaimConfiguration is used for configuration parameters in + DeviceClaim. example: - taint: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - deviceSelector: + opaque: driver: driver - pool: pool - device: device - properties: - deviceSelector: - $ref: "#/components/schemas/v1alpha3.DeviceTaintSelector" - taint: - $ref: "#/components/schemas/v1alpha3.DeviceTaint" - required: - - taint - type: object - v1alpha3.DeviceTaintRuleStatus: - description: DeviceTaintRuleStatus provides information about an on-going pod - eviction. - 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 + parameters: "{}" + requests: + - requests + - requests properties: - conditions: + opaque: + $ref: "#/components/schemas/v1beta1.OpaqueDeviceConfiguration" + requests: description: |- - Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. - - The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise - (includes the effects which don't cause eviction). - - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods - in a human-readable format, updated periodically, may change - - For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. + Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. - Must have 8 or fewer entries. + 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: - $ref: "#/components/schemas/v1.Condition" + type: string 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 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: - driver: driver - pool: pool - 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 - 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. + 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. - 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 - type: object - v1alpha3.PoolStatus: - description: PoolStatus contains status information for a single resource pool. - example: - generation: 5 - nodeName: nodeName - resourceSliceCount: 2 - driver: driver - totalDevices: 7 - availableDevices: 5 - allocatedDevices: 1 - unavailableDevices: 9 - validationError: validationError - poolName: poolName - properties: - allocatedDevices: - description: AllocatedDevices is the number of devices currently allocated - to claims. A value of 0 means no devices are allocated. May be unset when - validationError is set. - format: int32 - type: integer - availableDevices: - description: AvailableDevices is the number of devices available for allocation. - This equals TotalDevices - AllocatedDevices - UnavailableDevices. A value - of 0 means no devices are currently available. May be unset when validationError - is set. - format: int32 - type: integer - driver: - description: "Driver is the DRA driver name for this pool. Must be a DNS\ - \ subdomain (e.g., \"gpu.example.com\")." - type: string - generation: - description: "Generation is the pool generation observed across all ResourceSlices\ - \ in this pool. Only the latest generation is reported. During a generation\ - \ rollout, if not all slices at the latest generation have been published,\ - \ the pool is included with a validationError and device counts unset." - format: int64 - type: integer - nodeName: - description: "NodeName is the node this pool is associated with. When omitted,\ - \ the pool is not associated with a specific node. Must be a valid DNS\ - \ subdomain name (RFC1123)." - type: string - poolName: - description: PoolName is the name of the pool. Must be a valid resource - pool name (DNS subdomains separated by "/"). - type: string - resourceSliceCount: - description: ResourceSliceCount is the number of ResourceSlices that make - up this pool. May be unset when validationError is set. - format: int32 - type: integer - totalDevices: - description: TotalDevices is the total number of devices in the pool across - all slices. A value of 0 means the pool has no devices. May be unset when - validationError is set. - format: int32 - type: integer - unavailableDevices: - description: "UnavailableDevices is the number of devices that are not available\ - \ due to taints or other conditions, but are not allocated. A value of\ - \ 0 means all unallocated devices are available. May be unset when validationError\ - \ is set." - format: int32 - type: integer - validationError: - description: "ValidationError is set when the pool's data could not be fully\ - \ validated (e.g., incomplete slice publication). When set, device count\ - \ fields and ResourceSliceCount may be unset." - type: string - required: - - driver - - generation - - poolName - type: object - v1alpha3.ResourcePoolStatusRequest: - description: "ResourcePoolStatusRequest triggers a one-time calculation of resource\ - \ pool status based on the provided filters. Once status is set, the request\ - \ is considered complete and will not be reprocessed. Users should delete\ - \ and recreate requests to get updated information." + This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. example: metadata: generation: 6 @@ -280187,45 +298678,19 @@ components: apiVersion: apiVersion kind: kind spec: - driver: driver - limit: 0 - poolName: poolName - status: - poolCount: 6 - pools: - - generation: 5 - nodeName: nodeName - resourceSliceCount: 2 - driver: driver - totalDevices: 7 - availableDevices: 5 - allocatedDevices: 1 - unavailableDevices: 9 - validationError: validationError - poolName: poolName - - generation: 5 - nodeName: nodeName - resourceSliceCount: 2 - driver: driver - totalDevices: 7 - availableDevices: 5 - allocatedDevices: 1 - unavailableDevices: 9 - validationError: validationError - poolName: poolName - 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 + extendedResourceName: extendedResourceName + 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\ @@ -280240,21 +298705,26 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestSpec" - status: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestStatus" - required: - - metadata - - spec + $ref: "#/components/schemas/v1beta1.DeviceClassSpec" type: object x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourcePoolStatusRequest - version: v1alpha3 + kind: DeviceClass + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1alpha3.ResourcePoolStatusRequestList: - description: ResourcePoolStatusRequestList is a collection of ResourcePoolStatusRequests. + v1beta1.DeviceClassConfiguration: + description: DeviceClassConfiguration is used in DeviceClass. + example: + opaque: + driver: driver + parameters: "{}" + properties: + opaque: + $ref: "#/components/schemas/v1beta1.OpaqueDeviceConfiguration" + type: object + v1beta1.DeviceClassList: + description: DeviceClassList is a collection of classes. example: metadata: remainingItemCount: 1 @@ -280315,45 +298785,19 @@ components: apiVersion: apiVersion kind: kind spec: - driver: driver - limit: 0 - poolName: poolName - status: - poolCount: 6 - pools: - - generation: 5 - nodeName: nodeName - resourceSliceCount: 2 - driver: driver - totalDevices: 7 - availableDevices: 5 - allocatedDevices: 1 - unavailableDevices: 9 - validationError: validationError - poolName: poolName - - generation: 5 - nodeName: nodeName - resourceSliceCount: 2 - driver: driver - totalDevices: 7 - availableDevices: 5 - allocatedDevices: 1 - unavailableDevices: 9 - validationError: validationError - poolName: poolName - 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 + extendedResourceName: extendedResourceName + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" - metadata: generation: 6 finalizers: @@ -280403,45 +298847,19 @@ components: apiVersion: apiVersion kind: kind spec: - driver: driver - limit: 0 - poolName: poolName - status: - poolCount: 6 - pools: - - generation: 5 - nodeName: nodeName - resourceSliceCount: 2 - driver: driver - totalDevices: 7 - availableDevices: 5 - allocatedDevices: 1 - unavailableDevices: 9 - validationError: validationError - poolName: poolName - - generation: 5 - nodeName: nodeName - resourceSliceCount: 2 - driver: driver - totalDevices: 7 - availableDevices: 5 - allocatedDevices: 1 - unavailableDevices: 9 - validationError: validationError - poolName: poolName - 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 + extendedResourceName: extendedResourceName + 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\ @@ -280449,9 +298867,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 ResourcePoolStatusRequests. + description: Items is the list of resource classes. items: - $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + $ref: "#/components/schemas/v1beta1.DeviceClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -280465,949 +298883,2628 @@ components: type: object x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourcePoolStatusRequestList - version: v1alpha3 + kind: DeviceClassList + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1alpha3.ResourcePoolStatusRequestSpec: - description: ResourcePoolStatusRequestSpec defines the filters for the pool - status request. + v1beta1.DeviceClassSpec: + description: "DeviceClassSpec is used in a [DeviceClass] to define what can\ + \ be allocated and how to configure it." example: - driver: driver - limit: 0 - poolName: poolName + extendedResourceName: extendedResourceName + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" properties: - driver: - description: "Driver specifies the DRA driver name to filter pools. Only\ - \ pools from ResourceSlices with this driver will be included. Must be\ - \ a DNS subdomain (e.g., \"gpu.example.com\")." - type: string - limit: + config: description: |- - Limit optionally specifies the maximum number of pools to return in the status. If more pools match the filter criteria, the response will be truncated (i.e., len(status.pools) < status.poolCount). + 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. - Default: 100 Minimum: 1 Maximum: 1000 - format: int32 - type: integer - poolName: - description: "PoolName optionally filters to a specific pool name. If not\ - \ specified, all pools from the specified driver are included. When specified,\ - \ must be a non-empty valid resource pool name (DNS subdomains separated\ - \ by \"/\")." + They are passed to the driver, but are not considered while allocating the claim. + items: + $ref: "#/components/schemas/v1beta1.DeviceClassConfiguration" + type: array + x-kubernetes-list-type: atomic + extendedResourceName: + description: "ExtendedResourceName is the extended resource name for the\ + \ devices of this class. The devices of this class can be used to satisfy\ + \ a pod's extended resource requests. It has the same format as the name\ + \ of a pod's extended resource. It should be unique among all the device\ + \ classes in a cluster. If two device classes have the same name, then\ + \ the class created later is picked to satisfy a pod's extended resource\ + \ requests. If two classes are created at the same time, then the name\ + \ of the class lexicographically sorted first is picked." type: string - required: - - driver + selectors: + description: Each selector must be satisfied by a device which is claimed + via this class. + items: + $ref: "#/components/schemas/v1beta1.DeviceSelector" + type: array + x-kubernetes-list-type: atomic type: object - v1alpha3.ResourcePoolStatusRequestStatus: - description: ResourcePoolStatusRequestStatus contains the calculated pool status - information. + v1beta1.DeviceConstraint: + description: DeviceConstraint must have exactly one field set besides Requests. example: - poolCount: 6 - pools: - - generation: 5 - nodeName: nodeName - resourceSliceCount: 2 - driver: driver - totalDevices: 7 - availableDevices: 5 - allocatedDevices: 1 - unavailableDevices: 9 - validationError: validationError - poolName: poolName - - generation: 5 - nodeName: nodeName - resourceSliceCount: 2 - driver: driver - totalDevices: 7 - availableDevices: 5 - allocatedDevices: 1 - unavailableDevices: 9 - validationError: validationError - poolName: poolName - 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 + distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests properties: - conditions: + distinctAttribute: description: |- - Conditions provide information about the state of the request. A condition with type=Complete or type=Failed will always be set when the status is populated. + DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. - Known condition types: - "Complete": True when the request has been processed successfully - "Failed": True when the request could not be processed - 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 - poolCount: - description: "PoolCount is the total number of pools that matched the filter\ - \ criteria, regardless of truncation. This helps users understand how\ - \ many pools exist even when the response is truncated. A value of 0 means\ - \ no pools matched the filter criteria." - format: int32 - type: integer - pools: - description: "Pools contains the first `spec.limit` matching pools, sorted\ - \ by driver then pool name. If `len(pools) < poolCount`, the list was\ - \ truncated. When omitted, no pools matched the request filters." + When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. + + This acts as the inverse of MatchAttribute. + + This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. + + This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. + type: string + 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. + + When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility. + + 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. + + 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: - $ref: "#/components/schemas/v1alpha3.PoolStatus" + type: string type: array x-kubernetes-list-type: atomic - required: - - poolCount type: object - v1beta1.AllocatedDeviceStatus: - description: |- - AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. - - The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. + v1beta1.DeviceCounterConsumption: + description: DeviceCounterConsumption defines a set of counters that a device + will consume from a CounterSet. example: - data: "{}" - driver: driver - networkData: - hardwareAddress: hardwareAddress - interfaceName: interfaceName - ips: - - ips - - ips - pool: pool - shareID: shareID - 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 + counters: + key: + value: value + compatibilityGroups: + - compatibilityGroups + - compatibilityGroups + counterSet: counterSet properties: - conditions: + compatibilityGroups: 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. + CompatibilityGroups is a list of opaque group names for this counter set consumption. - Must not contain more than 8 entries. + Devices that consume counters from the same counter set may only be allocated at the same time ("co-allocated") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. + + An unset field, an explicit nil, and an empty list are equivalent and mean "no groups": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. + + Group names are opaque and meaningful only within the publishing driver's pool. + + The maximum number of groups is 2, and the names must be unique. items: - $ref: "#/components/schemas/v1.Condition" + type: string type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - data: + x-kubernetes-list-type: atomic + 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: |- - Data contains arbitrary driver-specific data. + Counters defines the counters that will be consumed by the device. - The length of the raw data must be smaller or equal to 10 Ki. - properties: {} + The maximum number of counters is 32. 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: + required: + - counterSet + - counters + type: object + v1beta1.DeviceDerivedAttribute: + description: DeviceDerivedAttribute defines a derived attribute computed via + CEL. + example: + expression: expression + name: name + properties: + expression: 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. + Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. - Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. + The expression's input is an object named "device", which carries the same properties as in a CELDeviceSelector. + + When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. + + The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). + + 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. type: string - networkData: - $ref: "#/components/schemas/v1beta1.NetworkDeviceData" - pool: + name: description: |- - This name together with the driver name and the device name field identify which device was allocated (`//`). + Name is the identifier for this derived attribute, used in constraints. - Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. - type: string - shareID: - description: ShareID uniquely identifies an individual allocation share - of the device. + It must be a DNS subdomain followed by a slash ("/") followed by a C identifier (e.g. "example.com/numaNode" or "derived/numaNode"). + + If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. "derived/myAttribute"). + + It is not valid to define a derived attribute that isn't used in at least one constraint. type: string required: - - device - - driver - - pool + - expression + - name type: object - v1beta1.AllocationResult: - description: AllocationResult contains attributes of an allocated resource. + 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: - allocationTimestamp: 2000-01-23T04:56:07.000+00:00 - devices: - config: - - opaque: - driver: driver - parameters: "{}" - requests: - - requests - - requests - source: source - - opaque: - driver: driver - parameters: "{}" + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: 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 - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - pool: pool - shareID: shareID - consumedCapacity: key: null - device: device - bindingConditions: - - bindingConditions - - bindingConditions - - 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 - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - pool: pool - shareID: shareID - consumedCapacity: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: key: null - device: device - bindingConditions: - - bindingConditions - - bindingConditions - 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 + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null properties: - allocationTimestamp: + adminAccess: description: |- - AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. + 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 a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. - format: date-time + 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 - devices: - $ref: "#/components/schemas/v1beta1.DeviceAllocationResult" - nodeSelector: - $ref: "#/components/schemas/v1.NodeSelector" + capacity: + $ref: "#/components/schemas/v1beta1.CapacityRequirements" + 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 + derivedAttributes: + description: |- + DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. + + Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. + + Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. + + The maximum number of derived attributes is 32. + + This is an alpha field and requires enabling the DRADerivedAttributes feature gate. + items: + $ref: "#/components/schemas/v1beta1.DeviceDerivedAttribute" + type: array + x-kubernetes-list-type: atomic + 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.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 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. + + This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + 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 field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. + + This is a beta field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: "#/components/schemas/v1beta1.DeviceToleration" + type: array + x-kubernetes-list-type: atomic + required: + - name type: object - v1beta1.BasicDevice: - description: BasicDevice defines one device instance. + v1beta1.DeviceRequestAllocationResult: + description: DeviceRequestAllocationResult contains the allocation result for + one request. example: - nodeAllocatableResourceMappings: - key: - allocationMultiplier: allocationMultiplier - capacityKey: capacityKey - nodeName: nodeName - allowMultipleAllocations: true - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - attributes: - key: - bools: - - true - - true - bool: true - string: string - strings: - - strings - - strings - ints: - - 6 - - 6 - versions: - - versions - - versions - version: version - int: 0 - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 1 value: value key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + operator: operator + - effect: effect + tolerationSeconds: 1 value: value key: key - allNodes: true - bindsToNode: true + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device bindingConditions: - bindingConditions - bindingConditions - capacity: - key: - value: value - requestPolicy: - default: default - validRange: - min: min - max: max - step: step - validValues: - - null - - 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: + adminAccess: description: |- - AllNodes indicates that all nodes have access to the device. + AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. - Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + 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 - allowMultipleAllocations: + bindingConditions: description: |- - AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. + BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. - If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. - type: boolean - attributes: + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + bindingFailureConditions: + description: |- + BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. + + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + consumedCapacity: additionalProperties: - $ref: "#/components/schemas/v1beta1.DeviceAttribute" + $ref: "#/components/schemas/resource.Quantity" description: |- - Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. + ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). - The maximum number of attributes and capacities combined is 32. + The total consumed capacity for each device must not exceed the DeviceCapacity's Value. + + This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. type: object - bindingConditions: + 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: |- - BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. + 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. - The maximum number of binding conditions is 4. + Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. + type: string + pool: + description: |- + This name together with the driver name and the device name field identify which device was allocated (`//`). - The conditions must be a valid condition type string. + 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
/. - This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + Multiple devices may have been allocated per request. + type: string + shareID: + description: "ShareID uniquely identifies an individual allocation share\ + \ of the device, used when the device supports multiple simultaneous allocations.\ + \ It serves as an additional map key to differentiate concurrent shares\ + \ of the same device." + type: string + skipNodeOperations: + description: "SkipNodeOperations lists node-local resource operations (gRPC\ + \ calls) that will be skipped for this allocated device when determining\ + \ whether operations are necessary on the node. If all allocated devices\ + \ for a driver in a claim skip an operation, that gRPC call will be skipped.\ + \ It is a copy of the ResourceSlice.spec.skipNodeOperations value at the\ + \ time when the device was allocated." items: type: string type: array + x-kubernetes-list-type: set + 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 a beta field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: "#/components/schemas/v1beta1.DeviceToleration" + type: array x-kubernetes-list-type: atomic - bindingFailureConditions: + required: + - device + - driver + - pool + - request + type: object + v1beta1.DeviceSelector: + description: DeviceSelector must have exactly one field set. + example: + cel: + expression: expression + properties: + cel: + $ref: "#/components/schemas/v1beta1.CELDeviceSelector" + type: object + 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 + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + properties: + allocationMode: description: |- - BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is true, a binding failure occurred. + AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - The maximum number of binding failure conditions is 4. + - ExactCount: This request is for a specific number of devices. + This is the default. The exact number is provided in the + count field. - The conditions must be a valid condition type string. + - 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. - This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + 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 + capacity: + $ref: "#/components/schemas/v1beta1.CapacityRequirements" + 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 + derivedAttributes: + description: |- + DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. + + Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. + + Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. + + The maximum number of derived attributes is 32. + + This is an alpha field and requires enabling the DRADerivedAttributes feature gate. items: - type: string + $ref: "#/components/schemas/v1beta1.DeviceDerivedAttribute" type: array x-kubernetes-list-type: atomic - bindsToNode: + deviceClassName: description: |- - BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. + DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. - This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. - type: boolean - capacity: - additionalProperties: - $ref: "#/components/schemas/v1beta1.DeviceCapacity" + 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: |- - Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. + 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
/. - The maximum number of attributes and capacities combined is 32. - type: object - consumesCounters: + 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: |- - ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. + If specified, the request's tolerations. - There can only be a single entry per counterSet. + Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. - The maximum number of device counter consumptions per device is 2. + 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 a beta field and requires enabling the DRADeviceTaints feature gate. items: - $ref: "#/components/schemas/v1beta1.DeviceCounterConsumption" + $ref: "#/components/schemas/v1beta1.DeviceToleration" type: array x-kubernetes-list-type: atomic - nodeAllocatableResourceMappings: - additionalProperties: - $ref: "#/components/schemas/v1beta1.NodeAllocatableResourceMapping" - description: "NodeAllocatableResourceMappings defines the mapping of node\ - \ resources that are managed by the DRA driver exposing this device. This\ - \ includes resources currently reported in v1.Node `status.allocatable`\ - \ that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).\ - \ Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages.\ - \ In addition to standard requests made through the Pod `spec`, these\ - \ resources can also be requested through claims and allocated by the\ - \ DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs\ - \ or auxiliary node memory dependencies of an accelerator device. The\ - \ keys of this map are the node-allocatable resource names (e.g., \"cpu\"\ - , \"memory\"). Extended resource names are not permitted as keys." - type: object - nodeName: + 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: |- - NodeName identifies the node where the device is available. + The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. - Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. type: string - nodeSelector: - $ref: "#/components/schemas/v1.NodeSelector" - taints: + key: + description: The taint key to be applied to a device. Must be a label name. + type: string + timeAdded: description: |- - If specified, these are the driver-defined taints. + TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. - The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. + In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). + 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 - 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 - v1beta1.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 - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator + reservedFor: + - uid: uid + apiGroup: apiGroup + resource: resource + name: name + - uid: uid + apiGroup: apiGroup + resource: resource + name: name + devices: + - data: "{}" driver: driver - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips pool: pool shareID: shareID - consumedCapacity: - key: null + 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 - bindingConditions: - - bindingConditions - - bindingConditions - - 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 + - data: "{}" driver: driver - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips pool: pool shareID: shareID - consumedCapacity: - key: null + 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 - bindingConditions: - - bindingConditions - - bindingConditions - properties: - 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/v1beta1.DeviceAllocationConfiguration" - type: array - x-kubernetes-list-type: atomic - results: - description: Results lists all allocated devices. - items: - $ref: "#/components/schemas/v1beta1.DeviceRequestAllocationResult" - type: array - x-kubernetes-list-type: atomic - type: object - v1beta1.DeviceAttribute: - description: DeviceAttribute must have exactly one field set. - example: - bools: - - true - - true - bool: true - string: string - strings: - - strings - - strings - ints: - - 6 - - 6 - versions: - - versions - - versions - version: version - int: 0 - properties: - bool: - description: BoolValue is a true/false value. - type: boolean - bools: - description: BoolValues is a non-empty list of true/false values. - items: - type: boolean - type: array - x-kubernetes-list-type: atomic - int: - description: IntValue is a number. - format: int64 - type: integer - ints: - description: |- - IntValues is a non-empty list of numbers. - - This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. - items: - format: int64 - type: integer - type: array - x-kubernetes-list-type: atomic - string: - description: StringValue is a string. Must not be longer than 64 characters. - type: string - strings: - description: |- - StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. - - This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. - items: - type: string - type: array - x-kubernetes-list-type: atomic - version: - description: VersionValue is a semantic version according to semver.org - spec 2.0.0. Must not be longer than 64 characters. - type: string - versions: - description: |- - VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. - - This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. - items: - type: string - type: array - x-kubernetes-list-type: atomic - type: object - v1beta1.DeviceCapacity: - description: DeviceCapacity describes a quantity associated with a device. - example: - value: value - requestPolicy: - default: default - validRange: - min: min - max: max - step: step - validValues: - - null - - null - properties: - requestPolicy: - $ref: "#/components/schemas/v1beta1.CapacityRequestPolicy" - 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 - capacity: - requests: - key: null - - 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 - capacity: - requests: - key: null - count: 0 - name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - capacity: - requests: - key: null - - 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 - capacity: - requests: - key: null - - 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 - capacity: - requests: - key: null - count: 0 - name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - capacity: - requests: - key: null - config: - - opaque: - driver: driver - parameters: "{}" - requests: - - requests - - requests - - opaque: - driver: driver - parameters: "{}" - requests: - - requests - - requests - constraints: - - distinctAttribute: distinctAttribute - matchAttribute: matchAttribute - requests: - - requests - - requests - - distinctAttribute: distinctAttribute - 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: - $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/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." + allocation: + $ref: "#/components/schemas/v1beta1.AllocationResult" + devices: + description: "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." items: - $ref: "#/components/schemas/v1beta1.DeviceRequest" + $ref: "#/components/schemas/v1beta1.AllocatedDeviceStatus" type: array - x-kubernetes-list-type: atomic - type: object - v1beta1.DeviceClaimConfiguration: - description: DeviceClaimConfiguration is used for configuration parameters in - DeviceClaim. - example: - opaque: - driver: driver - parameters: "{}" - requests: - - requests - - requests - properties: - opaque: - $ref: "#/components/schemas/v1beta1.OpaqueDeviceConfiguration" - requests: + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - driver + - device + - pool + - shareID + reservedFor: description: |- - Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. + 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. - 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. + 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. items: - type: string + $ref: "#/components/schemas/v1beta1.ResourceClaimConsumerReference" type: array - x-kubernetes-list-type: atomic + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - uid + x-kubernetes-patch-merge-key: uid type: object - v1beta1.DeviceClass: + v1beta1.ResourceClaimTemplate: 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. + ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. example: @@ -281978,67 +301698,7 @@ components: apiVersion: apiVersion kind: kind spec: - extendedResourceName: extendedResourceName - 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\ - \ of an object. Servers should convert recognized schemas to 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.DeviceClassSpec" - required: - - spec - type: object - x-kubernetes-group-version-kind: - - group: resource.k8s.io - kind: DeviceClass - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1beta1.DeviceClassConfiguration: - description: DeviceClassConfiguration is used in DeviceClass. - example: - opaque: - driver: driver - parameters: "{}" - properties: - opaque: - $ref: "#/components/schemas/v1beta1.OpaqueDeviceConfiguration" - type: object - v1beta1.DeviceClassList: - description: DeviceClassList is a collection of classes. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - shardInfo: - selector: selector - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: + metadata: generation: 6 finalizers: - finalizers @@ -282084,22 +301744,240 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - apiVersion: apiVersion - kind: kind spec: - extendedResourceName: extendedResourceName - selectors: - - cel: - expression: expression - - cel: - expression: expression - config: - - opaque: - driver: driver - parameters: "{}" - - opaque: - driver: driver - parameters: "{}" + devices: + requests: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + 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.ResourceClaimTemplateSpec" + type: object + x-kubernetes-group-version-kind: + - group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.ResourceClaimTemplateList: + description: ResourceClaimTemplateList is a collection of claim templates. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: - metadata: generation: 6 finalizers: @@ -282149,735 +302027,575 @@ components: apiVersion: apiVersion kind: kind spec: - extendedResourceName: extendedResourceName - 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\ - \ of an object. Servers should convert recognized schemas to 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 resource classes. - items: - $ref: "#/components/schemas/v1beta1.DeviceClass" - 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: resource.k8s.io - kind: DeviceClassList - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1beta1.DeviceClassSpec: - description: "DeviceClassSpec is used in a [DeviceClass] to define what can\ - \ be allocated and how to configure it." - example: - extendedResourceName: extendedResourceName - selectors: - - cel: - expression: expression - - cel: - expression: expression - config: - - opaque: - driver: driver - parameters: "{}" - - opaque: - driver: driver - parameters: "{}" - properties: - 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/v1beta1.DeviceClassConfiguration" - type: array - x-kubernetes-list-type: atomic - extendedResourceName: - description: |- - ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. - - This is a beta field. - type: string - selectors: - description: Each selector must be satisfied by a device which is claimed - via this class. - items: - $ref: "#/components/schemas/v1beta1.DeviceSelector" - type: array - x-kubernetes-list-type: atomic - type: object - v1beta1.DeviceConstraint: - description: DeviceConstraint must have exactly one field set besides Requests. - example: - distinctAttribute: distinctAttribute - matchAttribute: matchAttribute - requests: - - requests - - requests - properties: - distinctAttribute: - description: |- - DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. - - When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. - - This acts as the inverse of MatchAttribute. - - This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. - - This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. - type: string - 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. - - When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility. - - 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. - - 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.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. - - The maximum number of counters is 32. - 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 - capacity: - requests: - key: null - - 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 - capacity: - requests: - key: null - count: 0 - name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - capacity: - requests: - key: null - 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 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 - capacity: - $ref: "#/components/schemas/v1beta1.CapacityRequirements" - 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.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 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. - - This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. - 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 field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. - - This is a beta field and requires enabling the DRADeviceTaints feature gate. - items: - $ref: "#/components/schemas/v1beta1.DeviceToleration" - type: array - x-kubernetes-list-type: atomic - required: - - name - type: object - 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 - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - pool: pool - shareID: shareID - consumedCapacity: - key: null - device: device - bindingConditions: - - bindingConditions - - bindingConditions - 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 - bindingConditions: - description: |- - BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. - - This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. - items: - type: string - type: array - x-kubernetes-list-type: atomic - bindingFailureConditions: - description: |- - BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. - - This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. - items: - type: string - type: array - x-kubernetes-list-type: atomic - consumedCapacity: - additionalProperties: - $ref: "#/components/schemas/resource.Quantity" - description: |- - ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). - - The total consumed capacity for each device must not exceed the DeviceCapacity's Value. - - This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. - 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. It should use only lower case characters. - 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 - shareID: - description: "ShareID uniquely identifies an individual allocation share\ - \ of the device, used when the device supports multiple simultaneous allocations.\ - \ It serves as an additional map key to differentiate concurrent shares\ - \ of the same device." - 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 a beta 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 - v1beta1.DeviceSelector: - description: DeviceSelector must have exactly one field set. - example: - cel: - expression: expression - properties: - cel: - $ref: "#/components/schemas/v1beta1.CELDeviceSelector" - type: object - 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 - capacity: - requests: - key: null - 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 - capacity: - $ref: "#/components/schemas/v1beta1.CapacityRequirements" - 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 a beta 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 None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. - 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 or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. - - In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). - 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: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + 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 + 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 - metadata: - $ref: "#/components/schemas/v1.ListMeta" required: - - items + - source type: object - x-kubernetes-group-version-kind: - - group: resource.k8s.io - kind: ResourceClaimTemplateList - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1beta1.ResourceClaimTemplateSpec: - description: ResourceClaimTemplateSpec contains the metadata and fields for - a ResourceClaim. + v1beta2.DeviceAllocationResult: + description: DeviceAllocationResult is the result of allocating devices. 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: - devices: - 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 - capacity: - requests: - key: null - - 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 - capacity: - requests: - key: null - count: 0 - name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - capacity: - requests: - key: null - - 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 - capacity: - requests: - key: null - - 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 - capacity: - requests: - key: null - count: 0 - name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - capacity: - requests: - key: null - config: - - opaque: - driver: driver - parameters: "{}" - requests: - - requests - - requests - - opaque: - driver: driver - parameters: "{}" - requests: - - requests - - requests - constraints: - - distinctAttribute: distinctAttribute - matchAttribute: matchAttribute - requests: - - requests - - requests - - distinctAttribute: distinctAttribute - matchAttribute: matchAttribute - requests: - - requests - - requests + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + source: source + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + source: source + results: + - request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + - request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions properties: - metadata: - $ref: "#/components/schemas/v1.ObjectMeta" - spec: - $ref: "#/components/schemas/v1beta1.ResourceClaimSpec" - required: - - spec + 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/v1beta2.DeviceAllocationConfiguration" + type: array + x-kubernetes-list-type: atomic + results: + description: Results lists all allocated devices. + items: + $ref: "#/components/schemas/v1beta2.DeviceRequestAllocationResult" + type: array + x-kubernetes-list-type: atomic type: object - v1beta1.ResourcePool: - description: ResourcePool describes the pool that ResourceSlices belong to. + v1beta2.DeviceAttribute: + description: DeviceAttribute must have exactly one field set. example: - generation: 1 - resourceSliceCount: 5 - name: name + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 properties: - generation: - description: |- - 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. + bool: + description: BoolValue is a true/false value. + type: boolean + bools: + description: BoolValues is a non-empty list of true/false values. + items: + type: boolean + type: array + x-kubernetes-list-type: atomic + int: + description: IntValue is a number. format: int64 type: integer - name: + ints: description: |- - Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. + IntValues is a non-empty list of numbers. - 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. + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + format: int64 + type: integer + type: array + x-kubernetes-list-type: atomic + string: + description: StringValue is a string. Must not be longer than 64 characters. type: string - resourceSliceCount: + strings: description: |- - 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. - format: int64 - type: integer - required: - - generation - - name - - resourceSliceCount - type: object - v1beta1.ResourceSlice: - description: |- - 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. + StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. - 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 field and requires enabling the DRAListTypeAttributes feature gate. + items: + type: string + type: array + x-kubernetes-list-type: atomic + version: + description: VersionValue is a semantic version according to semver.org + spec 2.0.0. Must not be longer than 64 characters. + type: string + versions: + description: |- + VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. - This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + v1beta2.DeviceCapacity: + description: DeviceCapacity describes a quantity associated with a device. 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: - nodeName: nodeName - driver: driver - perDeviceNodeSelection: true - devices: - - name: name - basic: - nodeAllocatableResourceMappings: - key: - allocationMultiplier: allocationMultiplier - capacityKey: capacityKey - nodeName: nodeName - allowMultipleAllocations: true - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - attributes: - key: - bools: - - true - - true - bool: true - string: string - strings: - - strings - - strings - ints: - - 6 - - 6 - versions: - - versions - - versions - 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 - bindsToNode: true - bindingConditions: - - bindingConditions - - bindingConditions - capacity: - key: - value: value - requestPolicy: - default: default - validRange: - min: min - max: max - step: step - validValues: - - null - - 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 - - name: name - basic: - nodeAllocatableResourceMappings: - key: - allocationMultiplier: allocationMultiplier - capacityKey: capacityKey - nodeName: nodeName - allowMultipleAllocations: true - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - attributes: - key: - bools: - - true - - true - bool: true - string: string - strings: - - strings - - strings - ints: - - 6 - - 6 - versions: - - versions - - versions - 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 - bindsToNode: true - bindingConditions: - - bindingConditions - - bindingConditions - capacity: - key: - value: value - requestPolicy: - default: default - validRange: - min: min - max: max - step: step - validValues: - - null - - 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 - pool: - generation: 1 - resourceSliceCount: 5 - name: name - sharedCounters: - - counters: - key: - value: value - name: name - - counters: - key: - value: value - name: name - allNodes: true - 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 + value: value + requestPolicy: + default: default + validRange: + min: min + max: max + step: step + validValues: + - null + - 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" + requestPolicy: + $ref: "#/components/schemas/v1beta2.CapacityRequestPolicy" + 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 - metadata: - $ref: "#/components/schemas/v1.ObjectMeta" - spec: - $ref: "#/components/schemas/v1beta1.ResourceSliceSpec" required: - - spec + - value type: object - x-kubernetes-group-version-kind: - - group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1beta1.ResourceSliceList: - description: ResourceSliceList is a collection of ResourceSlices. + v1beta2.DeviceClaim: + description: DeviceClaim defines how to request devices with a ResourceClaim. example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - shardInfo: - selector: selector - 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 + requests: + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + - expression: expression 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 + 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 - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - nodeName: nodeName - driver: driver - perDeviceNodeSelection: true - devices: - - name: name - basic: - nodeAllocatableResourceMappings: - key: - allocationMultiplier: allocationMultiplier - capacityKey: capacityKey - nodeName: nodeName - allowMultipleAllocations: true - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - attributes: - key: - bools: - - true - - true - bool: true - string: string - strings: - - strings - - strings - ints: - - 6 - - 6 - versions: - - versions - - versions - 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 - bindsToNode: true - bindingConditions: - - bindingConditions - - bindingConditions - capacity: - key: - value: value - requestPolicy: - default: default - validRange: - min: min - max: max - step: step - validValues: - - null - - 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 - - name: name - basic: - nodeAllocatableResourceMappings: - key: - allocationMultiplier: allocationMultiplier - capacityKey: capacityKey - nodeName: nodeName - allowMultipleAllocations: true - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - attributes: - key: - bools: - - true - - true - bool: true - string: string - strings: - - strings - - strings - ints: - - 6 - - 6 - versions: - - versions - - versions - 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 - bindsToNode: true - bindingConditions: - - bindingConditions - - bindingConditions - capacity: - key: - value: value - requestPolicy: - default: default - validRange: - min: min - max: max - step: step - validValues: - - null - - 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 - pool: - generation: 1 - resourceSliceCount: 5 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression name: name - sharedCounters: - - counters: - key: - value: value + - expression: expression name: name - - counters: - key: - value: value + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression name: name - allNodes: true - 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 + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + 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: + $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/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/v1beta2.DeviceRequest" + type: array + x-kubernetes-list-type: atomic + type: object + v1beta2.DeviceClaimConfiguration: + description: DeviceClaimConfiguration is used for configuration parameters in + DeviceClaim. + example: + opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + properties: + opaque: + $ref: "#/components/schemas/v1beta2.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 + 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. + + This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + 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: + extendedResourceName: extendedResourceName + 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\ + \ of an object. Servers should convert recognized schemas to 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/v1beta2.DeviceClassSpec" + type: object + x-kubernetes-group-version-kind: + - group: resource.k8s.io + kind: DeviceClass + version: v1beta2 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta2.DeviceClassConfiguration: + description: DeviceClassConfiguration is used in DeviceClass. + example: + opaque: + driver: driver + parameters: "{}" + properties: + opaque: + $ref: "#/components/schemas/v1beta2.OpaqueDeviceConfiguration" + type: object + v1beta2.DeviceClassList: + description: DeviceClassList is a collection of classes. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: - metadata: generation: 6 finalizers: @@ -286422,290 +305892,81 @@ components: apiVersion: apiVersion kind: kind spec: - nodeName: nodeName - driver: driver - perDeviceNodeSelection: true - devices: - - name: name - basic: - nodeAllocatableResourceMappings: - key: - allocationMultiplier: allocationMultiplier - capacityKey: capacityKey - nodeName: nodeName - allowMultipleAllocations: true - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - attributes: - key: - bools: - - true - - true - bool: true - string: string - strings: - - strings - - strings - ints: - - 6 - - 6 - versions: - - versions - - versions - 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 - bindsToNode: true - bindingConditions: - - bindingConditions - - bindingConditions - capacity: - key: - value: value - requestPolicy: - default: default - validRange: - min: min - max: max - step: step - validValues: - - null - - 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 - - name: name - basic: - nodeAllocatableResourceMappings: - key: - allocationMultiplier: allocationMultiplier - capacityKey: capacityKey - nodeName: nodeName - allowMultipleAllocations: true - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - attributes: - key: - bools: - - true - - true - bool: true - string: string - strings: - - strings - - strings - ints: - - 6 - - 6 - versions: - - versions - - versions - 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 - bindsToNode: true - bindingConditions: - - bindingConditions - - bindingConditions - capacity: - key: - value: value - requestPolicy: - default: default - validRange: - min: min - max: max - step: step - validValues: - - null - - 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 - pool: - generation: 1 - resourceSliceCount: 5 - name: name - sharedCounters: - - counters: - key: - value: value + extendedResourceName: extendedResourceName + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" + - 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 - - counters: - key: - value: value + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - allNodes: true - 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 + 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: + extendedResourceName: extendedResourceName + 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\ @@ -286713,9 +305974,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 resource ResourceSlices. + description: Items is the list of resource classes. items: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -286729,373 +305990,880 @@ components: type: object x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSliceList - version: v1beta1 + kind: DeviceClassList + version: v1beta2 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta1.ResourceSliceSpec: - description: ResourceSliceSpec contains the information published by the driver - in one ResourceSlice. + v1beta2.DeviceClassSpec: + description: "DeviceClassSpec is used in a [DeviceClass] to define what can\ + \ be allocated and how to configure it." example: - nodeName: nodeName - driver: driver - perDeviceNodeSelection: true - devices: - - name: name - basic: - nodeAllocatableResourceMappings: - key: - allocationMultiplier: allocationMultiplier - capacityKey: capacityKey - nodeName: nodeName - allowMultipleAllocations: true - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - attributes: - key: - bools: - - true - - true - bool: true - string: string - strings: - - strings - - strings - ints: - - 6 - - 6 - versions: - - versions - - versions - 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 - bindsToNode: true - bindingConditions: - - bindingConditions - - bindingConditions - capacity: - key: - value: value - requestPolicy: - default: default - validRange: - min: min - max: max - step: step - validValues: - - null - - 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 - - name: name - basic: - nodeAllocatableResourceMappings: - key: - allocationMultiplier: allocationMultiplier - capacityKey: capacityKey - nodeName: nodeName - allowMultipleAllocations: true - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - attributes: - key: - bools: - - true - - true - bool: true - string: string - strings: - - strings - - strings - ints: - - 6 - - 6 - versions: - - versions - - versions - 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 - bindsToNode: true - bindingConditions: - - bindingConditions - - bindingConditions - capacity: - key: - value: value - requestPolicy: - default: default - validRange: - min: min - max: max - step: step - validValues: - - null - - 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 - pool: - generation: 1 - resourceSliceCount: 5 - name: name - sharedCounters: - - counters: - key: - value: value - name: name - - counters: - key: - value: value - name: name - allNodes: true - 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 + extendedResourceName: extendedResourceName + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" + properties: + 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/v1beta2.DeviceClassConfiguration" + type: array + x-kubernetes-list-type: atomic + extendedResourceName: + description: "ExtendedResourceName is the extended resource name for the\ + \ devices of this class. The devices of this class can be used to satisfy\ + \ a pod's extended resource requests. It has the same format as the name\ + \ of a pod's extended resource. It should be unique among all the device\ + \ classes in a cluster. If two device classes have the same name, then\ + \ the class created later is picked to satisfy a pod's extended resource\ + \ requests. If two classes are created at the same time, then the name\ + \ of the class lexicographically sorted first is picked." + type: string + selectors: + description: Each selector must be satisfied by a device which is claimed + via this class. + items: + $ref: "#/components/schemas/v1beta2.DeviceSelector" + type: array + x-kubernetes-list-type: atomic + type: object + v1beta2.DeviceConstraint: + description: DeviceConstraint must have exactly one field set besides Requests. + example: + distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + properties: + distinctAttribute: + description: |- + DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. + + When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. + + This acts as the inverse of MatchAttribute. + + This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. + + This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. + type: string + 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. + + When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility. + + 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. + + 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 + v1beta2.DeviceCounterConsumption: + description: DeviceCounterConsumption defines a set of counters that a device + will consume from a CounterSet. + example: + counters: + key: + value: value + compatibilityGroups: + - compatibilityGroups + - compatibilityGroups + counterSet: counterSet + properties: + compatibilityGroups: + description: |- + CompatibilityGroups is a list of opaque group names for this counter set consumption. + + Devices that consume counters from the same counter set may only be allocated at the same time ("co-allocated") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. + + An unset field, an explicit nil, and an empty list are equivalent and mean "no groups": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. + + Group names are opaque and meaningful only within the publishing driver's pool. + + The maximum number of groups is 2, and the names must be unique. + items: + type: string + type: array + x-kubernetes-list-type: atomic + 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 of counters is 32. + type: object + required: + - counterSet + - counters + type: object + v1beta2.DeviceDerivedAttribute: + description: DeviceDerivedAttribute defines a derived attribute computed via + CEL. + example: + expression: expression + name: name + properties: + expression: + description: |- + Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. + + The expression's input is an object named "device", which carries the same properties as in a CELDeviceSelector. + + When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. + + The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). + + 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. + type: string + name: + description: |- + Name is the identifier for this derived attribute, used in constraints. + + It must be a DNS subdomain followed by a slash ("/") followed by a C identifier (e.g. "example.com/numaNode" or "derived/numaNode"). + + If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. "derived/myAttribute"). + + It is not valid to define a derived attribute that isn't used in at least one constraint. + type: string + required: + - expression + - name + 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 + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null properties: - allNodes: + exactly: + $ref: "#/components/schemas/v1beta2.ExactDeviceRequest" + firstAvailable: description: |- - AllNodes indicates that all nodes have access to the resources in the pool. + 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. - Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. - type: boolean - devices: + 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: |- - Devices lists some or all of the devices in this pool. + Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. - Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64. + 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. - Only one of Devices and SharedCounters can be set in a ResourceSlice. + 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 + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + 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 + bindingConditions: + description: |- + BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. + + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. items: - $ref: "#/components/schemas/v1beta1.Device" + type: string type: array x-kubernetes-list-type: atomic - driver: + bindingFailureConditions: description: |- - 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. + BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. - Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. This field is immutable. - type: string - nodeName: + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + consumedCapacity: + additionalProperties: + $ref: "#/components/schemas/resource.Quantity" description: |- - 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. + ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). - 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. + The total consumed capacity for each device must not exceed the DeviceCapacity's Value. - Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. + This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. + 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 - nodeSelector: - $ref: "#/components/schemas/v1.NodeSelector" - perDeviceNodeSelection: + driver: description: |- - 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. + 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. - Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. - type: boolean + Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. + type: string pool: - $ref: "#/components/schemas/v1beta1.ResourcePool" - sharedCounters: description: |- - SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. + This name together with the driver name and the device name field identify which device was allocated (`//`). - The names of the counter sets must be unique in the ResourcePool. + 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
/. - Only one of Devices and SharedCounters can be set in a ResourceSlice. + Multiple devices may have been allocated per request. + type: string + shareID: + description: "ShareID uniquely identifies an individual allocation share\ + \ of the device, used when the device supports multiple simultaneous allocations.\ + \ It serves as an additional map key to differentiate concurrent shares\ + \ of the same device." + type: string + skipNodeOperations: + description: "SkipNodeOperations lists node-local resource operations (gRPC\ + \ calls) that will be skipped for this allocated device when determining\ + \ whether operations are necessary on the node. If all allocated devices\ + \ for a driver in a claim skip an operation, that gRPC call will be skipped.\ + \ It is a copy of the ResourceSlice.spec.skipNodeOperations value at the\ + \ time when the device was allocated." + items: + type: string + type: array + x-kubernetes-list-type: set + tolerations: + description: |- + A copy of all tolerations specified in the request at the time when the device got allocated. - The maximum number of counter sets is 8. + The maximum number of tolerations is 16. + + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: - $ref: "#/components/schemas/v1beta1.CounterSet" + $ref: "#/components/schemas/v1beta2.DeviceToleration" type: array x-kubernetes-list-type: atomic required: + - device - driver - pool + - request type: object - v1beta2.AllocatedDeviceStatus: + 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: |- - AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. + 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. - The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. + 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 + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + 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 + capacity: + $ref: "#/components/schemas/v1beta2.CapacityRequirements" + 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 + derivedAttributes: + description: |- + DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. + + Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. + + Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. + + The maximum number of derived attributes is 32. + + This is an alpha field and requires enabling the DRADerivedAttributes feature gate. + items: + $ref: "#/components/schemas/v1beta2.DeviceDerivedAttribute" + type: array + x-kubernetes-list-type: atomic + 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/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 a beta 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 + 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: + 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 None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. + 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 or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. + + In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). + 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.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: + 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: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + 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 + 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/v1beta2.DeviceTaintRuleSpec" + status: + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleStatus" + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: resource.k8s.io + kind: DeviceTaintRule + version: v1beta2 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta2.DeviceTaintRuleList: + description: DeviceTaintRuleList is a collection of DeviceTaintRules. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + 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: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + 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: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + 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 DeviceTaintRules. + items: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + 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: resource.k8s.io + kind: DeviceTaintRuleList + version: v1beta2 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta2.DeviceTaintRuleSpec: + description: DeviceTaintRuleSpec specifies the selector and one taint. + example: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + properties: + deviceSelector: + $ref: "#/components/schemas/v1beta2.DeviceTaintSelector" + taint: + $ref: "#/components/schemas/v1beta2.DeviceTaint" + required: + - taint + type: object + v1beta2.DeviceTaintRuleStatus: + description: DeviceTaintRuleStatus provides information about an on-going pod + eviction. example: - data: "{}" - driver: driver - networkData: - hardwareAddress: hardwareAddress - interfaceName: interfaceName - ips: - - ips - - ips - pool: pool - shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -287109,316 +306877,271 @@ components: 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. + Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. - Must not contain more than 8 entries. + The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise + (includes the effects which don't cause eviction). + - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods + in a human-readable format, updated periodically, may change + + For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. + + Must have 8 or fewer entries. items: $ref: "#/components/schemas/v1.Condition" type: array + x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map x-kubernetes-list-map-keys: - type - data: + x-kubernetes-patch-merge-key: type + type: object + v1beta2.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: + driver: driver + pool: pool + device: device + properties: + device: description: |- - Data contains arbitrary driver-specific data. + If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. - 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. + Setting also driver and pool may be required to avoid ambiguity, but is not required. 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. It should use only lower case characters. + description: "If driver is set, only devices from that driver are selected.\ + \ This fields corresponds to slice.spec.driver." type: string - networkData: - $ref: "#/components/schemas/v1beta2.NetworkDeviceData" pool: description: |- - This name together with the driver name and the device name field identify which device was allocated (`//`). + If pool is set, only devices in that pool are selected. - Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. - type: string - shareID: - description: ShareID uniquely identifies an individual allocation share - of the device. + 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 - required: - - device - - driver - - pool type: object - v1beta2.AllocationResult: - description: AllocationResult contains attributes of an allocated resource. + v1beta2.DeviceToleration: + description: "The ResourceClaim this DeviceToleration is attached to tolerates\ + \ any taint that matches the triple using the matching\ + \ operator ." example: - allocationTimestamp: 2000-01-23T04:56:07.000+00:00 - 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: 6 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 6 - value: value - key: key - operator: operator - driver: driver - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - pool: pool - shareID: shareID - consumedCapacity: - key: null - device: device - bindingConditions: - - bindingConditions - - bindingConditions - - 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 - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - pool: pool - shareID: shareID - consumedCapacity: - key: null - device: device - bindingConditions: - - bindingConditions - - bindingConditions - 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 + effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator properties: - allocationTimestamp: - description: |- - AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. - - This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. - format: date-time + 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 - 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 + The length of the raw data must be smaller or equal to 10 Ki. + properties: {} + type: object required: - - source - type: object - v1beta2.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: 6 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 6 - value: value - key: key - operator: operator - driver: driver - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - pool: pool - shareID: shareID - consumedCapacity: - key: null - device: device - bindingConditions: - - bindingConditions - - bindingConditions - - 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 - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - pool: pool - shareID: shareID - consumedCapacity: - key: null - device: device - bindingConditions: - - bindingConditions - - bindingConditions - properties: - 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/v1beta2.DeviceAllocationConfiguration" - type: array - x-kubernetes-list-type: atomic - results: - description: Results lists all allocated devices. - items: - $ref: "#/components/schemas/v1beta2.DeviceRequestAllocationResult" - type: array - x-kubernetes-list-type: atomic + - driver + - parameters type: object - v1beta2.DeviceAttribute: - description: DeviceAttribute must have exactly one field set. - example: - bools: - - true - - true - bool: true - string: string - strings: - - strings - - strings - ints: - - 6 - - 6 - versions: - - versions - - versions - version: version - int: 0 - properties: - bool: - description: BoolValue is a true/false value. - type: boolean - bools: - description: BoolValues is a non-empty list of true/false values. - items: - type: boolean - type: array - x-kubernetes-list-type: atomic - int: - description: IntValue is a number. - format: int64 - type: integer - ints: - description: |- - IntValues is a non-empty list of numbers. - - This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. - items: - format: int64 - type: integer - type: array - x-kubernetes-list-type: atomic - string: - description: StringValue is a string. Must not be longer than 64 characters. - type: string - strings: - description: |- - StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. - - This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. - items: - type: string - type: array - x-kubernetes-list-type: atomic - version: - description: VersionValue is a semantic version according to semver.org - spec 2.0.0. Must not be longer than 64 characters. - type: string - versions: - description: |- - VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. + v1beta2.ResourceClaim: + description: |- + 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 field and requires enabling the DRAListTypeAttributes feature gate. - items: - type: string - type: array - x-kubernetes-list-type: atomic - type: object - v1beta2.DeviceCapacity: - description: DeviceCapacity describes a quantity associated with a device. - example: - value: value - requestPolicy: - default: default - validRange: - min: min - max: max - step: step - validValues: - - null - - null - properties: - requestPolicy: - $ref: "#/components/schemas/v1beta2.CapacityRequestPolicy" - 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 - v1beta2.DeviceClaim: - description: DeviceClaim defines how to request devices with a ResourceClaim. + This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. example: - requests: - - 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 + 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 - selectors: - - cel: - expression: expression - - cel: - expression: expression - capacity: - requests: - key: null - - 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 + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - capacity: - requests: - key: null + 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 - 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 - capacity: + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + devices: + requests: + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" requests: - key: null - - 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 + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + status: + allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 + 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 + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + - request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + 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 + reservedFor: + - uid: uid + apiGroup: apiGroup + resource: resource name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - capacity: - requests: - key: null - - 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 + - uid: uid + apiGroup: apiGroup + resource: resource name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - capacity: - requests: - key: null - 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 - capacity: - requests: - key: null - config: - - opaque: + devices: + - data: "{}" driver: driver - parameters: "{}" - requests: - - requests - - requests - - opaque: + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool + shareID: shareID + 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 + - data: "{}" driver: driver - parameters: "{}" - requests: - - requests - - requests - constraints: - - distinctAttribute: distinctAttribute - matchAttribute: matchAttribute - requests: - - requests - - requests - - distinctAttribute: distinctAttribute - matchAttribute: matchAttribute - requests: - - requests - - requests + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool + shareID: shareID + 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: - 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: - $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/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/v1beta2.DeviceRequest" - type: array - x-kubernetes-list-type: atomic + 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/v1beta2.ResourceClaimSpec" + status: + $ref: "#/components/schemas/v1beta2.ResourceClaimStatus" type: object - v1beta2.DeviceClaimConfiguration: - description: DeviceClaimConfiguration is used for configuration parameters in - DeviceClaim. + x-kubernetes-group-version-kind: + - group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta2.ResourceClaimConsumerReference: + description: 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. example: - opaque: - driver: driver - parameters: "{}" - requests: - - requests - - requests + uid: uid + apiGroup: apiGroup + resource: resource + name: name properties: - opaque: - $ref: "#/components/schemas/v1beta2.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 + apiGroup: + description: 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. + type: string + name: + description: Name is the name of resource being referenced. + type: string + resource: + description: "Resource is the type of resource being referenced, for example\ + \ \"pods\"." + type: string + uid: + description: UID identifies exactly one incarnation of the resource. + type: string + required: + - name + - resource + - uid type: object - 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. - - This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + v1beta2.ResourceClaimList: + description: ResourceClaimList is a collection of claims. 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 + shardInfo: + selector: selector 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: - extendedResourceName: extendedResourceName - selectors: - - cel: - expression: expression - - cel: - expression: expression - config: - - opaque: + 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: + devices: + requests: + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + status: + allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 + 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 + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + - request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + 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 + reservedFor: + - uid: uid + apiGroup: apiGroup + resource: resource + name: name + - uid: uid + apiGroup: apiGroup + resource: resource + name: name + devices: + - data: "{}" + driver: driver + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool + shareID: shareID + 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 + - data: "{}" + driver: driver + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool + shareID: shareID + 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 + - 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: + devices: + requests: + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + status: + allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 + 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 + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + - request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + 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 + reservedFor: + - uid: uid + apiGroup: apiGroup + resource: resource + name: name + - uid: uid + apiGroup: apiGroup + resource: resource + name: name + devices: + - data: "{}" driver: driver - parameters: "{}" - - opaque: + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool + shareID: shareID + 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 + - data: "{}" driver: driver - parameters: "{}" + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool + shareID: shareID + 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: 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 resource claims. + items: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + 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.ObjectMeta" - spec: - $ref: "#/components/schemas/v1beta2.DeviceClassSpec" + $ref: "#/components/schemas/v1.ListMeta" required: - - spec + - items type: object x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaimList version: v1beta2 x-implements: - - io.kubernetes.client.common.KubernetesObject - v1beta2.DeviceClassConfiguration: - description: DeviceClassConfiguration is used in DeviceClass. - example: - opaque: - driver: driver - parameters: "{}" - properties: - opaque: - $ref: "#/components/schemas/v1beta2.OpaqueDeviceConfiguration" - type: object - v1beta2.DeviceClassList: - description: DeviceClassList is a collection of classes. + - io.kubernetes.client.common.KubernetesListObject + v1beta2.ResourceClaimSpec: + description: ResourceClaimSpec defines what is being requested in a ResourceClaim + and how to configure it. example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - shardInfo: - selector: selector - 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 + devices: + requests: + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 - 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 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - extendedResourceName: extendedResourceName - selectors: - - cel: - expression: expression - - cel: - expression: expression - config: - - opaque: - driver: driver - parameters: "{}" - - opaque: - driver: driver - parameters: "{}" - - 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 + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 - 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 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - extendedResourceName: extendedResourceName - selectors: - - cel: - expression: expression - - cel: - expression: expression + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + properties: + devices: + $ref: "#/components/schemas/v1beta2.DeviceClaim" + type: object + v1beta2.ResourceClaimStatus: + description: ResourceClaimStatus tracks whether the resource has been allocated + and what the result of that was. + example: + allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 + devices: config: - opaque: driver: driver parameters: "{}" + requests: + - requests + - requests + source: source - opaque: driver: driver parameters: "{}" - 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 resource classes. - items: - $ref: "#/components/schemas/v1beta2.DeviceClass" - 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: resource.k8s.io - kind: DeviceClassList - version: v1beta2 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1beta2.DeviceClassSpec: - description: "DeviceClassSpec is used in a [DeviceClass] to define what can\ - \ be allocated and how to configure it." - example: - extendedResourceName: extendedResourceName - selectors: - - cel: - expression: expression - - cel: - expression: expression - config: - - opaque: - driver: driver - parameters: "{}" - - opaque: - driver: driver - parameters: "{}" - properties: - 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/v1beta2.DeviceClassConfiguration" - type: array - x-kubernetes-list-type: atomic - extendedResourceName: - description: |- - ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. - - This is a beta field. - type: string - selectors: - description: Each selector must be satisfied by a device which is claimed - via this class. - items: - $ref: "#/components/schemas/v1beta2.DeviceSelector" - type: array - x-kubernetes-list-type: atomic - type: object - v1beta2.DeviceConstraint: - description: DeviceConstraint must have exactly one field set besides Requests. - example: - distinctAttribute: distinctAttribute - matchAttribute: matchAttribute - requests: - - requests - - requests - properties: - distinctAttribute: - description: |- - DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. - - When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. - - This acts as the inverse of MatchAttribute. - - This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. - - This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. - type: string - 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. - - When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility. - - 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. - - 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 - 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 of counters is 32. - 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 + requests: + - requests + - requests + source: source + results: + - request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + - request: request + adminAccess: true + skipNodeOperations: + - skipNodeOperations + - skipNodeOperations + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + 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 + reservedFor: + - uid: uid + apiGroup: apiGroup + resource: resource name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - capacity: - requests: - key: null - - 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 + - uid: uid + apiGroup: apiGroup + resource: resource name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - capacity: - requests: - key: null - 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 - capacity: - requests: - key: null - 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 - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - pool: pool - shareID: shareID - consumedCapacity: - key: null - device: device - bindingConditions: - - bindingConditions - - bindingConditions - 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 - bindingConditions: - description: |- - BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. - - This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. - items: - type: string - type: array - x-kubernetes-list-type: atomic - bindingFailureConditions: - description: |- - BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. - - This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. - items: - type: string - type: array - x-kubernetes-list-type: atomic - consumedCapacity: - additionalProperties: - $ref: "#/components/schemas/resource.Quantity" - description: |- - ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). - - The total consumed capacity for each device must not exceed the DeviceCapacity's Value. - - This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. - 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. It should use only lower case characters. - 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 - shareID: - description: "ShareID uniquely identifies an individual allocation share\ - \ of the device, used when the device supports multiple simultaneous allocations.\ - \ It serves as an additional map key to differentiate concurrent shares\ - \ of the same device." - 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 a beta 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: |- - 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. - example: - 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 - capacity: - requests: - key: null - 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 - capacity: - $ref: "#/components/schemas/v1beta2.CapacityRequirements" - 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. + devices: + - data: "{}" + driver: driver + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool + shareID: shareID + 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 + - data: "{}" + driver: driver + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool + shareID: shareID + 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: + allocation: + $ref: "#/components/schemas/v1beta2.AllocationResult" + devices: + description: "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." items: - $ref: "#/components/schemas/v1beta2.DeviceSelector" + $ref: "#/components/schemas/v1beta2.AllocatedDeviceStatus" type: array - x-kubernetes-list-type: atomic - tolerations: + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - driver + - device + - pool + - shareID + reservedFor: 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. + 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 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. + 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. - The maximum number of tolerations is 16. + 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. - This is a beta field and requires enabling the DRADeviceTaints feature gate. + There can be at most 256 such reservations. This may get increased in the future, but not reduced. items: - $ref: "#/components/schemas/v1beta2.DeviceToleration" + $ref: "#/components/schemas/v1beta2.ResourceClaimConsumerReference" type: array - x-kubernetes-list-type: atomic - required: - - deviceClassName - - name + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - uid + x-kubernetes-patch-merge-key: uid type: object - 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: - 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 None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. - 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 or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. + v1beta2.ResourceClaimTemplate: + description: |- + ResourceClaimTemplate is used to produce ResourceClaim objects. - In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). - 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.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. + This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. example: metadata: generation: 6 @@ -289095,29 +309217,253 @@ components: apiVersion: apiVersion kind: kind spec: - taint: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - deviceSelector: - driver: driver - pool: pool - device: device - 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 + spec: + devices: + requests: + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -289132,20 +309478,16 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: "#/components/schemas/v1beta2.DeviceTaintRuleSpec" - status: - $ref: "#/components/schemas/v1beta2.DeviceTaintRuleStatus" - required: - - spec + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateSpec" type: object x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceTaintRule + kind: ResourceClaimTemplate version: v1beta2 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta2.DeviceTaintRuleList: - description: DeviceTaintRuleList is a collection of DeviceTaintRules. + v1beta2.ResourceClaimTemplateList: + description: ResourceClaimTemplateList is a collection of claim templates. example: metadata: remainingItemCount: 1 @@ -289206,29 +309548,253 @@ components: apiVersion: apiVersion kind: kind spec: - taint: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - deviceSelector: - driver: driver - pool: pool - device: device - 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 + spec: + devices: + requests: + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - firstAvailable: + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + - allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode + derivedAttributes: + - expression: expression + name: name + - expression: expression + name: name + 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 + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests - metadata: generation: 6 finalizers: @@ -289278,402 +309844,283 @@ components: apiVersion: apiVersion kind: kind spec: - taint: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - deviceSelector: - driver: driver - pool: pool - device: device - 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 DeviceTaintRules. - items: - $ref: "#/components/schemas/v1beta2.DeviceTaintRule" - 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: resource.k8s.io - kind: DeviceTaintRuleList - version: v1beta2 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1beta2.DeviceTaintRuleSpec: - description: DeviceTaintRuleSpec specifies the selector and one taint. - example: - taint: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - deviceSelector: - driver: driver - pool: pool - device: device - properties: - deviceSelector: - $ref: "#/components/schemas/v1beta2.DeviceTaintSelector" - taint: - $ref: "#/components/schemas/v1beta2.DeviceTaint" - required: - - taint - type: object - v1beta2.DeviceTaintRuleStatus: - description: DeviceTaintRuleStatus provides information about an on-going pod - eviction. - 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 provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. - - The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise - (includes the effects which don't cause eviction). - - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods - in a human-readable format, updated periodically, may change - - For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. - - Must have 8 or fewer entries. - 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 - v1beta2.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: - driver: driver - pool: pool - 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 - 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 - 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 # **deleteCertificateSigningRequest** > V1Status deleteCertificateSigningRequest(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -198,6 +388,99 @@ public class Example { | **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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(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 CertificatesV1Api#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 | - | + # **deleteCollectionCertificateSigningRequest** > V1Status deleteCollectionCertificateSigningRequest().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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -315,13 +598,1445 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **getAPIResources** -> V1APIResourceList getAPIResources().execute(); + +# **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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -get available resources +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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1Api#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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 | - | + + +# **deleteCollectionNamespacedPodCertificateRequest** +> V1Status deleteCollectionNamespacedPodCertificateRequest(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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of PodCertificateRequest + +### 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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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.deleteCollectionNamespacedPodCertificateRequest(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) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1Api#deleteCollectionNamespacedPodCertificateRequest"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 | - | + + +# **deleteNamespacedPodCertificateRequest** +> V1Status deleteNamespacedPodCertificateRequest(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a PodCertificateRequest + +### 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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); + String name = "name_example"; // String | name of the PodCertificateRequest + 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.deleteNamespacedPodCertificateRequest(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 CertificatesV1Api#deleteNamespacedPodCertificateRequest"); + 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 PodCertificateRequest | | +| **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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1Api#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 | - | + + +# **listCertificateSigningRequest** +> V1CertificateSigningRequestList listCertificateSigningRequest().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind CertificateSigningRequest + +### 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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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 { + V1CertificateSigningRequestList result = apiInstance.listCertificateSigningRequest() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1Api#listCertificateSigningRequest"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 + +[**V1CertificateSigningRequestList**](V1CertificateSigningRequestList.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 | - | + + +# **listClusterTrustBundle** +> V1ClusterTrustBundleList listClusterTrustBundle().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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 { + V1ClusterTrustBundleList result = apiInstance.listClusterTrustBundle() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1Api#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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 + +[**V1ClusterTrustBundleList**](V1ClusterTrustBundleList.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 | - | + + +# **listNamespacedPodCertificateRequest** +> V1PodCertificateRequestList listNamespacedPodCertificateRequest(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind PodCertificateRequest + +### 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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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 { + V1PodCertificateRequestList result = apiInstance.listNamespacedPodCertificateRequest(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1Api#listNamespacedPodCertificateRequest"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 + +[**V1PodCertificateRequestList**](V1PodCertificateRequestList.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 | - | + + +# **listPodCertificateRequestForAllNamespaces** +> V1PodCertificateRequestList listPodCertificateRequestForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind PodCertificateRequest + +### 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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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 { + V1PodCertificateRequestList result = apiInstance.listPodCertificateRequestForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1Api#listPodCertificateRequestForAllNamespaces"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 + +[**V1PodCertificateRequestList**](V1PodCertificateRequestList.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 | - | + + +# **patchCertificateSigningRequest** +> V1CertificateSigningRequest patchCertificateSigningRequest(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified CertificateSigningRequest + +### 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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest + 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 { + V1CertificateSigningRequest result = apiInstance.patchCertificateSigningRequest(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 CertificatesV1Api#patchCertificateSigningRequest"); + 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 CertificateSigningRequest | | +| **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 + +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.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 | - | + + +# **patchCertificateSigningRequestApproval** +> V1CertificateSigningRequest patchCertificateSigningRequestApproval(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update approval of the specified CertificateSigningRequest + +### 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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest + 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 { + V1CertificateSigningRequest result = apiInstance.patchCertificateSigningRequestApproval(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 CertificatesV1Api#patchCertificateSigningRequestApproval"); + 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 CertificateSigningRequest | | +| **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 + +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.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 | - | + + +# **patchCertificateSigningRequestStatus** +> V1CertificateSigningRequest patchCertificateSigningRequestStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified CertificateSigningRequest + +### 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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest + 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 { + V1CertificateSigningRequest result = apiInstance.patchCertificateSigningRequestStatus(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 CertificatesV1Api#patchCertificateSigningRequestStatus"); + 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 CertificateSigningRequest | | +| **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 + +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.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 | - | + + +# **patchClusterTrustBundle** +> V1ClusterTrustBundle 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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(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 { + V1ClusterTrustBundle 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 CertificatesV1Api#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 + +[**V1ClusterTrustBundle**](V1ClusterTrustBundle.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 | - | + + +# **patchNamespacedPodCertificateRequest** +> V1PodCertificateRequest patchNamespacedPodCertificateRequest(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified PodCertificateRequest + +### 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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); + String name = "name_example"; // String | name of the PodCertificateRequest + 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 { + V1PodCertificateRequest result = apiInstance.patchNamespacedPodCertificateRequest(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 CertificatesV1Api#patchNamespacedPodCertificateRequest"); + 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 PodCertificateRequest | | +| **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 + +[**V1PodCertificateRequest**](V1PodCertificateRequest.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 | - | + + +# **patchNamespacedPodCertificateRequestStatus** +> V1PodCertificateRequest patchNamespacedPodCertificateRequestStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified PodCertificateRequest + +### 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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); + String name = "name_example"; // String | name of the PodCertificateRequest + 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 { + V1PodCertificateRequest result = apiInstance.patchNamespacedPodCertificateRequestStatus(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 CertificatesV1Api#patchNamespacedPodCertificateRequestStatus"); + 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 PodCertificateRequest | | +| **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 + +[**V1PodCertificateRequest**](V1PodCertificateRequest.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 | - | + + +# **readCertificateSigningRequest** +> V1CertificateSigningRequest readCertificateSigningRequest(name).pretty(pretty).execute(); + + + +read the specified CertificateSigningRequest + +### 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.CertificatesV1Api; + +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"); + + CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest + 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 { + V1CertificateSigningRequest result = apiInstance.readCertificateSigningRequest(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1Api#readCertificateSigningRequest"); + 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 CertificateSigningRequest | | +| **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 + +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.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 | - | + + +# **readCertificateSigningRequestApproval** +> V1CertificateSigningRequest readCertificateSigningRequestApproval(name).pretty(pretty).execute(); + + + +read approval of the specified CertificateSigningRequest ### Example ```java @@ -345,12 +2060,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest + 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 { - V1APIResourceList result = apiInstance.getAPIResources() + V1CertificateSigningRequest result = apiInstance.readCertificateSigningRequestApproval(name) + .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1Api#getAPIResources"); + System.err.println("Exception when calling CertificatesV1Api#readCertificateSigningRequestApproval"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -361,11 +2079,15 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CertificateSigningRequest | | +| **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 -[**V1APIResourceList**](V1APIResourceList.md) +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) ### Authorization @@ -382,13 +2104,13 @@ This endpoint does not need any parameter. | **200** | OK | - | | **401** | Unauthorized | - | - -# **listCertificateSigningRequest** -> V1CertificateSigningRequestList listCertificateSigningRequest().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **readCertificateSigningRequestStatus** +> V1CertificateSigningRequest readCertificateSigningRequestStatus(name).pretty(pretty).execute(); -list or watch objects of kind CertificateSigningRequest +read status of the specified CertificateSigningRequest ### Example ```java @@ -412,36 +2134,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest 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. - String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - 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 { - V1CertificateSigningRequestList result = apiInstance.listCertificateSigningRequest() + V1CertificateSigningRequest result = apiInstance.readCertificateSigningRequestStatus(name) .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .shardSelector(shardSelector) - .timeoutSeconds(timeoutSeconds) - .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1Api#listCertificateSigningRequest"); + System.err.println("Exception when calling CertificatesV1Api#readCertificateSigningRequestStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -455,22 +2156,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the CertificateSigningRequest | | | **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] | -| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 -[**V1CertificateSigningRequestList**](V1CertificateSigningRequestList.md) +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) ### Authorization @@ -479,7 +2170,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 | @@ -487,13 +2178,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **patchCertificateSigningRequest** -> V1CertificateSigningRequest patchCertificateSigningRequest(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readClusterTrustBundle** +> V1ClusterTrustBundle readClusterTrustBundle(name).pretty(pretty).execute(); -partially update the specified CertificateSigningRequest +read the specified ClusterTrustBundle ### Example ```java @@ -517,24 +2208,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); - String name = "name_example"; // String | name of the CertificateSigningRequest - V1Patch body = new V1Patch(); // V1Patch | + 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 - 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 { - V1CertificateSigningRequest result = apiInstance.patchCertificateSigningRequest(name, body) + V1ClusterTrustBundle result = apiInstance.readClusterTrustBundle(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 CertificatesV1Api#patchCertificateSigningRequest"); + System.err.println("Exception when calling CertificatesV1Api#readClusterTrustBundle"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -548,17 +2230,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the CertificateSigningRequest | | -| **body** | **V1Patch**| | | +| **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] | -| **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 -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1ClusterTrustBundle**](V1ClusterTrustBundle.md) ### Authorization @@ -566,23 +2243,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 | - | - -# **patchCertificateSigningRequestApproval** -> V1CertificateSigningRequest patchCertificateSigningRequestApproval(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readNamespacedPodCertificateRequest** +> V1PodCertificateRequest readNamespacedPodCertificateRequest(name, namespace).pretty(pretty).execute(); -partially update approval of the specified CertificateSigningRequest +read the specified PodCertificateRequest ### Example ```java @@ -606,24 +2282,16 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); - String name = "name_example"; // String | name of the CertificateSigningRequest - V1Patch body = new V1Patch(); // V1Patch | + String name = "name_example"; // String | name of the PodCertificateRequest + 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 { - V1CertificateSigningRequest result = apiInstance.patchCertificateSigningRequestApproval(name, body) + V1PodCertificateRequest result = apiInstance.readNamespacedPodCertificateRequest(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 CertificatesV1Api#patchCertificateSigningRequestApproval"); + System.err.println("Exception when calling CertificatesV1Api#readNamespacedPodCertificateRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -637,17 +2305,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the CertificateSigningRequest | | -| **body** | **V1Patch**| | | +| **name** | **String**| name of the PodCertificateRequest | | +| **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 -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) ### Authorization @@ -655,23 +2319,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 | - | - -# **patchCertificateSigningRequestStatus** -> V1CertificateSigningRequest patchCertificateSigningRequestStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readNamespacedPodCertificateRequestStatus** +> V1PodCertificateRequest readNamespacedPodCertificateRequestStatus(name, namespace).pretty(pretty).execute(); -partially update status of the specified CertificateSigningRequest +read status of the specified PodCertificateRequest ### Example ```java @@ -695,24 +2358,16 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); - String name = "name_example"; // String | name of the CertificateSigningRequest - V1Patch body = new V1Patch(); // V1Patch | + String name = "name_example"; // String | name of the PodCertificateRequest + 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 { - V1CertificateSigningRequest result = apiInstance.patchCertificateSigningRequestStatus(name, body) + V1PodCertificateRequest result = apiInstance.readNamespacedPodCertificateRequestStatus(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 CertificatesV1Api#patchCertificateSigningRequestStatus"); + System.err.println("Exception when calling CertificatesV1Api#readNamespacedPodCertificateRequestStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -726,17 +2381,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the CertificateSigningRequest | | -| **body** | **V1Patch**| | | +| **name** | **String**| name of the PodCertificateRequest | | +| **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 -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) ### Authorization @@ -744,23 +2395,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 | - | - -# **readCertificateSigningRequest** -> V1CertificateSigningRequest readCertificateSigningRequest(name).pretty(pretty).execute(); + +# **replaceCertificateSigningRequest** +> V1CertificateSigningRequest replaceCertificateSigningRequest(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -read the specified CertificateSigningRequest +replace the specified CertificateSigningRequest ### Example ```java @@ -785,14 +2435,21 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); String name = "name_example"; // String | name of the CertificateSigningRequest + V1CertificateSigningRequest body = new V1CertificateSigningRequest(); // V1CertificateSigningRequest | 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 { - V1CertificateSigningRequest result = apiInstance.readCertificateSigningRequest(name) + V1CertificateSigningRequest result = apiInstance.replaceCertificateSigningRequest(name, body) .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1Api#readCertificateSigningRequest"); + System.err.println("Exception when calling CertificatesV1Api#replaceCertificateSigningRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -807,7 +2464,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **name** | **String**| name of the CertificateSigningRequest | | +| **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.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 @@ -819,22 +2480,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 | - | - -# **readCertificateSigningRequestApproval** -> V1CertificateSigningRequest readCertificateSigningRequestApproval(name).pretty(pretty).execute(); + +# **replaceCertificateSigningRequestApproval** +> V1CertificateSigningRequest replaceCertificateSigningRequestApproval(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -read approval of the specified CertificateSigningRequest +replace approval of the specified CertificateSigningRequest ### Example ```java @@ -859,14 +2521,21 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); String name = "name_example"; // String | name of the CertificateSigningRequest + V1CertificateSigningRequest body = new V1CertificateSigningRequest(); // V1CertificateSigningRequest | 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 { - V1CertificateSigningRequest result = apiInstance.readCertificateSigningRequestApproval(name) + V1CertificateSigningRequest result = apiInstance.replaceCertificateSigningRequestApproval(name, body) .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1Api#readCertificateSigningRequestApproval"); + System.err.println("Exception when calling CertificatesV1Api#replaceCertificateSigningRequestApproval"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -881,7 +2550,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **name** | **String**| name of the CertificateSigningRequest | | +| **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.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 @@ -893,22 +2566,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 | - | - -# **readCertificateSigningRequestStatus** -> V1CertificateSigningRequest readCertificateSigningRequestStatus(name).pretty(pretty).execute(); + +# **replaceCertificateSigningRequestStatus** +> V1CertificateSigningRequest replaceCertificateSigningRequestStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -read status of the specified CertificateSigningRequest +replace status of the specified CertificateSigningRequest ### Example ```java @@ -933,14 +2607,21 @@ public class Example { CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); String name = "name_example"; // String | name of the CertificateSigningRequest + V1CertificateSigningRequest body = new V1CertificateSigningRequest(); // V1CertificateSigningRequest | 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 { - V1CertificateSigningRequest result = apiInstance.readCertificateSigningRequestStatus(name) + V1CertificateSigningRequest result = apiInstance.replaceCertificateSigningRequestStatus(name, body) .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1Api#readCertificateSigningRequestStatus"); + System.err.println("Exception when calling CertificatesV1Api#replaceCertificateSigningRequestStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -955,7 +2636,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **name** | **String**| name of the CertificateSigningRequest | | +| **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.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 @@ -967,22 +2652,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 | - | - -# **replaceCertificateSigningRequest** -> V1CertificateSigningRequest replaceCertificateSigningRequest(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceClusterTrustBundle** +> V1ClusterTrustBundle replaceClusterTrustBundle(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified CertificateSigningRequest +replace the specified ClusterTrustBundle ### Example ```java @@ -1006,14 +2692,14 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); - String name = "name_example"; // String | name of the CertificateSigningRequest - V1CertificateSigningRequest body = new V1CertificateSigningRequest(); // V1CertificateSigningRequest | + String name = "name_example"; // String | name of the ClusterTrustBundle + V1ClusterTrustBundle body = new V1ClusterTrustBundle(); // V1ClusterTrustBundle | 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 { - V1CertificateSigningRequest result = apiInstance.replaceCertificateSigningRequest(name, body) + V1ClusterTrustBundle result = apiInstance.replaceClusterTrustBundle(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1021,7 +2707,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1Api#replaceCertificateSigningRequest"); + System.err.println("Exception when calling CertificatesV1Api#replaceClusterTrustBundle"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1035,8 +2721,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the CertificateSigningRequest | | -| **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | | +| **name** | **String**| name of the ClusterTrustBundle | | +| **body** | [**V1ClusterTrustBundle**](V1ClusterTrustBundle.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] | @@ -1044,7 +2730,7 @@ public class Example { ### Return type -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1ClusterTrustBundle**](V1ClusterTrustBundle.md) ### Authorization @@ -1062,13 +2748,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceCertificateSigningRequestApproval** -> V1CertificateSigningRequest replaceCertificateSigningRequestApproval(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceNamespacedPodCertificateRequest** +> V1PodCertificateRequest replaceNamespacedPodCertificateRequest(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace approval of the specified CertificateSigningRequest +replace the specified PodCertificateRequest ### Example ```java @@ -1092,14 +2778,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); - String name = "name_example"; // String | name of the CertificateSigningRequest - V1CertificateSigningRequest body = new V1CertificateSigningRequest(); // V1CertificateSigningRequest | + String name = "name_example"; // String | name of the PodCertificateRequest + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1PodCertificateRequest body = new V1PodCertificateRequest(); // V1PodCertificateRequest | 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 { - V1CertificateSigningRequest result = apiInstance.replaceCertificateSigningRequestApproval(name, body) + V1PodCertificateRequest result = apiInstance.replaceNamespacedPodCertificateRequest(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1107,7 +2794,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1Api#replaceCertificateSigningRequestApproval"); + System.err.println("Exception when calling CertificatesV1Api#replaceNamespacedPodCertificateRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1121,8 +2808,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the CertificateSigningRequest | | -| **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | | +| **name** | **String**| name of the PodCertificateRequest | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1PodCertificateRequest**](V1PodCertificateRequest.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] | @@ -1130,7 +2818,7 @@ public class Example { ### Return type -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) ### Authorization @@ -1148,13 +2836,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceCertificateSigningRequestStatus** -> V1CertificateSigningRequest replaceCertificateSigningRequestStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceNamespacedPodCertificateRequestStatus** +> V1PodCertificateRequest replaceNamespacedPodCertificateRequestStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace status of the specified CertificateSigningRequest +replace status of the specified PodCertificateRequest ### Example ```java @@ -1178,14 +2866,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1Api apiInstance = new CertificatesV1Api(defaultClient); - String name = "name_example"; // String | name of the CertificateSigningRequest - V1CertificateSigningRequest body = new V1CertificateSigningRequest(); // V1CertificateSigningRequest | + String name = "name_example"; // String | name of the PodCertificateRequest + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1PodCertificateRequest body = new V1PodCertificateRequest(); // V1PodCertificateRequest | 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 { - V1CertificateSigningRequest result = apiInstance.replaceCertificateSigningRequestStatus(name, body) + V1PodCertificateRequest result = apiInstance.replaceNamespacedPodCertificateRequestStatus(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1193,7 +2882,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1Api#replaceCertificateSigningRequestStatus"); + System.err.println("Exception when calling CertificatesV1Api#replaceNamespacedPodCertificateRequestStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1207,8 +2896,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the CertificateSigningRequest | | -| **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | | +| **name** | **String**| name of the PodCertificateRequest | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1PodCertificateRequest**](V1PodCertificateRequest.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] | @@ -1216,7 +2906,7 @@ public class Example { ### Return type -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) ### Authorization diff --git a/kubernetes/docs/CoordinationApi.md b/kubernetes/docs/CoordinationApi.md index 0235b9561c..59e0294052 100644 --- a/kubernetes/docs/CoordinationApi.md +++ b/kubernetes/docs/CoordinationApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/CoreApi.md b/kubernetes/docs/CoreApi.md index fe458a8a24..685d611134 100644 --- a/kubernetes/docs/CoreApi.md +++ b/kubernetes/docs/CoreApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/DiscoveryApi.md b/kubernetes/docs/DiscoveryApi.md index 314c2198e4..96d33d431d 100644 --- a/kubernetes/docs/DiscoveryApi.md +++ b/kubernetes/docs/DiscoveryApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/EventsApi.md b/kubernetes/docs/EventsApi.md index 1b3a05cc66..d4a9225450 100644 --- a/kubernetes/docs/EventsApi.md +++ b/kubernetes/docs/EventsApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/FlowcontrolApiserverApi.md b/kubernetes/docs/FlowcontrolApiserverApi.md index f0b60421d5..9f1a9b6063 100644 --- a/kubernetes/docs/FlowcontrolApiserverApi.md +++ b/kubernetes/docs/FlowcontrolApiserverApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/InternalApiserverApi.md b/kubernetes/docs/InternalApiserverApi.md index 4dacf8b202..610cd4a984 100644 --- a/kubernetes/docs/InternalApiserverApi.md +++ b/kubernetes/docs/InternalApiserverApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/LifecycleApi.md b/kubernetes/docs/LifecycleApi.md new file mode 100644 index 0000000000..5de918f549 --- /dev/null +++ b/kubernetes/docs/LifecycleApi.md @@ -0,0 +1,76 @@ +# LifecycleApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getAPIGroup**](LifecycleApi.md#getAPIGroup) | **GET** /apis/lifecycle.k8s.io/ | | + + + +# **getAPIGroup** +> V1APIGroup getAPIGroup().execute(); + + + +get information of a group + +### 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.LifecycleApi; + +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"); + + LifecycleApi apiInstance = new LifecycleApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling LifecycleApi#getAPIGroup"); + 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 + +[**V1APIGroup**](V1APIGroup.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/NetworkingV1beta1Api.md b/kubernetes/docs/LifecycleV1alpha1Api.md similarity index 65% rename from kubernetes/docs/NetworkingV1beta1Api.md rename to kubernetes/docs/LifecycleV1alpha1Api.md index 150a555887..907f848644 100644 --- a/kubernetes/docs/NetworkingV1beta1Api.md +++ b/kubernetes/docs/LifecycleV1alpha1Api.md @@ -1,36 +1,41 @@ -# NetworkingV1beta1Api +# LifecycleV1alpha1Api All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createIPAddress**](NetworkingV1beta1Api.md#createIPAddress) | **POST** /apis/networking.k8s.io/v1beta1/ipaddresses | | -| [**createServiceCIDR**](NetworkingV1beta1Api.md#createServiceCIDR) | **POST** /apis/networking.k8s.io/v1beta1/servicecidrs | | -| [**deleteCollectionIPAddress**](NetworkingV1beta1Api.md#deleteCollectionIPAddress) | **DELETE** /apis/networking.k8s.io/v1beta1/ipaddresses | | -| [**deleteCollectionServiceCIDR**](NetworkingV1beta1Api.md#deleteCollectionServiceCIDR) | **DELETE** /apis/networking.k8s.io/v1beta1/servicecidrs | | -| [**deleteIPAddress**](NetworkingV1beta1Api.md#deleteIPAddress) | **DELETE** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | | -| [**deleteServiceCIDR**](NetworkingV1beta1Api.md#deleteServiceCIDR) | **DELETE** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | | -| [**getAPIResources**](NetworkingV1beta1Api.md#getAPIResources) | **GET** /apis/networking.k8s.io/v1beta1/ | | -| [**listIPAddress**](NetworkingV1beta1Api.md#listIPAddress) | **GET** /apis/networking.k8s.io/v1beta1/ipaddresses | | -| [**listServiceCIDR**](NetworkingV1beta1Api.md#listServiceCIDR) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs | | -| [**patchIPAddress**](NetworkingV1beta1Api.md#patchIPAddress) | **PATCH** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | | -| [**patchServiceCIDR**](NetworkingV1beta1Api.md#patchServiceCIDR) | **PATCH** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | | -| [**patchServiceCIDRStatus**](NetworkingV1beta1Api.md#patchServiceCIDRStatus) | **PATCH** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | | -| [**readIPAddress**](NetworkingV1beta1Api.md#readIPAddress) | **GET** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | | -| [**readServiceCIDR**](NetworkingV1beta1Api.md#readServiceCIDR) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | | -| [**readServiceCIDRStatus**](NetworkingV1beta1Api.md#readServiceCIDRStatus) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | | -| [**replaceIPAddress**](NetworkingV1beta1Api.md#replaceIPAddress) | **PUT** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | | -| [**replaceServiceCIDR**](NetworkingV1beta1Api.md#replaceServiceCIDR) | **PUT** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | | -| [**replaceServiceCIDRStatus**](NetworkingV1beta1Api.md#replaceServiceCIDRStatus) | **PUT** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | | - - - -# **createIPAddress** -> V1beta1IPAddress createIPAddress(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -create an IPAddress +| [**createNamespacedEviction**](LifecycleV1alpha1Api.md#createNamespacedEviction) | **POST** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | | +| [**createNamespacedEvictionRequest**](LifecycleV1alpha1Api.md#createNamespacedEvictionRequest) | **POST** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | | +| [**deleteCollectionNamespacedEviction**](LifecycleV1alpha1Api.md#deleteCollectionNamespacedEviction) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | | +| [**deleteCollectionNamespacedEvictionRequest**](LifecycleV1alpha1Api.md#deleteCollectionNamespacedEvictionRequest) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | | +| [**deleteNamespacedEviction**](LifecycleV1alpha1Api.md#deleteNamespacedEviction) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | | +| [**deleteNamespacedEvictionRequest**](LifecycleV1alpha1Api.md#deleteNamespacedEvictionRequest) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | | +| [**getAPIResources**](LifecycleV1alpha1Api.md#getAPIResources) | **GET** /apis/lifecycle.k8s.io/v1alpha1/ | | +| [**listEvictionForAllNamespaces**](LifecycleV1alpha1Api.md#listEvictionForAllNamespaces) | **GET** /apis/lifecycle.k8s.io/v1alpha1/evictions | | +| [**listEvictionRequestForAllNamespaces**](LifecycleV1alpha1Api.md#listEvictionRequestForAllNamespaces) | **GET** /apis/lifecycle.k8s.io/v1alpha1/evictionrequests | | +| [**listNamespacedEviction**](LifecycleV1alpha1Api.md#listNamespacedEviction) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | | +| [**listNamespacedEvictionRequest**](LifecycleV1alpha1Api.md#listNamespacedEvictionRequest) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | | +| [**patchNamespacedEviction**](LifecycleV1alpha1Api.md#patchNamespacedEviction) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | | +| [**patchNamespacedEvictionRequest**](LifecycleV1alpha1Api.md#patchNamespacedEvictionRequest) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | | +| [**patchNamespacedEvictionRequestStatus**](LifecycleV1alpha1Api.md#patchNamespacedEvictionRequestStatus) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | | +| [**patchNamespacedEvictionStatus**](LifecycleV1alpha1Api.md#patchNamespacedEvictionStatus) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | | +| [**readNamespacedEviction**](LifecycleV1alpha1Api.md#readNamespacedEviction) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | | +| [**readNamespacedEvictionRequest**](LifecycleV1alpha1Api.md#readNamespacedEvictionRequest) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | | +| [**readNamespacedEvictionRequestStatus**](LifecycleV1alpha1Api.md#readNamespacedEvictionRequestStatus) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | | +| [**readNamespacedEvictionStatus**](LifecycleV1alpha1Api.md#readNamespacedEvictionStatus) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | | +| [**replaceNamespacedEviction**](LifecycleV1alpha1Api.md#replaceNamespacedEviction) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | | +| [**replaceNamespacedEvictionRequest**](LifecycleV1alpha1Api.md#replaceNamespacedEvictionRequest) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | | +| [**replaceNamespacedEvictionRequestStatus**](LifecycleV1alpha1Api.md#replaceNamespacedEvictionRequestStatus) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | | +| [**replaceNamespacedEvictionStatus**](LifecycleV1alpha1Api.md#replaceNamespacedEvictionStatus) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | | + + + +# **createNamespacedEviction** +> V1alpha1Eviction createNamespacedEviction(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create an Eviction ### Example ```java @@ -40,7 +45,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -53,14 +58,15 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); - V1beta1IPAddress body = new V1beta1IPAddress(); // V1beta1IPAddress | + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1Eviction body = new V1alpha1Eviction(); // V1alpha1Eviction | 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 { - V1beta1IPAddress result = apiInstance.createIPAddress(body) + V1alpha1Eviction result = apiInstance.createNamespacedEviction(namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -68,7 +74,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#createIPAddress"); + System.err.println("Exception when calling LifecycleV1alpha1Api#createNamespacedEviction"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -82,7 +88,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | [**V1beta1IPAddress**](V1beta1IPAddress.md)| | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha1Eviction**](V1alpha1Eviction.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] | @@ -90,7 +97,7 @@ public class Example { ### Return type -[**V1beta1IPAddress**](V1beta1IPAddress.md) +[**V1alpha1Eviction**](V1alpha1Eviction.md) ### Authorization @@ -109,13 +116,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **createServiceCIDR** -> V1beta1ServiceCIDR createServiceCIDR(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **createNamespacedEvictionRequest** +> V1alpha1EvictionRequest createNamespacedEvictionRequest(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -create a ServiceCIDR +create an EvictionRequest ### Example ```java @@ -125,7 +132,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -138,14 +145,15 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); - V1beta1ServiceCIDR body = new V1beta1ServiceCIDR(); // V1beta1ServiceCIDR | + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1EvictionRequest body = new V1alpha1EvictionRequest(); // V1alpha1EvictionRequest | 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 { - V1beta1ServiceCIDR result = apiInstance.createServiceCIDR(body) + V1alpha1EvictionRequest result = apiInstance.createNamespacedEvictionRequest(namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -153,7 +161,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#createServiceCIDR"); + System.err.println("Exception when calling LifecycleV1alpha1Api#createNamespacedEvictionRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -167,7 +175,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | [**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md)| | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.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] | @@ -175,7 +184,7 @@ public class Example { ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -194,13 +203,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionNamespacedEviction** +> V1Status deleteCollectionNamespacedEviction(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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of IPAddress +delete collection of Eviction ### Example ```java @@ -210,7 +219,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -223,7 +232,8 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(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 @@ -241,7 +251,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.deleteCollectionIPAddress() + V1Status result = apiInstance.deleteCollectionNamespacedEviction(namespace) .pretty(pretty) ._continue(_continue) .dryRun(dryRun) @@ -261,7 +271,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#deleteCollectionIPAddress"); + System.err.println("Exception when calling LifecycleV1alpha1Api#deleteCollectionNamespacedEviction"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -275,6 +285,7 @@ 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] | @@ -311,13 +322,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionNamespacedEvictionRequest** +> V1Status deleteCollectionNamespacedEvictionRequest(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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of ServiceCIDR +delete collection of EvictionRequest ### Example ```java @@ -327,7 +338,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -340,7 +351,8 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(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 @@ -358,7 +370,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.deleteCollectionServiceCIDR() + V1Status result = apiInstance.deleteCollectionNamespacedEvictionRequest(namespace) .pretty(pretty) ._continue(_continue) .dryRun(dryRun) @@ -378,7 +390,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#deleteCollectionServiceCIDR"); + System.err.println("Exception when calling LifecycleV1alpha1Api#deleteCollectionNamespacedEvictionRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -392,6 +404,7 @@ 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] | @@ -428,13 +441,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteIPAddress** -> V1Status deleteIPAddress(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteNamespacedEviction** +> V1Status deleteNamespacedEviction(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete an IPAddress +delete an Eviction ### Example ```java @@ -444,7 +457,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -457,8 +470,9 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the IPAddress + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Eviction + 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. @@ -467,7 +481,7 @@ public class Example { 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) + V1Status result = apiInstance.deleteNamespacedEviction(name, namespace) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) @@ -478,7 +492,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#deleteIPAddress"); + System.err.println("Exception when calling LifecycleV1alpha1Api#deleteNamespacedEviction"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -492,7 +506,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the IPAddress | | +| **name** | **String**| name of the Eviction | | +| **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] | @@ -521,13 +536,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteServiceCIDR** -> V1Status deleteServiceCIDR(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteNamespacedEvictionRequest** +> V1Status deleteNamespacedEvictionRequest(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ServiceCIDR +delete an EvictionRequest ### Example ```java @@ -537,7 +552,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -550,8 +565,9 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ServiceCIDR + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the EvictionRequest + 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. @@ -560,7 +576,7 @@ public class Example { 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) + V1Status result = apiInstance.deleteNamespacedEvictionRequest(name, namespace) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) @@ -571,7 +587,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#deleteServiceCIDR"); + System.err.println("Exception when calling LifecycleV1alpha1Api#deleteNamespacedEvictionRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -585,7 +601,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ServiceCIDR | | +| **name** | **String**| name of the EvictionRequest | | +| **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] | @@ -630,7 +647,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -643,13 +660,13 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); try { V1APIResourceList result = apiInstance.getAPIResources() .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#getAPIResources"); + System.err.println("Exception when calling LifecycleV1alpha1Api#getAPIResources"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -681,13 +698,13 @@ This endpoint does not need any parameter. | **200** | OK | - | | **401** | Unauthorized | - | - -# **listIPAddress** -> V1beta1IPAddressList listIPAddress().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listEvictionForAllNamespaces** +> V1alpha1EvictionList listEvictionForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind IPAddress +list or watch objects of kind Eviction ### Example ```java @@ -697,7 +714,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -710,13 +727,118 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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 { + V1alpha1EvictionList result = apiInstance.listEvictionForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling LifecycleV1alpha1Api#listEvictionForAllNamespaces"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 + +[**V1alpha1EvictionList**](V1alpha1EvictionList.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 | - | + + +# **listEvictionRequestForAllNamespaces** +> V1alpha1EvictionRequestList listEvictionRequestForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind EvictionRequest + +### 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.LifecycleV1alpha1Api; + +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"); + + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(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. @@ -724,7 +846,113 @@ 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 { - V1beta1IPAddressList result = apiInstance.listIPAddress() + V1alpha1EvictionRequestList result = apiInstance.listEvictionRequestForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling LifecycleV1alpha1Api#listEvictionRequestForAllNamespaces"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 + +[**V1alpha1EvictionRequestList**](V1alpha1EvictionRequestList.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 | - | + + +# **listNamespacedEviction** +> V1alpha1EvictionList listNamespacedEviction(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind Eviction + +### 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.LifecycleV1alpha1Api; + +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"); + + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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 { + V1alpha1EvictionList result = apiInstance.listNamespacedEviction(namespace) .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -740,7 +968,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#listIPAddress"); + System.err.println("Exception when calling LifecycleV1alpha1Api#listNamespacedEviction"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -754,6 +982,7 @@ 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] | | **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] | @@ -769,7 +998,7 @@ public class Example { ### Return type -[**V1beta1IPAddressList**](V1beta1IPAddressList.md) +[**V1alpha1EvictionList**](V1alpha1EvictionList.md) ### Authorization @@ -786,13 +1015,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listServiceCIDR** -> V1beta1ServiceCIDRList listServiceCIDR().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listNamespacedEvictionRequest** +> V1alpha1EvictionRequestList listNamespacedEvictionRequest(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind ServiceCIDR +list or watch objects of kind EvictionRequest ### Example ```java @@ -802,7 +1031,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -815,7 +1044,8 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(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. @@ -829,7 +1059,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 { - V1beta1ServiceCIDRList result = apiInstance.listServiceCIDR() + V1alpha1EvictionRequestList result = apiInstance.listNamespacedEvictionRequest(namespace) .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -845,7 +1075,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#listServiceCIDR"); + System.err.println("Exception when calling LifecycleV1alpha1Api#listNamespacedEvictionRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -859,6 +1089,7 @@ 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] | | **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] | @@ -874,7 +1105,7 @@ public class Example { ### Return type -[**V1beta1ServiceCIDRList**](V1beta1ServiceCIDRList.md) +[**V1alpha1EvictionRequestList**](V1alpha1EvictionRequestList.md) ### Authorization @@ -891,13 +1122,104 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **patchIPAddress** -> V1beta1IPAddress patchIPAddress(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchNamespacedEviction** +> V1alpha1Eviction patchNamespacedEviction(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified Eviction + +### 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.LifecycleV1alpha1Api; + +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"); + + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Eviction + 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 { + V1alpha1Eviction result = apiInstance.patchNamespacedEviction(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 LifecycleV1alpha1Api#patchNamespacedEviction"); + 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 Eviction | | +| **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 + +[**V1alpha1Eviction**](V1alpha1Eviction.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 | - | + + +# **patchNamespacedEvictionRequest** +> V1alpha1EvictionRequest patchNamespacedEvictionRequest(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified IPAddress +partially update the specified EvictionRequest ### Example ```java @@ -907,7 +1229,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -920,8 +1242,9 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the IPAddress + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the EvictionRequest + 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 @@ -929,7 +1252,7 @@ public class Example { 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 { - V1beta1IPAddress result = apiInstance.patchIPAddress(name, body) + V1alpha1EvictionRequest result = apiInstance.patchNamespacedEvictionRequest(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -938,7 +1261,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#patchIPAddress"); + System.err.println("Exception when calling LifecycleV1alpha1Api#patchNamespacedEvictionRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -952,7 +1275,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the IPAddress | | +| **name** | **String**| name of the EvictionRequest | | +| **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] | @@ -962,7 +1286,7 @@ public class Example { ### Return type -[**V1beta1IPAddress**](V1beta1IPAddress.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -980,13 +1304,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchServiceCIDR** -> V1beta1ServiceCIDR patchServiceCIDR(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchNamespacedEvictionRequestStatus** +> V1alpha1EvictionRequest patchNamespacedEvictionRequestStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ServiceCIDR +partially update status of the specified EvictionRequest ### Example ```java @@ -996,7 +1320,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -1009,8 +1333,9 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ServiceCIDR + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the EvictionRequest + 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 @@ -1018,7 +1343,7 @@ public class Example { 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 { - V1beta1ServiceCIDR result = apiInstance.patchServiceCIDR(name, body) + V1alpha1EvictionRequest result = apiInstance.patchNamespacedEvictionRequestStatus(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1027,7 +1352,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#patchServiceCIDR"); + System.err.println("Exception when calling LifecycleV1alpha1Api#patchNamespacedEvictionRequestStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1041,7 +1366,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ServiceCIDR | | +| **name** | **String**| name of the EvictionRequest | | +| **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] | @@ -1051,7 +1377,7 @@ public class Example { ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1069,13 +1395,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchServiceCIDRStatus** -> V1beta1ServiceCIDR patchServiceCIDRStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchNamespacedEvictionStatus** +> V1alpha1Eviction patchNamespacedEvictionStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update status of the specified ServiceCIDR +partially update status of the specified Eviction ### Example ```java @@ -1085,7 +1411,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -1098,8 +1424,9 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ServiceCIDR + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Eviction + 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 @@ -1107,7 +1434,7 @@ public class Example { 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 { - V1beta1ServiceCIDR result = apiInstance.patchServiceCIDRStatus(name, body) + V1alpha1Eviction result = apiInstance.patchNamespacedEvictionStatus(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1116,7 +1443,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#patchServiceCIDRStatus"); + System.err.println("Exception when calling LifecycleV1alpha1Api#patchNamespacedEvictionStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1130,7 +1457,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ServiceCIDR | | +| **name** | **String**| name of the Eviction | | +| **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] | @@ -1140,7 +1468,7 @@ public class Example { ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1Eviction**](V1alpha1Eviction.md) ### Authorization @@ -1158,13 +1486,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **readIPAddress** -> V1beta1IPAddress readIPAddress(name).pretty(pretty).execute(); + +# **readNamespacedEviction** +> V1alpha1Eviction readNamespacedEviction(name, namespace).pretty(pretty).execute(); -read the specified IPAddress +read the specified Eviction ### Example ```java @@ -1174,7 +1502,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -1187,16 +1515,17 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the IPAddress + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Eviction + 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 { - V1beta1IPAddress result = apiInstance.readIPAddress(name) + V1alpha1Eviction result = apiInstance.readNamespacedEviction(name, namespace) .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#readIPAddress"); + System.err.println("Exception when calling LifecycleV1alpha1Api#readNamespacedEviction"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1210,12 +1539,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the IPAddress | | +| **name** | **String**| name of the Eviction | | +| **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 -[**V1beta1IPAddress**](V1beta1IPAddress.md) +[**V1alpha1Eviction**](V1alpha1Eviction.md) ### Authorization @@ -1232,13 +1562,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **readServiceCIDR** -> V1beta1ServiceCIDR readServiceCIDR(name).pretty(pretty).execute(); + +# **readNamespacedEvictionRequest** +> V1alpha1EvictionRequest readNamespacedEvictionRequest(name, namespace).pretty(pretty).execute(); -read the specified ServiceCIDR +read the specified EvictionRequest ### Example ```java @@ -1248,7 +1578,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -1261,16 +1591,17 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ServiceCIDR + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the EvictionRequest + 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 { - V1beta1ServiceCIDR result = apiInstance.readServiceCIDR(name) + V1alpha1EvictionRequest result = apiInstance.readNamespacedEvictionRequest(name, namespace) .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#readServiceCIDR"); + System.err.println("Exception when calling LifecycleV1alpha1Api#readNamespacedEvictionRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1284,12 +1615,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ServiceCIDR | | +| **name** | **String**| name of the EvictionRequest | | +| **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 -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1306,13 +1638,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **readServiceCIDRStatus** -> V1beta1ServiceCIDR readServiceCIDRStatus(name).pretty(pretty).execute(); + +# **readNamespacedEvictionRequestStatus** +> V1alpha1EvictionRequest readNamespacedEvictionRequestStatus(name, namespace).pretty(pretty).execute(); -read status of the specified ServiceCIDR +read status of the specified EvictionRequest ### Example ```java @@ -1322,7 +1654,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -1335,16 +1667,17 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ServiceCIDR + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the EvictionRequest + 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 { - V1beta1ServiceCIDR result = apiInstance.readServiceCIDRStatus(name) + V1alpha1EvictionRequest result = apiInstance.readNamespacedEvictionRequestStatus(name, namespace) .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#readServiceCIDRStatus"); + System.err.println("Exception when calling LifecycleV1alpha1Api#readNamespacedEvictionRequestStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1358,12 +1691,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ServiceCIDR | | +| **name** | **String**| name of the EvictionRequest | | +| **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 -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1380,13 +1714,177 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **replaceIPAddress** -> V1beta1IPAddress replaceIPAddress(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **readNamespacedEvictionStatus** +> V1alpha1Eviction readNamespacedEvictionStatus(name, namespace).pretty(pretty).execute(); + + + +read status of the specified Eviction + +### 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.LifecycleV1alpha1Api; + +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"); + + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Eviction + 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 { + V1alpha1Eviction result = apiInstance.readNamespacedEvictionStatus(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling LifecycleV1alpha1Api#readNamespacedEvictionStatus"); + 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 Eviction | | +| **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 + +[**V1alpha1Eviction**](V1alpha1Eviction.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 | - | + + +# **replaceNamespacedEviction** +> V1alpha1Eviction replaceNamespacedEviction(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified Eviction + +### 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.LifecycleV1alpha1Api; + +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"); + + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Eviction + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1Eviction body = new V1alpha1Eviction(); // V1alpha1Eviction | + 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 { + V1alpha1Eviction result = apiInstance.replaceNamespacedEviction(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 LifecycleV1alpha1Api#replaceNamespacedEviction"); + 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 Eviction | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha1Eviction**](V1alpha1Eviction.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 + +[**V1alpha1Eviction**](V1alpha1Eviction.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 | - | + + +# **replaceNamespacedEvictionRequest** +> V1alpha1EvictionRequest replaceNamespacedEvictionRequest(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified IPAddress +replace the specified EvictionRequest ### Example ```java @@ -1396,7 +1894,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -1409,15 +1907,16 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the IPAddress - V1beta1IPAddress body = new V1beta1IPAddress(); // V1beta1IPAddress | + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the EvictionRequest + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1EvictionRequest body = new V1alpha1EvictionRequest(); // V1alpha1EvictionRequest | 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 { - V1beta1IPAddress result = apiInstance.replaceIPAddress(name, body) + V1alpha1EvictionRequest result = apiInstance.replaceNamespacedEvictionRequest(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1425,7 +1924,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#replaceIPAddress"); + System.err.println("Exception when calling LifecycleV1alpha1Api#replaceNamespacedEvictionRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1439,8 +1938,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the IPAddress | | -| **body** | [**V1beta1IPAddress**](V1beta1IPAddress.md)| | | +| **name** | **String**| name of the EvictionRequest | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.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] | @@ -1448,7 +1948,7 @@ public class Example { ### Return type -[**V1beta1IPAddress**](V1beta1IPAddress.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1466,13 +1966,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceServiceCIDR** -> V1beta1ServiceCIDR replaceServiceCIDR(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceNamespacedEvictionRequestStatus** +> V1alpha1EvictionRequest replaceNamespacedEvictionRequestStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified ServiceCIDR +replace status of the specified EvictionRequest ### Example ```java @@ -1482,7 +1982,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -1495,15 +1995,16 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ServiceCIDR - V1beta1ServiceCIDR body = new V1beta1ServiceCIDR(); // V1beta1ServiceCIDR | + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the EvictionRequest + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1EvictionRequest body = new V1alpha1EvictionRequest(); // V1alpha1EvictionRequest | 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 { - V1beta1ServiceCIDR result = apiInstance.replaceServiceCIDR(name, body) + V1alpha1EvictionRequest result = apiInstance.replaceNamespacedEvictionRequestStatus(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1511,7 +2012,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#replaceServiceCIDR"); + System.err.println("Exception when calling LifecycleV1alpha1Api#replaceNamespacedEvictionRequestStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1525,8 +2026,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ServiceCIDR | | -| **body** | [**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md)| | | +| **name** | **String**| name of the EvictionRequest | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.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] | @@ -1534,7 +2036,7 @@ public class Example { ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1552,13 +2054,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceServiceCIDRStatus** -> V1beta1ServiceCIDR replaceServiceCIDRStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceNamespacedEvictionStatus** +> V1alpha1Eviction replaceNamespacedEvictionStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace status of the specified ServiceCIDR +replace status of the specified Eviction ### Example ```java @@ -1568,7 +2070,7 @@ 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.NetworkingV1beta1Api; +import io.kubernetes.client.openapi.apis.LifecycleV1alpha1Api; public class Example { public static void main(String[] args) { @@ -1581,15 +2083,16 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ServiceCIDR - V1beta1ServiceCIDR body = new V1beta1ServiceCIDR(); // V1beta1ServiceCIDR | + LifecycleV1alpha1Api apiInstance = new LifecycleV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Eviction + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1Eviction body = new V1alpha1Eviction(); // V1alpha1Eviction | 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 { - V1beta1ServiceCIDR result = apiInstance.replaceServiceCIDRStatus(name, body) + V1alpha1Eviction result = apiInstance.replaceNamespacedEvictionStatus(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1597,7 +2100,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#replaceServiceCIDRStatus"); + System.err.println("Exception when calling LifecycleV1alpha1Api#replaceNamespacedEvictionStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1611,8 +2114,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ServiceCIDR | | -| **body** | [**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md)| | | +| **name** | **String**| name of the Eviction | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha1Eviction**](V1alpha1Eviction.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] | @@ -1620,7 +2124,7 @@ public class Example { ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1Eviction**](V1alpha1Eviction.md) ### Authorization diff --git a/kubernetes/docs/NetworkingApi.md b/kubernetes/docs/NetworkingApi.md index abfdebc80f..d2b90f2d53 100644 --- a/kubernetes/docs/NetworkingApi.md +++ b/kubernetes/docs/NetworkingApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/NodeApi.md b/kubernetes/docs/NodeApi.md index 0de751333c..1821215020 100644 --- a/kubernetes/docs/NodeApi.md +++ b/kubernetes/docs/NodeApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/PolicyApi.md b/kubernetes/docs/PolicyApi.md index d46266b094..a30623df22 100644 --- a/kubernetes/docs/PolicyApi.md +++ b/kubernetes/docs/PolicyApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/RbacAuthorizationApi.md b/kubernetes/docs/RbacAuthorizationApi.md index 90aaa10055..98a215538a 100644 --- a/kubernetes/docs/RbacAuthorizationApi.md +++ b/kubernetes/docs/RbacAuthorizationApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/RbacV1Subject.md b/kubernetes/docs/RbacV1Subject.md index a8259adbb0..560d442e35 100644 --- a/kubernetes/docs/RbacV1Subject.md +++ b/kubernetes/docs/RbacV1Subject.md @@ -8,10 +8,10 @@ Subject contains a reference to the object or user identities a role binding app | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiGroup** | **String** | 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. | [optional] | -|**kind** | **String** | 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. | | -|**name** | **String** | Name of the object being referenced. | | -|**namespace** | **String** | 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. | [optional] | +|**apiGroup** | **String** | 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. | [optional] | +|**kind** | **String** | 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. | | +|**name** | **String** | name of the object being referenced. | | +|**namespace** | **String** | 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. | [optional] | diff --git a/kubernetes/docs/ResourceApi.md b/kubernetes/docs/ResourceApi.md index c7a3acea38..75dbf17379 100644 --- a/kubernetes/docs/ResourceApi.md +++ b/kubernetes/docs/ResourceApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/ResourceV1Api.md b/kubernetes/docs/ResourceV1Api.md index edde26da07..a68e8bd647 100644 --- a/kubernetes/docs/ResourceV1Api.md +++ b/kubernetes/docs/ResourceV1Api.md @@ -5,35 +5,45 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**createDeviceClass**](ResourceV1Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1/deviceclasses | | +| [**createDeviceTaintRule**](ResourceV1Api.md#createDeviceTaintRule) | **POST** /apis/resource.k8s.io/v1/devicetaintrules | | | [**createNamespacedResourceClaim**](ResourceV1Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | | | [**createNamespacedResourceClaimTemplate**](ResourceV1Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | | | [**createResourceSlice**](ResourceV1Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1/resourceslices | | | [**deleteCollectionDeviceClass**](ResourceV1Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses | | +| [**deleteCollectionDeviceTaintRule**](ResourceV1Api.md#deleteCollectionDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1/devicetaintrules | | | [**deleteCollectionNamespacedResourceClaim**](ResourceV1Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | | | [**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | | | [**deleteCollectionResourceSlice**](ResourceV1Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices | | | [**deleteDeviceClass**](ResourceV1Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses/{name} | | +| [**deleteDeviceTaintRule**](ResourceV1Api.md#deleteDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1/devicetaintrules/{name} | | | [**deleteNamespacedResourceClaim**](ResourceV1Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | | | [**deleteNamespacedResourceClaimTemplate**](ResourceV1Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | | | [**deleteResourceSlice**](ResourceV1Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices/{name} | | | [**getAPIResources**](ResourceV1Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1/ | | | [**listDeviceClass**](ResourceV1Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1/deviceclasses | | +| [**listDeviceTaintRule**](ResourceV1Api.md#listDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1/devicetaintrules | | | [**listNamespacedResourceClaim**](ResourceV1Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | | | [**listNamespacedResourceClaimTemplate**](ResourceV1Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | | | [**listResourceClaimForAllNamespaces**](ResourceV1Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaims | | | [**listResourceClaimTemplateForAllNamespaces**](ResourceV1Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaimtemplates | | | [**listResourceSlice**](ResourceV1Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1/resourceslices | | | [**patchDeviceClass**](ResourceV1Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1/deviceclasses/{name} | | +| [**patchDeviceTaintRule**](ResourceV1Api.md#patchDeviceTaintRule) | **PATCH** /apis/resource.k8s.io/v1/devicetaintrules/{name} | | +| [**patchDeviceTaintRuleStatus**](ResourceV1Api.md#patchDeviceTaintRuleStatus) | **PATCH** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | | | [**patchNamespacedResourceClaim**](ResourceV1Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | | | [**patchNamespacedResourceClaimStatus**](ResourceV1Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | | | [**patchNamespacedResourceClaimTemplate**](ResourceV1Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | | | [**patchResourceSlice**](ResourceV1Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1/resourceslices/{name} | | | [**readDeviceClass**](ResourceV1Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1/deviceclasses/{name} | | +| [**readDeviceTaintRule**](ResourceV1Api.md#readDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1/devicetaintrules/{name} | | +| [**readDeviceTaintRuleStatus**](ResourceV1Api.md#readDeviceTaintRuleStatus) | **GET** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | | | [**readNamespacedResourceClaim**](ResourceV1Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | | | [**readNamespacedResourceClaimStatus**](ResourceV1Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | | | [**readNamespacedResourceClaimTemplate**](ResourceV1Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | | | [**readResourceSlice**](ResourceV1Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1/resourceslices/{name} | | | [**replaceDeviceClass**](ResourceV1Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1/deviceclasses/{name} | | +| [**replaceDeviceTaintRule**](ResourceV1Api.md#replaceDeviceTaintRule) | **PUT** /apis/resource.k8s.io/v1/devicetaintrules/{name} | | +| [**replaceDeviceTaintRuleStatus**](ResourceV1Api.md#replaceDeviceTaintRuleStatus) | **PUT** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | | | [**replaceNamespacedResourceClaim**](ResourceV1Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | | | [**replaceNamespacedResourceClaimStatus**](ResourceV1Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | | | [**replaceNamespacedResourceClaimTemplate**](ResourceV1Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | | @@ -125,6 +135,91 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | + +# **createDeviceTaintRule** +> V1DeviceTaintRule 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.ResourceV1Api; + +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"); + + ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); + V1DeviceTaintRule body = new V1DeviceTaintRule(); // V1DeviceTaintRule | + 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 { + V1DeviceTaintRule 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 ResourceV1Api#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** | [**V1DeviceTaintRule**](V1DeviceTaintRule.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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.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** > ResourceV1ResourceClaim createNamespacedResourceClaim(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); @@ -501,6 +596,123 @@ 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).shardSelector(shardSelector).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.ResourceV1Api; + +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"); + + ResourceV1Api apiInstance = new ResourceV1Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -949,13 +1161,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteNamespacedResourceClaim** -> ResourceV1ResourceClaim deleteNamespacedResourceClaim(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteDeviceTaintRule** +> V1Status deleteDeviceTaintRule(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ResourceClaim +delete a DeviceTaintRule ### Example ```java @@ -979,8 +1191,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1Api apiInstance = new ResourceV1Api(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 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. @@ -989,7 +1200,7 @@ public class Example { 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 { - ResourceV1ResourceClaim result = apiInstance.deleteNamespacedResourceClaim(name, namespace) + V1Status result = apiInstance.deleteDeviceTaintRule(name) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) @@ -1000,7 +1211,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1Api#deleteNamespacedResourceClaim"); + System.err.println("Exception when calling ResourceV1Api#deleteDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1014,8 +1225,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaim | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **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] | @@ -1026,7 +1236,7 @@ public class Example { ### Return type -[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1044,13 +1254,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteNamespacedResourceClaimTemplate** -> V1ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteNamespacedResourceClaim** +> ResourceV1ResourceClaim deleteNamespacedResourceClaim(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ResourceClaimTemplate +delete a ResourceClaim ### Example ```java @@ -1074,7 +1284,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaimTemplate + 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 @@ -1084,7 +1294,7 @@ public class Example { 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 { - V1ResourceClaimTemplate result = apiInstance.deleteNamespacedResourceClaimTemplate(name, namespace) + ResourceV1ResourceClaim result = apiInstance.deleteNamespacedResourceClaim(name, namespace) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) @@ -1095,7 +1305,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1Api#deleteNamespacedResourceClaimTemplate"); + System.err.println("Exception when calling ResourceV1Api#deleteNamespacedResourceClaim"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1109,7 +1319,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaimTemplate | | +| **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] | @@ -1121,7 +1331,7 @@ public class Example { ### Return type -[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.md) +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) ### Authorization @@ -1139,13 +1349,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteResourceSlice** -> V1ResourceSlice deleteResourceSlice(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ResourceSlice +delete a ResourceClaimTemplate ### Example ```java @@ -1169,7 +1379,8 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); - String name = "name_example"; // String | name of the ResourceSlice + 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. @@ -1178,7 +1389,7 @@ public class Example { 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 { - V1ResourceSlice result = apiInstance.deleteResourceSlice(name) + V1ResourceClaimTemplate result = apiInstance.deleteNamespacedResourceClaimTemplate(name, namespace) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) @@ -1189,7 +1400,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1Api#deleteResourceSlice"); + System.err.println("Exception when calling ResourceV1Api#deleteNamespacedResourceClaimTemplate"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1203,7 +1414,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceSlice | | +| **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] | @@ -1214,7 +1426,7 @@ public class Example { ### Return type -[**V1ResourceSlice**](V1ResourceSlice.md) +[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.md) ### Authorization @@ -1232,13 +1444,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **getAPIResources** -> V1APIResourceList getAPIResources().execute(); + +# **deleteResourceSlice** +> V1ResourceSlice deleteResourceSlice(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -get available resources +delete a ResourceSlice ### Example ```java @@ -1262,10 +1474,103 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1Api apiInstance = new ResourceV1Api(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 { - V1APIResourceList result = apiInstance.getAPIResources() - .execute(); - System.out.println(result); + V1ResourceSlice 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 ResourceV1Api#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 + +[**V1ResourceSlice**](V1ResourceSlice.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.ResourceV1Api; + +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"); + + ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ResourceV1Api#getAPIResources"); System.err.println("Status code: " + e.getCode()); @@ -1404,6 +1709,111 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | + +# **listDeviceTaintRule** +> V1DeviceTaintRuleList listDeviceTaintRule().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind 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.ResourceV1Api; + +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"); + + ResourceV1Api apiInstance = new ResourceV1Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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 { + V1DeviceTaintRuleList result = apiInstance.listDeviceTaintRule() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#listDeviceTaintRule"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 + +[**V1DeviceTaintRuleList**](V1DeviceTaintRuleList.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** > V1ResourceClaimList listNamespacedResourceClaim(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2022,13 +2432,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchNamespacedResourceClaim** -> ResourceV1ResourceClaim patchNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchDeviceTaintRule** +> V1DeviceTaintRule patchDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ResourceClaim +partially update the specified DeviceTaintRule ### Example ```java @@ -2052,8 +2462,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1Api apiInstance = new ResourceV1Api(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 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 @@ -2061,7 +2470,7 @@ public class Example { 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 { - ResourceV1ResourceClaim result = apiInstance.patchNamespacedResourceClaim(name, namespace, body) + V1DeviceTaintRule result = apiInstance.patchDeviceTaintRule(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2070,7 +2479,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1Api#patchNamespacedResourceClaim"); + System.err.println("Exception when calling ResourceV1Api#patchDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2084,8 +2493,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaim | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **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] | @@ -2095,7 +2503,7 @@ public class Example { ### Return type -[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) +[**V1DeviceTaintRule**](V1DeviceTaintRule.md) ### Authorization @@ -2113,13 +2521,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchNamespacedResourceClaimStatus** -> ResourceV1ResourceClaim patchNamespacedResourceClaimStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchDeviceTaintRuleStatus** +> V1DeviceTaintRule patchDeviceTaintRuleStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update status of the specified ResourceClaim +partially update status of the specified DeviceTaintRule ### Example ```java @@ -2143,8 +2551,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1Api apiInstance = new ResourceV1Api(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 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 @@ -2152,7 +2559,7 @@ public class Example { 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 { - ResourceV1ResourceClaim result = apiInstance.patchNamespacedResourceClaimStatus(name, namespace, body) + V1DeviceTaintRule result = apiInstance.patchDeviceTaintRuleStatus(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2161,7 +2568,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1Api#patchNamespacedResourceClaimStatus"); + System.err.println("Exception when calling ResourceV1Api#patchDeviceTaintRuleStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2175,8 +2582,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaim | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **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] | @@ -2186,7 +2592,7 @@ public class Example { ### Return type -[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) +[**V1DeviceTaintRule**](V1DeviceTaintRule.md) ### Authorization @@ -2204,13 +2610,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchNamespacedResourceClaimTemplate** -> V1ResourceClaimTemplate patchNamespacedResourceClaimTemplate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchNamespacedResourceClaim** +> ResourceV1ResourceClaim patchNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ResourceClaimTemplate +partially update the specified ResourceClaim ### Example ```java @@ -2234,7 +2640,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaimTemplate + 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). @@ -2243,7 +2649,7 @@ public class Example { 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 { - V1ResourceClaimTemplate result = apiInstance.patchNamespacedResourceClaimTemplate(name, namespace, body) + ResourceV1ResourceClaim result = apiInstance.patchNamespacedResourceClaim(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2252,7 +2658,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1Api#patchNamespacedResourceClaimTemplate"); + System.err.println("Exception when calling ResourceV1Api#patchNamespacedResourceClaim"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2266,7 +2672,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaimTemplate | | +| **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] | @@ -2277,7 +2683,7 @@ public class Example { ### Return type -[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.md) +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) ### Authorization @@ -2295,13 +2701,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchResourceSlice** -> V1ResourceSlice patchResourceSlice(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchNamespacedResourceClaimStatus** +> ResourceV1ResourceClaim patchNamespacedResourceClaimStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ResourceSlice +partially update status of the specified ResourceClaim ### Example ```java @@ -2325,7 +2731,8 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); - String name = "name_example"; // String | name of the ResourceSlice + 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 @@ -2333,7 +2740,7 @@ public class Example { 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 { - V1ResourceSlice result = apiInstance.patchResourceSlice(name, body) + ResourceV1ResourceClaim result = apiInstance.patchNamespacedResourceClaimStatus(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2342,7 +2749,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1Api#patchResourceSlice"); + System.err.println("Exception when calling ResourceV1Api#patchNamespacedResourceClaimStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2356,7 +2763,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceSlice | | +| **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] | @@ -2366,7 +2774,7 @@ public class Example { ### Return type -[**V1ResourceSlice**](V1ResourceSlice.md) +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) ### Authorization @@ -2384,13 +2792,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **readDeviceClass** -> V1DeviceClass readDeviceClass(name).pretty(pretty).execute(); + +# **patchNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate patchNamespacedResourceClaimTemplate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -read the specified DeviceClass +partially update the specified ResourceClaimTemplate ### Example ```java @@ -2414,8 +2822,188 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1Api apiInstance = new ResourceV1Api(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 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 { + V1ResourceClaimTemplate 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 ResourceV1Api#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 + +[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.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** +> V1ResourceSlice 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.ResourceV1Api; + +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"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1ResourceSlice 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 ResourceV1Api#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 + +[**V1ResourceSlice**](V1ResourceSlice.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** +> V1DeviceClass 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.ResourceV1Api; + +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"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { V1DeviceClass result = apiInstance.readDeviceClass(name) .pretty(pretty) @@ -2458,6 +3046,154 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | + +# **readDeviceTaintRule** +> V1DeviceTaintRule 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.ResourceV1Api; + +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"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1DeviceTaintRule result = apiInstance.readDeviceTaintRule(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.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 | - | + + +# **readDeviceTaintRuleStatus** +> V1DeviceTaintRule readDeviceTaintRuleStatus(name).pretty(pretty).execute(); + + + +read status of 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.ResourceV1Api; + +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"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1DeviceTaintRule result = apiInstance.readDeviceTaintRuleStatus(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#readDeviceTaintRuleStatus"); + 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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.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** > ResourceV1ResourceClaim readNamespacedResourceClaim(name, namespace).pretty(pretty).execute(); @@ -2846,6 +3582,178 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | + +# **replaceDeviceTaintRule** +> V1DeviceTaintRule 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.ResourceV1Api; + +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"); + + ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + V1DeviceTaintRule body = new V1DeviceTaintRule(); // V1DeviceTaintRule | + 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 { + V1DeviceTaintRule 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 ResourceV1Api#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** | [**V1DeviceTaintRule**](V1DeviceTaintRule.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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.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 | - | + + +# **replaceDeviceTaintRuleStatus** +> V1DeviceTaintRule replaceDeviceTaintRuleStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace status of 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.ResourceV1Api; + +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"); + + ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + V1DeviceTaintRule body = new V1DeviceTaintRule(); // V1DeviceTaintRule | + 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 { + V1DeviceTaintRule result = apiInstance.replaceDeviceTaintRuleStatus(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#replaceDeviceTaintRuleStatus"); + 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** | [**V1DeviceTaintRule**](V1DeviceTaintRule.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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.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** > ResourceV1ResourceClaim replaceNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); diff --git a/kubernetes/docs/ResourceV1ResourceClaim.md b/kubernetes/docs/ResourceV1ResourceClaim.md index a5c6dc21b0..6ad781f73a 100644 --- a/kubernetes/docs/ResourceV1ResourceClaim.md +++ b/kubernetes/docs/ResourceV1ResourceClaim.md @@ -11,7 +11,7 @@ ResourceClaim describes a request for access to resources in the cluster, for us |**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** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | | +|**spec** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | [optional] | |**status** | [**V1ResourceClaimStatus**](V1ResourceClaimStatus.md) | | [optional] | diff --git a/kubernetes/docs/SchedulingApi.md b/kubernetes/docs/SchedulingApi.md index e98cf418b0..3409e10d18 100644 --- a/kubernetes/docs/SchedulingApi.md +++ b/kubernetes/docs/SchedulingApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/SchedulingV1alpha3Api.md b/kubernetes/docs/SchedulingV1alpha3Api.md new file mode 100644 index 0000000000..3b0ba91d88 --- /dev/null +++ b/kubernetes/docs/SchedulingV1alpha3Api.md @@ -0,0 +1,2920 @@ +# SchedulingV1alpha3Api + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedCompositePodGroup**](SchedulingV1alpha3Api.md#createNamespacedCompositePodGroup) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | | +| [**createNamespacedPodGroup**](SchedulingV1alpha3Api.md#createNamespacedPodGroup) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | | +| [**createNamespacedWorkload**](SchedulingV1alpha3Api.md#createNamespacedWorkload) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | | +| [**deleteCollectionNamespacedCompositePodGroup**](SchedulingV1alpha3Api.md#deleteCollectionNamespacedCompositePodGroup) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | | +| [**deleteCollectionNamespacedPodGroup**](SchedulingV1alpha3Api.md#deleteCollectionNamespacedPodGroup) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | | +| [**deleteCollectionNamespacedWorkload**](SchedulingV1alpha3Api.md#deleteCollectionNamespacedWorkload) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | | +| [**deleteNamespacedCompositePodGroup**](SchedulingV1alpha3Api.md#deleteNamespacedCompositePodGroup) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | | +| [**deleteNamespacedPodGroup**](SchedulingV1alpha3Api.md#deleteNamespacedPodGroup) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | | +| [**deleteNamespacedWorkload**](SchedulingV1alpha3Api.md#deleteNamespacedWorkload) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | | +| [**getAPIResources**](SchedulingV1alpha3Api.md#getAPIResources) | **GET** /apis/scheduling.k8s.io/v1alpha3/ | | +| [**listCompositePodGroupForAllNamespaces**](SchedulingV1alpha3Api.md#listCompositePodGroupForAllNamespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/compositepodgroups | | +| [**listNamespacedCompositePodGroup**](SchedulingV1alpha3Api.md#listNamespacedCompositePodGroup) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | | +| [**listNamespacedPodGroup**](SchedulingV1alpha3Api.md#listNamespacedPodGroup) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | | +| [**listNamespacedWorkload**](SchedulingV1alpha3Api.md#listNamespacedWorkload) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | | +| [**listPodGroupForAllNamespaces**](SchedulingV1alpha3Api.md#listPodGroupForAllNamespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/podgroups | | +| [**listWorkloadForAllNamespaces**](SchedulingV1alpha3Api.md#listWorkloadForAllNamespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/workloads | | +| [**patchNamespacedCompositePodGroup**](SchedulingV1alpha3Api.md#patchNamespacedCompositePodGroup) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | | +| [**patchNamespacedCompositePodGroupStatus**](SchedulingV1alpha3Api.md#patchNamespacedCompositePodGroupStatus) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | | +| [**patchNamespacedPodGroup**](SchedulingV1alpha3Api.md#patchNamespacedPodGroup) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | | +| [**patchNamespacedPodGroupStatus**](SchedulingV1alpha3Api.md#patchNamespacedPodGroupStatus) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | | +| [**patchNamespacedWorkload**](SchedulingV1alpha3Api.md#patchNamespacedWorkload) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | | +| [**readNamespacedCompositePodGroup**](SchedulingV1alpha3Api.md#readNamespacedCompositePodGroup) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | | +| [**readNamespacedCompositePodGroupStatus**](SchedulingV1alpha3Api.md#readNamespacedCompositePodGroupStatus) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | | +| [**readNamespacedPodGroup**](SchedulingV1alpha3Api.md#readNamespacedPodGroup) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | | +| [**readNamespacedPodGroupStatus**](SchedulingV1alpha3Api.md#readNamespacedPodGroupStatus) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | | +| [**readNamespacedWorkload**](SchedulingV1alpha3Api.md#readNamespacedWorkload) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | | +| [**replaceNamespacedCompositePodGroup**](SchedulingV1alpha3Api.md#replaceNamespacedCompositePodGroup) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | | +| [**replaceNamespacedCompositePodGroupStatus**](SchedulingV1alpha3Api.md#replaceNamespacedCompositePodGroupStatus) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | | +| [**replaceNamespacedPodGroup**](SchedulingV1alpha3Api.md#replaceNamespacedPodGroup) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | | +| [**replaceNamespacedPodGroupStatus**](SchedulingV1alpha3Api.md#replaceNamespacedPodGroupStatus) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | | +| [**replaceNamespacedWorkload**](SchedulingV1alpha3Api.md#replaceNamespacedWorkload) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | | + + + +# **createNamespacedCompositePodGroup** +> V1alpha3CompositePodGroup createNamespacedCompositePodGroup(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a CompositePodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3CompositePodGroup body = new V1alpha3CompositePodGroup(); // V1alpha3CompositePodGroup | + 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 { + V1alpha3CompositePodGroup result = apiInstance.createNamespacedCompositePodGroup(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#createNamespacedCompositePodGroup"); + 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** | [**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | + + +# **createNamespacedPodGroup** +> V1alpha3PodGroup createNamespacedPodGroup(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a PodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3PodGroup body = new V1alpha3PodGroup(); // V1alpha3PodGroup | + 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 { + V1alpha3PodGroup result = apiInstance.createNamespacedPodGroup(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#createNamespacedPodGroup"); + 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** | [**V1alpha3PodGroup**](V1alpha3PodGroup.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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | + + +# **createNamespacedWorkload** +> V1alpha3Workload createNamespacedWorkload(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a Workload + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3Workload body = new V1alpha3Workload(); // V1alpha3Workload | + 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 { + V1alpha3Workload result = apiInstance.createNamespacedWorkload(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#createNamespacedWorkload"); + 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** | [**V1alpha3Workload**](V1alpha3Workload.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 + +[**V1alpha3Workload**](V1alpha3Workload.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 | - | + + +# **deleteCollectionNamespacedCompositePodGroup** +> V1Status deleteCollectionNamespacedCompositePodGroup(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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of CompositePodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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.deleteCollectionNamespacedCompositePodGroup(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) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#deleteCollectionNamespacedCompositePodGroup"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 | - | + + +# **deleteCollectionNamespacedPodGroup** +> V1Status deleteCollectionNamespacedPodGroup(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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of PodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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.deleteCollectionNamespacedPodGroup(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) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#deleteCollectionNamespacedPodGroup"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 | - | + + +# **deleteCollectionNamespacedWorkload** +> V1Status deleteCollectionNamespacedWorkload(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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of Workload + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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.deleteCollectionNamespacedWorkload(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) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#deleteCollectionNamespacedWorkload"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 | - | + + +# **deleteNamespacedCompositePodGroup** +> V1Status deleteNamespacedCompositePodGroup(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a CompositePodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the CompositePodGroup + 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.deleteNamespacedCompositePodGroup(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 SchedulingV1alpha3Api#deleteNamespacedCompositePodGroup"); + 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 CompositePodGroup | | +| **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 | - | + + +# **deleteNamespacedPodGroup** +> V1Status deleteNamespacedPodGroup(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a PodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + 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.deleteNamespacedPodGroup(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 SchedulingV1alpha3Api#deleteNamespacedPodGroup"); + 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 PodGroup | | +| **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 | - | + + +# **deleteNamespacedWorkload** +> V1Status deleteNamespacedWorkload(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a Workload + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the Workload + 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.deleteNamespacedWorkload(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 SchedulingV1alpha3Api#deleteNamespacedWorkload"); + 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 Workload | | +| **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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#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 | - | + + +# **listCompositePodGroupForAllNamespaces** +> V1alpha3CompositePodGroupList listCompositePodGroupForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind CompositePodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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 { + V1alpha3CompositePodGroupList result = apiInstance.listCompositePodGroupForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#listCompositePodGroupForAllNamespaces"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 + +[**V1alpha3CompositePodGroupList**](V1alpha3CompositePodGroupList.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 | - | + + +# **listNamespacedCompositePodGroup** +> V1alpha3CompositePodGroupList listNamespacedCompositePodGroup(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind CompositePodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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 { + V1alpha3CompositePodGroupList result = apiInstance.listNamespacedCompositePodGroup(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#listNamespacedCompositePodGroup"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 + +[**V1alpha3CompositePodGroupList**](V1alpha3CompositePodGroupList.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 | - | + + +# **listNamespacedPodGroup** +> V1alpha3PodGroupList listNamespacedPodGroup(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind PodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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 { + V1alpha3PodGroupList result = apiInstance.listNamespacedPodGroup(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#listNamespacedPodGroup"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 + +[**V1alpha3PodGroupList**](V1alpha3PodGroupList.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 | - | + + +# **listNamespacedWorkload** +> V1alpha3WorkloadList listNamespacedWorkload(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind Workload + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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 { + V1alpha3WorkloadList result = apiInstance.listNamespacedWorkload(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#listNamespacedWorkload"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 + +[**V1alpha3WorkloadList**](V1alpha3WorkloadList.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 | - | + + +# **listPodGroupForAllNamespaces** +> V1alpha3PodGroupList listPodGroupForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind PodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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 { + V1alpha3PodGroupList result = apiInstance.listPodGroupForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#listPodGroupForAllNamespaces"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 + +[**V1alpha3PodGroupList**](V1alpha3PodGroupList.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 | - | + + +# **listWorkloadForAllNamespaces** +> V1alpha3WorkloadList listWorkloadForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind Workload + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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 { + V1alpha3WorkloadList result = apiInstance.listWorkloadForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#listWorkloadForAllNamespaces"); + 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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 + +[**V1alpha3WorkloadList**](V1alpha3WorkloadList.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 | - | + + +# **patchNamespacedCompositePodGroup** +> V1alpha3CompositePodGroup patchNamespacedCompositePodGroup(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified CompositePodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the CompositePodGroup + 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 { + V1alpha3CompositePodGroup result = apiInstance.patchNamespacedCompositePodGroup(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 SchedulingV1alpha3Api#patchNamespacedCompositePodGroup"); + 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 CompositePodGroup | | +| **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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | + + +# **patchNamespacedCompositePodGroupStatus** +> V1alpha3CompositePodGroup patchNamespacedCompositePodGroupStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified CompositePodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the CompositePodGroup + 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 { + V1alpha3CompositePodGroup result = apiInstance.patchNamespacedCompositePodGroupStatus(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 SchedulingV1alpha3Api#patchNamespacedCompositePodGroupStatus"); + 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 CompositePodGroup | | +| **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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | + + +# **patchNamespacedPodGroup** +> V1alpha3PodGroup patchNamespacedPodGroup(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified PodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + 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 { + V1alpha3PodGroup result = apiInstance.patchNamespacedPodGroup(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 SchedulingV1alpha3Api#patchNamespacedPodGroup"); + 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 PodGroup | | +| **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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | + + +# **patchNamespacedPodGroupStatus** +> V1alpha3PodGroup patchNamespacedPodGroupStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified PodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + 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 { + V1alpha3PodGroup result = apiInstance.patchNamespacedPodGroupStatus(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 SchedulingV1alpha3Api#patchNamespacedPodGroupStatus"); + 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 PodGroup | | +| **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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | + + +# **patchNamespacedWorkload** +> V1alpha3Workload patchNamespacedWorkload(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified Workload + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the Workload + 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 { + V1alpha3Workload result = apiInstance.patchNamespacedWorkload(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 SchedulingV1alpha3Api#patchNamespacedWorkload"); + 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 Workload | | +| **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 + +[**V1alpha3Workload**](V1alpha3Workload.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 | - | + + +# **readNamespacedCompositePodGroup** +> V1alpha3CompositePodGroup readNamespacedCompositePodGroup(name, namespace).pretty(pretty).execute(); + + + +read the specified CompositePodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the CompositePodGroup + 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 { + V1alpha3CompositePodGroup result = apiInstance.readNamespacedCompositePodGroup(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#readNamespacedCompositePodGroup"); + 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 CompositePodGroup | | +| **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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | + + +# **readNamespacedCompositePodGroupStatus** +> V1alpha3CompositePodGroup readNamespacedCompositePodGroupStatus(name, namespace).pretty(pretty).execute(); + + + +read status of the specified CompositePodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the CompositePodGroup + 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 { + V1alpha3CompositePodGroup result = apiInstance.readNamespacedCompositePodGroupStatus(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#readNamespacedCompositePodGroupStatus"); + 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 CompositePodGroup | | +| **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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | + + +# **readNamespacedPodGroup** +> V1alpha3PodGroup readNamespacedPodGroup(name, namespace).pretty(pretty).execute(); + + + +read the specified PodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + 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 { + V1alpha3PodGroup result = apiInstance.readNamespacedPodGroup(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#readNamespacedPodGroup"); + 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 PodGroup | | +| **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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | + + +# **readNamespacedPodGroupStatus** +> V1alpha3PodGroup readNamespacedPodGroupStatus(name, namespace).pretty(pretty).execute(); + + + +read status of the specified PodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + 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 { + V1alpha3PodGroup result = apiInstance.readNamespacedPodGroupStatus(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#readNamespacedPodGroupStatus"); + 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 PodGroup | | +| **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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | + + +# **readNamespacedWorkload** +> V1alpha3Workload readNamespacedWorkload(name, namespace).pretty(pretty).execute(); + + + +read the specified Workload + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the Workload + 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 { + V1alpha3Workload result = apiInstance.readNamespacedWorkload(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha3Api#readNamespacedWorkload"); + 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 Workload | | +| **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 + +[**V1alpha3Workload**](V1alpha3Workload.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 | - | + + +# **replaceNamespacedCompositePodGroup** +> V1alpha3CompositePodGroup replaceNamespacedCompositePodGroup(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified CompositePodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the CompositePodGroup + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3CompositePodGroup body = new V1alpha3CompositePodGroup(); // V1alpha3CompositePodGroup | + 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 { + V1alpha3CompositePodGroup result = apiInstance.replaceNamespacedCompositePodGroup(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 SchedulingV1alpha3Api#replaceNamespacedCompositePodGroup"); + 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 CompositePodGroup | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | + + +# **replaceNamespacedCompositePodGroupStatus** +> V1alpha3CompositePodGroup replaceNamespacedCompositePodGroupStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace status of the specified CompositePodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the CompositePodGroup + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3CompositePodGroup body = new V1alpha3CompositePodGroup(); // V1alpha3CompositePodGroup | + 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 { + V1alpha3CompositePodGroup result = apiInstance.replaceNamespacedCompositePodGroupStatus(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 SchedulingV1alpha3Api#replaceNamespacedCompositePodGroupStatus"); + 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 CompositePodGroup | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | + + +# **replaceNamespacedPodGroup** +> V1alpha3PodGroup replaceNamespacedPodGroup(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified PodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3PodGroup body = new V1alpha3PodGroup(); // V1alpha3PodGroup | + 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 { + V1alpha3PodGroup result = apiInstance.replaceNamespacedPodGroup(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 SchedulingV1alpha3Api#replaceNamespacedPodGroup"); + 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 PodGroup | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha3PodGroup**](V1alpha3PodGroup.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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | + + +# **replaceNamespacedPodGroupStatus** +> V1alpha3PodGroup replaceNamespacedPodGroupStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace status of the specified PodGroup + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3PodGroup body = new V1alpha3PodGroup(); // V1alpha3PodGroup | + 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 { + V1alpha3PodGroup result = apiInstance.replaceNamespacedPodGroupStatus(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 SchedulingV1alpha3Api#replaceNamespacedPodGroupStatus"); + 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 PodGroup | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha3PodGroup**](V1alpha3PodGroup.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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | + + +# **replaceNamespacedWorkload** +> V1alpha3Workload replaceNamespacedWorkload(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified Workload + +### 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.SchedulingV1alpha3Api; + +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"); + + SchedulingV1alpha3Api apiInstance = new SchedulingV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the Workload + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3Workload body = new V1alpha3Workload(); // V1alpha3Workload | + 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 { + V1alpha3Workload result = apiInstance.replaceNamespacedWorkload(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 SchedulingV1alpha3Api#replaceNamespacedWorkload"); + 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 Workload | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha3Workload**](V1alpha3Workload.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 + +[**V1alpha3Workload**](V1alpha3Workload.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/SchedulingV1alpha2Api.md b/kubernetes/docs/SchedulingV1beta1Api.md similarity index 93% rename from kubernetes/docs/SchedulingV1alpha2Api.md rename to kubernetes/docs/SchedulingV1beta1Api.md index 2cff397921..8870be22c4 100644 --- a/kubernetes/docs/SchedulingV1alpha2Api.md +++ b/kubernetes/docs/SchedulingV1beta1Api.md @@ -1,34 +1,34 @@ -# SchedulingV1alpha2Api +# SchedulingV1beta1Api All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createNamespacedPodGroup**](SchedulingV1alpha2Api.md#createNamespacedPodGroup) | **POST** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | | -| [**createNamespacedWorkload**](SchedulingV1alpha2Api.md#createNamespacedWorkload) | **POST** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | | -| [**deleteCollectionNamespacedPodGroup**](SchedulingV1alpha2Api.md#deleteCollectionNamespacedPodGroup) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | | -| [**deleteCollectionNamespacedWorkload**](SchedulingV1alpha2Api.md#deleteCollectionNamespacedWorkload) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | | -| [**deleteNamespacedPodGroup**](SchedulingV1alpha2Api.md#deleteNamespacedPodGroup) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | | -| [**deleteNamespacedWorkload**](SchedulingV1alpha2Api.md#deleteNamespacedWorkload) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | | -| [**getAPIResources**](SchedulingV1alpha2Api.md#getAPIResources) | **GET** /apis/scheduling.k8s.io/v1alpha2/ | | -| [**listNamespacedPodGroup**](SchedulingV1alpha2Api.md#listNamespacedPodGroup) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | | -| [**listNamespacedWorkload**](SchedulingV1alpha2Api.md#listNamespacedWorkload) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | | -| [**listPodGroupForAllNamespaces**](SchedulingV1alpha2Api.md#listPodGroupForAllNamespaces) | **GET** /apis/scheduling.k8s.io/v1alpha2/podgroups | | -| [**listWorkloadForAllNamespaces**](SchedulingV1alpha2Api.md#listWorkloadForAllNamespaces) | **GET** /apis/scheduling.k8s.io/v1alpha2/workloads | | -| [**patchNamespacedPodGroup**](SchedulingV1alpha2Api.md#patchNamespacedPodGroup) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | | -| [**patchNamespacedPodGroupStatus**](SchedulingV1alpha2Api.md#patchNamespacedPodGroupStatus) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | | -| [**patchNamespacedWorkload**](SchedulingV1alpha2Api.md#patchNamespacedWorkload) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | | -| [**readNamespacedPodGroup**](SchedulingV1alpha2Api.md#readNamespacedPodGroup) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | | -| [**readNamespacedPodGroupStatus**](SchedulingV1alpha2Api.md#readNamespacedPodGroupStatus) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | | -| [**readNamespacedWorkload**](SchedulingV1alpha2Api.md#readNamespacedWorkload) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | | -| [**replaceNamespacedPodGroup**](SchedulingV1alpha2Api.md#replaceNamespacedPodGroup) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | | -| [**replaceNamespacedPodGroupStatus**](SchedulingV1alpha2Api.md#replaceNamespacedPodGroupStatus) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | | -| [**replaceNamespacedWorkload**](SchedulingV1alpha2Api.md#replaceNamespacedWorkload) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | | +| [**createNamespacedPodGroup**](SchedulingV1beta1Api.md#createNamespacedPodGroup) | **POST** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | | +| [**createNamespacedWorkload**](SchedulingV1beta1Api.md#createNamespacedWorkload) | **POST** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | | +| [**deleteCollectionNamespacedPodGroup**](SchedulingV1beta1Api.md#deleteCollectionNamespacedPodGroup) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | | +| [**deleteCollectionNamespacedWorkload**](SchedulingV1beta1Api.md#deleteCollectionNamespacedWorkload) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | | +| [**deleteNamespacedPodGroup**](SchedulingV1beta1Api.md#deleteNamespacedPodGroup) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | | +| [**deleteNamespacedWorkload**](SchedulingV1beta1Api.md#deleteNamespacedWorkload) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | | +| [**getAPIResources**](SchedulingV1beta1Api.md#getAPIResources) | **GET** /apis/scheduling.k8s.io/v1beta1/ | | +| [**listNamespacedPodGroup**](SchedulingV1beta1Api.md#listNamespacedPodGroup) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | | +| [**listNamespacedWorkload**](SchedulingV1beta1Api.md#listNamespacedWorkload) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | | +| [**listPodGroupForAllNamespaces**](SchedulingV1beta1Api.md#listPodGroupForAllNamespaces) | **GET** /apis/scheduling.k8s.io/v1beta1/podgroups | | +| [**listWorkloadForAllNamespaces**](SchedulingV1beta1Api.md#listWorkloadForAllNamespaces) | **GET** /apis/scheduling.k8s.io/v1beta1/workloads | | +| [**patchNamespacedPodGroup**](SchedulingV1beta1Api.md#patchNamespacedPodGroup) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | | +| [**patchNamespacedPodGroupStatus**](SchedulingV1beta1Api.md#patchNamespacedPodGroupStatus) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | | +| [**patchNamespacedWorkload**](SchedulingV1beta1Api.md#patchNamespacedWorkload) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | | +| [**readNamespacedPodGroup**](SchedulingV1beta1Api.md#readNamespacedPodGroup) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | | +| [**readNamespacedPodGroupStatus**](SchedulingV1beta1Api.md#readNamespacedPodGroupStatus) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | | +| [**readNamespacedWorkload**](SchedulingV1beta1Api.md#readNamespacedWorkload) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | | +| [**replaceNamespacedPodGroup**](SchedulingV1beta1Api.md#replaceNamespacedPodGroup) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | | +| [**replaceNamespacedPodGroupStatus**](SchedulingV1beta1Api.md#replaceNamespacedPodGroupStatus) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | | +| [**replaceNamespacedWorkload**](SchedulingV1beta1Api.md#replaceNamespacedWorkload) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | | # **createNamespacedPodGroup** -> V1alpha2PodGroup createNamespacedPodGroup(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); +> V1beta1PodGroup createNamespacedPodGroup(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); @@ -42,7 +42,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -55,15 +55,15 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2PodGroup body = new V1alpha2PodGroup(); // V1alpha2PodGroup | + V1beta1PodGroup body = new V1beta1PodGroup(); // V1beta1PodGroup | 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 { - V1alpha2PodGroup result = apiInstance.createNamespacedPodGroup(namespace, body) + V1beta1PodGroup result = apiInstance.createNamespacedPodGroup(namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -71,7 +71,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#createNamespacedPodGroup"); + System.err.println("Exception when calling SchedulingV1beta1Api#createNamespacedPodGroup"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -86,7 +86,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1alpha2PodGroup**](V1alpha2PodGroup.md)| | | +| **body** | [**V1beta1PodGroup**](V1beta1PodGroup.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] | @@ -94,7 +94,7 @@ public class Example { ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -115,7 +115,7 @@ public class Example { # **createNamespacedWorkload** -> V1alpha2Workload createNamespacedWorkload(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); +> V1beta1Workload createNamespacedWorkload(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); @@ -129,7 +129,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -142,15 +142,15 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2Workload body = new V1alpha2Workload(); // V1alpha2Workload | + V1beta1Workload body = new V1beta1Workload(); // V1beta1Workload | 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 { - V1alpha2Workload result = apiInstance.createNamespacedWorkload(namespace, body) + V1beta1Workload result = apiInstance.createNamespacedWorkload(namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -158,7 +158,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#createNamespacedWorkload"); + System.err.println("Exception when calling SchedulingV1beta1Api#createNamespacedWorkload"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -173,7 +173,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1alpha2Workload**](V1alpha2Workload.md)| | | +| **body** | [**V1beta1Workload**](V1beta1Workload.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] | @@ -181,7 +181,7 @@ public class Example { ### Return type -[**V1alpha2Workload**](V1alpha2Workload.md) +[**V1beta1Workload**](V1beta1Workload.md) ### Authorization @@ -216,7 +216,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -229,7 +229,7 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(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. @@ -268,7 +268,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#deleteCollectionNamespacedPodGroup"); + System.err.println("Exception when calling SchedulingV1beta1Api#deleteCollectionNamespacedPodGroup"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -335,7 +335,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -348,7 +348,7 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(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. @@ -387,7 +387,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#deleteCollectionNamespacedWorkload"); + System.err.println("Exception when calling SchedulingV1beta1Api#deleteCollectionNamespacedWorkload"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -454,7 +454,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -467,7 +467,7 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); String name = "name_example"; // String | name of the PodGroup 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). @@ -489,7 +489,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#deleteNamespacedPodGroup"); + System.err.println("Exception when calling SchedulingV1beta1Api#deleteNamespacedPodGroup"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -549,7 +549,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -562,7 +562,7 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); String name = "name_example"; // String | name of the Workload 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). @@ -584,7 +584,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#deleteNamespacedWorkload"); + System.err.println("Exception when calling SchedulingV1beta1Api#deleteNamespacedWorkload"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -644,7 +644,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -657,13 +657,13 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); try { V1APIResourceList result = apiInstance.getAPIResources() .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#getAPIResources"); + System.err.println("Exception when calling SchedulingV1beta1Api#getAPIResources"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -697,7 +697,7 @@ This endpoint does not need any parameter. # **listNamespacedPodGroup** -> V1alpha2PodGroupList listNamespacedPodGroup(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1PodGroupList listNamespacedPodGroup(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -711,7 +711,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -724,7 +724,7 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(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. @@ -739,7 +739,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 { - V1alpha2PodGroupList result = apiInstance.listNamespacedPodGroup(namespace) + V1beta1PodGroupList result = apiInstance.listNamespacedPodGroup(namespace) .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -755,7 +755,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#listNamespacedPodGroup"); + System.err.println("Exception when calling SchedulingV1beta1Api#listNamespacedPodGroup"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -785,7 +785,7 @@ public class Example { ### Return type -[**V1alpha2PodGroupList**](V1alpha2PodGroupList.md) +[**V1beta1PodGroupList**](V1beta1PodGroupList.md) ### Authorization @@ -804,7 +804,7 @@ public class Example { # **listNamespacedWorkload** -> V1alpha2WorkloadList listNamespacedWorkload(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1WorkloadList listNamespacedWorkload(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -818,7 +818,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -831,7 +831,7 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(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. @@ -846,7 +846,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 { - V1alpha2WorkloadList result = apiInstance.listNamespacedWorkload(namespace) + V1beta1WorkloadList result = apiInstance.listNamespacedWorkload(namespace) .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -862,7 +862,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#listNamespacedWorkload"); + System.err.println("Exception when calling SchedulingV1beta1Api#listNamespacedWorkload"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -892,7 +892,7 @@ public class Example { ### Return type -[**V1alpha2WorkloadList**](V1alpha2WorkloadList.md) +[**V1beta1WorkloadList**](V1beta1WorkloadList.md) ### Authorization @@ -911,7 +911,7 @@ public class Example { # **listPodGroupForAllNamespaces** -> V1alpha2PodGroupList listPodGroupForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1PodGroupList listPodGroupForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -925,7 +925,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -938,7 +938,7 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(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. @@ -952,7 +952,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 { - V1alpha2PodGroupList result = apiInstance.listPodGroupForAllNamespaces() + V1beta1PodGroupList result = apiInstance.listPodGroupForAllNamespaces() .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) .fieldSelector(fieldSelector) @@ -968,7 +968,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#listPodGroupForAllNamespaces"); + System.err.println("Exception when calling SchedulingV1beta1Api#listPodGroupForAllNamespaces"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -997,7 +997,7 @@ public class Example { ### Return type -[**V1alpha2PodGroupList**](V1alpha2PodGroupList.md) +[**V1beta1PodGroupList**](V1beta1PodGroupList.md) ### Authorization @@ -1016,7 +1016,7 @@ public class Example { # **listWorkloadForAllNamespaces** -> V1alpha2WorkloadList listWorkloadForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1WorkloadList listWorkloadForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1030,7 +1030,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -1043,7 +1043,7 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(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. @@ -1057,7 +1057,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 { - V1alpha2WorkloadList result = apiInstance.listWorkloadForAllNamespaces() + V1beta1WorkloadList result = apiInstance.listWorkloadForAllNamespaces() .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) .fieldSelector(fieldSelector) @@ -1073,7 +1073,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#listWorkloadForAllNamespaces"); + System.err.println("Exception when calling SchedulingV1beta1Api#listWorkloadForAllNamespaces"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1102,7 +1102,7 @@ public class Example { ### Return type -[**V1alpha2WorkloadList**](V1alpha2WorkloadList.md) +[**V1beta1WorkloadList**](V1beta1WorkloadList.md) ### Authorization @@ -1121,7 +1121,7 @@ public class Example { # **patchNamespacedPodGroup** -> V1alpha2PodGroup patchNamespacedPodGroup(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); +> V1beta1PodGroup patchNamespacedPodGroup(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); @@ -1135,7 +1135,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -1148,7 +1148,7 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); String name = "name_example"; // String | name of the PodGroup String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | @@ -1158,7 +1158,7 @@ public class Example { 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 { - V1alpha2PodGroup result = apiInstance.patchNamespacedPodGroup(name, namespace, body) + V1beta1PodGroup result = apiInstance.patchNamespacedPodGroup(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1167,7 +1167,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#patchNamespacedPodGroup"); + System.err.println("Exception when calling SchedulingV1beta1Api#patchNamespacedPodGroup"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1192,7 +1192,7 @@ public class Example { ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1212,7 +1212,7 @@ public class Example { # **patchNamespacedPodGroupStatus** -> V1alpha2PodGroup patchNamespacedPodGroupStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); +> V1beta1PodGroup patchNamespacedPodGroupStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); @@ -1226,7 +1226,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -1239,7 +1239,7 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); String name = "name_example"; // String | name of the PodGroup String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | @@ -1249,7 +1249,7 @@ public class Example { 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 { - V1alpha2PodGroup result = apiInstance.patchNamespacedPodGroupStatus(name, namespace, body) + V1beta1PodGroup result = apiInstance.patchNamespacedPodGroupStatus(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1258,7 +1258,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#patchNamespacedPodGroupStatus"); + System.err.println("Exception when calling SchedulingV1beta1Api#patchNamespacedPodGroupStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1283,7 +1283,7 @@ public class Example { ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1303,7 +1303,7 @@ public class Example { # **patchNamespacedWorkload** -> V1alpha2Workload patchNamespacedWorkload(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); +> V1beta1Workload patchNamespacedWorkload(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); @@ -1317,7 +1317,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -1330,7 +1330,7 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); String name = "name_example"; // String | name of the Workload String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | @@ -1340,7 +1340,7 @@ public class Example { 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 { - V1alpha2Workload result = apiInstance.patchNamespacedWorkload(name, namespace, body) + V1beta1Workload result = apiInstance.patchNamespacedWorkload(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1349,7 +1349,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#patchNamespacedWorkload"); + System.err.println("Exception when calling SchedulingV1beta1Api#patchNamespacedWorkload"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1374,7 +1374,7 @@ public class Example { ### Return type -[**V1alpha2Workload**](V1alpha2Workload.md) +[**V1beta1Workload**](V1beta1Workload.md) ### Authorization @@ -1394,7 +1394,7 @@ public class Example { # **readNamespacedPodGroup** -> V1alpha2PodGroup readNamespacedPodGroup(name, namespace).pretty(pretty).execute(); +> V1beta1PodGroup readNamespacedPodGroup(name, namespace).pretty(pretty).execute(); @@ -1408,7 +1408,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -1421,17 +1421,17 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); String name = "name_example"; // String | name of the PodGroup 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 { - V1alpha2PodGroup result = apiInstance.readNamespacedPodGroup(name, namespace) + V1beta1PodGroup result = apiInstance.readNamespacedPodGroup(name, namespace) .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#readNamespacedPodGroup"); + System.err.println("Exception when calling SchedulingV1beta1Api#readNamespacedPodGroup"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1451,7 +1451,7 @@ public class Example { ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1470,7 +1470,7 @@ public class Example { # **readNamespacedPodGroupStatus** -> V1alpha2PodGroup readNamespacedPodGroupStatus(name, namespace).pretty(pretty).execute(); +> V1beta1PodGroup readNamespacedPodGroupStatus(name, namespace).pretty(pretty).execute(); @@ -1484,7 +1484,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -1497,17 +1497,17 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); String name = "name_example"; // String | name of the PodGroup 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 { - V1alpha2PodGroup result = apiInstance.readNamespacedPodGroupStatus(name, namespace) + V1beta1PodGroup result = apiInstance.readNamespacedPodGroupStatus(name, namespace) .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#readNamespacedPodGroupStatus"); + System.err.println("Exception when calling SchedulingV1beta1Api#readNamespacedPodGroupStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1527,7 +1527,7 @@ public class Example { ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1546,7 +1546,7 @@ public class Example { # **readNamespacedWorkload** -> V1alpha2Workload readNamespacedWorkload(name, namespace).pretty(pretty).execute(); +> V1beta1Workload readNamespacedWorkload(name, namespace).pretty(pretty).execute(); @@ -1560,7 +1560,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -1573,17 +1573,17 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); String name = "name_example"; // String | name of the Workload 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 { - V1alpha2Workload result = apiInstance.readNamespacedWorkload(name, namespace) + V1beta1Workload result = apiInstance.readNamespacedWorkload(name, namespace) .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#readNamespacedWorkload"); + System.err.println("Exception when calling SchedulingV1beta1Api#readNamespacedWorkload"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1603,7 +1603,7 @@ public class Example { ### Return type -[**V1alpha2Workload**](V1alpha2Workload.md) +[**V1beta1Workload**](V1beta1Workload.md) ### Authorization @@ -1622,7 +1622,7 @@ public class Example { # **replaceNamespacedPodGroup** -> V1alpha2PodGroup replaceNamespacedPodGroup(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); +> V1beta1PodGroup replaceNamespacedPodGroup(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); @@ -1636,7 +1636,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -1649,16 +1649,16 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); String name = "name_example"; // String | name of the PodGroup String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2PodGroup body = new V1alpha2PodGroup(); // V1alpha2PodGroup | + V1beta1PodGroup body = new V1beta1PodGroup(); // V1beta1PodGroup | 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 { - V1alpha2PodGroup result = apiInstance.replaceNamespacedPodGroup(name, namespace, body) + V1beta1PodGroup result = apiInstance.replaceNamespacedPodGroup(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1666,7 +1666,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#replaceNamespacedPodGroup"); + System.err.println("Exception when calling SchedulingV1beta1Api#replaceNamespacedPodGroup"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1682,7 +1682,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **name** | **String**| name of the PodGroup | | | **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1alpha2PodGroup**](V1alpha2PodGroup.md)| | | +| **body** | [**V1beta1PodGroup**](V1beta1PodGroup.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] | @@ -1690,7 +1690,7 @@ public class Example { ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1710,7 +1710,7 @@ public class Example { # **replaceNamespacedPodGroupStatus** -> V1alpha2PodGroup replaceNamespacedPodGroupStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); +> V1beta1PodGroup replaceNamespacedPodGroupStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); @@ -1724,7 +1724,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -1737,16 +1737,16 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); String name = "name_example"; // String | name of the PodGroup String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2PodGroup body = new V1alpha2PodGroup(); // V1alpha2PodGroup | + V1beta1PodGroup body = new V1beta1PodGroup(); // V1beta1PodGroup | 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 { - V1alpha2PodGroup result = apiInstance.replaceNamespacedPodGroupStatus(name, namespace, body) + V1beta1PodGroup result = apiInstance.replaceNamespacedPodGroupStatus(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1754,7 +1754,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#replaceNamespacedPodGroupStatus"); + System.err.println("Exception when calling SchedulingV1beta1Api#replaceNamespacedPodGroupStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1770,7 +1770,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **name** | **String**| name of the PodGroup | | | **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1alpha2PodGroup**](V1alpha2PodGroup.md)| | | +| **body** | [**V1beta1PodGroup**](V1beta1PodGroup.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] | @@ -1778,7 +1778,7 @@ public class Example { ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1798,7 +1798,7 @@ public class Example { # **replaceNamespacedWorkload** -> V1alpha2Workload replaceNamespacedWorkload(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); +> V1beta1Workload replaceNamespacedWorkload(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); @@ -1812,7 +1812,7 @@ 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.SchedulingV1alpha2Api; +import io.kubernetes.client.openapi.apis.SchedulingV1beta1Api; public class Example { public static void main(String[] args) { @@ -1825,16 +1825,16 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); String name = "name_example"; // String | name of the Workload String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2Workload body = new V1alpha2Workload(); // V1alpha2Workload | + V1beta1Workload body = new V1beta1Workload(); // V1beta1Workload | 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 { - V1alpha2Workload result = apiInstance.replaceNamespacedWorkload(name, namespace, body) + V1beta1Workload result = apiInstance.replaceNamespacedWorkload(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1842,7 +1842,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha2Api#replaceNamespacedWorkload"); + System.err.println("Exception when calling SchedulingV1beta1Api#replaceNamespacedWorkload"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1858,7 +1858,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **name** | **String**| name of the Workload | | | **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1alpha2Workload**](V1alpha2Workload.md)| | | +| **body** | [**V1beta1Workload**](V1beta1Workload.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] | @@ -1866,7 +1866,7 @@ public class Example { ### Return type -[**V1alpha2Workload**](V1alpha2Workload.md) +[**V1beta1Workload**](V1beta1Workload.md) ### Authorization diff --git a/kubernetes/docs/StorageApi.md b/kubernetes/docs/StorageApi.md index 50273346c7..f0e26d7916 100644 --- a/kubernetes/docs/StorageApi.md +++ b/kubernetes/docs/StorageApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md index 40ee37d121..69fc6be7b5 100644 --- a/kubernetes/docs/StorageV1Api.md +++ b/kubernetes/docs/StorageV1Api.md @@ -32,6 +32,7 @@ All URIs are relative to *http://localhost* | [**listVolumeAttributesClass**](StorageV1Api.md#listVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses | | | [**patchCSIDriver**](StorageV1Api.md#patchCSIDriver) | **PATCH** /apis/storage.k8s.io/v1/csidrivers/{name} | | | [**patchCSINode**](StorageV1Api.md#patchCSINode) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name} | | +| [**patchCSINodeStatus**](StorageV1Api.md#patchCSINodeStatus) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name}/status | | | [**patchNamespacedCSIStorageCapacity**](StorageV1Api.md#patchNamespacedCSIStorageCapacity) | **PATCH** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | | | [**patchStorageClass**](StorageV1Api.md#patchStorageClass) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | | | [**patchVolumeAttachment**](StorageV1Api.md#patchVolumeAttachment) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name} | | @@ -39,6 +40,7 @@ All URIs are relative to *http://localhost* | [**patchVolumeAttributesClass**](StorageV1Api.md#patchVolumeAttributesClass) | **PATCH** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | | | [**readCSIDriver**](StorageV1Api.md#readCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers/{name} | | | [**readCSINode**](StorageV1Api.md#readCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes/{name} | | +| [**readCSINodeStatus**](StorageV1Api.md#readCSINodeStatus) | **GET** /apis/storage.k8s.io/v1/csinodes/{name}/status | | | [**readNamespacedCSIStorageCapacity**](StorageV1Api.md#readNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | | | [**readStorageClass**](StorageV1Api.md#readStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | | | [**readVolumeAttachment**](StorageV1Api.md#readVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name} | | @@ -46,6 +48,7 @@ All URIs are relative to *http://localhost* | [**readVolumeAttributesClass**](StorageV1Api.md#readVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | | | [**replaceCSIDriver**](StorageV1Api.md#replaceCSIDriver) | **PUT** /apis/storage.k8s.io/v1/csidrivers/{name} | | | [**replaceCSINode**](StorageV1Api.md#replaceCSINode) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name} | | +| [**replaceCSINodeStatus**](StorageV1Api.md#replaceCSINodeStatus) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name}/status | | | [**replaceNamespacedCSIStorageCapacity**](StorageV1Api.md#replaceNamespacedCSIStorageCapacity) | **PUT** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | | | [**replaceStorageClass**](StorageV1Api.md#replaceStorageClass) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | | | [**replaceVolumeAttachment**](StorageV1Api.md#replaceVolumeAttachment) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name} | | @@ -2811,6 +2814,95 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | + +# **patchCSINodeStatus** +> V1CSINode patchCSINodeStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified CSINode + +### 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.StorageV1Api; + +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"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the CSINode + 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 { + V1CSINode result = apiInstance.patchCSINodeStatus(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 StorageV1Api#patchCSINodeStatus"); + 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 CSINode | | +| **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 + +[**V1CSINode**](V1CSINode.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 | - | + # **patchNamespacedCSIStorageCapacity** > V1CSIStorageCapacity patchNamespacedCSIStorageCapacity(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); @@ -3406,6 +3498,80 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | + +# **readCSINodeStatus** +> V1CSINode readCSINodeStatus(name).pretty(pretty).execute(); + + + +read status of the specified CSINode + +### 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.StorageV1Api; + +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"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the CSINode + 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 { + V1CSINode result = apiInstance.readCSINodeStatus(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#readCSINodeStatus"); + 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 CSINode | | +| **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 + +[**V1CSINode**](V1CSINode.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 | - | + # **readNamespacedCSIStorageCapacity** > V1CSIStorageCapacity readNamespacedCSIStorageCapacity(name, namespace).pretty(pretty).execute(); @@ -3950,6 +4116,92 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | + +# **replaceCSINodeStatus** +> V1CSINode replaceCSINodeStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace status of the specified CSINode + +### 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.StorageV1Api; + +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"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the CSINode + V1CSINode body = new V1CSINode(); // V1CSINode | + 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 { + V1CSINode result = apiInstance.replaceCSINodeStatus(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#replaceCSINodeStatus"); + 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 CSINode | | +| **body** | [**V1CSINode**](V1CSINode.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 + +[**V1CSINode**](V1CSINode.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 | - | + # **replaceNamespacedCSIStorageCapacity** > V1CSIStorageCapacity replaceNamespacedCSIStorageCapacity(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); diff --git a/kubernetes/docs/StorageV1beta1Api.md b/kubernetes/docs/StorageV1beta1Api.md deleted file mode 100644 index 6902a51c25..0000000000 --- a/kubernetes/docs/StorageV1beta1Api.md +++ /dev/null @@ -1,732 +0,0 @@ -# StorageV1beta1Api - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**createVolumeAttributesClass**](StorageV1beta1Api.md#createVolumeAttributesClass) | **POST** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | | -| [**deleteCollectionVolumeAttributesClass**](StorageV1beta1Api.md#deleteCollectionVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | | -| [**deleteVolumeAttributesClass**](StorageV1beta1Api.md#deleteVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | | -| [**getAPIResources**](StorageV1beta1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1beta1/ | | -| [**listVolumeAttributesClass**](StorageV1beta1Api.md#listVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | | -| [**patchVolumeAttributesClass**](StorageV1beta1Api.md#patchVolumeAttributesClass) | **PATCH** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | | -| [**readVolumeAttributesClass**](StorageV1beta1Api.md#readVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | | -| [**replaceVolumeAttributesClass**](StorageV1beta1Api.md#replaceVolumeAttributesClass) | **PUT** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | | - - - -# **createVolumeAttributesClass** -> V1beta1VolumeAttributesClass createVolumeAttributesClass(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -create a VolumeAttributesClass - -### 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.StorageV1beta1Api; - -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"); - - StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); - V1beta1VolumeAttributesClass body = new V1beta1VolumeAttributesClass(); // V1beta1VolumeAttributesClass | - 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 { - V1beta1VolumeAttributesClass result = apiInstance.createVolumeAttributesClass(body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#createVolumeAttributesClass"); - 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** | [**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.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 - -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.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 | - | - - -# **deleteCollectionVolumeAttributesClass** -> V1Status deleteCollectionVolumeAttributesClass().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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -delete collection of VolumeAttributesClass - -### 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.StorageV1beta1Api; - -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"); - - StorageV1beta1Api apiInstance = new StorageV1beta1Api(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. - String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - 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.deleteCollectionVolumeAttributesClass() - .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) - .shardSelector(shardSelector) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#deleteCollectionVolumeAttributesClass"); - 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] | -| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 | - | - - -# **deleteVolumeAttributesClass** -> V1beta1VolumeAttributesClass deleteVolumeAttributesClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -delete a VolumeAttributesClass - -### 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.StorageV1beta1Api; - -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"); - - StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the VolumeAttributesClass - 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 { - V1beta1VolumeAttributesClass result = apiInstance.deleteVolumeAttributesClass(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 StorageV1beta1Api#deleteVolumeAttributesClass"); - 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 VolumeAttributesClass | | -| **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 - -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.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.StorageV1beta1Api; - -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"); - - StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources() - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#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 | - | - - -# **listVolumeAttributesClass** -> V1beta1VolumeAttributesClassList listVolumeAttributesClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind VolumeAttributesClass - -### 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.StorageV1beta1Api; - -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"); - - StorageV1beta1Api apiInstance = new StorageV1beta1Api(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. - String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - 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 { - V1beta1VolumeAttributesClassList result = apiInstance.listVolumeAttributesClass() - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .shardSelector(shardSelector) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#listVolumeAttributesClass"); - 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] | -| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 - -[**V1beta1VolumeAttributesClassList**](V1beta1VolumeAttributesClassList.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 | - | - - -# **patchVolumeAttributesClass** -> V1beta1VolumeAttributesClass patchVolumeAttributesClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -partially update the specified VolumeAttributesClass - -### 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.StorageV1beta1Api; - -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"); - - StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the VolumeAttributesClass - 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 { - V1beta1VolumeAttributesClass result = apiInstance.patchVolumeAttributesClass(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 StorageV1beta1Api#patchVolumeAttributesClass"); - 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 VolumeAttributesClass | | -| **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 - -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.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 | - | - - -# **readVolumeAttributesClass** -> V1beta1VolumeAttributesClass readVolumeAttributesClass(name).pretty(pretty).execute(); - - - -read the specified VolumeAttributesClass - -### 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.StorageV1beta1Api; - -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"); - - StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the VolumeAttributesClass - 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 { - V1beta1VolumeAttributesClass result = apiInstance.readVolumeAttributesClass(name) - .pretty(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#readVolumeAttributesClass"); - 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 VolumeAttributesClass | | -| **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 - -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.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 | - | - - -# **replaceVolumeAttributesClass** -> V1beta1VolumeAttributesClass replaceVolumeAttributesClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -replace the specified VolumeAttributesClass - -### 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.StorageV1beta1Api; - -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"); - - StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the VolumeAttributesClass - V1beta1VolumeAttributesClass body = new V1beta1VolumeAttributesClass(); // V1beta1VolumeAttributesClass | - 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 { - V1beta1VolumeAttributesClass result = apiInstance.replaceVolumeAttributesClass(name, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#replaceVolumeAttributesClass"); - 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 VolumeAttributesClass | | -| **body** | [**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.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 - -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.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/StoragemigrationApi.md b/kubernetes/docs/StoragemigrationApi.md index 92d8425c93..c7413440b0 100644 --- a/kubernetes/docs/StoragemigrationApi.md +++ b/kubernetes/docs/StoragemigrationApi.md @@ -66,7 +66,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | diff --git a/kubernetes/docs/CertificatesV1alpha1Api.md b/kubernetes/docs/StoragemigrationV1Api.md similarity index 73% rename from kubernetes/docs/CertificatesV1alpha1Api.md rename to kubernetes/docs/StoragemigrationV1Api.md index 61aa4e1af3..206fd0e759 100644 --- a/kubernetes/docs/CertificatesV1alpha1Api.md +++ b/kubernetes/docs/StoragemigrationV1Api.md @@ -1,26 +1,29 @@ -# CertificatesV1alpha1Api +# StoragemigrationV1Api All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createClusterTrustBundle**](CertificatesV1alpha1Api.md#createClusterTrustBundle) | **POST** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | | -| [**deleteClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | | -| [**deleteCollectionClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteCollectionClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | | -| [**getAPIResources**](CertificatesV1alpha1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | | -| [**listClusterTrustBundle**](CertificatesV1alpha1Api.md#listClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | | -| [**patchClusterTrustBundle**](CertificatesV1alpha1Api.md#patchClusterTrustBundle) | **PATCH** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | | -| [**readClusterTrustBundle**](CertificatesV1alpha1Api.md#readClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | | -| [**replaceClusterTrustBundle**](CertificatesV1alpha1Api.md#replaceClusterTrustBundle) | **PUT** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | | +| [**createStorageVersionMigration**](StoragemigrationV1Api.md#createStorageVersionMigration) | **POST** /apis/storagemigration.k8s.io/v1/storageversionmigrations | | +| [**deleteCollectionStorageVersionMigration**](StoragemigrationV1Api.md#deleteCollectionStorageVersionMigration) | **DELETE** /apis/storagemigration.k8s.io/v1/storageversionmigrations | | +| [**deleteStorageVersionMigration**](StoragemigrationV1Api.md#deleteStorageVersionMigration) | **DELETE** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | | +| [**getAPIResources**](StoragemigrationV1Api.md#getAPIResources) | **GET** /apis/storagemigration.k8s.io/v1/ | | +| [**listStorageVersionMigration**](StoragemigrationV1Api.md#listStorageVersionMigration) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations | | +| [**patchStorageVersionMigration**](StoragemigrationV1Api.md#patchStorageVersionMigration) | **PATCH** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | | +| [**patchStorageVersionMigrationStatus**](StoragemigrationV1Api.md#patchStorageVersionMigrationStatus) | **PATCH** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | | +| [**readStorageVersionMigration**](StoragemigrationV1Api.md#readStorageVersionMigration) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | | +| [**readStorageVersionMigrationStatus**](StoragemigrationV1Api.md#readStorageVersionMigrationStatus) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | | +| [**replaceStorageVersionMigration**](StoragemigrationV1Api.md#replaceStorageVersionMigration) | **PUT** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | | +| [**replaceStorageVersionMigrationStatus**](StoragemigrationV1Api.md#replaceStorageVersionMigrationStatus) | **PUT** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | | - -# **createClusterTrustBundle** -> V1alpha1ClusterTrustBundle createClusterTrustBundle(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **createStorageVersionMigration** +> V1StorageVersionMigration createStorageVersionMigration(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -create a ClusterTrustBundle +create a StorageVersionMigration ### Example ```java @@ -30,7 +33,7 @@ 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.CertificatesV1alpha1Api; +import io.kubernetes.client.openapi.apis.StoragemigrationV1Api; public class Example { public static void main(String[] args) { @@ -43,14 +46,14 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); - V1alpha1ClusterTrustBundle body = new V1alpha1ClusterTrustBundle(); // V1alpha1ClusterTrustBundle | + StoragemigrationV1Api apiInstance = new StoragemigrationV1Api(defaultClient); + V1StorageVersionMigration body = new V1StorageVersionMigration(); // V1StorageVersionMigration | 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 { - V1alpha1ClusterTrustBundle result = apiInstance.createClusterTrustBundle(body) + V1StorageVersionMigration result = apiInstance.createStorageVersionMigration(body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -58,7 +61,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#createClusterTrustBundle"); + System.err.println("Exception when calling StoragemigrationV1Api#createStorageVersionMigration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -72,7 +75,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | | +| **body** | [**V1StorageVersionMigration**](V1StorageVersionMigration.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] | @@ -80,7 +83,7 @@ public class Example { ### Return type -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) ### Authorization @@ -99,13 +102,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteClusterTrustBundle** -> V1Status deleteClusterTrustBundle(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteCollectionStorageVersionMigration** +> V1Status deleteCollectionStorageVersionMigration().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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete a ClusterTrustBundle +delete collection of StorageVersionMigration ### Example ```java @@ -115,7 +118,7 @@ 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.CertificatesV1alpha1Api; +import io.kubernetes.client.openapi.apis.StoragemigrationV1Api; public class Example { public static void main(String[] args) { @@ -128,28 +131,45 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ClusterTrustBundle + StoragemigrationV1Api apiInstance = new StoragemigrationV1Api(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. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + 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.deleteClusterTrustBundle(name) + V1Status result = apiInstance.deleteCollectionStorageVersionMigration() .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) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#deleteClusterTrustBundle"); + System.err.println("Exception when calling StoragemigrationV1Api#deleteCollectionStorageVersionMigration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -163,13 +183,21 @@ public class Example { | 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] | +| **_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] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 @@ -189,16 +217,15 @@ public class Example { | 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).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteStorageVersionMigration** +> V1Status deleteStorageVersionMigration(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete collection of ClusterTrustBundle +delete a StorageVersionMigration ### Example ```java @@ -208,7 +235,7 @@ 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.CertificatesV1alpha1Api; +import io.kubernetes.client.openapi.apis.StoragemigrationV1Api; public class Example { public static void main(String[] args) { @@ -221,45 +248,28 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); + StoragemigrationV1Api apiInstance = new StoragemigrationV1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration 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. - String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - 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() + V1Status result = apiInstance.deleteStorageVersionMigration(name) .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) - .shardSelector(shardSelector) - .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#deleteCollectionClusterTrustBundle"); + System.err.println("Exception when calling StoragemigrationV1Api#deleteStorageVersionMigration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -273,21 +283,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the StorageVersionMigration | | | **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] | -| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [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 @@ -307,6 +309,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **202** | Accepted | - | | **401** | Unauthorized | - | @@ -325,7 +328,7 @@ 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.CertificatesV1alpha1Api; +import io.kubernetes.client.openapi.apis.StoragemigrationV1Api; public class Example { public static void main(String[] args) { @@ -338,13 +341,13 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); + StoragemigrationV1Api apiInstance = new StoragemigrationV1Api(defaultClient); try { V1APIResourceList result = apiInstance.getAPIResources() .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#getAPIResources"); + System.err.println("Exception when calling StoragemigrationV1Api#getAPIResources"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -376,13 +379,13 @@ This endpoint does not need any parameter. | **200** | OK | - | | **401** | Unauthorized | - | - -# **listClusterTrustBundle** -> V1alpha1ClusterTrustBundleList listClusterTrustBundle().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listStorageVersionMigration** +> V1StorageVersionMigrationList listStorageVersionMigration().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind ClusterTrustBundle +list or watch objects of kind StorageVersionMigration ### Example ```java @@ -392,7 +395,7 @@ 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.CertificatesV1alpha1Api; +import io.kubernetes.client.openapi.apis.StoragemigrationV1Api; public class Example { public static void main(String[] args) { @@ -405,7 +408,7 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); + StoragemigrationV1Api apiInstance = new StoragemigrationV1Api(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. @@ -419,7 +422,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 { - V1alpha1ClusterTrustBundleList result = apiInstance.listClusterTrustBundle() + V1StorageVersionMigrationList result = apiInstance.listStorageVersionMigration() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -435,7 +438,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#listClusterTrustBundle"); + System.err.println("Exception when calling StoragemigrationV1Api#listStorageVersionMigration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -464,7 +467,7 @@ public class Example { ### Return type -[**V1alpha1ClusterTrustBundleList**](V1alpha1ClusterTrustBundleList.md) +[**V1StorageVersionMigrationList**](V1StorageVersionMigrationList.md) ### Authorization @@ -481,13 +484,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **patchClusterTrustBundle** -> V1alpha1ClusterTrustBundle patchClusterTrustBundle(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchStorageVersionMigration** +> V1StorageVersionMigration patchStorageVersionMigration(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ClusterTrustBundle +partially update the specified StorageVersionMigration ### Example ```java @@ -497,7 +500,7 @@ 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.CertificatesV1alpha1Api; +import io.kubernetes.client.openapi.apis.StoragemigrationV1Api; public class Example { public static void main(String[] args) { @@ -510,8 +513,8 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ClusterTrustBundle + StoragemigrationV1Api apiInstance = new StoragemigrationV1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration 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 @@ -519,7 +522,7 @@ public class Example { 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 { - V1alpha1ClusterTrustBundle result = apiInstance.patchClusterTrustBundle(name, body) + V1StorageVersionMigration result = apiInstance.patchStorageVersionMigration(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -528,7 +531,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#patchClusterTrustBundle"); + System.err.println("Exception when calling StoragemigrationV1Api#patchStorageVersionMigration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -542,7 +545,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ClusterTrustBundle | | +| **name** | **String**| name of the StorageVersionMigration | | | **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] | @@ -552,7 +555,7 @@ public class Example { ### Return type -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) ### Authorization @@ -570,13 +573,176 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **readClusterTrustBundle** -> V1alpha1ClusterTrustBundle readClusterTrustBundle(name).pretty(pretty).execute(); + +# **patchStorageVersionMigrationStatus** +> V1StorageVersionMigration patchStorageVersionMigrationStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified StorageVersionMigration + +### 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.StoragemigrationV1Api; + +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"); + + StoragemigrationV1Api apiInstance = new StoragemigrationV1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration + 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 { + V1StorageVersionMigration result = apiInstance.patchStorageVersionMigrationStatus(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 StoragemigrationV1Api#patchStorageVersionMigrationStatus"); + 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 StorageVersionMigration | | +| **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 + +[**V1StorageVersionMigration**](V1StorageVersionMigration.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 | - | + + +# **readStorageVersionMigration** +> V1StorageVersionMigration readStorageVersionMigration(name).pretty(pretty).execute(); + + + +read the specified StorageVersionMigration + +### 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.StoragemigrationV1Api; + +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"); + + StoragemigrationV1Api apiInstance = new StoragemigrationV1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration + 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 { + V1StorageVersionMigration result = apiInstance.readStorageVersionMigration(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1Api#readStorageVersionMigration"); + 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 StorageVersionMigration | | +| **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 + +[**V1StorageVersionMigration**](V1StorageVersionMigration.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 | - | + + +# **readStorageVersionMigrationStatus** +> V1StorageVersionMigration readStorageVersionMigrationStatus(name).pretty(pretty).execute(); -read the specified ClusterTrustBundle +read status of the specified StorageVersionMigration ### Example ```java @@ -586,7 +752,7 @@ 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.CertificatesV1alpha1Api; +import io.kubernetes.client.openapi.apis.StoragemigrationV1Api; public class Example { public static void main(String[] args) { @@ -599,16 +765,16 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ClusterTrustBundle + StoragemigrationV1Api apiInstance = new StoragemigrationV1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration 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 { - V1alpha1ClusterTrustBundle result = apiInstance.readClusterTrustBundle(name) + V1StorageVersionMigration result = apiInstance.readStorageVersionMigrationStatus(name) .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#readClusterTrustBundle"); + System.err.println("Exception when calling StoragemigrationV1Api#readStorageVersionMigrationStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -622,12 +788,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ClusterTrustBundle | | +| **name** | **String**| name of the StorageVersionMigration | | | **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 -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) ### Authorization @@ -644,13 +810,99 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **replaceClusterTrustBundle** -> V1alpha1ClusterTrustBundle replaceClusterTrustBundle(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceStorageVersionMigration** +> V1StorageVersionMigration replaceStorageVersionMigration(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified StorageVersionMigration + +### 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.StoragemigrationV1Api; + +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"); + + StoragemigrationV1Api apiInstance = new StoragemigrationV1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration + V1StorageVersionMigration body = new V1StorageVersionMigration(); // V1StorageVersionMigration | + 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 { + V1StorageVersionMigration result = apiInstance.replaceStorageVersionMigration(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1Api#replaceStorageVersionMigration"); + 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 StorageVersionMigration | | +| **body** | [**V1StorageVersionMigration**](V1StorageVersionMigration.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 + +[**V1StorageVersionMigration**](V1StorageVersionMigration.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 | - | + + +# **replaceStorageVersionMigrationStatus** +> V1StorageVersionMigration replaceStorageVersionMigrationStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified ClusterTrustBundle +replace status of the specified StorageVersionMigration ### Example ```java @@ -660,7 +912,7 @@ 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.CertificatesV1alpha1Api; +import io.kubernetes.client.openapi.apis.StoragemigrationV1Api; public class Example { public static void main(String[] args) { @@ -673,15 +925,15 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ClusterTrustBundle - V1alpha1ClusterTrustBundle body = new V1alpha1ClusterTrustBundle(); // V1alpha1ClusterTrustBundle | + StoragemigrationV1Api apiInstance = new StoragemigrationV1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration + V1StorageVersionMigration body = new V1StorageVersionMigration(); // V1StorageVersionMigration | 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 { - V1alpha1ClusterTrustBundle result = apiInstance.replaceClusterTrustBundle(name, body) + V1StorageVersionMigration result = apiInstance.replaceStorageVersionMigrationStatus(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -689,7 +941,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#replaceClusterTrustBundle"); + System.err.println("Exception when calling StoragemigrationV1Api#replaceStorageVersionMigrationStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -703,8 +955,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ClusterTrustBundle | | -| **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | | +| **name** | **String**| name of the StorageVersionMigration | | +| **body** | [**V1StorageVersionMigration**](V1StorageVersionMigration.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] | @@ -712,7 +964,7 @@ public class Example { ### Return type -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) ### Authorization diff --git a/kubernetes/docs/V1AggregationRule.md b/kubernetes/docs/V1AggregationRule.md index 19c9a8840c..5fbad8825e 100644 --- a/kubernetes/docs/V1AggregationRule.md +++ b/kubernetes/docs/V1AggregationRule.md @@ -8,7 +8,7 @@ AggregationRule describes how to locate ClusterRoles to aggregate into the Clust | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**clusterRoleSelectors** | [**List<V1LabelSelector>**](V1LabelSelector.md) | 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 | [optional] | +|**clusterRoleSelectors** | [**List<V1LabelSelector>**](V1LabelSelector.md) | 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 | [optional] | diff --git a/kubernetes/docs/V1BoundObjectReference.md b/kubernetes/docs/V1BoundObjectReference.md index 855d758c0f..1e88a3cd1c 100644 --- a/kubernetes/docs/V1BoundObjectReference.md +++ b/kubernetes/docs/V1BoundObjectReference.md @@ -9,7 +9,7 @@ BoundObjectReference is a reference to an object that a token is bound to. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**apiVersion** | **String** | apiVersion is API version of the referent. | [optional] | -|**kind** | **String** | kind of the referent. Valid kinds are 'Pod' and 'Secret'. | [optional] | +|**kind** | **String** | kind of the referent. Valid kinds are 'Pod', 'Secret', 'Node', 'ValidatingWebhookConfiguration', and 'MutatingWebhookConfiguration'. | [optional] | |**name** | **String** | name of the referent. | [optional] | |**uid** | **String** | uid of the referent. | [optional] | diff --git a/kubernetes/docs/V1CELDeviceSelector.md b/kubernetes/docs/V1CELDeviceSelector.md index 999063cfb9..02622ec41e 100644 --- a/kubernetes/docs/V1CELDeviceSelector.md +++ b/kubernetes/docs/V1CELDeviceSelector.md @@ -8,7 +8,7 @@ CELDeviceSelector contains a CEL expression for selecting a device. | 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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. | | +|**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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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. Common errors: - \"no such key\": Use optional chaining (.? followed by orValue()) or guarding the check with has() for optional fields. See CEL Optional Types for details: https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes For more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/ 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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/V1CSIDriverSpec.md b/kubernetes/docs/V1CSIDriverSpec.md index 283e937836..1dff7ab36c 100644 --- a/kubernetes/docs/V1CSIDriverSpec.md +++ b/kubernetes/docs/V1CSIDriverSpec.md @@ -12,7 +12,7 @@ CSIDriverSpec is the specification of a CSIDriver. |**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 feature 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] | -|**preventPodSchedulingIfMissing** | **Boolean** | PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver on the node is missing. Enabling this option will prevent the scheduler (or any other component which embeds default scheduler such as cluster-autoscaler) from scheduling pods to nodes where CSI driver is not installed. For components(such as cluster-autoscaler) that embed the scheduler and run pod placement simulations using scheduler plugins, they MUST be aware of CSI driver registration information via CSINode object. They must create simulated CSINode objects in addition to Node objects during scheduling simulation, otherwise if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any newly created node may be rejected by the scheduler because of missing CSI driver information from the node. This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\". | [optional] | +|**preventPodSchedulingIfMissing** | **Boolean** | preventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver on the node is missing. Enabling this option will prevent the scheduler (or any other component which embeds default scheduler such as cluster-autoscaler) from scheduling pods to nodes where CSI driver is not installed. For components(such as cluster-autoscaler) that embed the scheduler and run pod placement simulations using scheduler plugins, they MUST be aware of CSI driver registration information via CSINode object. They must create simulated CSINode objects in addition to Node objects during scheduling simulation, otherwise if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any newly created node may be rejected by the scheduler because of missing CSI driver information from the node. This is a beta feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\". | [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] | |**serviceAccountTokenInSecrets** | **Boolean** | serviceAccountTokenInSecrets is an opt-in for CSI drivers to indicate that service account tokens should be passed via the Secrets field in NodePublishVolumeRequest instead of the VolumeContext field. The CSI specification provides a dedicated Secrets field for sensitive information like tokens, which is the appropriate mechanism for handling credentials. This addresses security concerns where sensitive tokens were being logged as part of volume context. When \"true\", kubelet will pass the tokens only in the Secrets field with the key \"csi.storage.k8s.io/serviceAccount.tokens\". The CSI driver must be updated to read tokens from the Secrets field instead of VolumeContext. When \"false\" or not set, kubelet will pass the tokens in VolumeContext with the key \"csi.storage.k8s.io/serviceAccount.tokens\" (existing behavior). This maintains backward compatibility with existing CSI drivers. This field can only be set when TokenRequests is configured. The API server will reject CSIDriver specs that set this field without TokenRequests. Default behavior if unset is to pass tokens in the VolumeContext field. | [optional] | diff --git a/kubernetes/docs/V1CSINode.md b/kubernetes/docs/V1CSINode.md index 9b777d83c8..a5820ec760 100644 --- a/kubernetes/docs/V1CSINode.md +++ b/kubernetes/docs/V1CSINode.md @@ -12,6 +12,7 @@ CSINode holds information about all CSI drivers installed on a node. CSI drivers |**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** | [**V1CSINodeSpec**](V1CSINodeSpec.md) | | | +|**status** | [**V1CSINodeStatus**](V1CSINodeStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1CSINodeStatus.md b/kubernetes/docs/V1CSINodeStatus.md new file mode 100644 index 0000000000..7fd88444e2 --- /dev/null +++ b/kubernetes/docs/V1CSINodeStatus.md @@ -0,0 +1,14 @@ + + +# V1CSINodeStatus + +CSINodeStatus contains health and status information for storage on a node. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**storageHealth** | [**List<V1StorageHealth>**](V1StorageHealth.md) | storageHealth contains backend health reports for CSI drivers registered on the node. | [optional] | + + + diff --git a/kubernetes/docs/V1CapacityRequestPolicyRange.md b/kubernetes/docs/V1CapacityRequestPolicyRange.md index a2a3e4bad5..c7f73fc303 100644 --- a/kubernetes/docs/V1CapacityRequestPolicyRange.md +++ b/kubernetes/docs/V1CapacityRequestPolicyRange.md @@ -2,7 +2,7 @@ # V1CapacityRequestPolicyRange -CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. +CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. ## Properties diff --git a/kubernetes/docs/V1ClusterRole.md b/kubernetes/docs/V1ClusterRole.md index 1843271ebc..fcf8f8853b 100644 --- a/kubernetes/docs/V1ClusterRole.md +++ b/kubernetes/docs/V1ClusterRole.md @@ -12,7 +12,7 @@ ClusterRole is a cluster level, logical grouping of PolicyRules that can be refe |**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] | -|**rules** | [**List<V1PolicyRule>**](V1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | [optional] | +|**rules** | [**List<V1PolicyRule>**](V1PolicyRule.md) | rules holds all the PolicyRules for this ClusterRole | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ClusterRoleBinding.md b/kubernetes/docs/V1ClusterRoleBinding.md index f33366ea8d..41dd880973 100644 --- a/kubernetes/docs/V1ClusterRoleBinding.md +++ b/kubernetes/docs/V1ClusterRoleBinding.md @@ -12,7 +12,7 @@ ClusterRoleBinding references a ClusterRole, but not contain it. It can referen |**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] | |**roleRef** | [**V1RoleRef**](V1RoleRef.md) | | | -|**subjects** | [**List<RbacV1Subject>**](RbacV1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] | +|**subjects** | [**List<RbacV1Subject>**](RbacV1Subject.md) | subjects holds references to the objects the role applies to. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1ClusterTrustBundle.md b/kubernetes/docs/V1ClusterTrustBundle.md similarity index 74% rename from kubernetes/docs/V1alpha1ClusterTrustBundle.md rename to kubernetes/docs/V1ClusterTrustBundle.md index 1f1f632e55..010958dc43 100644 --- a/kubernetes/docs/V1alpha1ClusterTrustBundle.md +++ b/kubernetes/docs/V1ClusterTrustBundle.md @@ -1,8 +1,8 @@ -# V1alpha1ClusterTrustBundle +# V1ClusterTrustBundle -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. +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 signer, 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 @@ -11,7 +11,7 @@ ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root c |**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** | [**V1alpha1ClusterTrustBundleSpec**](V1alpha1ClusterTrustBundleSpec.md) | | | +|**spec** | [**V1ClusterTrustBundleSpec**](V1ClusterTrustBundleSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1ClusterTrustBundleList.md b/kubernetes/docs/V1ClusterTrustBundleList.md similarity index 84% rename from kubernetes/docs/V1alpha1ClusterTrustBundleList.md rename to kubernetes/docs/V1ClusterTrustBundleList.md index 363253d074..5ce109e15c 100644 --- a/kubernetes/docs/V1alpha1ClusterTrustBundleList.md +++ b/kubernetes/docs/V1ClusterTrustBundleList.md @@ -1,6 +1,6 @@ -# V1alpha1ClusterTrustBundleList +# V1ClusterTrustBundleList ClusterTrustBundleList is a collection of ClusterTrustBundle objects @@ -9,7 +9,7 @@ ClusterTrustBundleList is a collection of ClusterTrustBundle objects | 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<V1alpha1ClusterTrustBundle>**](V1alpha1ClusterTrustBundle.md) | items is a collection of ClusterTrustBundle objects | | +|**items** | [**List<V1ClusterTrustBundle>**](V1ClusterTrustBundle.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] | diff --git a/kubernetes/docs/V1ClusterTrustBundleProjection.md b/kubernetes/docs/V1ClusterTrustBundleProjection.md index 30df0f808c..4f16158355 100644 --- a/kubernetes/docs/V1ClusterTrustBundleProjection.md +++ b/kubernetes/docs/V1ClusterTrustBundleProjection.md @@ -13,6 +13,7 @@ ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle |**optional** | **Boolean** | 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. | [optional] | |**path** | **String** | Relative path from the volume root to write the bundle. | | |**signerName** | **String** | Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. | [optional] | +|**user** | **Long** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] | diff --git a/kubernetes/docs/V1alpha1ClusterTrustBundleSpec.md b/kubernetes/docs/V1ClusterTrustBundleSpec.md similarity index 98% rename from kubernetes/docs/V1alpha1ClusterTrustBundleSpec.md rename to kubernetes/docs/V1ClusterTrustBundleSpec.md index 4a28975ef5..7ff3e75ac8 100644 --- a/kubernetes/docs/V1alpha1ClusterTrustBundleSpec.md +++ b/kubernetes/docs/V1ClusterTrustBundleSpec.md @@ -1,6 +1,6 @@ -# V1alpha1ClusterTrustBundleSpec +# V1ClusterTrustBundleSpec ClusterTrustBundleSpec contains the signer and trust anchors. diff --git a/kubernetes/docs/V1ConfigMap.md b/kubernetes/docs/V1ConfigMap.md index b6ad750cb6..5f7b011fb3 100644 --- a/kubernetes/docs/V1ConfigMap.md +++ b/kubernetes/docs/V1ConfigMap.md @@ -9,7 +9,7 @@ ConfigMap holds configuration data for pods to consume. | 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] | -|**binaryData** | **Map<String, byte[]>** | 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. | [optional] | +|**binaryData** | **Map<String, byte[]>** | 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. Note: BinaryData keys are not currently propagated to container env vars via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. | [optional] | |**data** | **Map<String, String>** | 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. | [optional] | |**immutable** | **Boolean** | 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. | [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] | diff --git a/kubernetes/docs/V1ConfigMapEnvSource.md b/kubernetes/docs/V1ConfigMapEnvSource.md index 77658d5f55..8330025cb4 100644 --- a/kubernetes/docs/V1ConfigMapEnvSource.md +++ b/kubernetes/docs/V1ConfigMapEnvSource.md @@ -2,7 +2,7 @@ # V1ConfigMapEnvSource -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. +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. Keys in the BinaryData field are not currently propagated to container env vars. ## Properties diff --git a/kubernetes/docs/V1ConfigMapKeySelector.md b/kubernetes/docs/V1ConfigMapKeySelector.md index 3901a37bf4..a0a56784f8 100644 --- a/kubernetes/docs/V1ConfigMapKeySelector.md +++ b/kubernetes/docs/V1ConfigMapKeySelector.md @@ -8,7 +8,7 @@ Selects a key from a ConfigMap. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**key** | **String** | The key to select. | | +|**key** | **String** | The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars. | | |**name** | **String** | 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 | [optional] | |**optional** | **Boolean** | Specify whether the ConfigMap or its key must be defined | [optional] | diff --git a/kubernetes/docs/V1ConfigMapVolumeSource.md b/kubernetes/docs/V1ConfigMapVolumeSource.md index 2b6341b76f..631ebc996c 100644 --- a/kubernetes/docs/V1ConfigMapVolumeSource.md +++ b/kubernetes/docs/V1ConfigMapVolumeSource.md @@ -9,6 +9,7 @@ Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data f | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**defaultMode** | **Integer** | 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. | [optional] | +|**defaultUser** | **Long** | defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] | |**items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | 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 '..'. | [optional] | |**name** | **String** | 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 | [optional] | |**optional** | **Boolean** | optional specify whether the ConfigMap or its keys must be defined | [optional] | diff --git a/kubernetes/docs/V1ControllerRevision.md b/kubernetes/docs/V1ControllerRevision.md index 7b1963469c..816db9ab0e 100644 --- a/kubernetes/docs/V1ControllerRevision.md +++ b/kubernetes/docs/V1ControllerRevision.md @@ -9,10 +9,10 @@ ControllerRevision implements an immutable snapshot of state data. Clients are r | 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] | -|**data** | **Object** | Data is the serialized representation of the state. | [optional] | +|**data** | **Object** | Data is the serialized representation of the state. | | |**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] | -|**revision** | **Long** | Revision indicates the revision of the state represented by Data. | | +|**revision** | **Long** | Revision indicates the revision of the state represented by Data. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1DaemonSet.md b/kubernetes/docs/V1DaemonSet.md index fc831384d6..49499c5ebc 100644 --- a/kubernetes/docs/V1DaemonSet.md +++ b/kubernetes/docs/V1DaemonSet.md @@ -11,7 +11,7 @@ DaemonSet represents the configuration of a daemon set. |**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** | [**V1DaemonSetSpec**](V1DaemonSetSpec.md) | | [optional] | +|**spec** | [**V1DaemonSetSpec**](V1DaemonSetSpec.md) | | | |**status** | [**V1DaemonSetStatus**](V1DaemonSetStatus.md) | | [optional] | diff --git a/kubernetes/docs/V1DaemonSetCondition.md b/kubernetes/docs/V1DaemonSetCondition.md index 1bd0c06c97..a825c5e25d 100644 --- a/kubernetes/docs/V1DaemonSetCondition.md +++ b/kubernetes/docs/V1DaemonSetCondition.md @@ -11,8 +11,8 @@ DaemonSetCondition describes the state of a DaemonSet at a certain point. |**lastTransitionTime** | **OffsetDateTime** | Last time the condition transitioned from one status to another. | [optional] | |**message** | **String** | A human readable message indicating details about the transition. | [optional] | |**reason** | **String** | The reason for the condition's last transition. | [optional] | -|**status** | **String** | Status of the condition, one of True, False, Unknown. | | -|**type** | **String** | Type of DaemonSet condition. | | +|**status** | **String** | Status of the condition, one of True, False, Unknown. | [optional] | +|**type** | **String** | Type of DaemonSet condition. | [optional] | diff --git a/kubernetes/docs/V1Deployment.md b/kubernetes/docs/V1Deployment.md index 0459f4f078..1e65e04fd4 100644 --- a/kubernetes/docs/V1Deployment.md +++ b/kubernetes/docs/V1Deployment.md @@ -11,7 +11,7 @@ Deployment enables declarative updates for Pods and ReplicaSets. |**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** | [**V1DeploymentSpec**](V1DeploymentSpec.md) | | [optional] | +|**spec** | [**V1DeploymentSpec**](V1DeploymentSpec.md) | | | |**status** | [**V1DeploymentStatus**](V1DeploymentStatus.md) | | [optional] | diff --git a/kubernetes/docs/V1DeploymentCondition.md b/kubernetes/docs/V1DeploymentCondition.md index f661103a0b..00099e9d73 100644 --- a/kubernetes/docs/V1DeploymentCondition.md +++ b/kubernetes/docs/V1DeploymentCondition.md @@ -12,8 +12,8 @@ DeploymentCondition describes the state of a deployment at a certain point. |**lastUpdateTime** | **OffsetDateTime** | The last time this condition was updated. | [optional] | |**message** | **String** | A human readable message indicating details about the transition. | [optional] | |**reason** | **String** | The reason for the condition's last transition. | [optional] | -|**status** | **String** | Status of the condition, one of True, False, Unknown. | | -|**type** | **String** | Type of deployment condition. | | +|**status** | **String** | Status of the condition, one of True, False, Unknown. | [optional] | +|**type** | **String** | Type of deployment condition. | [optional] | diff --git a/kubernetes/docs/V1Device.md b/kubernetes/docs/V1Device.md index e5f959fdba..988fd83bcd 100644 --- a/kubernetes/docs/V1Device.md +++ b/kubernetes/docs/V1Device.md @@ -17,7 +17,7 @@ Device represents one individual hardware instance that can be selected based on |**capacity** | [**Map<String, V1DeviceCapacity>**](V1DeviceCapacity.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<V1DeviceCounterConsumption>**](V1DeviceCounterConsumption.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 maximum number of device counter consumptions per device is 2. | [optional] | |**name** | **String** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | | -|**nodeAllocatableResourceMappings** | [**Map<String, V1NodeAllocatableResourceMapping>**](V1NodeAllocatableResourceMapping.md) | NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. | [optional] | +|**nodeAllocatableResources** | [**Map<String, V1NodeAllocatableResource>**](V1NodeAllocatableResource.md) | NodeAllocatableResources defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. | [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<V1DeviceTaint>**](V1DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1DeviceClass.md b/kubernetes/docs/V1DeviceClass.md index c1d59c31e4..6069c7ec92 100644 --- a/kubernetes/docs/V1DeviceClass.md +++ b/kubernetes/docs/V1DeviceClass.md @@ -11,7 +11,7 @@ DeviceClass is a vendor- or admin-provided resource that contains device configu |**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** | [**V1DeviceClassSpec**](V1DeviceClassSpec.md) | | | +|**spec** | [**V1DeviceClassSpec**](V1DeviceClassSpec.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1DeviceClassSpec.md b/kubernetes/docs/V1DeviceClassSpec.md index 3d577f6128..fba04d0ebc 100644 --- a/kubernetes/docs/V1DeviceClassSpec.md +++ b/kubernetes/docs/V1DeviceClassSpec.md @@ -9,7 +9,7 @@ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and h | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**config** | [**List<V1DeviceClassConfiguration>**](V1DeviceClassConfiguration.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] | -|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field. | [optional] | +|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. | [optional] | |**selectors** | [**List<V1DeviceSelector>**](V1DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] | diff --git a/kubernetes/docs/V1DeviceCounterConsumption.md b/kubernetes/docs/V1DeviceCounterConsumption.md index caf72e2898..41b1801060 100644 --- a/kubernetes/docs/V1DeviceCounterConsumption.md +++ b/kubernetes/docs/V1DeviceCounterConsumption.md @@ -8,6 +8,7 @@ DeviceCounterConsumption defines a set of counters that a device will consume fr | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**compatibilityGroups** | **List<String>** | CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique. | [optional] | |**counterSet** | **String** | CounterSet is the name of the set from which the counters defined will be consumed. | | |**counters** | [**Map<String, V1Counter>**](V1Counter.md) | Counters defines the counters that will be consumed by the device. The maximum number of counters is 32. | | diff --git a/kubernetes/docs/V1DeviceDerivedAttribute.md b/kubernetes/docs/V1DeviceDerivedAttribute.md new file mode 100644 index 0000000000..eb89768a12 --- /dev/null +++ b/kubernetes/docs/V1DeviceDerivedAttribute.md @@ -0,0 +1,15 @@ + + +# V1DeviceDerivedAttribute + +DeviceDerivedAttribute defines a derived attribute computed via CEL. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expression** | **String** | Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. | | +|**name** | **String** | Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint. | | + + + diff --git a/kubernetes/docs/V1DeviceRequestAllocationResult.md b/kubernetes/docs/V1DeviceRequestAllocationResult.md index a3aa8cd0fe..9df2699d50 100644 --- a/kubernetes/docs/V1DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1DeviceRequestAllocationResult.md @@ -17,6 +17,7 @@ DeviceRequestAllocationResult contains the allocation result for one request. |**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. | | |**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. | [optional] | +|**skipNodeOperations** | **List<String>** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated. | [optional] | |**tolerations** | [**List<V1DeviceToleration>**](V1DeviceToleration.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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1DeviceSubRequest.md b/kubernetes/docs/V1DeviceSubRequest.md index 4c4dcc847a..2a9eecb03e 100644 --- a/kubernetes/docs/V1DeviceSubRequest.md +++ b/kubernetes/docs/V1DeviceSubRequest.md @@ -11,6 +11,7 @@ DeviceSubRequest describes a request for device provided in the claim.spec.devic |**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] | |**capacity** | [**V1CapacityRequirements**](V1CapacityRequirements.md) | | [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] | +|**derivedAttributes** | [**List<V1DeviceDerivedAttribute>**](V1DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [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<V1DeviceSelector>**](V1DeviceSelector.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] | diff --git a/kubernetes/docs/V1beta1ServiceCIDR.md b/kubernetes/docs/V1DeviceTaintRule.md similarity index 71% rename from kubernetes/docs/V1beta1ServiceCIDR.md rename to kubernetes/docs/V1DeviceTaintRule.md index 66fd83378f..b4ffa58eaf 100644 --- a/kubernetes/docs/V1beta1ServiceCIDR.md +++ b/kubernetes/docs/V1DeviceTaintRule.md @@ -1,8 +1,8 @@ -# V1beta1ServiceCIDR +# V1DeviceTaintRule -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. +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 @@ -11,8 +11,8 @@ ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/ |**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** | [**V1beta1ServiceCIDRSpec**](V1beta1ServiceCIDRSpec.md) | | [optional] | -|**status** | [**V1beta1ServiceCIDRStatus**](V1beta1ServiceCIDRStatus.md) | | [optional] | +|**spec** | [**V1DeviceTaintRuleSpec**](V1DeviceTaintRuleSpec.md) | | | +|**status** | [**V1DeviceTaintRuleStatus**](V1DeviceTaintRuleStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1DeviceTaintRuleList.md b/kubernetes/docs/V1DeviceTaintRuleList.md new file mode 100644 index 0000000000..5c8c411718 --- /dev/null +++ b/kubernetes/docs/V1DeviceTaintRuleList.md @@ -0,0 +1,21 @@ + + +# V1DeviceTaintRuleList + +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<V1DeviceTaintRule>**](V1DeviceTaintRule.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/V1DeviceTaintRuleSpec.md b/kubernetes/docs/V1DeviceTaintRuleSpec.md new file mode 100644 index 0000000000..82d001a645 --- /dev/null +++ b/kubernetes/docs/V1DeviceTaintRuleSpec.md @@ -0,0 +1,15 @@ + + +# V1DeviceTaintRuleSpec + +DeviceTaintRuleSpec specifies the selector and one taint. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**deviceSelector** | [**V1DeviceTaintSelector**](V1DeviceTaintSelector.md) | | [optional] | +|**taint** | [**V1DeviceTaint**](V1DeviceTaint.md) | | | + + + diff --git a/kubernetes/docs/V1DeviceTaintRuleStatus.md b/kubernetes/docs/V1DeviceTaintRuleStatus.md new file mode 100644 index 0000000000..5b6a7d4791 --- /dev/null +++ b/kubernetes/docs/V1DeviceTaintRuleStatus.md @@ -0,0 +1,14 @@ + + +# V1DeviceTaintRuleStatus + +DeviceTaintRuleStatus provides information about an on-going pod eviction. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise (includes the effects which don't cause eviction). - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods in a human-readable format, updated periodically, may change For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. Must have 8 or fewer entries. | [optional] | + + + diff --git a/kubernetes/docs/V1DeviceTaintSelector.md b/kubernetes/docs/V1DeviceTaintSelector.md new file mode 100644 index 0000000000..6f589c2dc0 --- /dev/null +++ b/kubernetes/docs/V1DeviceTaintSelector.md @@ -0,0 +1,16 @@ + + +# V1DeviceTaintSelector + +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] | +|**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] | + + + diff --git a/kubernetes/docs/V1DownwardAPIVolumeFile.md b/kubernetes/docs/V1DownwardAPIVolumeFile.md index 199937d3e4..ca4695013c 100644 --- a/kubernetes/docs/V1DownwardAPIVolumeFile.md +++ b/kubernetes/docs/V1DownwardAPIVolumeFile.md @@ -12,6 +12,7 @@ DownwardAPIVolumeFile represents information to create the file containing the p |**mode** | **Integer** | 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. | [optional] | |**path** | **String** | 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 '..' | | |**resourceFieldRef** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] | +|**user** | **Long** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] | diff --git a/kubernetes/docs/V1DownwardAPIVolumeSource.md b/kubernetes/docs/V1DownwardAPIVolumeSource.md index b3b29af2c1..0cb8579d58 100644 --- a/kubernetes/docs/V1DownwardAPIVolumeSource.md +++ b/kubernetes/docs/V1DownwardAPIVolumeSource.md @@ -9,6 +9,7 @@ DownwardAPIVolumeSource represents a volume containing downward API info. Downwa | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**defaultMode** | **Integer** | 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. | [optional] | +|**defaultUser** | **Long** | defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] | |**items** | [**List<V1DownwardAPIVolumeFile>**](V1DownwardAPIVolumeFile.md) | Items is a list of downward API volume file | [optional] | diff --git a/kubernetes/docs/V1EmptyDirVolumeSource.md b/kubernetes/docs/V1EmptyDirVolumeSource.md index 644a1ab733..0ca05fa2c2 100644 --- a/kubernetes/docs/V1EmptyDirVolumeSource.md +++ b/kubernetes/docs/V1EmptyDirVolumeSource.md @@ -9,6 +9,7 @@ Represents an empty directory for a pod. Empty directory volumes support ownersh | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**medium** | **String** | 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 | [optional] | +|**mode** | **Integer** | mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not specified, defaults to 0777. This might be in conflict with other options that affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup permissions will override the mode specified here. This field has no effect on Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be enabled. | [optional] | |**sizeLimit** | **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/V1EvictionResponder.md b/kubernetes/docs/V1EvictionResponder.md new file mode 100644 index 0000000000..3cae3a8f1d --- /dev/null +++ b/kubernetes/docs/V1EvictionResponder.md @@ -0,0 +1,15 @@ + + +# V1EvictionResponder + +EvictionResponder allows you to specify the responder reacting to an Eviction. Responders should observe and communicate through the Eviction Resource API to help with the graceful eviction of a target (e.g. termination of a pod). + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name allows you to identify the responder responding to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required. | | +|**priority** | **Integer** | priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required. | | + + + diff --git a/kubernetes/docs/V1ExactDeviceRequest.md b/kubernetes/docs/V1ExactDeviceRequest.md index e0526e4283..6d7981a706 100644 --- a/kubernetes/docs/V1ExactDeviceRequest.md +++ b/kubernetes/docs/V1ExactDeviceRequest.md @@ -12,6 +12,7 @@ ExactDeviceRequest is a request for one or more identical devices. |**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] | |**capacity** | [**V1CapacityRequirements**](V1CapacityRequirements.md) | | [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] | +|**derivedAttributes** | [**List<V1DeviceDerivedAttribute>**](V1DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [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<V1DeviceSelector>**](V1DeviceSelector.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<V1DeviceToleration>**](V1DeviceToleration.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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1FlowSchema.md b/kubernetes/docs/V1FlowSchema.md index 9d21781002..466a6a4b6f 100644 --- a/kubernetes/docs/V1FlowSchema.md +++ b/kubernetes/docs/V1FlowSchema.md @@ -11,7 +11,7 @@ FlowSchema defines the schema of a group of flows. Note that a flow is made up o |**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** | [**V1FlowSchemaSpec**](V1FlowSchemaSpec.md) | | [optional] | +|**spec** | [**V1FlowSchemaSpec**](V1FlowSchemaSpec.md) | | | |**status** | [**V1FlowSchemaStatus**](V1FlowSchemaStatus.md) | | [optional] | diff --git a/kubernetes/docs/V1FlowSchemaCondition.md b/kubernetes/docs/V1FlowSchemaCondition.md index a9bc1b45b0..2a935c6179 100644 --- a/kubernetes/docs/V1FlowSchemaCondition.md +++ b/kubernetes/docs/V1FlowSchemaCondition.md @@ -11,8 +11,8 @@ FlowSchemaCondition describes conditions for a FlowSchema. |**lastTransitionTime** | **OffsetDateTime** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] | |**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] | |**reason** | **String** | `reason` is a 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. Required. | [optional] | -|**type** | **String** | `type` is the type of the condition. Required. | [optional] | +|**status** | **String** | `status` is the status of the condition. Should be specified and set to one of True, False, Unknown. | [optional] | +|**type** | **String** | `type` is the type of the condition. Required. | | diff --git a/kubernetes/docs/V1GRPCAction.md b/kubernetes/docs/V1GRPCAction.md index 30dea67b29..efe05b24d0 100644 --- a/kubernetes/docs/V1GRPCAction.md +++ b/kubernetes/docs/V1GRPCAction.md @@ -8,6 +8,7 @@ GRPCAction specifies an action involving a GRPC service. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**mode** | **String** | mode specifies the connection mode for the gRPC health probe. Set to \"TLS\" to use TLS without certificate verification. Set to \"Plaintext\" to use a plaintext (insecure) connection explicitly. If not specified, the probe uses a plaintext (insecure) connection. | [optional] | |**port** | **Integer** | Port number of the gRPC service. Number must be in the range 1 to 65535. | | |**service** | **String** | 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. | [optional] | diff --git a/kubernetes/docs/V1GroupVersionKind.md b/kubernetes/docs/V1GroupVersionKind.md index 3a54d68c9f..86c0aa09cd 100644 --- a/kubernetes/docs/V1GroupVersionKind.md +++ b/kubernetes/docs/V1GroupVersionKind.md @@ -8,9 +8,9 @@ GroupVersionKind unambiguously identifies a kind. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**group** | **String** | group is the group part of the GroupVersionKind. | | -|**kind** | **String** | kind is the kind part of the GroupVersionKind. | | -|**version** | **String** | version is the version part of the GroupVersionKind. | | +|**group** | **String** | | [optional] | +|**version** | **String** | | [optional] | +|**kind** | **String** | | [optional] | diff --git a/kubernetes/docs/V1HTTPGetAction.md b/kubernetes/docs/V1HTTPGetAction.md index 59b0fc099a..00c9df4449 100644 --- a/kubernetes/docs/V1HTTPGetAction.md +++ b/kubernetes/docs/V1HTTPGetAction.md @@ -12,6 +12,7 @@ HTTPGetAction describes an action based on HTTP Get requests. |**httpHeaders** | [**List<V1HTTPHeader>**](V1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] | |**path** | **String** | Path to access on the HTTP server. | [optional] | |**port** | **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. | | +|**protocol** | **String** | Protocol selects the wire protocol for the probe connection. Nil defaults to HTTP/1.1. | [optional] | |**scheme** | **String** | Scheme to use for connecting to the host. Defaults to HTTP. | [optional] | diff --git a/kubernetes/docs/V1JobSchedulingConfiguration.md b/kubernetes/docs/V1JobSchedulingConfiguration.md new file mode 100644 index 0000000000..16803f7ff8 --- /dev/null +++ b/kubernetes/docs/V1JobSchedulingConfiguration.md @@ -0,0 +1,17 @@ + + +# V1JobSchedulingConfiguration + +JobSchedulingConfiguration composes the reusable workload-aware scheduling building blocks. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**disruptionMode** | [**V1alpha3WorkloadPodGroupDisruptionMode**](V1alpha3WorkloadPodGroupDisruptionMode.md) | | [optional] | +|**resourceClaims** | [**List<V1alpha3WorkloadPodGroupResourceClaim>**](V1alpha3WorkloadPodGroupResourceClaim.md) | ResourceClaims defines which ResourceClaims may be shared among Pods in the Job. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. At most 4 claims may be set, matching the limit on the resulting PodGroup. This list is immutable after creation: entries may neither be added, removed, nor modified. | [optional] | +|**schedulingConstraints** | [**V1alpha3WorkloadPodGroupSchedulingConstraints**](V1alpha3WorkloadPodGroupSchedulingConstraints.md) | | [optional] | +|**schedulingPolicy** | [**V1alpha3WorkloadPodGroupSchedulingPolicy**](V1alpha3WorkloadPodGroupSchedulingPolicy.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1JobSpec.md b/kubernetes/docs/V1JobSpec.md index 3335e4b2a3..d2fb3583eb 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -19,6 +19,7 @@ JobSpec describes how the job execution will look like. |**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. | [optional] | +|**scheduling** | [**V1JobSchedulingConfiguration**](V1JobSchedulingConfiguration.md) | | [optional] | |**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | |**successPolicy** | [**V1SuccessPolicy**](V1SuccessPolicy.md) | | [optional] | |**suspend** | **Boolean** | 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. | [optional] | diff --git a/kubernetes/docs/V1JobStatus.md b/kubernetes/docs/V1JobStatus.md index 0a1805c1a1..41f14123dc 100644 --- a/kubernetes/docs/V1JobStatus.md +++ b/kubernetes/docs/V1JobStatus.md @@ -17,7 +17,7 @@ JobStatus represents the current state of a Job. |**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] | -|**terminating** | **Integer** | 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). | [optional] | +|**terminating** | **Integer** | The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). | [optional] | |**uncountedTerminatedPods** | [**V1UncountedTerminatedPods**](V1UncountedTerminatedPods.md) | | [optional] | diff --git a/kubernetes/docs/V1KeyToPath.md b/kubernetes/docs/V1KeyToPath.md index defb0e3d01..74a6c4eea7 100644 --- a/kubernetes/docs/V1KeyToPath.md +++ b/kubernetes/docs/V1KeyToPath.md @@ -11,6 +11,7 @@ Maps a string key to a path within a volume. |**key** | **String** | key is the key to project. | | |**mode** | **Integer** | 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. | [optional] | |**path** | **String** | 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 '..'. | | +|**user** | **Long** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] | diff --git a/kubernetes/docs/V1LeaseSpec.md b/kubernetes/docs/V1LeaseSpec.md index 6fdf72a6bd..ee749d349f 100644 --- a/kubernetes/docs/V1LeaseSpec.md +++ b/kubernetes/docs/V1LeaseSpec.md @@ -12,9 +12,9 @@ LeaseSpec is a specification of a Lease. |**holderIdentity** | **String** | 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. | [optional] | |**leaseDurationSeconds** | **Integer** | 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. | [optional] | |**leaseTransitions** | **Integer** | leaseTransitions is the number of transitions of a lease between holders. | [optional] | -|**preferredHolder** | **String** | 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. | [optional] | +|**preferredHolder** | **String** | 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. | [optional] | |**renewTime** | **OffsetDateTime** | renewTime is a time when the current holder of a lease has last updated the lease. | [optional] | -|**strategy** | **String** | 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. | [optional] | +|**strategy** | **String** | 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. | [optional] | diff --git a/kubernetes/docs/V1LimitedPriorityLevelConfiguration.md b/kubernetes/docs/V1LimitedPriorityLevelConfiguration.md index 79e9bc443e..7f6df018ab 100644 --- a/kubernetes/docs/V1LimitedPriorityLevelConfiguration.md +++ b/kubernetes/docs/V1LimitedPriorityLevelConfiguration.md @@ -10,7 +10,7 @@ LimitedPriorityLevelConfiguration specifies how to handle requests that are subj |------------ | ------------- | ------------- | -------------| |**borrowingLimitPercent** | **Integer** | `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. | [optional] | |**lendablePercent** | **Integer** | `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 ) | [optional] | -|**limitResponse** | [**V1LimitResponse**](V1LimitResponse.md) | | [optional] | +|**limitResponse** | [**V1LimitResponse**](V1LimitResponse.md) | | | |**nominalConcurrencyShares** | **Integer** | `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) | [optional] | diff --git a/kubernetes/docs/V1NodeAllocatableMappedResources.md b/kubernetes/docs/V1NodeAllocatableMappedResources.md new file mode 100644 index 0000000000..28a6d37166 --- /dev/null +++ b/kubernetes/docs/V1NodeAllocatableMappedResources.md @@ -0,0 +1,15 @@ + + +# V1NodeAllocatableMappedResources + +NodeAllocatableMappedResources describes mapped node allocatable resource allocations. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name is the name of the resource (e.g., cpu, memory). | | +|**quantity** | **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/V1NodeAllocatableMapping.md b/kubernetes/docs/V1NodeAllocatableMapping.md new file mode 100644 index 0000000000..99af0e5259 --- /dev/null +++ b/kubernetes/docs/V1NodeAllocatableMapping.md @@ -0,0 +1,16 @@ + + +# V1NodeAllocatableMapping + +NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**capacityKey** | **String** | CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. | [optional] | +|**capacityMultiplier** | **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] | +|**deviceMultiplier** | **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/V1NodeAllocatableOverhead.md b/kubernetes/docs/V1NodeAllocatableOverhead.md new file mode 100644 index 0000000000..0f23fcac78 --- /dev/null +++ b/kubernetes/docs/V1NodeAllocatableOverhead.md @@ -0,0 +1,15 @@ + + +# V1NodeAllocatableOverhead + +NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**perContainer** | **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] | +|**perPod** | **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/V1NodeAllocatableOverheadResources.md b/kubernetes/docs/V1NodeAllocatableOverheadResources.md new file mode 100644 index 0000000000..23190060e9 --- /dev/null +++ b/kubernetes/docs/V1NodeAllocatableOverheadResources.md @@ -0,0 +1,16 @@ + + +# V1NodeAllocatableOverheadResources + +NodeAllocatableOverheadResources describes auxiliary overhead resource allocations. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name is the name of the resource (e.g., cpu, memory). | | +|**perContainer** | **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] | +|**perPod** | **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/V1NodeAllocatableResource.md b/kubernetes/docs/V1NodeAllocatableResource.md new file mode 100644 index 0000000000..95becc7102 --- /dev/null +++ b/kubernetes/docs/V1NodeAllocatableResource.md @@ -0,0 +1,15 @@ + + +# V1NodeAllocatableResource + +NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mapping** | [**V1NodeAllocatableMapping**](V1NodeAllocatableMapping.md) | | [optional] | +|**overhead** | [**V1NodeAllocatableOverhead**](V1NodeAllocatableOverhead.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1NodeAllocatableResourceClaimStatus.md b/kubernetes/docs/V1NodeAllocatableResourceClaimStatus.md index 0c471feaf4..b0bd8ddddc 100644 --- a/kubernetes/docs/V1NodeAllocatableResourceClaimStatus.md +++ b/kubernetes/docs/V1NodeAllocatableResourceClaimStatus.md @@ -9,8 +9,9 @@ NodeAllocatableResourceClaimStatus describes the status of node allocatable reso | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**containers** | **List<String>** | Containers lists the names of all containers in this pod that reference the claim. | [optional] | +|**mapping** | [**List<V1NodeAllocatableMappedResources>**](V1NodeAllocatableMappedResources.md) | Mapping contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].mapping` field. This is used by kubelet for pod level and container-level cgroup enforcement. | [optional] | +|**overhead** | [**List<V1NodeAllocatableOverheadResources>**](V1NodeAllocatableOverheadResources.md) | Overhead contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].overhead` field. This is used by kubelet for pod level and container-level cgroup enforcement. | [optional] | |**resourceClaimName** | **String** | ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation. | | -|**resources** | **Map<String, Quantity>** | Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim. | | diff --git a/kubernetes/docs/V1NodeAllocatableResourceMapping.md b/kubernetes/docs/V1NodeAllocatableResourceMapping.md deleted file mode 100644 index b9b9209a79..0000000000 --- a/kubernetes/docs/V1NodeAllocatableResourceMapping.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1NodeAllocatableResourceMapping - -NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**allocationMultiplier** | **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] | -|**capacityKey** | **String** | CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\". | [optional] | - - - diff --git a/kubernetes/docs/V1NodePodPreemptionPolicy.md b/kubernetes/docs/V1NodePodPreemptionPolicy.md new file mode 100644 index 0000000000..ed245a0ad9 --- /dev/null +++ b/kubernetes/docs/V1NodePodPreemptionPolicy.md @@ -0,0 +1,14 @@ + + +# V1NodePodPreemptionPolicy + +NodePodPreemptionPolicy defines the node-level policies governing preemption for pods on this node. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**disableResizePreemption** | **List<String>** | DisableResizePreemption lists the owners (e.g., autoscalers, operators, administrators) that have requested to disable scheduler and Kubelet preemption for in-place pod resize on this node. If this list is non-empty, resize-induced preemption is disabled on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate. | [optional] | + + + diff --git a/kubernetes/docs/V1NodeSpec.md b/kubernetes/docs/V1NodeSpec.md index 754de856f0..aa5a04b8be 100644 --- a/kubernetes/docs/V1NodeSpec.md +++ b/kubernetes/docs/V1NodeSpec.md @@ -12,6 +12,7 @@ NodeSpec describes the attributes that a node is created with. |**externalID** | **String** | Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 | [optional] | |**podCIDR** | **String** | PodCIDR represents the pod IP range assigned to the node. | [optional] | |**podCIDRs** | **List<String>** | 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. | [optional] | +|**podPreemptionPolicy** | [**V1NodePodPreemptionPolicy**](V1NodePodPreemptionPolicy.md) | | [optional] | |**providerID** | **String** | ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> | [optional] | |**taints** | [**List<V1Taint>**](V1Taint.md) | If specified, the node's taints. | [optional] | |**unschedulable** | **Boolean** | Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration | [optional] | diff --git a/kubernetes/docs/V1NodeSystemInfo.md b/kubernetes/docs/V1NodeSystemInfo.md index 14022021cc..f15157d1dd 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)). | | +|**runningInUserNamespace** | **Boolean** | Whether the node is running in a user namespace. | [optional] | |**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 index bf27e3dce3..5828fac080 100644 --- a/kubernetes/docs/V1ParentReference.md +++ b/kubernetes/docs/V1ParentReference.md @@ -8,10 +8,10 @@ ParentReference describes a reference to a parent object. | 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. | | +|**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/V1PersistentVolumeClaimStatus.md b/kubernetes/docs/V1PersistentVolumeClaimStatus.md index 67f03639f8..f3a13ba6a7 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimStatus.md +++ b/kubernetes/docs/V1PersistentVolumeClaimStatus.md @@ -14,6 +14,7 @@ PersistentVolumeClaimStatus is the current status of a persistent volume claim. |**capacity** | **Map<String, Quantity>** | capacity represents the actual resources of the underlying volume. | [optional] | |**conditions** | [**List<V1PersistentVolumeClaimCondition>**](V1PersistentVolumeClaimCondition.md) | conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. | [optional] | |**currentVolumeAttributesClassName** | **String** | currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim | [optional] | +|**healthStatus** | [**V1VolumeHealthStatus**](V1VolumeHealthStatus.md) | | [optional] | |**modifyVolumeStatus** | [**V1ModifyVolumeStatus**](V1ModifyVolumeStatus.md) | | [optional] | |**phase** | **String** | phase represents the current phase of PersistentVolumeClaim. | [optional] | diff --git a/kubernetes/docs/V1PodCertificateProjection.md b/kubernetes/docs/V1PodCertificateProjection.md index 66b7fe023d..1c5d0cd73d 100644 --- a/kubernetes/docs/V1PodCertificateProjection.md +++ b/kubernetes/docs/V1PodCertificateProjection.md @@ -14,6 +14,7 @@ PodCertificateProjection provides a private key and X.509 certificate in the pod |**keyType** | **String** | The type of keypair Kubelet will generate for the pod. Valid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\". | | |**maxExpirationSeconds** | **Integer** | maxExpirationSeconds is the maximum lifetime permitted for the certificate. Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. | [optional] | |**signerName** | **String** | Kubelet's generated CSRs will be addressed to this signer. | | +|**user** | **Long** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] | |**userAnnotations** | **Map<String, String>** | userAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of the PodCertificateRequest objects that Kubelet creates. Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field. Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize. | [optional] | diff --git a/kubernetes/docs/V1PodCertificateRequest.md b/kubernetes/docs/V1PodCertificateRequest.md new file mode 100644 index 0000000000..c6160d458d --- /dev/null +++ b/kubernetes/docs/V1PodCertificateRequest.md @@ -0,0 +1,22 @@ + + +# V1PodCertificateRequest + +PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes + +## 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** | [**V1PodCertificateRequestSpec**](V1PodCertificateRequestSpec.md) | | | +|**status** | [**V1PodCertificateRequestStatus**](V1PodCertificateRequestStatus.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1PodCertificateRequestList.md b/kubernetes/docs/V1PodCertificateRequestList.md new file mode 100644 index 0000000000..b58626937f --- /dev/null +++ b/kubernetes/docs/V1PodCertificateRequestList.md @@ -0,0 +1,21 @@ + + +# V1PodCertificateRequestList + +PodCertificateRequestList is a collection of PodCertificateRequest 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<V1PodCertificateRequest>**](V1PodCertificateRequest.md) | items is a collection of PodCertificateRequest 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/V1PodCertificateRequestSpec.md b/kubernetes/docs/V1PodCertificateRequestSpec.md new file mode 100644 index 0000000000..4090a17028 --- /dev/null +++ b/kubernetes/docs/V1PodCertificateRequestSpec.md @@ -0,0 +1,23 @@ + + +# V1PodCertificateRequestSpec + +PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**maxExpirationSeconds** | **Integer** | maxExpirationSeconds is the maximum lifetime permitted for the certificate. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. | [optional] | +|**nodeName** | **String** | nodeName is the name of the node the pod is assigned to. | | +|**nodeUID** | **String** | nodeUID is the UID of the node the pod is assigned to. | | +|**podName** | **String** | podName is the name of the pod into which the certificate will be mounted. | | +|**podUID** | **String** | podUID is the UID of the pod into which the certificate will be mounted. | | +|**serviceAccountName** | **String** | serviceAccountName is the name of the service account the pod is running as. | | +|**serviceAccountUID** | **String** | serviceAccountUID is the UID of the service account the pod is running as. | | +|**signerName** | **String** | signerName indicates the requested signer. All signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented. | | +|**stubPKCS10Request** | **byte[]** | A PKCS#10 certificate signing request (DER-serialized) generated by Kubelet using the subject private key. Most signer implementations will ignore the contents of the CSR except to extract the subject public key. The API server automatically verifies the CSR signature during admission, so the signer does not need to repeat the verification. CSRs generated by kubelet are completely empty. The subject public key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field. | | +|**unverifiedUserAnnotations** | **Map<String, String>** | unverifiedUserAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field. Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize. | [optional] | + + + diff --git a/kubernetes/docs/V1PodCertificateRequestStatus.md b/kubernetes/docs/V1PodCertificateRequestStatus.md new file mode 100644 index 0000000000..2f20ad13dd --- /dev/null +++ b/kubernetes/docs/V1PodCertificateRequestStatus.md @@ -0,0 +1,18 @@ + + +# V1PodCertificateRequestStatus + +PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**beginRefreshAt** | **OffsetDateTime** | beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable. This field is only a hint. Kubelet may start refreshing before or after this time if necessary. | [optional] | +|**certificateChain** | **String** | certificateChain is populated with an issued certificate by the signer. 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. certificateChain must consist of one or more PEM-formatted certificates. 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as described in section 4 of RFC5280. If more than one 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. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers. | [optional] | +|**conditions** | [**List<V1Condition>**](V1Condition.md) | conditions applied to the request. The types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\". If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field. | [optional] | +|**notAfter** | **OffsetDateTime** | notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. | [optional] | +|**notBefore** | **OffsetDateTime** | notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. | [optional] | + + + diff --git a/kubernetes/docs/V1PodDisruptionBudgetSpec.md b/kubernetes/docs/V1PodDisruptionBudgetSpec.md index 78bd727538..0350612afb 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. | [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/V1PodSecurityContext.md b/kubernetes/docs/V1PodSecurityContext.md index 106bbf451c..c596cff726 100644 --- a/kubernetes/docs/V1PodSecurityContext.md +++ b/kubernetes/docs/V1PodSecurityContext.md @@ -14,7 +14,7 @@ PodSecurityContext holds pod-level security attributes and common container sett |**runAsGroup** | **Long** | 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. | [optional] | |**runAsNonRoot** | **Boolean** | 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. | [optional] | |**runAsUser** | **Long** | 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. | [optional] | -|**seLinuxChangePolicy** | **String** | 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. | [optional] | +|**seLinuxChangePolicy** | **String** | 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. If not specified, \"MountOption\" is used. 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. | [optional] | |**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] | |**seccompProfile** | [**V1SeccompProfile**](V1SeccompProfile.md) | | [optional] | |**supplementalGroups** | **List<Long>** | 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. | [optional] | diff --git a/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md index 1339e7445e..9e00c21054 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -16,20 +16,21 @@ PodSpec is a description of a pod. |**dnsPolicy** | **String** | 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'. | [optional] | |**enableServiceLinks** | **Boolean** | EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. | [optional] | |**ephemeralContainers** | [**List<V1EphemeralContainer>**](V1EphemeralContainer.md) | 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. | [optional] | +|**evictionResponders** | [**List<V1EvictionResponder>**](V1EvictionResponder.md) | evictionResponders reference responders that react to Evictions based on EvictionRequests. Responders should observe and communicate through the Eviction Resource API to help with the graceful termination of a pod. The responders are selected sequentially, according to their specified priority. Responders should periodically report on an eviction progress by updating the .status.responders[].heartbeatTime field of the Eviction object. If this field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there is no other responder, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods/<name>/eviction subresource). The maximum length of the responders list is 10. Responders are not supported when the pod is part of a PodGroup (.spec.schedulingGroup is set). This field can only be set on creation and is immutable afterwards. | [optional] | |**hostAliases** | [**List<V1HostAlias>**](V1HostAlias.md) | HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. | [optional] | |**hostIPC** | **Boolean** | Use the host's ipc namespace. Optional: Default to false. | [optional] | |**hostNetwork** | **Boolean** | Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false. | [optional] | |**hostPID** | **Boolean** | Use the host's pid namespace. Optional: Default to false. | [optional] | |**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. | [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] | -|**hostnameOverride** | **String** | HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled. | [optional] | +|**hostnameOverride** | **String** | HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. | [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 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] | |**overhead** | **Map<String, Quantity>** | 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 | [optional] | -|**preemptionPolicy** | **String** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. | [optional] | +|**preemptionPolicy** | **String** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. Defaults to PreemptLowerPriority if unset. | [optional] | |**priority** | **Integer** | 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. | [optional] | |**priorityClassName** | **String** | 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. | [optional] | |**readinessGates** | [**List<V1PodReadinessGate>**](V1PodReadinessGate.md) | 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 | [optional] | diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index 8bdd6830b0..4c71d2686a 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -29,6 +29,7 @@ PodStatus represents information about the status of a pod. Status may trail the |**resourceClaimStatuses** | [**List<V1PodResourceClaimStatus>**](V1PodResourceClaimStatus.md) | Status of resource claims. | [optional] | |**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [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] | +|**volumeHealth** | [**List<V1PodVolumeHealth>**](V1PodVolumeHealth.md) | volumeHealth contains node-reported health for each volume the pod is using. Populated by the kubelet on the pod's node. | [optional] | diff --git a/kubernetes/docs/V1PodVolumeHealth.md b/kubernetes/docs/V1PodVolumeHealth.md new file mode 100644 index 0000000000..89e92da2b8 --- /dev/null +++ b/kubernetes/docs/V1PodVolumeHealth.md @@ -0,0 +1,16 @@ + + +# V1PodVolumeHealth + +PodVolumeHealth contains health information for a volume used by a pod, reported by the CSI node plugin via the kubelet. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**healthConditions** | [**List<V1VolumeHealthCondition>**](V1VolumeHealthCondition.md) | conditions is the set of adverse conditions reported by the CSI node plugin for this volume on this node. At most 16 conditions may be reported. | [optional] | +|**lastTransitionTime** | **OffsetDateTime** | lastTransitionTime is when the current set of conditions first appeared. | [optional] | +|**name** | **String** | name matches an entry in pod.spec.volumes. | | + + + diff --git a/kubernetes/docs/V1PolicyRule.md b/kubernetes/docs/V1PolicyRule.md index 989456f815..b52a77f735 100644 --- a/kubernetes/docs/V1PolicyRule.md +++ b/kubernetes/docs/V1PolicyRule.md @@ -8,11 +8,11 @@ PolicyRule holds information that describes a policy rule, but does not contain | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiGroups** | **List<String>** | 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. | [optional] | -|**nonResourceURLs** | **List<String>** | 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. | [optional] | -|**resourceNames** | **List<String>** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] | -|**resources** | **List<String>** | Resources is a list of resources this rule applies to. '*' represents all resources. | [optional] | -|**verbs** | **List<String>** | Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. | | +|**apiGroups** | **List<String>** | 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. | [optional] | +|**nonResourceURLs** | **List<String>** | 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. | [optional] | +|**resourceNames** | **List<String>** | resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] | +|**resources** | **List<String>** | resources is a list of resources this rule applies to. '*' represents all resources. | [optional] | +|**verbs** | **List<String>** | verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. | | diff --git a/kubernetes/docs/V1PriorityLevelConfiguration.md b/kubernetes/docs/V1PriorityLevelConfiguration.md index 4cebaa1d7d..92f48010a5 100644 --- a/kubernetes/docs/V1PriorityLevelConfiguration.md +++ b/kubernetes/docs/V1PriorityLevelConfiguration.md @@ -11,7 +11,7 @@ PriorityLevelConfiguration represents the configuration of a priority level. |**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** | [**V1PriorityLevelConfigurationSpec**](V1PriorityLevelConfigurationSpec.md) | | [optional] | +|**spec** | [**V1PriorityLevelConfigurationSpec**](V1PriorityLevelConfigurationSpec.md) | | | |**status** | [**V1PriorityLevelConfigurationStatus**](V1PriorityLevelConfigurationStatus.md) | | [optional] | diff --git a/kubernetes/docs/V1PriorityLevelConfigurationCondition.md b/kubernetes/docs/V1PriorityLevelConfigurationCondition.md index dfc2ba8596..5a71827b2e 100644 --- a/kubernetes/docs/V1PriorityLevelConfigurationCondition.md +++ b/kubernetes/docs/V1PriorityLevelConfigurationCondition.md @@ -11,8 +11,8 @@ PriorityLevelConfigurationCondition defines the condition of priority level. |**lastTransitionTime** | **OffsetDateTime** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] | |**message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] | |**reason** | **String** | `reason` is a 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. Required. | [optional] | -|**type** | **String** | `type` is the type of the condition. Required. | [optional] | +|**status** | **String** | `status` is the status of the condition. Should be specified and set to one of True, False, Unknown. | [optional] | +|**type** | **String** | `type` is the type of the condition. Required. | | diff --git a/kubernetes/docs/V1ProjectedVolumeSource.md b/kubernetes/docs/V1ProjectedVolumeSource.md index d442a88a8c..bf0591d944 100644 --- a/kubernetes/docs/V1ProjectedVolumeSource.md +++ b/kubernetes/docs/V1ProjectedVolumeSource.md @@ -9,6 +9,7 @@ Represents a projected volume source | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**defaultMode** | **Integer** | 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. | [optional] | +|**defaultUser** | **Long** | defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] | |**sources** | [**List<V1VolumeProjection>**](V1VolumeProjection.md) | sources is the list of volume projections. Each entry in this list handles one source. | [optional] | diff --git a/kubernetes/docs/V1ReplicaSet.md b/kubernetes/docs/V1ReplicaSet.md index bd3aea035d..66ec359a00 100644 --- a/kubernetes/docs/V1ReplicaSet.md +++ b/kubernetes/docs/V1ReplicaSet.md @@ -11,7 +11,7 @@ ReplicaSet ensures that a specified number of pod replicas are running at any gi |**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** | [**V1ReplicaSetSpec**](V1ReplicaSetSpec.md) | | [optional] | +|**spec** | [**V1ReplicaSetSpec**](V1ReplicaSetSpec.md) | | | |**status** | [**V1ReplicaSetStatus**](V1ReplicaSetStatus.md) | | [optional] | diff --git a/kubernetes/docs/V1ReplicaSetCondition.md b/kubernetes/docs/V1ReplicaSetCondition.md index 71f12092f6..78ada4f298 100644 --- a/kubernetes/docs/V1ReplicaSetCondition.md +++ b/kubernetes/docs/V1ReplicaSetCondition.md @@ -11,8 +11,8 @@ ReplicaSetCondition describes the state of a replica set at a certain point. |**lastTransitionTime** | **OffsetDateTime** | The last time the condition transitioned from one status to another. | [optional] | |**message** | **String** | A human readable message indicating details about the transition. | [optional] | |**reason** | **String** | The reason for the condition's last transition. | [optional] | -|**status** | **String** | Status of the condition, one of True, False, Unknown. | | -|**type** | **String** | Type of replica set condition. | | +|**status** | **String** | Status of the condition, one of True, False, Unknown. | [optional] | +|**type** | **String** | Type of replica set condition. | [optional] | diff --git a/kubernetes/docs/V1ResourceClaimTemplate.md b/kubernetes/docs/V1ResourceClaimTemplate.md index d53fc2870f..48f0cee25e 100644 --- a/kubernetes/docs/V1ResourceClaimTemplate.md +++ b/kubernetes/docs/V1ResourceClaimTemplate.md @@ -11,7 +11,7 @@ ResourceClaimTemplate is used to produce ResourceClaim objects. |**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** | [**V1ResourceClaimTemplateSpec**](V1ResourceClaimTemplateSpec.md) | | | +|**spec** | [**V1ResourceClaimTemplateSpec**](V1ResourceClaimTemplateSpec.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ResourceClaimTemplateSpec.md b/kubernetes/docs/V1ResourceClaimTemplateSpec.md index 7919a13bdf..8735576e4c 100644 --- a/kubernetes/docs/V1ResourceClaimTemplateSpec.md +++ b/kubernetes/docs/V1ResourceClaimTemplateSpec.md @@ -9,7 +9,7 @@ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | | +|**spec** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | [optional] | diff --git a/kubernetes/docs/V1ResourcePool.md b/kubernetes/docs/V1ResourcePool.md index bab3e82ed5..dd5a35da24 100644 --- a/kubernetes/docs/V1ResourcePool.md +++ b/kubernetes/docs/V1ResourcePool.md @@ -9,7 +9,7 @@ ResourcePool describes the pool that ResourceSlices belong to. | 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. | | +|**name** | **String** | Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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/V1ResourceSliceSpec.md b/kubernetes/docs/V1ResourceSliceSpec.md index e568e7056d..dd5fe17fb7 100644 --- a/kubernetes/docs/V1ResourceSliceSpec.md +++ b/kubernetes/docs/V1ResourceSliceSpec.md @@ -13,9 +13,11 @@ ResourceSliceSpec contains the information published by the driver in one Resour |**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. It should use only lower case characters. 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] | +|**partitionTypeAttribute** | **String** | PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost. | [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** | [**V1ResourcePool**](V1ResourcePool.md) | | | |**sharedCounters** | [**List<V1CounterSet>**](V1CounterSet.md) | SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the counter sets must be unique in the ResourcePool. Only one of Devices and SharedCounters can be set in a ResourceSlice. The maximum number of counter sets is 8. | [optional] | +|**skipNodeOperations** | **List<String>** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values. | [optional] | diff --git a/kubernetes/docs/V1ResourceStatus.md b/kubernetes/docs/V1ResourceStatus.md index 129b566d44..d56783eb99 100644 --- a/kubernetes/docs/V1ResourceStatus.md +++ b/kubernetes/docs/V1ResourceStatus.md @@ -8,7 +8,7 @@ ResourceStatus represents the status of a single resource allocated to a Pod. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | 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. | | +|**name** | **String** | 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 container.resources.claims[*].request is set or \"claim:<claim_name>\" when container.resources.claims[*].request is empty. For DRA-backed extended resources, \"claim:<claim_name>/<request>\" is used when the claim name and request name are recorded in pod.status.extendedResourceClaimStatus. When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container. | | |**resources** | [**List<V1ResourceHealth>**](V1ResourceHealth.md) | 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. | [optional] | diff --git a/kubernetes/docs/V1Role.md b/kubernetes/docs/V1Role.md index d6831c43cb..9600c7e541 100644 --- a/kubernetes/docs/V1Role.md +++ b/kubernetes/docs/V1Role.md @@ -11,7 +11,7 @@ Role is a namespaced, logical grouping of PolicyRules that can be referenced as |**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] | -|**rules** | [**List<V1PolicyRule>**](V1PolicyRule.md) | Rules holds all the PolicyRules for this Role | [optional] | +|**rules** | [**List<V1PolicyRule>**](V1PolicyRule.md) | rules holds all the PolicyRules for this Role | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1RoleBinding.md b/kubernetes/docs/V1RoleBinding.md index 38a89d2d0e..8201bab0f6 100644 --- a/kubernetes/docs/V1RoleBinding.md +++ b/kubernetes/docs/V1RoleBinding.md @@ -12,7 +12,7 @@ RoleBinding references a role, but does not contain it. It can reference a Role |**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] | |**roleRef** | [**V1RoleRef**](V1RoleRef.md) | | | -|**subjects** | [**List<RbacV1Subject>**](RbacV1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] | +|**subjects** | [**List<RbacV1Subject>**](RbacV1Subject.md) | subjects holds references to the objects the role applies to. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1RoleRef.md b/kubernetes/docs/V1RoleRef.md index a4f05f8fa7..79f40437a3 100644 --- a/kubernetes/docs/V1RoleRef.md +++ b/kubernetes/docs/V1RoleRef.md @@ -8,9 +8,9 @@ RoleRef contains information that points to the role being used | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiGroup** | **String** | APIGroup is the group for the resource being referenced | [optional] | -|**kind** | **String** | Kind is the type of resource being referenced | | -|**name** | **String** | Name is the name of resource being referenced | | +|**apiGroup** | **String** | apiGroup is the group for the resource being referenced | [optional] | +|**kind** | **String** | kind is the type of resource being referenced | | +|**name** | **String** | name is the name of resource being referenced | | diff --git a/kubernetes/docs/V1SecretVolumeSource.md b/kubernetes/docs/V1SecretVolumeSource.md index e20b56baab..27a637e768 100644 --- a/kubernetes/docs/V1SecretVolumeSource.md +++ b/kubernetes/docs/V1SecretVolumeSource.md @@ -9,6 +9,7 @@ Adapts a Secret into a volume. The contents of the target Secret's Data field w | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**defaultMode** | **Integer** | 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. | [optional] | +|**defaultUser** | **Long** | defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] | |**items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | 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 '..'. | [optional] | |**optional** | **Boolean** | optional field specify whether the Secret or its keys must be defined | [optional] | |**secretName** | **String** | secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret | [optional] | diff --git a/kubernetes/docs/V1ServiceAccountTokenProjection.md b/kubernetes/docs/V1ServiceAccountTokenProjection.md index eba144b1e7..53dfa165d2 100644 --- a/kubernetes/docs/V1ServiceAccountTokenProjection.md +++ b/kubernetes/docs/V1ServiceAccountTokenProjection.md @@ -11,6 +11,7 @@ ServiceAccountTokenProjection represents a projected service account token volum |**audience** | **String** | 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. | [optional] | |**expirationSeconds** | **Long** | 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. | [optional] | |**path** | **String** | path is the path relative to the mount point of the file to project the token into. | | +|**user** | **Long** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] | diff --git a/kubernetes/docs/V1ServiceCIDRSpec.md b/kubernetes/docs/V1ServiceCIDRSpec.md index 0e4ef129be..20ff207e33 100644 --- a/kubernetes/docs/V1ServiceCIDRSpec.md +++ b/kubernetes/docs/V1ServiceCIDRSpec.md @@ -8,7 +8,7 @@ ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs | 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] | +|**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/V1StatefulSet.md b/kubernetes/docs/V1StatefulSet.md index fa4ff2531c..bdf3711302 100644 --- a/kubernetes/docs/V1StatefulSet.md +++ b/kubernetes/docs/V1StatefulSet.md @@ -11,7 +11,7 @@ StatefulSet represents a set of pods with consistent identities. Identities are |**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** | [**V1StatefulSetSpec**](V1StatefulSetSpec.md) | | [optional] | +|**spec** | [**V1StatefulSetSpec**](V1StatefulSetSpec.md) | | | |**status** | [**V1StatefulSetStatus**](V1StatefulSetStatus.md) | | [optional] | diff --git a/kubernetes/docs/V1StatefulSetCondition.md b/kubernetes/docs/V1StatefulSetCondition.md index 17fff6d79f..b2ad35ce32 100644 --- a/kubernetes/docs/V1StatefulSetCondition.md +++ b/kubernetes/docs/V1StatefulSetCondition.md @@ -11,8 +11,8 @@ StatefulSetCondition describes the state of a statefulset at a certain point. |**lastTransitionTime** | **OffsetDateTime** | Last time the condition transitioned from one status to another. | [optional] | |**message** | **String** | A human readable message indicating details about the transition. | [optional] | |**reason** | **String** | The reason for the condition's last transition. | [optional] | -|**status** | **String** | Status of the condition, one of True, False, Unknown. | | -|**type** | **String** | Type of statefulset condition. | | +|**status** | **String** | Status of the condition, one of True, False, Unknown. | [optional] | +|**type** | **String** | Type of statefulset condition. | [optional] | diff --git a/kubernetes/docs/V1StorageHealth.md b/kubernetes/docs/V1StorageHealth.md new file mode 100644 index 0000000000..cce17d8aa5 --- /dev/null +++ b/kubernetes/docs/V1StorageHealth.md @@ -0,0 +1,15 @@ + + +# V1StorageHealth + +StorageHealth contains storage backend health reported by a CSI driver on a node. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**healthConditions** | [**List<V1StorageHealthCondition>**](V1StorageHealthCondition.md) | healthConditions are the adverse storage backend conditions reported by the CSI driver. At most 16 conditions may be reported. | [optional] | +|**name** | **String** | name is the CSI driver name, matching CSINodeDriver.name. | | + + + diff --git a/kubernetes/docs/V1StorageHealthCondition.md b/kubernetes/docs/V1StorageHealthCondition.md new file mode 100644 index 0000000000..b610496e2f --- /dev/null +++ b/kubernetes/docs/V1StorageHealthCondition.md @@ -0,0 +1,19 @@ + + +# V1StorageHealthCondition + +StorageHealthCondition represents an adverse health condition reported by a CSI driver for its storage backend on a node. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accessMode** | **String** | accessMode is the access mode affected. Nil means all access modes are affected. | [optional] | +|**lastTransitionTime** | **OffsetDateTime** | lastTransitionTime is when this condition first appeared at its current state. | [optional] | +|**message** | **String** | message is a human-readable description. Maximum permitted length of a message is 1024 characters. | [optional] | +|**reason** | **String** | reason is a brief CamelCase machine-parseable reason. Maximum permitted length of a reason is 256 characters. | | +|**status** | **String** | status is the health status category. One of \"StorageUnreachable\", \"StorageDegraded\". | | +|**volumeMode** | **String** | volumeMode is the volume mode affected. Nil means both are affected. | [optional] | + + + diff --git a/kubernetes/docs/V1StorageVersionMigration.md b/kubernetes/docs/V1StorageVersionMigration.md new file mode 100644 index 0000000000..2476908411 --- /dev/null +++ b/kubernetes/docs/V1StorageVersionMigration.md @@ -0,0 +1,22 @@ + + +# V1StorageVersionMigration + +StorageVersionMigration represents a migration of stored data to the latest storage version. + +## 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** | [**V1StorageVersionMigrationSpec**](V1StorageVersionMigrationSpec.md) | | [optional] | +|**status** | [**V1StorageVersionMigrationStatus**](V1StorageVersionMigrationStatus.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1StorageVersionMigrationList.md b/kubernetes/docs/V1StorageVersionMigrationList.md new file mode 100644 index 0000000000..e26b4e3695 --- /dev/null +++ b/kubernetes/docs/V1StorageVersionMigrationList.md @@ -0,0 +1,21 @@ + + +# V1StorageVersionMigrationList + +StorageVersionMigrationList is a collection of storage version migrations. + +## 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<V1StorageVersionMigration>**](V1StorageVersionMigration.md) | Items is the list of StorageVersionMigration | | +|**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/V1StorageVersionMigrationSpec.md b/kubernetes/docs/V1StorageVersionMigrationSpec.md new file mode 100644 index 0000000000..30b7e3d0d4 --- /dev/null +++ b/kubernetes/docs/V1StorageVersionMigrationSpec.md @@ -0,0 +1,14 @@ + + +# V1StorageVersionMigrationSpec + +Spec of the storage version migration. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**resource** | [**V1GroupResource**](V1GroupResource.md) | | | + + + diff --git a/kubernetes/docs/V1StorageVersionMigrationStatus.md b/kubernetes/docs/V1StorageVersionMigrationStatus.md new file mode 100644 index 0000000000..b4eb63f8a9 --- /dev/null +++ b/kubernetes/docs/V1StorageVersionMigrationStatus.md @@ -0,0 +1,15 @@ + + +# V1StorageVersionMigrationStatus + +Status of the storage version migration. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | The latest available observations of the migration's current state. | [optional] | +|**resourceVersion** | **String** | 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. | [optional] | + + + diff --git a/kubernetes/docs/V1TokenRequestSpec.md b/kubernetes/docs/V1TokenRequestSpec.md index 9363a05c44..8480697223 100644 --- a/kubernetes/docs/V1TokenRequestSpec.md +++ b/kubernetes/docs/V1TokenRequestSpec.md @@ -8,6 +8,7 @@ TokenRequestSpec contains client provided parameters of a token request. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**attestations** | **Map<String, List<String>>** | attestations is a map of well-known keys to string-slice values. The values for each key have a specific semantic meaning, which is documented on the key definition. Requesters of tokens may ask the Kubernetes API Server to attest to certain claims. The API Server may perform authorization checks depending on the key of this map. | [optional] | |**audiences** | **List<String>** | 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. | [optional] | |**boundObjectRef** | [**V1BoundObjectReference**](V1BoundObjectReference.md) | | [optional] | |**expirationSeconds** | **Long** | 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. | [optional] | diff --git a/kubernetes/docs/V1VolumeAttributesClass.md b/kubernetes/docs/V1VolumeAttributesClass.md index a5fb09699a..5106b23b03 100644 --- a/kubernetes/docs/V1VolumeAttributesClass.md +++ b/kubernetes/docs/V1VolumeAttributesClass.md @@ -9,7 +9,7 @@ VolumeAttributesClass represents a specification of mutable volume attributes de | 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] | -|**driverName** | **String** | Name of the CSI driver This field is immutable. | | +|**driverName** | **String** | driverName is the name of the CSI driver This field is immutable. | | |**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] | |**parameters** | **Map<String, String>** | 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. | [optional] | diff --git a/kubernetes/docs/V1VolumeHealthCondition.md b/kubernetes/docs/V1VolumeHealthCondition.md new file mode 100644 index 0000000000..89e172cf58 --- /dev/null +++ b/kubernetes/docs/V1VolumeHealthCondition.md @@ -0,0 +1,16 @@ + + +# V1VolumeHealthCondition + +VolumeHealthCondition represents an adverse health condition reported for a volume. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**message** | **String** | message is a human-readable description. Maximum permitted length of a message is 1024 bytes. | [optional] | +|**reason** | **String** | reason is a brief CamelCase machine-parseable reason. Together with status it forms the unique identity of a condition entry. Maximum permitted length of a reason is 256 bytes. | | +|**status** | **String** | status is the machine-parseable health category. Possible values: - \"Inaccessible\": the volume cannot be accessed. - \"DataLoss\": data loss has been detected on the volume. - \"Degraded\": the volume is functioning with reduced capability. | | + + + diff --git a/kubernetes/docs/V1VolumeHealthStatus.md b/kubernetes/docs/V1VolumeHealthStatus.md new file mode 100644 index 0000000000..477b11297b --- /dev/null +++ b/kubernetes/docs/V1VolumeHealthStatus.md @@ -0,0 +1,15 @@ + + +# V1VolumeHealthStatus + +VolumeHealthStatus contains health information for a volume reported by the CSI controller plugin. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**healthConditions** | [**List<V1VolumeHealthCondition>**](V1VolumeHealthCondition.md) | conditions is the set of adverse conditions reported by the CSI controller plugin. An empty list means no adverse condition. At most 16 conditions may be reported. | [optional] | +|**lastTransitionTime** | **OffsetDateTime** | lastTransitionTime is when the current set of conditions first appeared. | [optional] | + + + diff --git a/kubernetes/docs/V1VolumeMount.md b/kubernetes/docs/V1VolumeMount.md index 85cd9877b4..703f4a8032 100644 --- a/kubernetes/docs/V1VolumeMount.md +++ b/kubernetes/docs/V1VolumeMount.md @@ -8,7 +8,8 @@ VolumeMount describes a mounting of a Volume within a container. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**mountPath** | **String** | Path within the container at which the volume should be mounted. Must not contain ':'. | | +|**bindMountOptions** | **List<String>** | bindMountOptions is the list of additional bind mount options to apply when mounting this volume into the container. Allowed values are noexec, nodev, and nosuid. These are Linux mount options and have no effect on Windows nodes. This field is not supported with image volumes. This is an alpha field and requires enabling the VolumeBindMountOptions feature gate. | [optional] | +|**mountPath** | **String** | Path within the container at which the volume should be mounted. | | |**mountPropagation** | **String** | 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). | [optional] | |**name** | **String** | This must match the Name of a Volume. | | |**readOnly** | **Boolean** | Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. | [optional] | diff --git a/kubernetes/docs/V1alpha1Eviction.md b/kubernetes/docs/V1alpha1Eviction.md new file mode 100644 index 0000000000..f796312f00 --- /dev/null +++ b/kubernetes/docs/V1alpha1Eviction.md @@ -0,0 +1,22 @@ + + +# V1alpha1Eviction + +Eviction initiates an eviction process, which should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. It manages the Eviction lifecycle. Requesters are preserved in .status.requesters even after they have withdrawn their request. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Once all EvictionRequest corresponding to this Eviction .spec.target have been removed, this Eviction object will eventually be garbage collected. If the target is a pod, the .status.targetResponders is populated from Pod's .spec.evictionResponders. Responders should observe and communicate through the .status to help with the eviction of the target when they see their state == Active in .status.targetResponders. ResponderStatus struct should then be periodically updated to indicate the progress or completion of the eviction process by each responder in .status.responders. If .status.responders[].heartbeatTime is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there are no other responders and the target is a pod, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource). + +## 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** | [**V1alpha1EvictionSpec**](V1alpha1EvictionSpec.md) | | | +|**status** | [**V1alpha1EvictionStatus**](V1alpha1EvictionStatus.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1ServiceCIDRList.md b/kubernetes/docs/V1alpha1EvictionList.md similarity index 82% rename from kubernetes/docs/V1beta1ServiceCIDRList.md rename to kubernetes/docs/V1alpha1EvictionList.md index 83dcbd388a..12f8583d2d 100644 --- a/kubernetes/docs/V1beta1ServiceCIDRList.md +++ b/kubernetes/docs/V1alpha1EvictionList.md @@ -1,15 +1,15 @@ -# V1beta1ServiceCIDRList +# V1alpha1EvictionList -ServiceCIDRList contains a list of ServiceCIDR objects. +EvictionList contains a list of Eviction resources. ## 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<V1beta1ServiceCIDR>**](V1beta1ServiceCIDR.md) | items is the list of ServiceCIDRs. | | +|**items** | [**List<V1alpha1Eviction>**](V1alpha1Eviction.md) | items is the list of Evictions. | | |**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/V1alpha1EvictionPodReference.md b/kubernetes/docs/V1alpha1EvictionPodReference.md new file mode 100644 index 0000000000..93c185767b --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionPodReference.md @@ -0,0 +1,15 @@ + + +# V1alpha1EvictionPodReference + +EvictionPodReference contains enough information to locate the referenced pod inside the same namespace. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name of the target. This field is required. | | +|**uid** | **String** | uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required. | | + + + diff --git a/kubernetes/docs/V1alpha1EvictionRequest.md b/kubernetes/docs/V1alpha1EvictionRequest.md new file mode 100644 index 0000000000..60b5a01a09 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionRequest.md @@ -0,0 +1,22 @@ + + +# V1alpha1EvictionRequest + +EvictionRequest defines a request that should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. - .spec.requester is set as a label on the Eviction for easier lookup. - Each target can have a set of responders assigned to it. Eviction objects are observed by these responders, who implement the eviction logic and update the Eviction's status with progress. There is many-to-many relationship between EvictionRequests and Evictions in general. And many-to-one if the target is a pod. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Deleting an EvictionRequest also counts as a withdrawal. Once all EvictionRequest of a target are removed, the corresponding Evictions are eventually garbage collected. + +## 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** | [**V1alpha1EvictionRequestSpec**](V1alpha1EvictionRequestSpec.md) | | | +|**status** | [**V1alpha1EvictionRequestStatus**](V1alpha1EvictionRequestStatus.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha1EvictionRequestList.md b/kubernetes/docs/V1alpha1EvictionRequestList.md new file mode 100644 index 0000000000..22543f156a --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionRequestList.md @@ -0,0 +1,21 @@ + + +# V1alpha1EvictionRequestList + +EvictionRequestList contains a list of EvictionRequests resources. + +## 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<V1alpha1EvictionRequest>**](V1alpha1EvictionRequest.md) | items is the list of EvictionRequests. | | +|**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/V1alpha1EvictionRequestPodReference.md b/kubernetes/docs/V1alpha1EvictionRequestPodReference.md new file mode 100644 index 0000000000..302535fc50 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionRequestPodReference.md @@ -0,0 +1,15 @@ + + +# V1alpha1EvictionRequestPodReference + +EvictionRequestPodReference contains enough information to locate the referenced pod inside the same namespace. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name of the target. This field is required. | | +|**uid** | **String** | uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required. | | + + + diff --git a/kubernetes/docs/V1alpha1EvictionRequestSpec.md b/kubernetes/docs/V1alpha1EvictionRequestSpec.md new file mode 100644 index 0000000000..7f96f1aa03 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionRequestSpec.md @@ -0,0 +1,16 @@ + + +# V1alpha1EvictionRequestSpec + +EvictionRequestSpec is a specification of an EvictionRequest. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**intent** | **String** | intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn for a common target, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action. | | +|**requester** | **String** | requester allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field is required and immutable. | | +|**target** | [**V1alpha1EvictionRequestTarget**](V1alpha1EvictionRequestTarget.md) | | | + + + diff --git a/kubernetes/docs/V1alpha1EvictionRequestStatus.md b/kubernetes/docs/V1alpha1EvictionRequestStatus.md new file mode 100644 index 0000000000..00c968ec67 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionRequestStatus.md @@ -0,0 +1,15 @@ + + +# V1alpha1EvictionRequestStatus + +EvictionRequestStatus represents the last observed status of the eviction request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | conditions contain information about the eviction request. EvictionRequest specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). These conditions can be reset if the eviction was unsuccessful and a new Eviction intent has been submitted. The maximum length of the conditions list is 100. | [optional] | +|**observedGeneration** | **Long** | observedGeneration is EvictionRequest's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha1EvictionRequestTarget.md b/kubernetes/docs/V1alpha1EvictionRequestTarget.md new file mode 100644 index 0000000000..5ecc8f4455 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionRequestTarget.md @@ -0,0 +1,14 @@ + + +# V1alpha1EvictionRequestTarget + +EvictionRequestTarget contains a reference to an object that should be evicted. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**pod** | [**V1alpha1EvictionRequestPodReference**](V1alpha1EvictionRequestPodReference.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1alpha1EvictionSpec.md b/kubernetes/docs/V1alpha1EvictionSpec.md new file mode 100644 index 0000000000..c988509257 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionSpec.md @@ -0,0 +1,14 @@ + + +# V1alpha1EvictionSpec + +EvictionSpec is a specification of an Eviction. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**target** | [**V1alpha1EvictionTarget**](V1alpha1EvictionTarget.md) | | | + + + diff --git a/kubernetes/docs/V1alpha1EvictionStatus.md b/kubernetes/docs/V1alpha1EvictionStatus.md new file mode 100644 index 0000000000..6641efaf74 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionStatus.md @@ -0,0 +1,18 @@ + + +# V1alpha1EvictionStatus + +EvictionStatus represents the last observed status of the eviction request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | conditions contain information about the eviction request. Eviction specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). The maximum length of the conditions list is 100. | [optional] | +|**observedGeneration** | **Long** | observedGeneration is Eviction's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller. | [optional] | +|**requesters** | [**List<V1alpha1Requester>**](V1alpha1Requester.md) | requesters allow you to identify the entities, that requested the eviction of the target. If all the requesters withdraw their eviction intent, the eviction will be canceled. The maximum length of the requesters list is 100. If this limit is exceeded, requesters with Withdrawn intent should be dropped first. | [optional] | +|**responders** | [**List<V1alpha1ResponderStatus>**](V1alpha1ResponderStatus.md) | responders represents the eviction process status of each declared responder. The responder list should be the same length and have the same .name fields as .status.targetResponders. Only responders with .name that have Active state in .targetResponders[].state should be updated and can be mutated. First initialization of the list is allowed. Each ResponderStatus is initialized by evictionrequest-controller and then managed by the designated responder. | [optional] | +|**targetResponders** | [**List<V1alpha1TargetResponder>**](V1alpha1TargetResponder.md) | targetResponders reference responders that should eventually respond to this eviction to help with the graceful eviction of a target. These responders are selected sequentially, according to their specified priority by setting the Active state to the TargetResponder .state field. The maximum number of active responders allowed is 1. Eventually each responder can end up in an Interrupted, Canceled or, Completed state. Responders should observe these states in order to navigate their lifecycle. If the target is a pod, the field is populated from Pod's .spec.evictionResponders. Default responders may be added to the list according to the target. Default responders: - imperative-eviction.k8s.io/evictor responder with a priority of 100 is added to the list if the target is a pod. It will call the imperative Eviction API (pods/<name>/eviction subresource). This call may not succeed due to PodDisruptionBudgets, which may block the pod termination. It will update the responder message and try again with a backoff. The maximum length of the responders list is 11. The length and keys of the list cannot change once set. This field is managed by evictionrequest-controller. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha1EvictionTarget.md b/kubernetes/docs/V1alpha1EvictionTarget.md new file mode 100644 index 0000000000..384ace09a3 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionTarget.md @@ -0,0 +1,14 @@ + + +# V1alpha1EvictionTarget + +EvictionTarget contains a reference to an object that should be evicted. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**pod** | [**V1alpha1EvictionPodReference**](V1alpha1EvictionPodReference.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1alpha1Requester.md b/kubernetes/docs/V1alpha1Requester.md new file mode 100644 index 0000000000..aef34d4833 --- /dev/null +++ b/kubernetes/docs/V1alpha1Requester.md @@ -0,0 +1,15 @@ + + +# V1alpha1Requester + +Requester allows you to identify the entity, that requested the eviction of the target. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**intent** | **String** | intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action. | | +|**name** | **String** | name allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each requester. This field is required. | | + + + diff --git a/kubernetes/docs/V1alpha1ResponderStatus.md b/kubernetes/docs/V1alpha1ResponderStatus.md new file mode 100644 index 0000000000..45a20c73d8 --- /dev/null +++ b/kubernetes/docs/V1alpha1ResponderStatus.md @@ -0,0 +1,19 @@ + + +# V1alpha1ResponderStatus + +ResponderStatus represents the last observed status of the eviction process of the responder. It should be only updated by the designated responder whose name is .name field. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**completionTime** | **OffsetDateTime** | completionTime tracks the time at which the Responder stopped processing the eviction request. Completion means that the responders has either fully or partially completed the eviction process, which may have resulted in target eviction (e.g. pod termination). It should reflect the present time when set. This field becomes immutable once set. | [optional] | +|**expectedCompletionTime** | **OffsetDateTime** | expectedCompletionTime is the time at which the eviction process step is expected to end for the responder. The time cannot be set to the past. May be omitted if no estimate can be made. | [optional] | +|**heartbeatTime** | **OffsetDateTime** | heartbeatTime is the last time at which the eviction process was reported to be in progress by the responder. It should reflect the present time when set. Responders should avoid heartbeats more frequent than 20 seconds to avoid overloading the control-plane. | [optional] | +|**message** | **String** | message provides human-readable details about the state of the responder and the eviction process. Maximum length is 4000 characters. | [optional] | +|**name** | **String** | name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field is initialized by Kubernetes and must be unique for each responder. This field is required. | | +|**startTime** | **OffsetDateTime** | startTime tracks the time at which this responder was designated as active and should start processing the eviction request. It should reflect the present time when set. This field is initialized by Kubernetes when this responder becomes active. This field becomes immutable once set. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha1TargetResponder.md b/kubernetes/docs/V1alpha1TargetResponder.md new file mode 100644 index 0000000000..6269180374 --- /dev/null +++ b/kubernetes/docs/V1alpha1TargetResponder.md @@ -0,0 +1,16 @@ + + +# V1alpha1TargetResponder + +TargetResponder allows you to specify the responder reacting to the Eviction. Responders should observe and communicate through the Eviction API (see .state) to help with the graceful eviction of a target (e.g. termination of a pod). + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each responder. This field is required. | | +|**priority** | **Integer** | priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required and immutable. | | +|**state** | **String** | state specifies a state that is assigned by the evictionrequest-controller. Responders should observe this state in order to navigate their lifecycle. - Inactive means that the responder should not yet process this eviction request. - Active means that the responder is either running or expected to start soon. Also, startTime has been set in the ResponderStatus by the evictionrequest-controller. An active responder should currently interact with the eviction process by updating .status.responders, where .name is the active responder name. ResponderStatus fields should be periodically updated to indicate the progress or completion of the eviction process. If .status.responders[].heartbeatTime field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. Only one responder can be active at a time. - Interrupted means that the responder has failed to start or failed to update heartbeatTime in ResponderStatus in a timely manner. - Canceled means that the responder has been canceled. In other words, there is no EvictionRequest with the same target and Eviction intent in .spec.intent. - Completed means that the responder has successfully completed and set completionTime in ResponderStatus. Please refer to the ResponderStatus in .status.responders for more details on each responder. | | + + + diff --git a/kubernetes/docs/V1alpha2GangSchedulingPolicy.md b/kubernetes/docs/V1alpha2GangSchedulingPolicy.md deleted file mode 100644 index 3f39ea9194..0000000000 --- a/kubernetes/docs/V1alpha2GangSchedulingPolicy.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha2GangSchedulingPolicy - -GangSchedulingPolicy defines the parameters for gang scheduling. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**minCount** | **Integer** | MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. | | - - - diff --git a/kubernetes/docs/V1alpha2LeaseCandidateSpec.md b/kubernetes/docs/V1alpha2LeaseCandidateSpec.md index a9e94cbdec..74fd4616bf 100644 --- a/kubernetes/docs/V1alpha2LeaseCandidateSpec.md +++ b/kubernetes/docs/V1alpha2LeaseCandidateSpec.md @@ -8,12 +8,12 @@ LeaseCandidateSpec is a specification of a Lease. | 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. 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. | | +|**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. 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/V1alpha2PodGroupSchedulingPolicy.md b/kubernetes/docs/V1alpha2PodGroupSchedulingPolicy.md deleted file mode 100644 index a1951c1e32..0000000000 --- a/kubernetes/docs/V1alpha2PodGroupSchedulingPolicy.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha2PodGroupSchedulingPolicy - -PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**basic** | **Object** | Basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. | [optional] | -|**gang** | [**V1alpha2GangSchedulingPolicy**](V1alpha2GangSchedulingPolicy.md) | | [optional] | - - - diff --git a/kubernetes/docs/V1alpha2PodGroupSpec.md b/kubernetes/docs/V1alpha2PodGroupSpec.md deleted file mode 100644 index b6741f4406..0000000000 --- a/kubernetes/docs/V1alpha2PodGroupSpec.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha2PodGroupSpec - -PodGroupSpec defines the desired state of a PodGroup. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**disruptionMode** | **String** | DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. | [optional] | -|**podGroupTemplateRef** | [**V1alpha2PodGroupTemplateReference**](V1alpha2PodGroupTemplateReference.md) | | [optional] | -|**priority** | **Integer** | Priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. 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. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. | [optional] | -|**priorityClassName** | **String** | PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. | [optional] | -|**resourceClaims** | [**List<V1alpha2PodGroupResourceClaim>**](V1alpha2PodGroupResourceClaim.md) | ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] | -|**schedulingConstraints** | [**V1alpha2PodGroupSchedulingConstraints**](V1alpha2PodGroupSchedulingConstraints.md) | | [optional] | -|**schedulingPolicy** | [**V1alpha2PodGroupSchedulingPolicy**](V1alpha2PodGroupSchedulingPolicy.md) | | | - - - diff --git a/kubernetes/docs/V1alpha2PodGroupStatus.md b/kubernetes/docs/V1alpha2PodGroupStatus.md deleted file mode 100644 index 9a416fbdcb..0000000000 --- a/kubernetes/docs/V1alpha2PodGroupStatus.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha2PodGroupStatus - -PodGroupStatus represents information about the status of a pod group. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupScheduled\": Indicates whether the scheduling requirement has been satisfied. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints, affinity/anti-affinity rules, or insufficient capacity for the gang. - \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error that happened during scheduling, for example due to nodeAffinity parsing errors. Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for higher-priority PodGroups or Pods. | [optional] | -|**resourceClaimStatuses** | [**List<V1alpha2PodGroupResourceClaimStatus>**](V1alpha2PodGroupResourceClaimStatus.md) | Status of resource claims. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha2PodGroupTemplate.md b/kubernetes/docs/V1alpha2PodGroupTemplate.md deleted file mode 100644 index 4b378248dc..0000000000 --- a/kubernetes/docs/V1alpha2PodGroupTemplate.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha2PodGroupTemplate - -PodGroupTemplate represents a template for a set of pods with a scheduling policy. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**disruptionMode** | **String** | DisruptionMode defines the mode in which a given PodGroup can be disrupted. One of Pod, PodGroup. This field is available only when the WorkloadAwarePreemption feature gate is enabled. | [optional] | -|**name** | **String** | Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. | | -|**priority** | **Integer** | Priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. 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. This field is available only when the WorkloadAwarePreemption feature gate is enabled. | [optional] | -|**priorityClassName** | **String** | PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, pod groups created from this template will have the priority set to zero. This field is available only when the WorkloadAwarePreemption feature gate is enabled. | [optional] | -|**resourceClaims** | [**List<V1alpha2PodGroupResourceClaim>**](V1alpha2PodGroupResourceClaim.md) | ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] | -|**schedulingConstraints** | [**V1alpha2PodGroupSchedulingConstraints**](V1alpha2PodGroupSchedulingConstraints.md) | | [optional] | -|**schedulingPolicy** | [**V1alpha2PodGroupSchedulingPolicy**](V1alpha2PodGroupSchedulingPolicy.md) | | | - - - diff --git a/kubernetes/docs/V1alpha2PodGroupTemplateReference.md b/kubernetes/docs/V1alpha2PodGroupTemplateReference.md deleted file mode 100644 index a87e982665..0000000000 --- a/kubernetes/docs/V1alpha2PodGroupTemplateReference.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha2PodGroupTemplateReference - -PodGroupTemplateReference references a PodGroup template defined in some object (e.g. Workload). Exactly one reference must be set. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**workload** | [**V1alpha2WorkloadPodGroupTemplateReference**](V1alpha2WorkloadPodGroupTemplateReference.md) | | [optional] | - - - diff --git a/kubernetes/docs/V1alpha2WorkloadPodGroupTemplateReference.md b/kubernetes/docs/V1alpha2WorkloadPodGroupTemplateReference.md deleted file mode 100644 index de1d6db870..0000000000 --- a/kubernetes/docs/V1alpha2WorkloadPodGroupTemplateReference.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha2WorkloadPodGroupTemplateReference - -WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**podGroupTemplateName** | **String** | PodGroupTemplateName defines the PodGroupTemplate name within the Workload object. | | -|**workloadName** | **String** | WorkloadName defines the name of the Workload object. | | - - - diff --git a/kubernetes/docs/V1alpha2WorkloadSpec.md b/kubernetes/docs/V1alpha2WorkloadSpec.md deleted file mode 100644 index 0d36d8a1cd..0000000000 --- a/kubernetes/docs/V1alpha2WorkloadSpec.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha2WorkloadSpec - -WorkloadSpec defines the desired state of a Workload. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**controllerRef** | [**V1alpha2TypedLocalObjectReference**](V1alpha2TypedLocalObjectReference.md) | | [optional] | -|**podGroupTemplates** | [**List<V1alpha2PodGroupTemplate>**](V1alpha2PodGroupTemplate.md) | PodGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. This field is immutable. | | - - - diff --git a/kubernetes/docs/V1alpha3CompositeDisruptionMode.md b/kubernetes/docs/V1alpha3CompositeDisruptionMode.md new file mode 100644 index 0000000000..a97b4dc56d --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositeDisruptionMode.md @@ -0,0 +1,15 @@ + + +# V1alpha3CompositeDisruptionMode + +CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**all** | **Object** | all specifies that all children groups can only be disrupted together. | [optional] | +|**single** | **Object** | single specifies that children groups can be disrupted independently from each other. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3CompositeGangSchedulingPolicy.md b/kubernetes/docs/V1alpha3CompositeGangSchedulingPolicy.md new file mode 100644 index 0000000000..532dc804e4 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositeGangSchedulingPolicy.md @@ -0,0 +1,14 @@ + + +# V1alpha3CompositeGangSchedulingPolicy + +CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**minGroupCount** | **Integer** | minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. | | + + + diff --git a/kubernetes/docs/V1beta1IPAddress.md b/kubernetes/docs/V1alpha3CompositePodGroup.md similarity index 57% rename from kubernetes/docs/V1beta1IPAddress.md rename to kubernetes/docs/V1alpha3CompositePodGroup.md index 3220585ed3..1d9abf53fe 100644 --- a/kubernetes/docs/V1beta1IPAddress.md +++ b/kubernetes/docs/V1alpha3CompositePodGroup.md @@ -1,8 +1,8 @@ -# V1beta1IPAddress +# V1alpha3CompositePodGroup -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 +CompositePodGroup represents a runtime instance of pod groups grouped together. CompositePodGroups are created by workload controllers (LWS, JobSet, etc...) from Workload.compositePodGroupTemplates. CompositePodGroup API enablement is toggled by the CompositePodGroup feature gate. ## Properties @@ -11,7 +11,8 @@ IPAddress represents a single IP of a single IP Family. The object is designed t |**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** | [**V1beta1IPAddressSpec**](V1beta1IPAddressSpec.md) | | | +|**spec** | [**V1alpha3CompositePodGroupSpec**](V1alpha3CompositePodGroupSpec.md) | | | +|**status** | [**V1alpha3CompositePodGroupStatus**](V1alpha3CompositePodGroupStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha3CompositePodGroupList.md b/kubernetes/docs/V1alpha3CompositePodGroupList.md new file mode 100644 index 0000000000..05cb19eb92 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositePodGroupList.md @@ -0,0 +1,21 @@ + + +# V1alpha3CompositePodGroupList + +CompositePodGroupList contains a list of CompositePodGroup resources. + +## 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<V1alpha3CompositePodGroup>**](V1alpha3CompositePodGroup.md) | Items is the list of CompositePodGroups. | | +|**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/V1alpha3CompositePodGroupSchedulingConstraints.md b/kubernetes/docs/V1alpha3CompositePodGroupSchedulingConstraints.md new file mode 100644 index 0000000000..ef43f87b87 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositePodGroupSchedulingConstraints.md @@ -0,0 +1,14 @@ + + +# V1alpha3CompositePodGroupSchedulingConstraints + +CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**topology** | [**List<V1alpha3TopologyConstraint>**](V1alpha3TopologyConstraint.md) | topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3CompositePodGroupSchedulingPolicy.md b/kubernetes/docs/V1alpha3CompositePodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..da508ae17f --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositePodGroupSchedulingPolicy.md @@ -0,0 +1,15 @@ + + +# V1alpha3CompositePodGroupSchedulingPolicy + +CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**basic** | **Object** | basic specifies that the groups of this composite group should be scheduled independently. This field is immutable. | [optional] | +|**gang** | [**V1alpha3CompositeGangSchedulingPolicy**](V1alpha3CompositeGangSchedulingPolicy.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3CompositePodGroupSpec.md b/kubernetes/docs/V1alpha3CompositePodGroupSpec.md new file mode 100644 index 0000000000..a439713f83 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositePodGroupSpec.md @@ -0,0 +1,21 @@ + + +# V1alpha3CompositePodGroupSpec + +CompositePodGroupSpec defines the desired state of CompositePodGroup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**disruptionMode** | [**V1alpha3CompositeDisruptionMode**](V1alpha3CompositeDisruptionMode.md) | | [optional] | +|**parentCompositePodGroupName** | **String** | parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite pod group. It must be a DNS name. If it's nil, then this composite pod group is a root of a workload's hierarchy. This field is immutable. | [optional] | +|**preemptionPolicy** | **String** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] | +|**priority** | **Integer** | priority is the value of priority of this composite pod group. Various system components use this field to find the priority of the composite pod group. 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. This field is immutable. | [optional] | +|**priorityClassName** | **String** | priorityClassName defines the priority that should be considered when scheduling this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. If left unspecified, it is validated and resolved similarly to the PriorityClassName field in Pods (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the composite pod group's priority will be zero). This field is immutable. | [optional] | +|**schedulingConstraints** | [**V1alpha3CompositePodGroupSchedulingConstraints**](V1alpha3CompositePodGroupSchedulingConstraints.md) | | [optional] | +|**schedulingPolicy** | [**V1alpha3CompositePodGroupSchedulingPolicy**](V1alpha3CompositePodGroupSchedulingPolicy.md) | | | +|**workloadRef** | [**V1alpha3WorkloadReference**](V1alpha3WorkloadReference.md) | | | + + + diff --git a/kubernetes/docs/V1alpha3CompositePodGroupStatus.md b/kubernetes/docs/V1alpha3CompositePodGroupStatus.md new file mode 100644 index 0000000000..bfd44d6c38 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositePodGroupStatus.md @@ -0,0 +1,14 @@ + + +# V1alpha3CompositePodGroupStatus + +CompositePodGroupStatus represents information about the status of a composite pod group. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | conditions represent the latest observations of the CompositePodGroup's state. Known condition types: - \"CompositePodGroupInitiallyScheduled\": Indicates whether the overall scheduling requirement for the subtree under this CompositePodGroup has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently deleted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the CompositePodGroup is about to be terminated due to disruption such as preemption. Known reasons for the CompositePodGroupInitiallyScheduled condition: - \"Unschedulable\": The CompositePodGroup's subtree could not be placed due to resource constraints, affinity/anti-affinity, or topological constraints. - \"SchedulerError\": The CompositePodGroup cannot be scheduled due to some internal error that occurred during scheduling. - \"Invalid\": Set to True when kube-scheduler detects an invalid group layout during runtime validation. The `message` field details the specific layout violation (such as a detected cycle, exceeding the maximum depth of 4, or referencing multiple distinct Workloads). Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The CompositePodGroup was targeted by the scheduler's preemption loop to free up capacity for higher-priority preemptors. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3CompositePodGroupTemplate.md b/kubernetes/docs/V1alpha3CompositePodGroupTemplate.md new file mode 100644 index 0000000000..0a600009f0 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositePodGroupTemplate.md @@ -0,0 +1,22 @@ + + +# V1alpha3CompositePodGroupTemplate + +CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**compositePodGroupTemplates** | [**List<V1alpha3CompositePodGroupTemplate>**](V1alpha3CompositePodGroupTemplate.md) | compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. | [optional] | +|**disruptionMode** | [**V1alpha3CompositeDisruptionMode**](V1alpha3CompositeDisruptionMode.md) | | [optional] | +|**name** | **String** | name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required. | | +|**podGroupTemplates** | [**List<V1alpha3PodGroupTemplate>**](V1alpha3PodGroupTemplate.md) | podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. | [optional] | +|**preemptionPolicy** | **String** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] | +|**priority** | **Integer** | priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite pod group. 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. This field is immutable. | [optional] | +|**priorityClassName** | **String** | priorityClassName indicates the priority that should be considered when scheduling a composite pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, composite pod groups created from this template will have the priority set to zero. This field is immutable. | [optional] | +|**schedulingConstraints** | [**V1alpha3CompositePodGroupSchedulingConstraints**](V1alpha3CompositePodGroupSchedulingConstraints.md) | | [optional] | +|**schedulingPolicy** | [**V1alpha3CompositePodGroupSchedulingPolicy**](V1alpha3CompositePodGroupSchedulingPolicy.md) | | | + + + diff --git a/kubernetes/docs/V1alpha3DisruptionMode.md b/kubernetes/docs/V1alpha3DisruptionMode.md new file mode 100644 index 0000000000..57efa8c21a --- /dev/null +++ b/kubernetes/docs/V1alpha3DisruptionMode.md @@ -0,0 +1,15 @@ + + +# V1alpha3DisruptionMode + +DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**all** | **Object** | all specifies that all children can only be disrupted together. | [optional] | +|**single** | **Object** | single specifies that children can be disrupted independently from each other. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3GangSchedulingPolicy.md b/kubernetes/docs/V1alpha3GangSchedulingPolicy.md new file mode 100644 index 0000000000..ca284c6c66 --- /dev/null +++ b/kubernetes/docs/V1alpha3GangSchedulingPolicy.md @@ -0,0 +1,14 @@ + + +# V1alpha3GangSchedulingPolicy + +GangSchedulingPolicy defines the parameters for gang scheduling. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**minCount** | **Integer** | minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles. | | + + + diff --git a/kubernetes/docs/V1alpha3PartitionTypeStatus.md b/kubernetes/docs/V1alpha3PartitionTypeStatus.md new file mode 100644 index 0000000000..d16e21a8ed --- /dev/null +++ b/kubernetes/docs/V1alpha3PartitionTypeStatus.md @@ -0,0 +1,17 @@ + + +# V1alpha3PartitionTypeStatus + +PartitionTypeStatus reports allocatability for a single partition type, identified by the value of a grouping attribute. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocatable** | **Integer** | Allocatable is the number of additional devices of this partition type that could still be allocated given current shared-counter consumption. | | +|**attribute** | **String** | Attribute is the fully qualified name of the device attribute whose value groups this entry. It is the PartitionTypeAttribute declared by the devices' own slice, or the default named in the request when their slice declares none. | | +|**total** | **Integer** | Total is the number of devices of this partition type in the pool. | | +|**type** | **String** | Type is the partition type value (e.g. \"Full\" or \"Half\"). | | + + + diff --git a/kubernetes/docs/V1alpha2PodGroup.md b/kubernetes/docs/V1alpha3PodGroup.md similarity index 89% rename from kubernetes/docs/V1alpha2PodGroup.md rename to kubernetes/docs/V1alpha3PodGroup.md index c359b09630..9af1c93f8c 100644 --- a/kubernetes/docs/V1alpha2PodGroup.md +++ b/kubernetes/docs/V1alpha3PodGroup.md @@ -1,6 +1,6 @@ -# V1alpha2PodGroup +# V1alpha3PodGroup PodGroup represents a runtime instance of pods grouped together. PodGroups are created by workload controllers (Job, LWS, JobSet, etc...) from Workload.podGroupTemplates. PodGroup API enablement is toggled by the GenericWorkload feature gate. @@ -11,8 +11,8 @@ PodGroup represents a runtime instance of pods grouped together. PodGroups are c |**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** | [**V1alpha2PodGroupSpec**](V1alpha2PodGroupSpec.md) | | | -|**status** | [**V1alpha2PodGroupStatus**](V1alpha2PodGroupStatus.md) | | [optional] | +|**spec** | [**V1alpha3PodGroupSpec**](V1alpha3PodGroupSpec.md) | | | +|**status** | [**V1alpha3PodGroupStatus**](V1alpha3PodGroupStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha2PodGroupList.md b/kubernetes/docs/V1alpha3PodGroupList.md similarity index 92% rename from kubernetes/docs/V1alpha2PodGroupList.md rename to kubernetes/docs/V1alpha3PodGroupList.md index 66a11f6691..35d75e06f0 100644 --- a/kubernetes/docs/V1alpha2PodGroupList.md +++ b/kubernetes/docs/V1alpha3PodGroupList.md @@ -1,6 +1,6 @@ -# V1alpha2PodGroupList +# V1alpha3PodGroupList PodGroupList contains a list of PodGroup resources. @@ -9,7 +9,7 @@ PodGroupList contains a list of PodGroup resources. | 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<V1alpha2PodGroup>**](V1alpha2PodGroup.md) | Items is the list of PodGroups. | | +|**items** | [**List<V1alpha3PodGroup>**](V1alpha3PodGroup.md) | Items is the list of PodGroups. | | |**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/V1alpha2PodGroupResourceClaim.md b/kubernetes/docs/V1alpha3PodGroupResourceClaim.md similarity index 87% rename from kubernetes/docs/V1alpha2PodGroupResourceClaim.md rename to kubernetes/docs/V1alpha3PodGroupResourceClaim.md index 3e3b863395..49a922c69c 100644 --- a/kubernetes/docs/V1alpha2PodGroupResourceClaim.md +++ b/kubernetes/docs/V1alpha3PodGroupResourceClaim.md @@ -1,6 +1,6 @@ -# V1alpha2PodGroupResourceClaim +# V1alpha3PodGroupResourceClaim PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup. It adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly. @@ -8,9 +8,9 @@ PodGroupResourceClaim references exactly one ResourceClaim, either directly or b | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | Name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. | | -|**resourceClaimName** | **String** | ResourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. | [optional] | -|**resourceClaimTemplateName** | **String** | ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this PodGroup. The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup 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 podgroup.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. | [optional] | +|**name** | **String** | name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. | | +|**resourceClaimName** | **String** | resourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. | [optional] | +|**resourceClaimTemplateName** | **String** | resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this PodGroup. The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup 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 podgroup.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. | [optional] | diff --git a/kubernetes/docs/V1alpha2PodGroupResourceClaimStatus.md b/kubernetes/docs/V1alpha3PodGroupResourceClaimStatus.md similarity index 81% rename from kubernetes/docs/V1alpha2PodGroupResourceClaimStatus.md rename to kubernetes/docs/V1alpha3PodGroupResourceClaimStatus.md index b11c9aa0a3..12e7a59276 100644 --- a/kubernetes/docs/V1alpha2PodGroupResourceClaimStatus.md +++ b/kubernetes/docs/V1alpha3PodGroupResourceClaimStatus.md @@ -1,6 +1,6 @@ -# V1alpha2PodGroupResourceClaimStatus +# V1alpha3PodGroupResourceClaimStatus PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. @@ -8,8 +8,8 @@ PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupRes | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | Name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.spec.resourceClaims, which implies that the string must be a DNS_LABEL. | | -|**resourceClaimName** | **String** | ResourceClaimName is the name of the ResourceClaim that was generated for the PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case. | [optional] | +|**name** | **String** | name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.spec.resourceClaims, which implies that the string must be a DNS_LABEL. | | +|**resourceClaimName** | **String** | resourceClaimName is the name of the ResourceClaim that was generated for the PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case. | [optional] | diff --git a/kubernetes/docs/V1alpha2PodGroupSchedulingConstraints.md b/kubernetes/docs/V1alpha3PodGroupSchedulingConstraints.md similarity index 67% rename from kubernetes/docs/V1alpha2PodGroupSchedulingConstraints.md rename to kubernetes/docs/V1alpha3PodGroupSchedulingConstraints.md index 94d8220b55..09cf2f0c93 100644 --- a/kubernetes/docs/V1alpha2PodGroupSchedulingConstraints.md +++ b/kubernetes/docs/V1alpha3PodGroupSchedulingConstraints.md @@ -1,6 +1,6 @@ -# V1alpha2PodGroupSchedulingConstraints +# V1alpha3PodGroupSchedulingConstraints PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. @@ -8,7 +8,7 @@ PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**topology** | [**List<V1alpha2TopologyConstraint>**](V1alpha2TopologyConstraint.md) | Topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future. | [optional] | +|**topology** | [**List<V1alpha3TopologyConstraint>**](V1alpha3TopologyConstraint.md) | topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future. | [optional] | diff --git a/kubernetes/docs/V1alpha3PodGroupSchedulingPolicy.md b/kubernetes/docs/V1alpha3PodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..034083ff22 --- /dev/null +++ b/kubernetes/docs/V1alpha3PodGroupSchedulingPolicy.md @@ -0,0 +1,15 @@ + + +# V1alpha3PodGroupSchedulingPolicy + +PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**basic** | **Object** | basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward. | [optional] | +|**gang** | [**V1alpha3GangSchedulingPolicy**](V1alpha3GangSchedulingPolicy.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3PodGroupSpec.md b/kubernetes/docs/V1alpha3PodGroupSpec.md new file mode 100644 index 0000000000..358e06aa06 --- /dev/null +++ b/kubernetes/docs/V1alpha3PodGroupSpec.md @@ -0,0 +1,22 @@ + + +# V1alpha3PodGroupSpec + +PodGroupSpec defines the desired state of a PodGroup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**disruptionMode** | [**V1alpha3DisruptionMode**](V1alpha3DisruptionMode.md) | | [optional] | +|**parentCompositePodGroupName** | **String** | parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable. | [optional] | +|**preemptionPolicy** | **String** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] | +|**priority** | **Integer** | priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. 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. This field is immutable. | [optional] | +|**priorityClassName** | **String** | priorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. | [optional] | +|**resourceClaims** | [**List<V1alpha3PodGroupResourceClaim>**](V1alpha3PodGroupResourceClaim.md) | resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] | +|**schedulingConstraints** | [**V1alpha3PodGroupSchedulingConstraints**](V1alpha3PodGroupSchedulingConstraints.md) | | [optional] | +|**schedulingPolicy** | [**V1alpha3PodGroupSchedulingPolicy**](V1alpha3PodGroupSchedulingPolicy.md) | | | +|**workloadRef** | [**V1alpha3WorkloadReference**](V1alpha3WorkloadReference.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3PodGroupStatus.md b/kubernetes/docs/V1alpha3PodGroupStatus.md new file mode 100644 index 0000000000..c5bddc4ed9 --- /dev/null +++ b/kubernetes/docs/V1alpha3PodGroupStatus.md @@ -0,0 +1,15 @@ + + +# V1alpha3PodGroupStatus + +PodGroupStatus represents information about the status of a pod group. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints, affinity/anti-affinity rules, or insufficient capacity for the gang. - \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error that happened during scheduling, for example due to nodeAffinity parsing errors. Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for higher-priority PodGroups or Pods. | [optional] | +|**resourceClaimStatuses** | [**List<V1alpha3PodGroupResourceClaimStatus>**](V1alpha3PodGroupResourceClaimStatus.md) | resourceClaimStatuses is status of resource claims. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3PodGroupTemplate.md b/kubernetes/docs/V1alpha3PodGroupTemplate.md new file mode 100644 index 0000000000..b660941754 --- /dev/null +++ b/kubernetes/docs/V1alpha3PodGroupTemplate.md @@ -0,0 +1,21 @@ + + +# V1alpha3PodGroupTemplate + +PodGroupTemplate represents a template for a set of pods with a scheduling policy. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**disruptionMode** | [**V1alpha3DisruptionMode**](V1alpha3DisruptionMode.md) | | [optional] | +|**name** | **String** | name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. | | +|**preemptionPolicy** | **String** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] | +|**priority** | **Integer** | priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. The higher the value, the higher the priority. This field is immutable. | [optional] | +|**priorityClassName** | **String** | priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable. | [optional] | +|**resourceClaims** | [**List<V1alpha3PodGroupResourceClaim>**](V1alpha3PodGroupResourceClaim.md) | resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] | +|**schedulingConstraints** | [**V1alpha3PodGroupSchedulingConstraints**](V1alpha3PodGroupSchedulingConstraints.md) | | [optional] | +|**schedulingPolicy** | [**V1alpha3PodGroupSchedulingPolicy**](V1alpha3PodGroupSchedulingPolicy.md) | | | + + + diff --git a/kubernetes/docs/V1alpha3PoolStatus.md b/kubernetes/docs/V1alpha3PoolStatus.md index 23f5431548..ac799d0d1b 100644 --- a/kubernetes/docs/V1alpha3PoolStatus.md +++ b/kubernetes/docs/V1alpha3PoolStatus.md @@ -13,8 +13,10 @@ PoolStatus contains status information for a single resource pool. |**driver** | **String** | Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., \"gpu.example.com\"). | | |**generation** | **Long** | Generation is the pool generation observed across all ResourceSlices in this pool. Only the latest generation is reported. During a generation rollout, if not all slices at the latest generation have been published, the pool is included with a validationError and device counts unset. | | |**nodeName** | **String** | NodeName is the node this pool is associated with. When omitted, the pool is not associated with a specific node. Must be a valid DNS subdomain name (RFC1123). | [optional] | +|**partitionSummary** | [**List<V1alpha3PartitionTypeStatus>**](V1alpha3PartitionTypeStatus.md) | PartitionSummary reports allocatability per (attribute, partition type) for a partitionable pool that publishes SharedCounters. Each entry names the grouping attribute it was resolved from: the PartitionTypeAttribute declared by a device's own slice, or for devices whose slice declares none, the default named in the request. A pool that mixes partitions declared under different attributes reports each independently. When no slice declares an attribute and the request names no default, the pool reports no partition summary. | [optional] | |**poolName** | **String** | PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\"). | | |**resourceSliceCount** | **Integer** | ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set. | [optional] | +|**shareableSummary** | [**V1alpha3ShareableSummaryStatus**](V1alpha3ShareableSummaryStatus.md) | | [optional] | |**totalDevices** | **Integer** | TotalDevices is the total number of devices in the pool across all slices. A value of 0 means the pool has no devices. May be unset when validationError is set. | [optional] | |**unavailableDevices** | **Integer** | UnavailableDevices is the number of devices that are not available due to taints or other conditions, but are not allocated. A value of 0 means all unallocated devices are available. May be unset when validationError is set. | [optional] | |**validationError** | **String** | ValidationError is set when the pool's data could not be fully validated (e.g., incomplete slice publication). When set, device count fields and ResourceSliceCount may be unset. | [optional] | diff --git a/kubernetes/docs/V1alpha3ResourcePoolStatusRequestSpec.md b/kubernetes/docs/V1alpha3ResourcePoolStatusRequestSpec.md index 32ca457f16..dec2f5fc59 100644 --- a/kubernetes/docs/V1alpha3ResourcePoolStatusRequestSpec.md +++ b/kubernetes/docs/V1alpha3ResourcePoolStatusRequestSpec.md @@ -8,6 +8,7 @@ ResourcePoolStatusRequestSpec defines the filters for the pool status request. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**defaultPartitionTypeAttribute** | **String** | DefaultPartitionTypeAttribute optionally names a device attribute (by its fully qualified name, e.g. \"gpu.example.com/profile\") to use as the default grouping attribute for partitionable devices whose slice has not declared one themselves. A slice's own PartitionTypeAttribute always takes precedence. This default applies only to devices whose slice does not declare one, so that a request can still get an accurate partitionSummary from a driver that has not been updated to declare it. When neither the slice nor this default names an attribute, a partitionable pool reports no partitionSummary. Must include the domain qualifier. | [optional] | |**driver** | **String** | Driver specifies the DRA driver name to filter pools. Only pools from ResourceSlices with this driver will be included. Must be a DNS subdomain (e.g., \"gpu.example.com\"). | | |**limit** | **Integer** | Limit optionally specifies the maximum number of pools to return in the status. If more pools match the filter criteria, the response will be truncated (i.e., len(status.pools) < status.poolCount). Default: 100 Minimum: 1 Maximum: 1000 | [optional] | |**poolName** | **String** | PoolName optionally filters to a specific pool name. If not specified, all pools from the specified driver are included. When specified, must be a non-empty valid resource pool name (DNS subdomains separated by \"/\"). | [optional] | diff --git a/kubernetes/docs/V1alpha3ShareableCapacityStatus.md b/kubernetes/docs/V1alpha3ShareableCapacityStatus.md new file mode 100644 index 0000000000..cdc5d23700 --- /dev/null +++ b/kubernetes/docs/V1alpha3ShareableCapacityStatus.md @@ -0,0 +1,17 @@ + + +# V1alpha3ShareableCapacityStatus + +ShareableCapacityStatus reports aggregate amounts for a single shareable capacity key. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**available** | **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. | | +|**consumed** | **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. | | +|**name** | **String** | Name is the capacity name. | | +|**total** | **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/V1alpha3ShareableSummaryStatus.md b/kubernetes/docs/V1alpha3ShareableSummaryStatus.md new file mode 100644 index 0000000000..888618a7e6 --- /dev/null +++ b/kubernetes/docs/V1alpha3ShareableSummaryStatus.md @@ -0,0 +1,16 @@ + + +# V1alpha3ShareableSummaryStatus + +ShareableSummaryStatus reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**capacity** | [**List<V1alpha3ShareableCapacityStatus>**](V1alpha3ShareableCapacityStatus.md) | Capacity reports aggregate total, consumed, and available amounts per shareable capacity key across the pool. | [optional] | +|**fullyAvailableDevices** | **Integer** | FullyAvailableDevices is the number of shareable devices with no capacity consumed. | | +|**partiallyAvailableDevices** | **Integer** | PartiallyAvailableDevices is the number of shareable devices with some but not all capacity consumed. | | + + + diff --git a/kubernetes/docs/V1alpha2TopologyConstraint.md b/kubernetes/docs/V1alpha3TopologyConstraint.md similarity index 83% rename from kubernetes/docs/V1alpha2TopologyConstraint.md rename to kubernetes/docs/V1alpha3TopologyConstraint.md index 415c7fe5af..f32a100e2c 100644 --- a/kubernetes/docs/V1alpha2TopologyConstraint.md +++ b/kubernetes/docs/V1alpha3TopologyConstraint.md @@ -1,6 +1,6 @@ -# V1alpha2TopologyConstraint +# V1alpha3TopologyConstraint TopologyConstraint defines a topology constraint for a PodGroup. @@ -8,7 +8,7 @@ TopologyConstraint defines a topology constraint for a PodGroup. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**key** | **String** | Key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\" | | +|**key** | **String** | key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\" | | diff --git a/kubernetes/docs/V1alpha2TypedLocalObjectReference.md b/kubernetes/docs/V1alpha3TypedLocalObjectReference.md similarity index 68% rename from kubernetes/docs/V1alpha2TypedLocalObjectReference.md rename to kubernetes/docs/V1alpha3TypedLocalObjectReference.md index b01e658a15..16b188c537 100644 --- a/kubernetes/docs/V1alpha2TypedLocalObjectReference.md +++ b/kubernetes/docs/V1alpha3TypedLocalObjectReference.md @@ -1,6 +1,6 @@ -# V1alpha2TypedLocalObjectReference +# V1alpha3TypedLocalObjectReference TypedLocalObjectReference allows to reference typed object inside the same namespace. @@ -8,9 +8,9 @@ TypedLocalObjectReference allows to reference typed object inside the same names | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiGroup** | **String** | APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain. | [optional] | -|**kind** | **String** | Kind is the type of resource being referenced. It must be a path segment name. | | -|**name** | **String** | Name is the name of resource being referenced. It must be a path segment name. | | +|**apiGroup** | **String** | apiGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain. | [optional] | +|**kind** | **String** | kind is the type of resource being referenced. It must be a path segment name. | | +|**name** | **String** | name is the name of resource being referenced. It must be a path segment name. | | diff --git a/kubernetes/docs/V1alpha2Workload.md b/kubernetes/docs/V1alpha3Workload.md similarity index 93% rename from kubernetes/docs/V1alpha2Workload.md rename to kubernetes/docs/V1alpha3Workload.md index cb712cc24b..f513f63dc4 100644 --- a/kubernetes/docs/V1alpha2Workload.md +++ b/kubernetes/docs/V1alpha3Workload.md @@ -1,6 +1,6 @@ -# V1alpha2Workload +# V1alpha3Workload Workload allows for expressing scheduling constraints that should be used when managing the lifecycle of workloads from the scheduling perspective, including scheduling, preemption, eviction and other phases. Workload API enablement is toggled by the GenericWorkload feature gate. @@ -11,7 +11,7 @@ Workload allows for expressing scheduling constraints that should be used when m |**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** | [**V1alpha2WorkloadSpec**](V1alpha2WorkloadSpec.md) | | | +|**spec** | [**V1alpha3WorkloadSpec**](V1alpha3WorkloadSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha2WorkloadList.md b/kubernetes/docs/V1alpha3WorkloadList.md similarity index 92% rename from kubernetes/docs/V1alpha2WorkloadList.md rename to kubernetes/docs/V1alpha3WorkloadList.md index 636bc65b7e..b973454d81 100644 --- a/kubernetes/docs/V1alpha2WorkloadList.md +++ b/kubernetes/docs/V1alpha3WorkloadList.md @@ -1,6 +1,6 @@ -# V1alpha2WorkloadList +# V1alpha3WorkloadList WorkloadList contains a list of Workload resources. @@ -9,7 +9,7 @@ WorkloadList contains a list of Workload resources. | 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<V1alpha2Workload>**](V1alpha2Workload.md) | Items is the list of Workloads. | | +|**items** | [**List<V1alpha3Workload>**](V1alpha3Workload.md) | Items is the list of Workloads. | | |**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/V1alpha3WorkloadPodGroupDisruptionMode.md b/kubernetes/docs/V1alpha3WorkloadPodGroupDisruptionMode.md new file mode 100644 index 0000000000..a5711795e5 --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadPodGroupDisruptionMode.md @@ -0,0 +1,15 @@ + + +# V1alpha3WorkloadPodGroupDisruptionMode + +WorkloadPodGroupDisruptionMode defines how individual pods within a group can be disrupted. Exactly one mode must be set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**all** | **Object** | all specifies that all pods in the group must be disrupted together. | [optional] | +|**single** | **Object** | single specifies that pods can be disrupted independently from each other. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md b/kubernetes/docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md new file mode 100644 index 0000000000..3f53398c9a --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md @@ -0,0 +1,14 @@ + + +# V1alpha3WorkloadPodGroupGangSchedulingPolicy + +WorkloadPodGroupGangSchedulingPolicy defines the parameters for gang (all-or-nothing) scheduling. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**minCount** | **Integer** | minCount is the minimum number of pods that must be scheduled at the same time for the scheduler to admit the entire group. This field is optional. If it is not specified, the controller should inject a context-specific sane default (e.g., parallelism for a Job). If set, it must be a positive integer. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3WorkloadPodGroupResourceClaim.md b/kubernetes/docs/V1alpha3WorkloadPodGroupResourceClaim.md new file mode 100644 index 0000000000..866c846b9e --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadPodGroupResourceClaim.md @@ -0,0 +1,16 @@ + + +# V1alpha3WorkloadPodGroupResourceClaim + +WorkloadPodGroupResourceClaim references a dynamic resource claim that is shared across pods in the group. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name uniquely identifies this resource claim inside the group. This field is required. It must be a DNS_LABEL. | | +|**resourceClaimName** | **String** | resourceClaimName is the name of a ResourceClaim object in the same namespace. This field is optional. If it is not specified, no resource claim is used. If set, it must be a DNS subdomain. | [optional] | +|**resourceClaimTemplateName** | **String** | resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace. This field is optional. If it is not specified, no resource claim template is used. If set, it must be a DNS subdomain. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md b/kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md new file mode 100644 index 0000000000..4cb40d0dbb --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md @@ -0,0 +1,14 @@ + + +# V1alpha3WorkloadPodGroupSchedulingConstraints + +WorkloadPodGroupSchedulingConstraints defines leaf-level scheduling constraints, such as topology. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**topology** | [**List<V1alpha3TopologyConstraint>**](V1alpha3TopologyConstraint.md) | topology specifies desired topological placements for all pods within the pod group. If unset, no topology placement is requested. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md b/kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..f4b5f07769 --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md @@ -0,0 +1,15 @@ + + +# V1alpha3WorkloadPodGroupSchedulingPolicy + +WorkloadPodGroupSchedulingPolicy defines the scheduling policy for a group of pods managed by a workload controller. Exactly one policy must be set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**basic** | **Object** | basic specifies that standard, pod-by-pod Kubernetes scheduling behavior should be used. | [optional] | +|**gang** | [**V1alpha3WorkloadPodGroupGangSchedulingPolicy**](V1alpha3WorkloadPodGroupGangSchedulingPolicy.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3WorkloadReference.md b/kubernetes/docs/V1alpha3WorkloadReference.md new file mode 100644 index 0000000000..6e97006478 --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadReference.md @@ -0,0 +1,15 @@ + + +# V1alpha3WorkloadReference + +WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**templateName** | **String** | templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required. | | +|**workloadName** | **String** | workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required. | | + + + diff --git a/kubernetes/docs/V1alpha3WorkloadSpec.md b/kubernetes/docs/V1alpha3WorkloadSpec.md new file mode 100644 index 0000000000..b69edc5022 --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadSpec.md @@ -0,0 +1,16 @@ + + +# V1alpha3WorkloadSpec + +WorkloadSpec defines the desired state of a Workload. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**compositePodGroupTemplates** | [**List<V1alpha3CompositePodGroupTemplate>**](V1alpha3CompositePodGroupTemplate.md) | compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled. | [optional] | +|**controllerRef** | [**V1alpha3TypedLocalObjectReference**](V1alpha3TypedLocalObjectReference.md) | | [optional] | +|**podGroupTemplates** | [**List<V1alpha3PodGroupTemplate>**](V1alpha3PodGroupTemplate.md) | podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1BasicDevice.md b/kubernetes/docs/V1beta1BasicDevice.md index 66c651d33b..5a4f1af27e 100644 --- a/kubernetes/docs/V1beta1BasicDevice.md +++ b/kubernetes/docs/V1beta1BasicDevice.md @@ -16,7 +16,7 @@ BasicDevice defines one device instance. |**bindsToNode** | **Boolean** | BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [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 maximum number of device counter consumptions per device is 2. | [optional] | -|**nodeAllocatableResourceMappings** | [**Map<String, V1beta1NodeAllocatableResourceMapping>**](V1beta1NodeAllocatableResourceMapping.md) | NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. | [optional] | +|**nodeAllocatableResources** | [**Map<String, V1beta1NodeAllocatableResource>**](V1beta1NodeAllocatableResource.md) | NodeAllocatableResources defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. | [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 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta1CELDeviceSelector.md b/kubernetes/docs/V1beta1CELDeviceSelector.md index aa17d05098..699d37564e 100644 --- a/kubernetes/docs/V1beta1CELDeviceSelector.md +++ b/kubernetes/docs/V1beta1CELDeviceSelector.md @@ -8,7 +8,7 @@ CELDeviceSelector contains a CEL expression for selecting a device. | 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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. | | +|**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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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. Common errors: - \"no such key\": Use optional chaining (.? followed by orValue()) or guarding the check with has() for optional fields. See CEL Optional Types for details: https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes For more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/ 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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/V1beta1CapacityRequestPolicyRange.md b/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md index e9340ba156..0ff2bcbfb6 100644 --- a/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md +++ b/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md @@ -2,7 +2,7 @@ # V1beta1CapacityRequestPolicyRange -CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. +CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. ## Properties diff --git a/kubernetes/docs/V1beta1ClusterTrustBundle.md b/kubernetes/docs/V1beta1ClusterTrustBundle.md index 4d93a6183a..74e249f955 100644 --- a/kubernetes/docs/V1beta1ClusterTrustBundle.md +++ b/kubernetes/docs/V1beta1ClusterTrustBundle.md @@ -2,7 +2,7 @@ # 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. +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 signer, 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 diff --git a/kubernetes/docs/V1beta1CompositeDisruptionMode.md b/kubernetes/docs/V1beta1CompositeDisruptionMode.md new file mode 100644 index 0000000000..2f0a830777 --- /dev/null +++ b/kubernetes/docs/V1beta1CompositeDisruptionMode.md @@ -0,0 +1,15 @@ + + +# V1beta1CompositeDisruptionMode + +CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**all** | **Object** | all specifies that all children groups can only be disrupted together. | [optional] | +|**single** | **Object** | single specifies that children groups can be disrupted independently from each other. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1CompositeGangSchedulingPolicy.md b/kubernetes/docs/V1beta1CompositeGangSchedulingPolicy.md new file mode 100644 index 0000000000..fd1a62abb1 --- /dev/null +++ b/kubernetes/docs/V1beta1CompositeGangSchedulingPolicy.md @@ -0,0 +1,14 @@ + + +# V1beta1CompositeGangSchedulingPolicy + +CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**minGroupCount** | **Integer** | minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. | | + + + diff --git a/kubernetes/docs/V1beta1CompositePodGroupSchedulingConstraints.md b/kubernetes/docs/V1beta1CompositePodGroupSchedulingConstraints.md new file mode 100644 index 0000000000..802f6adac5 --- /dev/null +++ b/kubernetes/docs/V1beta1CompositePodGroupSchedulingConstraints.md @@ -0,0 +1,14 @@ + + +# V1beta1CompositePodGroupSchedulingConstraints + +CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**topology** | [**List<V1beta1TopologyConstraint>**](V1beta1TopologyConstraint.md) | topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1CompositePodGroupSchedulingPolicy.md b/kubernetes/docs/V1beta1CompositePodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..e6d18622c6 --- /dev/null +++ b/kubernetes/docs/V1beta1CompositePodGroupSchedulingPolicy.md @@ -0,0 +1,15 @@ + + +# V1beta1CompositePodGroupSchedulingPolicy + +CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**basic** | **Object** | basic specifies that the groups of this composite group should be scheduled independently. This field is immutable. | [optional] | +|**gang** | [**V1beta1CompositeGangSchedulingPolicy**](V1beta1CompositeGangSchedulingPolicy.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1beta1CompositePodGroupTemplate.md b/kubernetes/docs/V1beta1CompositePodGroupTemplate.md new file mode 100644 index 0000000000..e0ad37eab9 --- /dev/null +++ b/kubernetes/docs/V1beta1CompositePodGroupTemplate.md @@ -0,0 +1,22 @@ + + +# V1beta1CompositePodGroupTemplate + +CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**compositePodGroupTemplates** | [**List<V1beta1CompositePodGroupTemplate>**](V1beta1CompositePodGroupTemplate.md) | compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. | [optional] | +|**disruptionMode** | [**V1beta1CompositeDisruptionMode**](V1beta1CompositeDisruptionMode.md) | | [optional] | +|**name** | **String** | name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required. | | +|**podGroupTemplates** | [**List<V1beta1PodGroupTemplate>**](V1beta1PodGroupTemplate.md) | podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. | [optional] | +|**preemptionPolicy** | **String** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] | +|**priority** | **Integer** | priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite pod group. 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. This field is immutable. | [optional] | +|**priorityClassName** | **String** | priorityClassName indicates the priority that should be considered when scheduling a composite pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, composite pod groups created from this template will have the priority set to zero. This field is immutable. | [optional] | +|**schedulingConstraints** | [**V1beta1CompositePodGroupSchedulingConstraints**](V1beta1CompositePodGroupSchedulingConstraints.md) | | [optional] | +|**schedulingPolicy** | [**V1beta1CompositePodGroupSchedulingPolicy**](V1beta1CompositePodGroupSchedulingPolicy.md) | | | + + + diff --git a/kubernetes/docs/V1beta1DeviceClass.md b/kubernetes/docs/V1beta1DeviceClass.md index d9887f1f63..55648446be 100644 --- a/kubernetes/docs/V1beta1DeviceClass.md +++ b/kubernetes/docs/V1beta1DeviceClass.md @@ -11,7 +11,7 @@ DeviceClass is a vendor- or admin-provided resource that contains device configu |**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** | [**V1beta1DeviceClassSpec**](V1beta1DeviceClassSpec.md) | | | +|**spec** | [**V1beta1DeviceClassSpec**](V1beta1DeviceClassSpec.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta1DeviceClassSpec.md b/kubernetes/docs/V1beta1DeviceClassSpec.md index 009d1917a7..d4a5ef101b 100644 --- a/kubernetes/docs/V1beta1DeviceClassSpec.md +++ b/kubernetes/docs/V1beta1DeviceClassSpec.md @@ -9,7 +9,7 @@ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and h | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**config** | [**List<V1beta1DeviceClassConfiguration>**](V1beta1DeviceClassConfiguration.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] | -|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field. | [optional] | +|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. | [optional] | |**selectors** | [**List<V1beta1DeviceSelector>**](V1beta1DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceCounterConsumption.md b/kubernetes/docs/V1beta1DeviceCounterConsumption.md index 5ccffca60e..6773e07647 100644 --- a/kubernetes/docs/V1beta1DeviceCounterConsumption.md +++ b/kubernetes/docs/V1beta1DeviceCounterConsumption.md @@ -8,6 +8,7 @@ DeviceCounterConsumption defines a set of counters that a device will consume fr | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**compatibilityGroups** | **List<String>** | CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique. | [optional] | |**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 of counters is 32. | | diff --git a/kubernetes/docs/V1beta1DeviceDerivedAttribute.md b/kubernetes/docs/V1beta1DeviceDerivedAttribute.md new file mode 100644 index 0000000000..d1dd054550 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceDerivedAttribute.md @@ -0,0 +1,15 @@ + + +# V1beta1DeviceDerivedAttribute + +DeviceDerivedAttribute defines a derived attribute computed via CEL. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expression** | **String** | Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. | | +|**name** | **String** | Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint. | | + + + diff --git a/kubernetes/docs/V1beta1DeviceRequest.md b/kubernetes/docs/V1beta1DeviceRequest.md index e6860a3fdb..edc4a34a2d 100644 --- a/kubernetes/docs/V1beta1DeviceRequest.md +++ b/kubernetes/docs/V1beta1DeviceRequest.md @@ -12,6 +12,7 @@ DeviceRequest is a request for devices required for a claim. This is typically a |**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] | |**capacity** | [**V1beta1CapacityRequirements**](V1beta1CapacityRequirements.md) | | [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] | +|**derivedAttributes** | [**List<V1beta1DeviceDerivedAttribute>**](V1beta1DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [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. | | diff --git a/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md index 75d2c7aaba..9e3482d245 100644 --- a/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md @@ -17,6 +17,7 @@ DeviceRequestAllocationResult contains the allocation result for one request. |**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. | | |**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. | [optional] | +|**skipNodeOperations** | **List<String>** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated. | [optional] | |**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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceSubRequest.md b/kubernetes/docs/V1beta1DeviceSubRequest.md index 9302aa0548..2ac25421b1 100644 --- a/kubernetes/docs/V1beta1DeviceSubRequest.md +++ b/kubernetes/docs/V1beta1DeviceSubRequest.md @@ -11,6 +11,7 @@ DeviceSubRequest describes a request for device provided in the claim.spec.devic |**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] | |**capacity** | [**V1beta1CapacityRequirements**](V1beta1CapacityRequirements.md) | | [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] | +|**derivedAttributes** | [**List<V1beta1DeviceDerivedAttribute>**](V1beta1DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [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] | diff --git a/kubernetes/docs/V1beta1DisruptionMode.md b/kubernetes/docs/V1beta1DisruptionMode.md new file mode 100644 index 0000000000..9dcb7b42ba --- /dev/null +++ b/kubernetes/docs/V1beta1DisruptionMode.md @@ -0,0 +1,15 @@ + + +# V1beta1DisruptionMode + +DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**all** | **Object** | all specifies that all children can only be disrupted together. | [optional] | +|**single** | **Object** | single specifies that children can be disrupted independently from each other. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1GangSchedulingPolicy.md b/kubernetes/docs/V1beta1GangSchedulingPolicy.md new file mode 100644 index 0000000000..6f49941d49 --- /dev/null +++ b/kubernetes/docs/V1beta1GangSchedulingPolicy.md @@ -0,0 +1,14 @@ + + +# V1beta1GangSchedulingPolicy + +GangSchedulingPolicy defines the parameters for gang scheduling. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**minCount** | **Integer** | minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles. | | + + + diff --git a/kubernetes/docs/V1beta1IPAddressSpec.md b/kubernetes/docs/V1beta1IPAddressSpec.md deleted file mode 100644 index 8c7a0bad07..0000000000 --- a/kubernetes/docs/V1beta1IPAddressSpec.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1IPAddressSpec - -IPAddressSpec describe the attributes in an IP Address. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**parentRef** | [**V1beta1ParentReference**](V1beta1ParentReference.md) | | | - - - diff --git a/kubernetes/docs/V1beta1LeaseCandidateSpec.md b/kubernetes/docs/V1beta1LeaseCandidateSpec.md index 452f5774e0..77df8aaecd 100644 --- a/kubernetes/docs/V1beta1LeaseCandidateSpec.md +++ b/kubernetes/docs/V1beta1LeaseCandidateSpec.md @@ -8,12 +8,12 @@ LeaseCandidateSpec is a specification of a Lease. | 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. | | +|**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/V1beta1NodeAllocatableMapping.md b/kubernetes/docs/V1beta1NodeAllocatableMapping.md new file mode 100644 index 0000000000..7ef1ab5f0e --- /dev/null +++ b/kubernetes/docs/V1beta1NodeAllocatableMapping.md @@ -0,0 +1,16 @@ + + +# V1beta1NodeAllocatableMapping + +NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**capacityKey** | **String** | CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. | [optional] | +|**capacityMultiplier** | **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] | +|**deviceMultiplier** | **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/V1beta1NodeAllocatableOverhead.md b/kubernetes/docs/V1beta1NodeAllocatableOverhead.md new file mode 100644 index 0000000000..a0a1d4dc38 --- /dev/null +++ b/kubernetes/docs/V1beta1NodeAllocatableOverhead.md @@ -0,0 +1,15 @@ + + +# V1beta1NodeAllocatableOverhead + +NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**perContainer** | **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] | +|**perPod** | **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/V1beta1NodeAllocatableResource.md b/kubernetes/docs/V1beta1NodeAllocatableResource.md new file mode 100644 index 0000000000..81ea940c91 --- /dev/null +++ b/kubernetes/docs/V1beta1NodeAllocatableResource.md @@ -0,0 +1,15 @@ + + +# V1beta1NodeAllocatableResource + +NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mapping** | [**V1beta1NodeAllocatableMapping**](V1beta1NodeAllocatableMapping.md) | | [optional] | +|**overhead** | [**V1beta1NodeAllocatableOverhead**](V1beta1NodeAllocatableOverhead.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1beta1NodeAllocatableResourceMapping.md b/kubernetes/docs/V1beta1NodeAllocatableResourceMapping.md deleted file mode 100644 index 000d549f70..0000000000 --- a/kubernetes/docs/V1beta1NodeAllocatableResourceMapping.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta1NodeAllocatableResourceMapping - -NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**allocationMultiplier** | **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] | -|**capacityKey** | **String** | CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\". | [optional] | - - - diff --git a/kubernetes/docs/V1beta1ParentReference.md b/kubernetes/docs/V1beta1ParentReference.md deleted file mode 100644 index aa16c91be9..0000000000 --- a/kubernetes/docs/V1beta1ParentReference.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V1beta1ParentReference - -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/V1beta1PodGroup.md b/kubernetes/docs/V1beta1PodGroup.md new file mode 100644 index 0000000000..4728cac95e --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroup.md @@ -0,0 +1,22 @@ + + +# V1beta1PodGroup + +PodGroup represents a runtime instance of pods grouped together. PodGroups are created by workload controllers (Job, LWS, JobSet, etc...) from Workload.podGroupTemplates. PodGroup API enablement is toggled by the GenericWorkload 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** | [**V1beta1PodGroupSpec**](V1beta1PodGroupSpec.md) | | | +|**status** | [**V1beta1PodGroupStatus**](V1beta1PodGroupStatus.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1IPAddressList.md b/kubernetes/docs/V1beta1PodGroupList.md similarity index 83% rename from kubernetes/docs/V1beta1IPAddressList.md rename to kubernetes/docs/V1beta1PodGroupList.md index 0bdda8f590..c7721f1001 100644 --- a/kubernetes/docs/V1beta1IPAddressList.md +++ b/kubernetes/docs/V1beta1PodGroupList.md @@ -1,15 +1,15 @@ -# V1beta1IPAddressList +# V1beta1PodGroupList -IPAddressList contains a list of IPAddress. +PodGroupList contains a list of PodGroup resources. ## 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<V1beta1IPAddress>**](V1beta1IPAddress.md) | items is the list of IPAddresses. | | +|**items** | [**List<V1beta1PodGroup>**](V1beta1PodGroup.md) | Items is the list of PodGroups. | | |**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/V1beta1PodGroupResourceClaim.md b/kubernetes/docs/V1beta1PodGroupResourceClaim.md new file mode 100644 index 0000000000..f16c1a8a58 --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupResourceClaim.md @@ -0,0 +1,16 @@ + + +# V1beta1PodGroupResourceClaim + +PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup. It adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. | | +|**resourceClaimName** | **String** | resourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. | [optional] | +|**resourceClaimTemplateName** | **String** | resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this PodGroup. The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup 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 podgroup.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. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1PodGroupResourceClaimStatus.md b/kubernetes/docs/V1beta1PodGroupResourceClaimStatus.md new file mode 100644 index 0000000000..473aceb123 --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupResourceClaimStatus.md @@ -0,0 +1,15 @@ + + +# V1beta1PodGroupResourceClaimStatus + +PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.spec.resourceClaims, which implies that the string must be a DNS_LABEL. | | +|**resourceClaimName** | **String** | resourceClaimName is the name of the ResourceClaim that was generated for the PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1PodGroupSchedulingConstraints.md b/kubernetes/docs/V1beta1PodGroupSchedulingConstraints.md new file mode 100644 index 0000000000..3442524450 --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupSchedulingConstraints.md @@ -0,0 +1,14 @@ + + +# V1beta1PodGroupSchedulingConstraints + +PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**topology** | [**List<V1beta1TopologyConstraint>**](V1beta1TopologyConstraint.md) | topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1PodGroupSchedulingPolicy.md b/kubernetes/docs/V1beta1PodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..b657e8355f --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupSchedulingPolicy.md @@ -0,0 +1,15 @@ + + +# V1beta1PodGroupSchedulingPolicy + +PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**basic** | **Object** | basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward. | [optional] | +|**gang** | [**V1beta1GangSchedulingPolicy**](V1beta1GangSchedulingPolicy.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1beta1PodGroupSpec.md b/kubernetes/docs/V1beta1PodGroupSpec.md new file mode 100644 index 0000000000..515892025b --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupSpec.md @@ -0,0 +1,22 @@ + + +# V1beta1PodGroupSpec + +PodGroupSpec defines the desired state of a PodGroup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**disruptionMode** | [**V1beta1DisruptionMode**](V1beta1DisruptionMode.md) | | [optional] | +|**parentCompositePodGroupName** | **String** | parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable. | [optional] | +|**preemptionPolicy** | **String** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] | +|**priority** | **Integer** | priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. 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. This field is immutable. | [optional] | +|**priorityClassName** | **String** | priorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. | [optional] | +|**resourceClaims** | [**List<V1beta1PodGroupResourceClaim>**](V1beta1PodGroupResourceClaim.md) | resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] | +|**schedulingConstraints** | [**V1beta1PodGroupSchedulingConstraints**](V1beta1PodGroupSchedulingConstraints.md) | | [optional] | +|**schedulingPolicy** | [**V1beta1PodGroupSchedulingPolicy**](V1beta1PodGroupSchedulingPolicy.md) | | | +|**workloadRef** | [**V1beta1WorkloadReference**](V1beta1WorkloadReference.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1beta1PodGroupStatus.md b/kubernetes/docs/V1beta1PodGroupStatus.md new file mode 100644 index 0000000000..357e0f273e --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupStatus.md @@ -0,0 +1,15 @@ + + +# V1beta1PodGroupStatus + +PodGroupStatus represents information about the status of a pod group. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints, affinity/anti-affinity rules, or insufficient capacity for the gang. - \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error that happened during scheduling, for example due to nodeAffinity parsing errors. Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for higher-priority PodGroups or Pods. | [optional] | +|**resourceClaimStatuses** | [**List<V1beta1PodGroupResourceClaimStatus>**](V1beta1PodGroupResourceClaimStatus.md) | resourceClaimStatuses is status of resource claims. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1PodGroupTemplate.md b/kubernetes/docs/V1beta1PodGroupTemplate.md new file mode 100644 index 0000000000..898f3c81ba --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupTemplate.md @@ -0,0 +1,21 @@ + + +# V1beta1PodGroupTemplate + +PodGroupTemplate represents a template for a set of pods with a scheduling policy. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**disruptionMode** | [**V1beta1DisruptionMode**](V1beta1DisruptionMode.md) | | [optional] | +|**name** | **String** | name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. | | +|**preemptionPolicy** | **String** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] | +|**priority** | **Integer** | priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. The higher the value, the higher the priority. This field is immutable. | [optional] | +|**priorityClassName** | **String** | priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable. | [optional] | +|**resourceClaims** | [**List<V1beta1PodGroupResourceClaim>**](V1beta1PodGroupResourceClaim.md) | resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] | +|**schedulingConstraints** | [**V1beta1PodGroupSchedulingConstraints**](V1beta1PodGroupSchedulingConstraints.md) | | [optional] | +|**schedulingPolicy** | [**V1beta1PodGroupSchedulingPolicy**](V1beta1PodGroupSchedulingPolicy.md) | | | + + + diff --git a/kubernetes/docs/V1beta1ResourceClaim.md b/kubernetes/docs/V1beta1ResourceClaim.md index c165243ebf..f2b4e54984 100644 --- a/kubernetes/docs/V1beta1ResourceClaim.md +++ b/kubernetes/docs/V1beta1ResourceClaim.md @@ -11,7 +11,7 @@ ResourceClaim describes a request for access to resources in the cluster, for us |**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** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | | +|**spec** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | [optional] | |**status** | [**V1beta1ResourceClaimStatus**](V1beta1ResourceClaimStatus.md) | | [optional] | diff --git a/kubernetes/docs/V1beta1ResourceClaimTemplate.md b/kubernetes/docs/V1beta1ResourceClaimTemplate.md index 28706e8131..844dd423d8 100644 --- a/kubernetes/docs/V1beta1ResourceClaimTemplate.md +++ b/kubernetes/docs/V1beta1ResourceClaimTemplate.md @@ -11,7 +11,7 @@ ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alph |**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** | [**V1beta1ResourceClaimTemplateSpec**](V1beta1ResourceClaimTemplateSpec.md) | | | +|**spec** | [**V1beta1ResourceClaimTemplateSpec**](V1beta1ResourceClaimTemplateSpec.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta1ResourceClaimTemplateSpec.md b/kubernetes/docs/V1beta1ResourceClaimTemplateSpec.md index b8fd855988..c6e1277061 100644 --- a/kubernetes/docs/V1beta1ResourceClaimTemplateSpec.md +++ b/kubernetes/docs/V1beta1ResourceClaimTemplateSpec.md @@ -9,7 +9,7 @@ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | | +|**spec** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | [optional] | diff --git a/kubernetes/docs/V1beta1ResourcePool.md b/kubernetes/docs/V1beta1ResourcePool.md index b57ba70a69..6c2d806de1 100644 --- a/kubernetes/docs/V1beta1ResourcePool.md +++ b/kubernetes/docs/V1beta1ResourcePool.md @@ -9,7 +9,7 @@ ResourcePool describes the pool that ResourceSlices belong to. | 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. | | +|**name** | **String** | Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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/V1beta1ResourceSliceSpec.md b/kubernetes/docs/V1beta1ResourceSliceSpec.md index 6f16ebebd9..9f59f321d5 100644 --- a/kubernetes/docs/V1beta1ResourceSliceSpec.md +++ b/kubernetes/docs/V1beta1ResourceSliceSpec.md @@ -13,9 +13,11 @@ ResourceSliceSpec contains the information published by the driver in one Resour |**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. It should use only lower case characters. 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] | +|**partitionTypeAttribute** | **String** | PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost. | [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 counter sets must be unique in the ResourcePool. Only one of Devices and SharedCounters can be set in a ResourceSlice. The maximum number of counter sets is 8. | [optional] | +|**skipNodeOperations** | **List<String>** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values. | [optional] | diff --git a/kubernetes/docs/V1beta1ServiceCIDRSpec.md b/kubernetes/docs/V1beta1ServiceCIDRSpec.md deleted file mode 100644 index 55ed028333..0000000000 --- a/kubernetes/docs/V1beta1ServiceCIDRSpec.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1ServiceCIDRSpec - -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/V1beta1ServiceCIDRStatus.md b/kubernetes/docs/V1beta1ServiceCIDRStatus.md deleted file mode 100644 index 59c092d85f..0000000000 --- a/kubernetes/docs/V1beta1ServiceCIDRStatus.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1ServiceCIDRStatus - -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/V1beta1TopologyConstraint.md b/kubernetes/docs/V1beta1TopologyConstraint.md new file mode 100644 index 0000000000..4f41756ef3 --- /dev/null +++ b/kubernetes/docs/V1beta1TopologyConstraint.md @@ -0,0 +1,14 @@ + + +# V1beta1TopologyConstraint + +TopologyConstraint defines a topology constraint for a PodGroup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\" | | + + + diff --git a/kubernetes/docs/V1beta1TypedLocalObjectReference.md b/kubernetes/docs/V1beta1TypedLocalObjectReference.md new file mode 100644 index 0000000000..e94f863112 --- /dev/null +++ b/kubernetes/docs/V1beta1TypedLocalObjectReference.md @@ -0,0 +1,16 @@ + + +# V1beta1TypedLocalObjectReference + +TypedLocalObjectReference allows to reference typed object inside the same namespace. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroup** | **String** | apiGroup is the group for the resource being referenced. If apiGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting apiGroup is required. It must be a DNS subdomain. | [optional] | +|**kind** | **String** | kind is the type of resource being referenced. It must be a path segment name. | | +|**name** | **String** | name is the name of resource being referenced. It must be a path segment name. | | + + + diff --git a/kubernetes/docs/V1beta1VolumeAttributesClass.md b/kubernetes/docs/V1beta1VolumeAttributesClass.md deleted file mode 100644 index ac7cfb0d38..0000000000 --- a/kubernetes/docs/V1beta1VolumeAttributesClass.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# V1beta1VolumeAttributesClass - -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. - -## 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] | -|**driverName** | **String** | Name of the CSI driver This field is immutable. | | -|**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] | -|**parameters** | **Map<String, String>** | 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. | [optional] | - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta1VolumeAttributesClassList.md b/kubernetes/docs/V1beta1VolumeAttributesClassList.md deleted file mode 100644 index cdd7fdff66..0000000000 --- a/kubernetes/docs/V1beta1VolumeAttributesClassList.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1beta1VolumeAttributesClassList - -VolumeAttributesClassList is a collection of VolumeAttributesClass 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<V1beta1VolumeAttributesClass>**](V1beta1VolumeAttributesClass.md) | items is the list of VolumeAttributesClass 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/V1beta1Workload.md b/kubernetes/docs/V1beta1Workload.md new file mode 100644 index 0000000000..9639c68cf7 --- /dev/null +++ b/kubernetes/docs/V1beta1Workload.md @@ -0,0 +1,21 @@ + + +# V1beta1Workload + +Workload allows for expressing scheduling constraints that should be used when managing the lifecycle of workloads from the scheduling perspective, including scheduling, preemption, eviction and other phases. Workload API enablement is toggled by the GenericWorkload 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** | [**V1beta1WorkloadSpec**](V1beta1WorkloadSpec.md) | | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1WorkloadList.md b/kubernetes/docs/V1beta1WorkloadList.md new file mode 100644 index 0000000000..a159a480fc --- /dev/null +++ b/kubernetes/docs/V1beta1WorkloadList.md @@ -0,0 +1,21 @@ + + +# V1beta1WorkloadList + +WorkloadList contains a list of Workload resources. + +## 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<V1beta1Workload>**](V1beta1Workload.md) | items is the list of Workloads. | | +|**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/V1beta1WorkloadReference.md b/kubernetes/docs/V1beta1WorkloadReference.md new file mode 100644 index 0000000000..c135b32fa9 --- /dev/null +++ b/kubernetes/docs/V1beta1WorkloadReference.md @@ -0,0 +1,15 @@ + + +# V1beta1WorkloadReference + +WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**templateName** | **String** | templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required. | | +|**workloadName** | **String** | workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required. | | + + + diff --git a/kubernetes/docs/V1beta1WorkloadSpec.md b/kubernetes/docs/V1beta1WorkloadSpec.md new file mode 100644 index 0000000000..8c3276453d --- /dev/null +++ b/kubernetes/docs/V1beta1WorkloadSpec.md @@ -0,0 +1,16 @@ + + +# V1beta1WorkloadSpec + +WorkloadSpec defines the desired state of a Workload. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**compositePodGroupTemplates** | [**List<V1beta1CompositePodGroupTemplate>**](V1beta1CompositePodGroupTemplate.md) | compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled. | [optional] | +|**controllerRef** | [**V1beta1TypedLocalObjectReference**](V1beta1TypedLocalObjectReference.md) | | [optional] | +|**podGroupTemplates** | [**List<V1beta1PodGroupTemplate>**](V1beta1PodGroupTemplate.md) | podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2CELDeviceSelector.md b/kubernetes/docs/V1beta2CELDeviceSelector.md index cb81e940f7..e38e296eac 100644 --- a/kubernetes/docs/V1beta2CELDeviceSelector.md +++ b/kubernetes/docs/V1beta2CELDeviceSelector.md @@ -8,7 +8,7 @@ CELDeviceSelector contains a CEL expression for selecting a device. | 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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. | | +|**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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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. Common errors: - \"no such key\": Use optional chaining (.? followed by orValue()) or guarding the check with has() for optional fields. See CEL Optional Types for details: https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes For more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/ 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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/V1beta2CapacityRequestPolicyRange.md b/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md index c4dfeea8a9..b06e4783c2 100644 --- a/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md +++ b/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md @@ -2,7 +2,7 @@ # V1beta2CapacityRequestPolicyRange -CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. +CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. ## Properties diff --git a/kubernetes/docs/V1beta2Device.md b/kubernetes/docs/V1beta2Device.md index 7fc2d729a4..e696916133 100644 --- a/kubernetes/docs/V1beta2Device.md +++ b/kubernetes/docs/V1beta2Device.md @@ -17,7 +17,7 @@ Device represents one individual hardware instance that can be selected based on |**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 maximum number of device counter consumptions per device is 2. | [optional] | |**name** | **String** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | | -|**nodeAllocatableResourceMappings** | [**Map<String, V1beta2NodeAllocatableResourceMapping>**](V1beta2NodeAllocatableResourceMapping.md) | NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. | [optional] | +|**nodeAllocatableResources** | [**Map<String, V1beta2NodeAllocatableResource>**](V1beta2NodeAllocatableResource.md) | NodeAllocatableResources defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. | [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<V1beta2DeviceTaint>**](V1beta2DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta2DeviceClass.md b/kubernetes/docs/V1beta2DeviceClass.md index 974d92d4fd..613cb2de40 100644 --- a/kubernetes/docs/V1beta2DeviceClass.md +++ b/kubernetes/docs/V1beta2DeviceClass.md @@ -11,7 +11,7 @@ DeviceClass is a vendor- or admin-provided resource that contains device configu |**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) | | | +|**spec** | [**V1beta2DeviceClassSpec**](V1beta2DeviceClassSpec.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta2DeviceClassSpec.md b/kubernetes/docs/V1beta2DeviceClassSpec.md index 984cf38dd9..1ec222ae36 100644 --- a/kubernetes/docs/V1beta2DeviceClassSpec.md +++ b/kubernetes/docs/V1beta2DeviceClassSpec.md @@ -9,7 +9,7 @@ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and h | 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] | -|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field. | [optional] | +|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. | [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/V1beta2DeviceCounterConsumption.md b/kubernetes/docs/V1beta2DeviceCounterConsumption.md index 0dc599570e..0766ae6e1a 100644 --- a/kubernetes/docs/V1beta2DeviceCounterConsumption.md +++ b/kubernetes/docs/V1beta2DeviceCounterConsumption.md @@ -8,6 +8,7 @@ DeviceCounterConsumption defines a set of counters that a device will consume fr | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**compatibilityGroups** | **List<String>** | CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique. | [optional] | |**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 of counters is 32. | | diff --git a/kubernetes/docs/V1beta2DeviceDerivedAttribute.md b/kubernetes/docs/V1beta2DeviceDerivedAttribute.md new file mode 100644 index 0000000000..21e997a411 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceDerivedAttribute.md @@ -0,0 +1,15 @@ + + +# V1beta2DeviceDerivedAttribute + +DeviceDerivedAttribute defines a derived attribute computed via CEL. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expression** | **String** | Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. | | +|**name** | **String** | Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint. | | + + + diff --git a/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md index b647edbc99..ae9a425a3b 100644 --- a/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md @@ -17,6 +17,7 @@ DeviceRequestAllocationResult contains the allocation result for one request. |**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. | | |**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. | [optional] | +|**skipNodeOperations** | **List<String>** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated. | [optional] | |**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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta2DeviceSubRequest.md b/kubernetes/docs/V1beta2DeviceSubRequest.md index 231698ec1d..5dc8ccd068 100644 --- a/kubernetes/docs/V1beta2DeviceSubRequest.md +++ b/kubernetes/docs/V1beta2DeviceSubRequest.md @@ -11,6 +11,7 @@ DeviceSubRequest describes a request for device provided in the claim.spec.devic |**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] | |**capacity** | [**V1beta2CapacityRequirements**](V1beta2CapacityRequirements.md) | | [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] | +|**derivedAttributes** | [**List<V1beta2DeviceDerivedAttribute>**](V1beta2DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [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] | diff --git a/kubernetes/docs/V1beta2ExactDeviceRequest.md b/kubernetes/docs/V1beta2ExactDeviceRequest.md index 93d0f91a17..347307ef61 100644 --- a/kubernetes/docs/V1beta2ExactDeviceRequest.md +++ b/kubernetes/docs/V1beta2ExactDeviceRequest.md @@ -12,6 +12,7 @@ ExactDeviceRequest is a request for one or more identical devices. |**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] | |**capacity** | [**V1beta2CapacityRequirements**](V1beta2CapacityRequirements.md) | | [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] | +|**derivedAttributes** | [**List<V1beta2DeviceDerivedAttribute>**](V1beta2DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta2NodeAllocatableMapping.md b/kubernetes/docs/V1beta2NodeAllocatableMapping.md new file mode 100644 index 0000000000..fda63755b3 --- /dev/null +++ b/kubernetes/docs/V1beta2NodeAllocatableMapping.md @@ -0,0 +1,16 @@ + + +# V1beta2NodeAllocatableMapping + +NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**capacityKey** | **String** | CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. | [optional] | +|**capacityMultiplier** | **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] | +|**deviceMultiplier** | **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/V1beta2NodeAllocatableOverhead.md b/kubernetes/docs/V1beta2NodeAllocatableOverhead.md new file mode 100644 index 0000000000..da1aca61f7 --- /dev/null +++ b/kubernetes/docs/V1beta2NodeAllocatableOverhead.md @@ -0,0 +1,15 @@ + + +# V1beta2NodeAllocatableOverhead + +NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**perContainer** | **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] | +|**perPod** | **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/V1beta2NodeAllocatableResource.md b/kubernetes/docs/V1beta2NodeAllocatableResource.md new file mode 100644 index 0000000000..10b872e4d0 --- /dev/null +++ b/kubernetes/docs/V1beta2NodeAllocatableResource.md @@ -0,0 +1,15 @@ + + +# V1beta2NodeAllocatableResource + +NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mapping** | [**V1beta2NodeAllocatableMapping**](V1beta2NodeAllocatableMapping.md) | | [optional] | +|**overhead** | [**V1beta2NodeAllocatableOverhead**](V1beta2NodeAllocatableOverhead.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1beta2NodeAllocatableResourceMapping.md b/kubernetes/docs/V1beta2NodeAllocatableResourceMapping.md deleted file mode 100644 index 0eb8a2e2c1..0000000000 --- a/kubernetes/docs/V1beta2NodeAllocatableResourceMapping.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta2NodeAllocatableResourceMapping - -NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**allocationMultiplier** | **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] | -|**capacityKey** | **String** | CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\". | [optional] | - - - diff --git a/kubernetes/docs/V1beta2ResourceClaim.md b/kubernetes/docs/V1beta2ResourceClaim.md index f7ed184474..1d02103630 100644 --- a/kubernetes/docs/V1beta2ResourceClaim.md +++ b/kubernetes/docs/V1beta2ResourceClaim.md @@ -11,7 +11,7 @@ ResourceClaim describes a request for access to resources in the cluster, for us |**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) | | | +|**spec** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | [optional] | |**status** | [**V1beta2ResourceClaimStatus**](V1beta2ResourceClaimStatus.md) | | [optional] | diff --git a/kubernetes/docs/V1beta2ResourceClaimTemplate.md b/kubernetes/docs/V1beta2ResourceClaimTemplate.md index 3193d8c6bb..4af8386a56 100644 --- a/kubernetes/docs/V1beta2ResourceClaimTemplate.md +++ b/kubernetes/docs/V1beta2ResourceClaimTemplate.md @@ -11,7 +11,7 @@ ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alph |**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) | | | +|**spec** | [**V1beta2ResourceClaimTemplateSpec**](V1beta2ResourceClaimTemplateSpec.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md b/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md index 3026b69593..b163baaa21 100644 --- a/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md +++ b/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md @@ -9,7 +9,7 @@ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | | +|**spec** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | [optional] | diff --git a/kubernetes/docs/V1beta2ResourcePool.md b/kubernetes/docs/V1beta2ResourcePool.md index 80aa46ff3d..3a905db4b3 100644 --- a/kubernetes/docs/V1beta2ResourcePool.md +++ b/kubernetes/docs/V1beta2ResourcePool.md @@ -9,7 +9,7 @@ ResourcePool describes the pool that ResourceSlices belong to. | 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. | | +|**name** | **String** | Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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/V1beta2ResourceSliceSpec.md b/kubernetes/docs/V1beta2ResourceSliceSpec.md index e2a1c75a00..6197bf2a92 100644 --- a/kubernetes/docs/V1beta2ResourceSliceSpec.md +++ b/kubernetes/docs/V1beta2ResourceSliceSpec.md @@ -13,9 +13,11 @@ ResourceSliceSpec contains the information published by the driver in one Resour |**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. It should use only lower case characters. 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] | +|**partitionTypeAttribute** | **String** | PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost. | [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 counter sets must be unique in the ResourcePool. Only one of Devices and SharedCounters can be set in a ResourceSlice. The maximum number of counter sets is 8. | [optional] | +|**skipNodeOperations** | **List<String>** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values. | [optional] | diff --git a/kubernetes/docs/V2HPAScalingRules.md b/kubernetes/docs/V2HPAScalingRules.md index 731cd9b4b4..2d7a2c2aae 100644 --- a/kubernetes/docs/V2HPAScalingRules.md +++ b/kubernetes/docs/V2HPAScalingRules.md @@ -2,7 +2,7 @@ # V2HPAScalingRules -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 the beta HPAConfigurableTolerance feature gate to be enabled.) +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. ## Properties diff --git a/kubernetes/docs/V2HorizontalPodAutoscalerCondition.md b/kubernetes/docs/V2HorizontalPodAutoscalerCondition.md index 60b58c88c5..c6e80fcdc7 100644 --- a/kubernetes/docs/V2HorizontalPodAutoscalerCondition.md +++ b/kubernetes/docs/V2HorizontalPodAutoscalerCondition.md @@ -10,6 +10,7 @@ HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscale |------------ | ------------- | ------------- | -------------| |**lastTransitionTime** | **OffsetDateTime** | lastTransitionTime is the last time the condition transitioned from one status to another | [optional] | |**message** | **String** | message is a human-readable explanation containing details about the transition | [optional] | +|**observedGeneration** | **Long** | 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. | [optional] | |**reason** | **String** | reason is the reason for the condition's last transition. | [optional] | |**status** | **String** | status is the status of the condition (True, False, Unknown) | | |**type** | **String** | type describes the current condition | | diff --git a/kubernetes/docs/V2MetricValueStatus.md b/kubernetes/docs/V2MetricValueStatus.md index 06c70ec26e..381225ce25 100644 --- a/kubernetes/docs/V2MetricValueStatus.md +++ b/kubernetes/docs/V2MetricValueStatus.md @@ -8,7 +8,7 @@ MetricValueStatus holds the current value for a metric | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**averageUtilization** | **Integer** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] | +|**averageUtilization** | **Integer** | averageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] | |**averageValue** | **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] | |**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. | [optional] | 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 2c06b5522b..574cfc04c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java @@ -141,7 +141,7 @@ protected void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("Kubernetes Java Client/27.0.0-SNAPSHOT"); + setUserAgent("Kubernetes Java Client/28.0.0-SNAPSHOT"); authentications = new HashMap(); } 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 440b596400..d719852071 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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 6be89b4ace..e60846bfa2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java @@ -16,9 +16,9 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.function.Supplier; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class Configuration { - public static final String VERSION = "27.0.0-SNAPSHOT"; + public static final String VERSION = "28.0.0-SNAPSHOT"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; 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 6b1252990f..c962359e32 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java @@ -171,6 +171,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSINodeDriver.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSINodeList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSINodeSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSINodeStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSIStorageCapacity.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSIStorageCapacityList.CustomTypeAdapterFactory()); @@ -193,7 +194,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ClusterRoleBinding.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ClusterRoleBindingList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ClusterRoleList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ClusterTrustBundle.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ClusterTrustBundleList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ClusterTrustBundleProjection.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ClusterTrustBundleSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ComponentCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ComponentStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ComponentStatusList.CustomTypeAdapterFactory()); @@ -266,11 +270,17 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceClassSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceConstraint.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceCounterConsumption.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceDerivedAttribute.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceRequestAllocationResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceSelector.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceSubRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceTaint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceTaintRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceTaintRuleList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceTaintRuleSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceTaintRuleStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceTaintSelector.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceToleration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DownwardAPIProjection.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile.CustomTypeAdapterFactory()); @@ -292,6 +302,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1EphemeralVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1EventSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Eviction.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1EvictionResponder.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ExactDeviceRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ExecAction.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ExemptPriorityLevelConfiguration.CustomTypeAdapterFactory()); @@ -360,6 +371,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Job.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1JobCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1JobList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1JobSchedulingConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1JobSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1JobStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1JobTemplateSpec.CustomTypeAdapterFactory()); @@ -417,14 +429,19 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Node.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeAddress.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeAffinity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeAllocatableMappedResources.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeAllocatableMapping.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeAllocatableOverhead.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeAllocatableOverheadResources.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeAllocatableResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeAllocatableResourceClaimStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeAllocatableResourceMapping.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeConfigSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeConfigStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeFeatures.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodePodPreemptionPolicy.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeRuntimeHandler.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeRuntimeHandlerFeatures.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeSelector.CustomTypeAdapterFactory()); @@ -463,6 +480,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodAffinityTerm.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodAntiAffinity.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodCertificateProjection.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodCertificateRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodCertificateRequestList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodCertificateRequestSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodCertificateRequestStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodDNSConfig.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodDNSConfigOption.CustomTypeAdapterFactory()); @@ -489,6 +510,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodTemplate.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodTemplateList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodTemplateSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodVolumeHealth.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PolicyRule.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PolicyRulesWithSubjects.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PortStatus.CustomTypeAdapterFactory()); @@ -608,8 +630,14 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1StatusDetails.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1StorageClass.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1StorageClassList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1StorageHealth.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1StorageHealthCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1StorageOSVolumeSource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1StorageVersionMigration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1StorageVersionMigrationList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1StorageVersionMigrationSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1StorageVersionMigrationStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1SubjectAccessReview.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus.CustomTypeAdapterFactory()); @@ -657,6 +685,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeAttributesClassList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeDevice.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeError.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeHealthCondition.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeHealthStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeMount.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeMountStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeNodeAffinity.CustomTypeAdapterFactory()); @@ -670,9 +700,18 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ApplyConfiguration.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundle.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundleList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundleSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1Eviction.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1EvictionList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1EvictionPodReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1EvictionRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1EvictionRequestList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1EvictionRequestPodReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1EvictionRequestSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1EvictionRequestStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1EvictionRequestTarget.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1EvictionSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1EvictionStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1EvictionTarget.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1JSONPatch.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1MatchCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1MatchResources.CustomTypeAdapterFactory()); @@ -686,43 +725,63 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ParamKind.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ParamRef.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1Requester.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ResponderStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersion.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersionList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1TargetResponder.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1Variable.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2GangSchedulingPolicy.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2LeaseCandidate.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2LeaseCandidateList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2LeaseCandidateSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroup.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupResourceClaim.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupResourceClaimStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupSchedulingConstraints.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupSchedulingPolicy.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupTemplate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupTemplateReference.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2TopologyConstraint.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2TypedLocalObjectReference.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2Workload.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2WorkloadList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2WorkloadPodGroupTemplateReference.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2WorkloadSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3CompositeDisruptionMode.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3CompositeGangSchedulingPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3CompositePodGroup.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3CompositePodGroupList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3CompositePodGroupSchedulingConstraints.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3CompositePodGroupSchedulingPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3CompositePodGroupSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3CompositePodGroupStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3CompositePodGroupTemplate.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.V1alpha3DeviceTaintRuleStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DisruptionMode.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3GangSchedulingPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3PartitionTypeStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3PodGroup.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3PodGroupList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3PodGroupResourceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3PodGroupResourceClaimStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3PodGroupSchedulingConstraints.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3PodGroupSchedulingPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3PodGroupSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3PodGroupStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3PodGroupTemplate.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3PoolStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourcePoolStatusRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourcePoolStatusRequestList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourcePoolStatusRequestSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourcePoolStatusRequestStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ShareableCapacityStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ShareableSummaryStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3TopologyConstraint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3TypedLocalObjectReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3Workload.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3WorkloadList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3WorkloadPodGroupDisruptionMode.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3WorkloadPodGroupGangSchedulingPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3WorkloadPodGroupResourceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3WorkloadPodGroupSchedulingConstraints.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3WorkloadPodGroupSchedulingPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3WorkloadReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3WorkloadSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1AllocatedDeviceStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1AllocationResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ApplyConfiguration.CustomTypeAdapterFactory()); @@ -734,6 +793,11 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.V1beta1CompositeDisruptionMode.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CompositeGangSchedulingPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CompositePodGroupSchedulingConstraints.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CompositePodGroupSchedulingPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CompositePodGroupTemplate.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()); @@ -749,15 +813,15 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.V1beta1DeviceDerivedAttribute.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.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.V1beta1DisruptionMode.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1GangSchedulingPolicy.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1JSONPatch.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1LeaseCandidate.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1LeaseCandidateList.CustomTypeAdapterFactory()); @@ -773,15 +837,25 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1Mutation.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1NetworkDeviceData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1NodeAllocatableResourceMapping.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1NodeAllocatableMapping.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1NodeAllocatableOverhead.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1NodeAllocatableResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1OpaqueDeviceConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ParamKind.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ParamRef.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ParentReference.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodCertificateRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodCertificateRequestList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodCertificateRequestSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodCertificateRequestStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodGroup.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodGroupList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodGroupResourceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodGroupResourceClaimStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodGroupSchedulingConstraints.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodGroupSchedulingPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodGroupSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodGroupStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodGroupTemplate.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceClaim.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceClaimConsumerReference.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceClaimList.CustomTypeAdapterFactory()); @@ -794,17 +868,17 @@ 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.V1beta1ServiceCIDR.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ServiceCIDRList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ServiceCIDRSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ServiceCIDRStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1StorageVersionMigration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1StorageVersionMigrationList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1StorageVersionMigrationSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1StorageVersionMigrationStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1TopologyConstraint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1TypedLocalObjectReference.CustomTypeAdapterFactory()); 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.V1beta1Workload.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1WorkloadList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1WorkloadReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1WorkloadSpec.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()); @@ -826,6 +900,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.V1beta2DeviceDerivedAttribute.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()); @@ -839,7 +914,9 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.V1beta2NodeAllocatableResourceMapping.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2NodeAllocatableMapping.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2NodeAllocatableOverhead.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2NodeAllocatableResource.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()); 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 14a3612397..eb0c993e34 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class Pair { private final String name; private final 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 a9caac215e..23782709ff 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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 528cd31b93..80a3824521 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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 26aefb28aa..4a53837951 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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 dcf108fde2..831a6faa52 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 cec4b6d83c..8ba271ac09 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 b7e644a81d..f76f8bec6c 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 fbdc31040c..c5652a42e5 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIVersionsCall(final ApiCallback _callback) throws ApiE final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 8efc324f2b..2a57040df8 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 ff47042b8b..aac5b4f7b8 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 311e49389e..46dba683f0 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 b8d83ec21f..4900e4bb79 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 0d4da7fcf4..73568f2fb6 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 ae5ee98aa9..796851e6e4 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 f71457bf73..90e4cc42cd 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 @@ -29,8 +29,12 @@ import io.kubernetes.client.openapi.models.V1APIResourceList; import io.kubernetes.client.openapi.models.V1CertificateSigningRequest; import io.kubernetes.client.openapi.models.V1CertificateSigningRequestList; +import io.kubernetes.client.openapi.models.V1ClusterTrustBundle; +import io.kubernetes.client.openapi.models.V1ClusterTrustBundleList; import io.kubernetes.client.openapi.models.V1DeleteOptions; import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1PodCertificateRequest; +import io.kubernetes.client.openapi.models.V1PodCertificateRequestList; import io.kubernetes.client.openapi.models.V1Status; import java.lang.reflect.Type; @@ -316,7 +320,7 @@ public okhttp3.Call executeAsync(final ApiCallback public APIcreateCertificateSigningRequestRequest createCertificateSigningRequest(@jakarta.annotation.Nonnull V1CertificateSigningRequest body) { return new APIcreateCertificateSigningRequestRequest(body); } - 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 { + private okhttp3.Call createClusterTrustBundleCall(@jakarta.annotation.Nonnull V1ClusterTrustBundle body, @jakarta.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[] { }; @@ -333,8 +337,7 @@ private okhttp3.Call deleteCertificateSigningRequestCall(@jakarta.annotation.Non Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/certificates.k8s.io/v1/clustertrustbundles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -350,20 +353,12 @@ private okhttp3.Call deleteCertificateSigningRequestCall(@jakarta.annotation.Non 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 (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { @@ -386,63 +381,57 @@ private okhttp3.Call deleteCertificateSigningRequestCall(@jakarta.annotation.Non } 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 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)"); + private okhttp3.Call createClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull V1ClusterTrustBundle body, @jakarta.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 deleteCertificateSigningRequestCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return createClusterTrustBundleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - 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(); + private ApiResponse createClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull V1ClusterTrustBundle 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 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 { + private okhttp3.Call createClusterTrustBundleAsync(@jakarta.annotation.Nonnull V1ClusterTrustBundle body, @jakarta.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 = deleteCertificateSigningRequestValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createClusterTrustBundleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCertificateSigningRequestRequest { + public class APIcreateClusterTrustBundleRequest { @jakarta.annotation.Nonnull - private final String name; + private final V1ClusterTrustBundle body; @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; + private String fieldManager; @jakarta.annotation.Nullable - private V1DeleteOptions body; + private String fieldValidation; - private APIdeleteCertificateSigningRequestRequest(@jakarta.annotation.Nonnull String name) { - this.name = name; + private APIcreateClusterTrustBundleRequest(@jakarta.annotation.Nonnull V1ClusterTrustBundle 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 APIdeleteCertificateSigningRequestRequest + * @return APIcreateClusterTrustBundleRequest */ - public APIdeleteCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIcreateClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -450,65 +439,35 @@ public APIdeleteCertificateSigningRequestRequest pretty(@jakarta.annotation.Null /** * 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 APIdeleteCertificateSigningRequestRequest + * @return APIcreateClusterTrustBundleRequest */ - public APIdeleteCertificateSigningRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIcreateClusterTrustBundleRequest 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 APIdeleteCertificateSigningRequestRequest - */ - public APIdeleteCertificateSigningRequestRequest 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 APIdeleteCertificateSigningRequestRequest - */ - public APIdeleteCertificateSigningRequestRequest 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 APIdeleteCertificateSigningRequestRequest - */ - public APIdeleteCertificateSigningRequestRequest 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 APIdeleteCertificateSigningRequestRequest + * 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 APIdeleteCertificateSigningRequestRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; + public APIcreateClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; return this; } /** - * Set body - * @param body (optional) - * @return APIdeleteCertificateSigningRequestRequest + * 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 APIdeleteCertificateSigningRequestRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; + public APIcreateClusterTrustBundleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; return this; } /** - * Build call for deleteCertificateSigningRequest + * Build call for createClusterTrustBundle * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -517,51 +476,54 @@ public APIdeleteCertificateSigningRequestRequest body(@jakarta.annotation.Nullab 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 deleteCertificateSigningRequestCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return createClusterTrustBundleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute deleteCertificateSigningRequest request - * @return V1Status + * Execute createClusterTrustBundle request + * @return V1ClusterTrustBundle * @throws ApiException If fail to call the API, 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 = deleteCertificateSigningRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1ClusterTrustBundle execute() throws ApiException { + ApiResponse localVarResp = createClusterTrustBundleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute deleteCertificateSigningRequest request with HTTP info returned - * @return ApiResponse<V1Status> + * Execute createClusterTrustBundle request with HTTP info returned + * @return ApiResponse<V1ClusterTrustBundle> * @throws ApiException If fail to call the API, 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 deleteCertificateSigningRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createClusterTrustBundleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute deleteCertificateSigningRequest request (asynchronously) + * 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 @@ -570,33 +532,35 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 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 deleteCertificateSigningRequestAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createClusterTrustBundleAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * delete a CertificateSigningRequest - * @param name name of the CertificateSigningRequest (required) - * @return APIdeleteCertificateSigningRequestRequest + * 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 APIdeleteCertificateSigningRequestRequest deleteCertificateSigningRequest(@jakarta.annotation.Nonnull String name) { - return new APIdeleteCertificateSigningRequestRequest(name); + public APIcreateClusterTrustBundleRequest createClusterTrustBundle(@jakarta.annotation.Nonnull V1ClusterTrustBundle body) { + return new APIcreateClusterTrustBundleRequest(body); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodCertificateRequestCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest body, @jakarta.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[] { }; @@ -613,7 +577,8 @@ private okhttp3.Call deleteCollectionCertificateSigningRequestCall(@jakarta.anno Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests"; + String localVarPath = "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -625,60 +590,16 @@ private okhttp3.Call deleteCollectionCertificateSigningRequestCall(@jakarta.anno 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 (shardSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + 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 = { @@ -701,229 +622,5348 @@ private okhttp3.Call deleteCollectionCertificateSigningRequestCall(@jakarta.anno } 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 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); + private okhttp3.Call createNamespacedPodCertificateRequestValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest body, @jakarta.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 createNamespacedPodCertificateRequest(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodCertificateRequest(Async)"); + } + + return createNamespacedPodCertificateRequestCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse createNamespacedPodCertificateRequestWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest 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 = createNamespacedPodCertificateRequestValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodCertificateRequestAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest body, @jakarta.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 = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createNamespacedPodCertificateRequestValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionCertificateSigningRequestRequest { + public class APIcreateNamespacedPodCertificateRequestRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1PodCertificateRequest body; @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 String shardSelector; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; + private String fieldManager; @jakarta.annotation.Nullable - private V1DeleteOptions body; + private String fieldValidation; - private APIdeleteCollectionCertificateSigningRequestRequest() { + private APIcreateNamespacedPodCertificateRequestRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + * @return APIcreateNamespacedPodCertificateRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIcreateNamespacedPodCertificateRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest - */ - public APIdeleteCollectionCertificateSigningRequestRequest _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 APIdeleteCollectionCertificateSigningRequestRequest + * @return APIcreateNamespacedPodCertificateRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIcreateNamespacedPodCertificateRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + * 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 APIcreateNamespacedPodCertificateRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; + public APIcreateNamespacedPodCertificateRequestRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; 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 APIdeleteCollectionCertificateSigningRequestRequest + * 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 APIcreateNamespacedPodCertificateRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; + public APIcreateNamespacedPodCertificateRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createNamespacedPodCertificateRequest + * @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 createNamespacedPodCertificateRequestCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createNamespacedPodCertificateRequest request + * @return V1PodCertificateRequest + * @throws ApiException If fail to call the API, 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 V1PodCertificateRequest execute() throws ApiException { + ApiResponse localVarResp = createNamespacedPodCertificateRequestWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createNamespacedPodCertificateRequest request with HTTP info returned + * @return ApiResponse<V1PodCertificateRequest> + * @throws ApiException If fail to call the API, 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 createNamespacedPodCertificateRequestWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createNamespacedPodCertificateRequest 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 createNamespacedPodCertificateRequestAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIcreateNamespacedPodCertificateRequestRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateNamespacedPodCertificateRequestRequest createNamespacedPodCertificateRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest body) { + return new APIcreateNamespacedPodCertificateRequestRequest(namespace, body); + } + 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[] { }; + + // 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/v1/certificatesigningrequests/{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 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)"); + } + + return deleteCertificateSigningRequestCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + 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(@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(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + 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(@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 APIdeleteCertificateSigningRequestRequest + */ + public APIdeleteCertificateSigningRequestRequest 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 APIdeleteCertificateSigningRequestRequest + */ + public APIdeleteCertificateSigningRequestRequest 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 APIdeleteCertificateSigningRequestRequest + */ + public APIdeleteCertificateSigningRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + * @return APIdeleteCertificateSigningRequestRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCertificateSigningRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest - */ - public APIdeleteCollectionCertificateSigningRequestRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - 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 APIdeleteCertificateSigningRequestRequest + */ + public APIdeleteCertificateSigningRequestRequest 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 APIdeleteCertificateSigningRequestRequest + */ + public APIdeleteCertificateSigningRequestRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCertificateSigningRequestRequest + */ + public APIdeleteCertificateSigningRequestRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCertificateSigningRequest + * @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 deleteCertificateSigningRequestCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteCertificateSigningRequest 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 = deleteCertificateSigningRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCertificateSigningRequest 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 deleteCertificateSigningRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteCertificateSigningRequest 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 deleteCertificateSigningRequestAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a CertificateSigningRequest + * @param name name of the CertificateSigningRequest (required) + * @return APIdeleteCertificateSigningRequestRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteCertificateSigningRequestRequest deleteCertificateSigningRequest(@jakarta.annotation.Nonnull String name) { + return new APIdeleteCertificateSigningRequestRequest(name); + } + 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/v1/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 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 String shardSelector, @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/v1/certificatesigningrequests"; + + 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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); + + } + + + 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + 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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionCertificateSigningRequestRequest() { + } + + /** + * 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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest _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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest 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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionCertificateSigningRequest + * @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 deleteCollectionCertificateSigningRequestCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionCertificateSigningRequest 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 = deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionCertificateSigningRequest 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 deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionCertificateSigningRequest 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 deleteCollectionCertificateSigningRequestAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of CertificateSigningRequest + * @return APIdeleteCollectionCertificateSigningRequestRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionCertificateSigningRequestRequest deleteCollectionCertificateSigningRequest() { + return new APIdeleteCollectionCertificateSigningRequestRequest(); + } + 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 String shardSelector, @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/v1/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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector; + @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 shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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, shardSelector, 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, shardSelector, 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, shardSelector, 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, shardSelector, 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 deleteCollectionNamespacedPodCertificateRequestCall(@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 String shardSelector, @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/v1/namespaces/{namespace}/podcertificaterequests" + .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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 deleteCollectionNamespacedPodCertificateRequestValidateBeforeCall(@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 String shardSelector, @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 deleteCollectionNamespacedPodCertificateRequest(Async)"); + } + + return deleteCollectionNamespacedPodCertificateRequestCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionNamespacedPodCertificateRequestAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionNamespacedPodCertificateRequestRequest { + @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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionNamespacedPodCertificateRequestRequest(@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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest 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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest _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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest 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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest 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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest 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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest 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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest 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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest 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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest 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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest 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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest 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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest 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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionNamespacedPodCertificateRequest + * @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 deleteCollectionNamespacedPodCertificateRequestCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionNamespacedPodCertificateRequest 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 = deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionNamespacedPodCertificateRequest 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 deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionNamespacedPodCertificateRequest 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 deleteCollectionNamespacedPodCertificateRequestAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest deleteCollectionNamespacedPodCertificateRequest(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedPodCertificateRequestRequest(namespace); + } + private okhttp3.Call deleteNamespacedPodCertificateRequestCall(@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/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{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 deleteNamespacedPodCertificateRequestValidateBeforeCall(@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 deleteNamespacedPodCertificateRequest(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPodCertificateRequest(Async)"); + } + + return deleteNamespacedPodCertificateRequestCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteNamespacedPodCertificateRequestWithHttpInfo(@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 = deleteNamespacedPodCertificateRequestValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteNamespacedPodCertificateRequestAsync(@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 = deleteNamespacedPodCertificateRequestValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteNamespacedPodCertificateRequestRequest { + @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 APIdeleteNamespacedPodCertificateRequestRequest(@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 APIdeleteNamespacedPodCertificateRequestRequest + */ + public APIdeleteNamespacedPodCertificateRequestRequest 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 APIdeleteNamespacedPodCertificateRequestRequest + */ + public APIdeleteNamespacedPodCertificateRequestRequest 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 APIdeleteNamespacedPodCertificateRequestRequest + */ + public APIdeleteNamespacedPodCertificateRequestRequest 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 APIdeleteNamespacedPodCertificateRequestRequest + */ + public APIdeleteNamespacedPodCertificateRequestRequest 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 APIdeleteNamespacedPodCertificateRequestRequest + */ + public APIdeleteNamespacedPodCertificateRequestRequest 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 APIdeleteNamespacedPodCertificateRequestRequest + */ + public APIdeleteNamespacedPodCertificateRequestRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteNamespacedPodCertificateRequestRequest + */ + public APIdeleteNamespacedPodCertificateRequestRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteNamespacedPodCertificateRequest + * @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 deleteNamespacedPodCertificateRequestCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteNamespacedPodCertificateRequest 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 = deleteNamespacedPodCertificateRequestWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteNamespacedPodCertificateRequest 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 deleteNamespacedPodCertificateRequestWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteNamespacedPodCertificateRequest 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 deleteNamespacedPodCertificateRequestAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a PodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedPodCertificateRequestRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteNamespacedPodCertificateRequestRequest deleteNamespacedPodCertificateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedPodCertificateRequestRequest(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/certificates.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 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 String shardSelector, @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/v1/certificatesigningrequests"; + + 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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); + + } + + + 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + 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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistCertificateSigningRequestRequest() { + } + + /** + * 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 APIlistCertificateSigningRequestRequest + */ + public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest + */ + public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest + */ + public APIlistCertificateSigningRequestRequest _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 APIlistCertificateSigningRequestRequest + */ + public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest + */ + public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest + */ + public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest + */ + public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest + */ + public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest + */ + public APIlistCertificateSigningRequestRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistCertificateSigningRequestRequest + */ + public APIlistCertificateSigningRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIlistCertificateSigningRequestRequest + */ + public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest + */ + public APIlistCertificateSigningRequestRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listCertificateSigningRequest + * @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 listCertificateSigningRequestCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listCertificateSigningRequest request + * @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 -
+ */ + public V1CertificateSigningRequestList execute() throws ApiException { + ApiResponse localVarResp = listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listCertificateSigningRequest request with HTTP info returned + * @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 -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listCertificateSigningRequest 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 listCertificateSigningRequestAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind CertificateSigningRequest + * @return APIlistCertificateSigningRequestRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistCertificateSigningRequestRequest listCertificateSigningRequest() { + return new APIlistCertificateSigningRequestRequest(); + } + 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 String shardSelector, @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/v1/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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector; + @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 shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listClusterTrustBundle request + * @return V1ClusterTrustBundleList + * @throws ApiException If fail to call the API, 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 V1ClusterTrustBundleList execute() throws ApiException { + ApiResponse localVarResp = listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listClusterTrustBundle request with HTTP info returned + * @return ApiResponse<V1ClusterTrustBundleList> + * @throws ApiException If fail to call the API, 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, shardSelector, 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, shardSelector, 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 listNamespacedPodCertificateRequestCall(@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 String shardSelector, @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/v1/namespaces/{namespace}/podcertificaterequests" + .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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 listNamespacedPodCertificateRequestValidateBeforeCall(@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 String shardSelector, @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 listNamespacedPodCertificateRequest(Async)"); + } + + return listNamespacedPodCertificateRequestCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedPodCertificateRequestWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedPodCertificateRequestAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedPodCertificateRequestRequest { + @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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedPodCertificateRequestRequest(@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 APIlistNamespacedPodCertificateRequestRequest + */ + public APIlistNamespacedPodCertificateRequestRequest 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 APIlistNamespacedPodCertificateRequestRequest + */ + public APIlistNamespacedPodCertificateRequestRequest 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 APIlistNamespacedPodCertificateRequestRequest + */ + public APIlistNamespacedPodCertificateRequestRequest _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 APIlistNamespacedPodCertificateRequestRequest + */ + public APIlistNamespacedPodCertificateRequestRequest 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 APIlistNamespacedPodCertificateRequestRequest + */ + public APIlistNamespacedPodCertificateRequestRequest 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 APIlistNamespacedPodCertificateRequestRequest + */ + public APIlistNamespacedPodCertificateRequestRequest 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 APIlistNamespacedPodCertificateRequestRequest + */ + public APIlistNamespacedPodCertificateRequestRequest 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 APIlistNamespacedPodCertificateRequestRequest + */ + public APIlistNamespacedPodCertificateRequestRequest 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 APIlistNamespacedPodCertificateRequestRequest + */ + public APIlistNamespacedPodCertificateRequestRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedPodCertificateRequestRequest + */ + public APIlistNamespacedPodCertificateRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIlistNamespacedPodCertificateRequestRequest + */ + public APIlistNamespacedPodCertificateRequestRequest 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 APIlistNamespacedPodCertificateRequestRequest + */ + public APIlistNamespacedPodCertificateRequestRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedPodCertificateRequest + * @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 listNamespacedPodCertificateRequestCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedPodCertificateRequest request + * @return V1PodCertificateRequestList + * @throws ApiException If fail to call the API, 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 V1PodCertificateRequestList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedPodCertificateRequest request with HTTP info returned + * @return ApiResponse<V1PodCertificateRequestList> + * @throws ApiException If fail to call the API, 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 listNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedPodCertificateRequest 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 listNamespacedPodCertificateRequestAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedPodCertificateRequestRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedPodCertificateRequestRequest listNamespacedPodCertificateRequest(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedPodCertificateRequestRequest(namespace); + } + private okhttp3.Call listPodCertificateRequestForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @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/v1/podcertificaterequests"; + + 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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 listPodCertificateRequestForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listPodCertificateRequestForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listPodCertificateRequestForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodCertificateRequestForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listPodCertificateRequestForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listPodCertificateRequestForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistPodCertificateRequestForAllNamespacesRequest { + @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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistPodCertificateRequestForAllNamespacesRequest() { + } + + /** + * 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 APIlistPodCertificateRequestForAllNamespacesRequest + */ + public APIlistPodCertificateRequestForAllNamespacesRequest 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 APIlistPodCertificateRequestForAllNamespacesRequest + */ + public APIlistPodCertificateRequestForAllNamespacesRequest _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 APIlistPodCertificateRequestForAllNamespacesRequest + */ + public APIlistPodCertificateRequestForAllNamespacesRequest 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 APIlistPodCertificateRequestForAllNamespacesRequest + */ + public APIlistPodCertificateRequestForAllNamespacesRequest 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 APIlistPodCertificateRequestForAllNamespacesRequest + */ + public APIlistPodCertificateRequestForAllNamespacesRequest 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 APIlistPodCertificateRequestForAllNamespacesRequest + */ + public APIlistPodCertificateRequestForAllNamespacesRequest 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 APIlistPodCertificateRequestForAllNamespacesRequest + */ + public APIlistPodCertificateRequestForAllNamespacesRequest 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 APIlistPodCertificateRequestForAllNamespacesRequest + */ + public APIlistPodCertificateRequestForAllNamespacesRequest 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 APIlistPodCertificateRequestForAllNamespacesRequest + */ + public APIlistPodCertificateRequestForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistPodCertificateRequestForAllNamespacesRequest + */ + public APIlistPodCertificateRequestForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIlistPodCertificateRequestForAllNamespacesRequest + */ + public APIlistPodCertificateRequestForAllNamespacesRequest 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 APIlistPodCertificateRequestForAllNamespacesRequest + */ + public APIlistPodCertificateRequestForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listPodCertificateRequestForAllNamespaces + * @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 listPodCertificateRequestForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listPodCertificateRequestForAllNamespaces request + * @return V1PodCertificateRequestList + * @throws ApiException If fail to call the API, 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 V1PodCertificateRequestList execute() throws ApiException { + ApiResponse localVarResp = listPodCertificateRequestForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listPodCertificateRequestForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1PodCertificateRequestList> + * @throws ApiException If fail to call the API, 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 listPodCertificateRequestForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listPodCertificateRequestForAllNamespaces 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 listPodCertificateRequestForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind PodCertificateRequest + * @return APIlistPodCertificateRequestForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistPodCertificateRequestForAllNamespacesRequest listPodCertificateRequestForAllNamespaces() { + return new APIlistPodCertificateRequestForAllNamespacesRequest(); + } + private okhttp3.Call patchCertificateSigningRequestCall(@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/v1/certificatesigningrequests/{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 patchCertificateSigningRequestValidateBeforeCall(@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 patchCertificateSigningRequest(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchCertificateSigningRequest(Async)"); + } + + return patchCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + 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(@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(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + 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(@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 APIpatchCertificateSigningRequestRequest + */ + public APIpatchCertificateSigningRequestRequest 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 APIpatchCertificateSigningRequestRequest + */ + public APIpatchCertificateSigningRequestRequest 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 APIpatchCertificateSigningRequestRequest + */ + public APIpatchCertificateSigningRequestRequest 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 APIpatchCertificateSigningRequestRequest + */ + public APIpatchCertificateSigningRequestRequest 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 APIpatchCertificateSigningRequestRequest + */ + public APIpatchCertificateSigningRequestRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchCertificateSigningRequest + * @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 patchCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchCertificateSigningRequest request + * @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 -
401 Unauthorized -
+ */ + public V1CertificateSigningRequest execute() throws ApiException { + ApiResponse localVarResp = patchCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchCertificateSigningRequest request with HTTP info returned + * @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 -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchCertificateSigningRequest 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 patchCertificateSigningRequestAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest (required) + * @param body (required) + * @return APIpatchCertificateSigningRequestRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchCertificateSigningRequestRequest patchCertificateSigningRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchCertificateSigningRequestRequest(name, body); + } + 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[] { }; + + // 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/v1/certificatesigningrequests/{name}/approval" + .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 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)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchCertificateSigningRequestApproval(Async)"); + } + + return patchCertificateSigningRequestApprovalCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + 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(@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(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + 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(@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 APIpatchCertificateSigningRequestApprovalRequest + */ + public APIpatchCertificateSigningRequestApprovalRequest 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 APIpatchCertificateSigningRequestApprovalRequest + */ + public APIpatchCertificateSigningRequestApprovalRequest 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 APIpatchCertificateSigningRequestApprovalRequest + */ + public APIpatchCertificateSigningRequestApprovalRequest 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 APIpatchCertificateSigningRequestApprovalRequest + */ + public APIpatchCertificateSigningRequestApprovalRequest 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 APIpatchCertificateSigningRequestApprovalRequest + */ + public APIpatchCertificateSigningRequestApprovalRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchCertificateSigningRequestApproval + * @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 patchCertificateSigningRequestApprovalCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchCertificateSigningRequestApproval request + * @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 -
401 Unauthorized -
+ */ + public V1CertificateSigningRequest execute() throws ApiException { + ApiResponse localVarResp = patchCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchCertificateSigningRequestApproval request with HTTP info returned + * @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 -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchCertificateSigningRequestApproval 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 patchCertificateSigningRequestApprovalAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update approval of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest (required) + * @param body (required) + * @return APIpatchCertificateSigningRequestApprovalRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchCertificateSigningRequestApprovalRequest patchCertificateSigningRequestApproval(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchCertificateSigningRequestApprovalRequest(name, body); + } + 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[] { }; + + // 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/v1/certificatesigningrequests/{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 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)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchCertificateSigningRequestStatus(Async)"); + } + + return patchCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + 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(@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(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + 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(@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 APIpatchCertificateSigningRequestStatusRequest + */ + public APIpatchCertificateSigningRequestStatusRequest 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 APIpatchCertificateSigningRequestStatusRequest + */ + public APIpatchCertificateSigningRequestStatusRequest 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 APIpatchCertificateSigningRequestStatusRequest + */ + public APIpatchCertificateSigningRequestStatusRequest 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 APIpatchCertificateSigningRequestStatusRequest + */ + public APIpatchCertificateSigningRequestStatusRequest 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 APIpatchCertificateSigningRequestStatusRequest + */ + public APIpatchCertificateSigningRequestStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchCertificateSigningRequestStatus + * @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 patchCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchCertificateSigningRequestStatus request + * @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 -
401 Unauthorized -
+ */ + public V1CertificateSigningRequest execute() throws ApiException { + ApiResponse localVarResp = patchCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchCertificateSigningRequestStatus request with HTTP info returned + * @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 -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchCertificateSigningRequestStatus 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 patchCertificateSigningRequestStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest (required) + * @param body (required) + * @return APIpatchCertificateSigningRequestStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchCertificateSigningRequestStatusRequest patchCertificateSigningRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchCertificateSigningRequestStatusRequest(name, body); + } + 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/v1/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 V1ClusterTrustBundle + * @throws ApiException If fail to call the API, 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 V1ClusterTrustBundle 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<V1ClusterTrustBundle> + * @throws ApiException If fail to call the API, 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 patchNamespacedPodCertificateRequestCall(@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/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{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 patchNamespacedPodCertificateRequestValidateBeforeCall(@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 patchNamespacedPodCertificateRequest(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPodCertificateRequest(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodCertificateRequest(Async)"); + } + + return patchNamespacedPodCertificateRequestCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedPodCertificateRequestWithHttpInfo(@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 = patchNamespacedPodCertificateRequestValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedPodCertificateRequestAsync(@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 = patchNamespacedPodCertificateRequestValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedPodCertificateRequestRequest { + @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 APIpatchNamespacedPodCertificateRequestRequest(@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 APIpatchNamespacedPodCertificateRequestRequest + */ + public APIpatchNamespacedPodCertificateRequestRequest 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 APIpatchNamespacedPodCertificateRequestRequest + */ + public APIpatchNamespacedPodCertificateRequestRequest 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 APIpatchNamespacedPodCertificateRequestRequest + */ + public APIpatchNamespacedPodCertificateRequestRequest 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 APIpatchNamespacedPodCertificateRequestRequest + */ + public APIpatchNamespacedPodCertificateRequestRequest 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 APIpatchNamespacedPodCertificateRequestRequest + */ + public APIpatchNamespacedPodCertificateRequestRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedPodCertificateRequest + * @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 patchNamespacedPodCertificateRequestCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedPodCertificateRequest request + * @return V1PodCertificateRequest + * @throws ApiException If fail to call the API, 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 V1PodCertificateRequest execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedPodCertificateRequestWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedPodCertificateRequest request with HTTP info returned + * @return ApiResponse<V1PodCertificateRequest> + * @throws ApiException If fail to call the API, 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 patchNamespacedPodCertificateRequestWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedPodCertificateRequest 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 patchNamespacedPodCertificateRequestAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified PodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedPodCertificateRequestRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedPodCertificateRequestRequest patchNamespacedPodCertificateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedPodCertificateRequestRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedPodCertificateRequestStatusCall(@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/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{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)); } - /** - * 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 APIdeleteCollectionCertificateSigningRequestRequest - */ - public APIdeleteCollectionCertificateSigningRequestRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - /** - * 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 APIdeleteCollectionCertificateSigningRequestRequest - */ - public APIdeleteCollectionCertificateSigningRequestRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - /** - * 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 APIdeleteCollectionCertificateSigningRequestRequest - */ - public APIdeleteCollectionCertificateSigningRequestRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - /** - * 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 APIdeleteCollectionCertificateSigningRequestRequest - */ - public APIdeleteCollectionCertificateSigningRequestRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; + 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 patchNamespacedPodCertificateRequestStatusValidateBeforeCall(@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 patchNamespacedPodCertificateRequestStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPodCertificateRequestStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodCertificateRequestStatus(Async)"); + } + + return patchNamespacedPodCertificateRequestStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedPodCertificateRequestStatusWithHttpInfo(@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 = patchNamespacedPodCertificateRequestStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedPodCertificateRequestStatusAsync(@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 = patchNamespacedPodCertificateRequestStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedPodCertificateRequestStatusRequest { + @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 APIpatchNamespacedPodCertificateRequestStatusRequest(@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 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 APIdeleteCollectionCertificateSigningRequestRequest + * 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 APIpatchNamespacedPodCertificateRequestStatusRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; + public APIpatchNamespacedPodCertificateRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; 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 APIdeleteCollectionCertificateSigningRequestRequest + * 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 APIpatchNamespacedPodCertificateRequestStatusRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; + public APIpatchNamespacedPodCertificateRequestStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; return this; } /** - * Set shardSelector - * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIdeleteCollectionCertificateSigningRequestRequest + * 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 APIpatchNamespacedPodCertificateRequestStatusRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { - this.shardSelector = shardSelector; + public APIpatchNamespacedPodCertificateRequestStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; 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 APIdeleteCollectionCertificateSigningRequestRequest + * 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 APIpatchNamespacedPodCertificateRequestStatusRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIpatchNamespacedPodCertificateRequestStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; return this; } /** - * Set body - * @param body (optional) - * @return APIdeleteCollectionCertificateSigningRequestRequest + * 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 APIpatchNamespacedPodCertificateRequestStatusRequest */ - public APIdeleteCollectionCertificateSigningRequestRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; + public APIpatchNamespacedPodCertificateRequestStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; return this; } /** - * Build call for deleteCollectionCertificateSigningRequest + * Build call for patchNamespacedPodCertificateRequestStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -932,48 +5972,51 @@ public APIdeleteCollectionCertificateSigningRequestRequest body(@jakarta.annotat Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionCertificateSigningRequestCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + return patchNamespacedPodCertificateRequestStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute deleteCollectionCertificateSigningRequest request - * @return V1Status + * Execute patchNamespacedPodCertificateRequestStatus request + * @return V1PodCertificateRequest * @throws ApiException If fail to call the API, 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 V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + public V1PodCertificateRequest execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute deleteCollectionCertificateSigningRequest request with HTTP info returned - * @return ApiResponse<V1Status> + * Execute patchNamespacedPodCertificateRequestStatus request with HTTP info returned + * @return ApiResponse<V1PodCertificateRequest> * @throws ApiException If fail to call the API, 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 deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute deleteCollectionCertificateSigningRequest request (asynchronously) + * Execute patchNamespacedPodCertificateRequestStatus 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 @@ -982,30 +6025,35 @@ public ApiResponse executeWithHttpInfo() throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionCertificateSigningRequestAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedPodCertificateRequestStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * delete collection of CertificateSigningRequest - * @return APIdeleteCollectionCertificateSigningRequestRequest + * partially update status of the specified PodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedPodCertificateRequestStatusRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIdeleteCollectionCertificateSigningRequestRequest deleteCollectionCertificateSigningRequest() { - return new APIdeleteCollectionCertificateSigningRequestRequest(); + public APIpatchNamespacedPodCertificateRequestStatusRequest patchNamespacedPodCertificateRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedPodCertificateRequestStatusRequest(name, namespace, body); } - private okhttp3.Call getAPIResourcesCall(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[] { }; @@ -1022,7 +6070,8 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1/"; + String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1030,6 +6079,10 @@ 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)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -1053,33 +6106,53 @@ 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 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)"); + } + + return readCertificateSigningRequestCall(name, pretty, _callback); } - private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 getAPIResourcesAsync(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 = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readCertificateSigningRequestValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetAPIResourcesRequest { + public class APIreadCertificateSigningRequestRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; - private APIgetAPIResourcesRequest() { + private APIreadCertificateSigningRequestRequest(@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 APIreadCertificateSigningRequestRequest + */ + public APIreadCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; } /** - * Build call for getAPIResources + * Build call for readCertificateSigningRequest * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1092,12 +6165,12 @@ private APIgetAPIResourcesRequest() { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); + return readCertificateSigningRequestCall(name, pretty, _callback); } /** - * Execute getAPIResources request - * @return V1APIResourceList + * Execute readCertificateSigningRequest request + * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1107,14 +6180,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1APIResourceList execute() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + public V1CertificateSigningRequest execute() throws ApiException { + ApiResponse localVarResp = readCertificateSigningRequestWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute getAPIResources request with HTTP info returned - * @return ApiResponse<V1APIResourceList> + * Execute readCertificateSigningRequest request with HTTP info returned + * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1124,12 +6197,12 @@ public V1APIResourceList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getAPIResourcesWithHttpInfo(); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readCertificateSigningRequestWithHttpInfo(name, pretty); } /** - * Execute getAPIResources request (asynchronously) + * Execute readCertificateSigningRequest 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 @@ -1141,15 +6214,16 @@ public ApiResponse executeWithHttpInfo() throws ApiException 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getAPIResourcesAsync(_callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readCertificateSigningRequestAsync(name, pretty, _callback); } } /** * - * get available resources - * @return APIgetAPIResourcesRequest + * read the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest (required) + * @return APIreadCertificateSigningRequestRequest * @http.response.details @@ -1158,10 +6232,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback)
Response Details
401 Unauthorized -
*/ - public APIgetAPIResourcesRequest getAPIResources() { - return new APIgetAPIResourcesRequest(); + public APIreadCertificateSigningRequestRequest readCertificateSigningRequest(@jakarta.annotation.Nonnull String name) { + return new APIreadCertificateSigningRequestRequest(name); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, 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[] { }; @@ -1178,7 +6252,8 @@ private okhttp3.Call listCertificateSigningRequestCall(@jakarta.annotation.Nulla Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests"; + String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1190,58 +6265,11 @@ private okhttp3.Call listCertificateSigningRequestCall(@jakarta.annotation.Nulla 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 (shardSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); - } - - 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) { @@ -1260,177 +6288,53 @@ private okhttp3.Call listCertificateSigningRequestCall(@jakarta.annotation.Nulla } @SuppressWarnings("rawtypes") - 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); + 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)"); + } + + return readCertificateSigningRequestApprovalCall(name, pretty, _callback); } - 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, 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 = listCertificateSigningRequestValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readCertificateSigningRequestApprovalValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistCertificateSigningRequestRequest { + public class APIreadCertificateSigningRequestApprovalRequest { + @jakarta.annotation.Nonnull + private final String name; @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 String shardSelector; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - - private APIlistCertificateSigningRequestRequest() { - } - - /** - * 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 APIlistCertificateSigningRequestRequest - */ - public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest - */ - public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest - */ - public APIlistCertificateSigningRequestRequest _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 APIlistCertificateSigningRequestRequest - */ - public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest - */ - public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest - */ - public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest - */ - public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest - */ - public APIlistCertificateSigningRequestRequest 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 APIlistCertificateSigningRequestRequest - */ - public APIlistCertificateSigningRequestRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set shardSelector - * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIlistCertificateSigningRequestRequest - */ - public APIlistCertificateSigningRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { - this.shardSelector = shardSelector; - 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 APIlistCertificateSigningRequestRequest - */ - public APIlistCertificateSigningRequestRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; + private APIreadCertificateSigningRequestApprovalRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; } /** - * 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 APIlistCertificateSigningRequestRequest + * 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 APIreadCertificateSigningRequestApprovalRequest */ - public APIlistCertificateSigningRequestRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; + public APIreadCertificateSigningRequestApprovalRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; return this; } /** - * Build call for listCertificateSigningRequest + * Build call for readCertificateSigningRequestApproval * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1443,12 +6347,12 @@ public APIlistCertificateSigningRequestRequest watch(@jakarta.annotation.Nullabl */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listCertificateSigningRequestCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + return readCertificateSigningRequestApprovalCall(name, pretty, _callback); } /** - * Execute listCertificateSigningRequest request - * @return V1CertificateSigningRequestList + * Execute readCertificateSigningRequestApproval request + * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1458,14 +6362,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1CertificateSigningRequestList execute() throws ApiException { - ApiResponse localVarResp = listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1CertificateSigningRequest execute() throws ApiException { + ApiResponse localVarResp = readCertificateSigningRequestApprovalWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute listCertificateSigningRequest request with HTTP info returned - * @return ApiResponse<V1CertificateSigningRequestList> + * Execute readCertificateSigningRequestApproval request with HTTP info returned + * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1475,12 +6379,12 @@ public V1CertificateSigningRequestList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readCertificateSigningRequestApprovalWithHttpInfo(name, pretty); } /** - * Execute listCertificateSigningRequest request (asynchronously) + * Execute readCertificateSigningRequestApproval 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 @@ -1492,15 +6396,16 @@ public ApiResponse executeWithHttpInfo() throws 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listCertificateSigningRequestAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readCertificateSigningRequestApprovalAsync(name, pretty, _callback); } } /** * - * list or watch objects of kind CertificateSigningRequest - * @return APIlistCertificateSigningRequestRequest + * read approval of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest (required) + * @return APIreadCertificateSigningRequestApprovalRequest * @http.response.details @@ -1509,10 +6414,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIlistCertificateSigningRequestRequest listCertificateSigningRequest() { - return new APIlistCertificateSigningRequestRequest(); + public APIreadCertificateSigningRequestApprovalRequest readCertificateSigningRequestApproval(@jakarta.annotation.Nonnull String name) { + return new APIreadCertificateSigningRequestApprovalRequest(name); } - private okhttp3.Call patchCertificateSigningRequestCall(@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 { + 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[] { }; @@ -1526,10 +6431,10 @@ private okhttp3.Call patchCertificateSigningRequestCall(@jakarta.annotation.Nonn basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}" + String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1542,22 +6447,6 @@ private okhttp3.Call patchCertificateSigningRequestCall(@jakarta.annotation.Nonn 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", @@ -1570,7 +6459,6 @@ private okhttp3.Call patchCertificateSigningRequestCall(@jakarta.annotation.Nonn } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1578,113 +6466,239 @@ private okhttp3.Call patchCertificateSigningRequestCall(@jakarta.annotation.Nonn } 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 patchCertificateSigningRequestValidateBeforeCall(@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 { + 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 patchCertificateSigningRequest(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchCertificateSigningRequest(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readCertificateSigningRequestStatus(Async)"); } - return patchCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readCertificateSigningRequestStatusCall(name, pretty, _callback); } - 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); + 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 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 { + private okhttp3.Call readCertificateSigningRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = readCertificateSigningRequestStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchCertificateSigningRequestRequest { + public class APIreadCertificateSigningRequestStatusRequest { @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIreadCertificateSigningRequestStatusRequest(@jakarta.annotation.Nonnull String name) { 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 APIpatchCertificateSigningRequestRequest + * @return APIreadCertificateSigningRequestStatusRequest */ - public APIpatchCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadCertificateSigningRequestStatusRequest 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 APIpatchCertificateSigningRequestRequest + * Build call for readCertificateSigningRequestStatus + * @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 APIpatchCertificateSigningRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readCertificateSigningRequestStatusCall(name, pretty, _callback); } /** - * 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 APIpatchCertificateSigningRequestRequest + * Execute readCertificateSigningRequestStatus request + * @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 -
*/ - public APIpatchCertificateSigningRequestRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; + public V1CertificateSigningRequest execute() throws ApiException { + ApiResponse localVarResp = readCertificateSigningRequestStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * Execute readCertificateSigningRequestStatus request with HTTP info returned + * @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 -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readCertificateSigningRequestStatusWithHttpInfo(name, pretty); + } + + /** + * Execute readCertificateSigningRequestStatus 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 readCertificateSigningRequestStatusAsync(name, pretty, _callback); + } + } + + /** + * + * read status of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest (required) + * @return APIreadCertificateSigningRequestStatusRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadCertificateSigningRequestStatusRequest readCertificateSigningRequestStatus(@jakarta.annotation.Nonnull String name) { + return new APIreadCertificateSigningRequestStatusRequest(name); + } + 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/v1/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)"); } - /** - * 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 APIpatchCertificateSigningRequestRequest - */ - public APIpatchCertificateSigningRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; + 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 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 APIpatchCertificateSigningRequestRequest + * 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 APIpatchCertificateSigningRequestRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; + public APIreadClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; return this; } /** - * Build call for patchCertificateSigningRequest + * Build call for readClusterTrustBundle * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1693,51 +6707,48 @@ public APIpatchCertificateSigningRequestRequest force(@jakarta.annotation.Nullab Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readClusterTrustBundleCall(name, pretty, _callback); } /** - * Execute patchCertificateSigningRequest request - * @return V1CertificateSigningRequest + * Execute readClusterTrustBundle request + * @return V1ClusterTrustBundle * @throws ApiException If fail to call the API, 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 V1CertificateSigningRequest execute() throws ApiException { - ApiResponse localVarResp = patchCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1ClusterTrustBundle execute() throws ApiException { + ApiResponse localVarResp = readClusterTrustBundleWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchCertificateSigningRequest request with HTTP info returned - * @return ApiResponse<V1CertificateSigningRequest> + * Execute readClusterTrustBundle request with HTTP info returned + * @return ApiResponse<V1ClusterTrustBundle> * @throws ApiException If fail to call the API, 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 patchCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readClusterTrustBundleWithHttpInfo(name, pretty); } /** - * Execute patchCertificateSigningRequest request (asynchronously) + * 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 @@ -1746,34 +6757,31 @@ public ApiResponse executeWithHttpInfo() throws Api Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchCertificateSigningRequestAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readClusterTrustBundleAsync(name, pretty, _callback); } } /** * - * partially update the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest (required) - * @param body (required) - * @return APIpatchCertificateSigningRequestRequest + * 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 -
201 Created -
401 Unauthorized -
*/ - public APIpatchCertificateSigningRequestRequest patchCertificateSigningRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchCertificateSigningRequestRequest(name, body); + public APIreadClusterTrustBundleRequest readClusterTrustBundle(@jakarta.annotation.Nonnull String name) { + return new APIreadClusterTrustBundleRequest(name); } - 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 { + private okhttp3.Call readNamespacedPodCertificateRequestCall(@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[] { }; @@ -1787,11 +6795,12 @@ private okhttp3.Call patchCertificateSigningRequestApprovalCall(@jakarta.annotat basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1803,22 +6812,6 @@ private okhttp3.Call patchCertificateSigningRequestApprovalCall(@jakarta.annotat 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", @@ -1831,7 +6824,6 @@ private okhttp3.Call patchCertificateSigningRequestApprovalCall(@jakarta.annotat } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1839,113 +6831,65 @@ private okhttp3.Call patchCertificateSigningRequestApprovalCall(@jakarta.annotat } 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 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 { + private okhttp3.Call readNamespacedPodCertificateRequestValidateBeforeCall(@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 patchCertificateSigningRequestApproval(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodCertificateRequest(Async)"); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchCertificateSigningRequestApproval(Async)"); + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodCertificateRequest(Async)"); } - return patchCertificateSigningRequestApprovalCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedPodCertificateRequestCall(name, namespace, pretty, _callback); } - 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(); + private ApiResponse readNamespacedPodCertificateRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedPodCertificateRequestValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + private okhttp3.Call readNamespacedPodCertificateRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchCertificateSigningRequestApprovalValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedPodCertificateRequestValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchCertificateSigningRequestApprovalRequest { + public class APIreadNamespacedPodCertificateRequestRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1Patch body; + private final String namespace; @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIreadNamespacedPodCertificateRequestRequest(@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 APIpatchCertificateSigningRequestApprovalRequest + * @return APIreadNamespacedPodCertificateRequestRequest */ - public APIpatchCertificateSigningRequestApprovalRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadNamespacedPodCertificateRequestRequest 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 APIpatchCertificateSigningRequestApprovalRequest - */ - public APIpatchCertificateSigningRequestApprovalRequest 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 APIpatchCertificateSigningRequestApprovalRequest - */ - public APIpatchCertificateSigningRequestApprovalRequest 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 APIpatchCertificateSigningRequestApprovalRequest - */ - public APIpatchCertificateSigningRequestApprovalRequest 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 APIpatchCertificateSigningRequestApprovalRequest - */ - public APIpatchCertificateSigningRequestApprovalRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchCertificateSigningRequestApproval + * Build call for readNamespacedPodCertificateRequest * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1954,51 +6898,48 @@ public APIpatchCertificateSigningRequestApprovalRequest force(@jakarta.annotatio Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchCertificateSigningRequestApprovalCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedPodCertificateRequestCall(name, namespace, pretty, _callback); } /** - * Execute patchCertificateSigningRequestApproval request - * @return V1CertificateSigningRequest + * Execute readNamespacedPodCertificateRequest request + * @return V1PodCertificateRequest * @throws ApiException If fail to call the API, 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 V1CertificateSigningRequest execute() throws ApiException { - ApiResponse localVarResp = patchCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1PodCertificateRequest execute() throws ApiException { + ApiResponse localVarResp = readNamespacedPodCertificateRequestWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute patchCertificateSigningRequestApproval request with HTTP info returned - * @return ApiResponse<V1CertificateSigningRequest> + * Execute readNamespacedPodCertificateRequest request with HTTP info returned + * @return ApiResponse<V1PodCertificateRequest> * @throws ApiException If fail to call the API, 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 patchCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedPodCertificateRequestWithHttpInfo(name, namespace, pretty); } /** - * Execute patchCertificateSigningRequestApproval request (asynchronously) + * Execute readNamespacedPodCertificateRequest 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 @@ -2007,34 +6948,32 @@ public ApiResponse executeWithHttpInfo() throws Api Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchCertificateSigningRequestApprovalAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedPodCertificateRequestAsync(name, namespace, pretty, _callback); } } /** * - * partially update approval of the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest (required) - * @param body (required) - * @return APIpatchCertificateSigningRequestApprovalRequest + * read the specified PodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedPodCertificateRequestRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchCertificateSigningRequestApprovalRequest patchCertificateSigningRequestApproval(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchCertificateSigningRequestApprovalRequest(name, body); + public APIreadNamespacedPodCertificateRequestRequest readNamespacedPodCertificateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedPodCertificateRequestRequest(name, namespace); } - 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 { + private okhttp3.Call readNamespacedPodCertificateRequestStatusCall(@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[] { }; @@ -2048,11 +6987,12 @@ private okhttp3.Call patchCertificateSigningRequestStatusCall(@jakarta.annotatio basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2064,22 +7004,6 @@ private okhttp3.Call patchCertificateSigningRequestStatusCall(@jakarta.annotatio 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", @@ -2092,7 +7016,6 @@ private okhttp3.Call patchCertificateSigningRequestStatusCall(@jakarta.annotatio } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2100,113 +7023,65 @@ private okhttp3.Call patchCertificateSigningRequestStatusCall(@jakarta.annotatio } 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 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 { + private okhttp3.Call readNamespacedPodCertificateRequestStatusValidateBeforeCall(@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 patchCertificateSigningRequestStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodCertificateRequestStatus(Async)"); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchCertificateSigningRequestStatus(Async)"); + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodCertificateRequestStatus(Async)"); } - return patchCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedPodCertificateRequestStatusCall(name, namespace, pretty, _callback); } - 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(); + private ApiResponse readNamespacedPodCertificateRequestStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedPodCertificateRequestStatusValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + private okhttp3.Call readNamespacedPodCertificateRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedPodCertificateRequestStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchCertificateSigningRequestStatusRequest { + public class APIreadNamespacedPodCertificateRequestStatusRequest { @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(@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 APIpatchCertificateSigningRequestStatusRequest - */ - public APIpatchCertificateSigningRequestStatusRequest 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 APIpatchCertificateSigningRequestStatusRequest - */ - public APIpatchCertificateSigningRequestStatusRequest 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 APIpatchCertificateSigningRequestStatusRequest - */ - public APIpatchCertificateSigningRequestStatusRequest 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 APIpatchCertificateSigningRequestStatusRequest - */ - public APIpatchCertificateSigningRequestStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedPodCertificateRequestStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; } /** - * 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 APIpatchCertificateSigningRequestStatusRequest + * 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 APIreadNamespacedPodCertificateRequestStatusRequest */ - public APIpatchCertificateSigningRequestStatusRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; + public APIreadNamespacedPodCertificateRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; return this; } /** - * Build call for patchCertificateSigningRequestStatus + * Build call for readNamespacedPodCertificateRequestStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2215,51 +7090,48 @@ public APIpatchCertificateSigningRequestStatusRequest force(@jakarta.annotation. Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedPodCertificateRequestStatusCall(name, namespace, pretty, _callback); } /** - * Execute patchCertificateSigningRequestStatus request - * @return V1CertificateSigningRequest + * Execute readNamespacedPodCertificateRequestStatus request + * @return V1PodCertificateRequest * @throws ApiException If fail to call the API, 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 V1CertificateSigningRequest execute() throws ApiException { - ApiResponse localVarResp = patchCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1PodCertificateRequest execute() throws ApiException { + ApiResponse localVarResp = readNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute patchCertificateSigningRequestStatus request with HTTP info returned - * @return ApiResponse<V1CertificateSigningRequest> + * Execute readNamespacedPodCertificateRequestStatus request with HTTP info returned + * @return ApiResponse<V1PodCertificateRequest> * @throws ApiException If fail to call the API, 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 patchCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, pretty); } /** - * Execute patchCertificateSigningRequestStatus request (asynchronously) + * Execute readNamespacedPodCertificateRequestStatus 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 @@ -2268,34 +7140,32 @@ public ApiResponse executeWithHttpInfo() throws Api Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchCertificateSigningRequestStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedPodCertificateRequestStatusAsync(name, namespace, pretty, _callback); } } /** * - * partially update status of the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest (required) - * @param body (required) - * @return APIpatchCertificateSigningRequestStatusRequest + * read status of the specified PodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedPodCertificateRequestStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchCertificateSigningRequestStatusRequest patchCertificateSigningRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchCertificateSigningRequestStatusRequest(name, body); + public APIreadNamespacedPodCertificateRequestStatusRequest readNamespacedPodCertificateRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedPodCertificateRequestStatusRequest(name, namespace); } - private okhttp3.Call readCertificateSigningRequestCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, 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[] { }; @@ -2309,7 +7179,7 @@ private okhttp3.Call readCertificateSigningRequestCall(@jakarta.annotation.Nonnu basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}" @@ -2325,6 +7195,18 @@ private okhttp3.Call readCertificateSigningRequestCall(@jakarta.annotation.Nonnu 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", @@ -2337,6 +7219,7 @@ private okhttp3.Call readCertificateSigningRequestCall(@jakarta.annotation.Nonnu } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2344,57 +7227,101 @@ private okhttp3.Call readCertificateSigningRequestCall(@jakarta.annotation.Nonnu } 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 readCertificateSigningRequestValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, 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 readCertificateSigningRequest(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceCertificateSigningRequest(Async)"); } - return readCertificateSigningRequestCall(name, pretty, _callback); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceCertificateSigningRequest(Async)"); + } + + return replaceCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readCertificateSigningRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readCertificateSigningRequestValidateBeforeCall(name, pretty, null); + 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 readCertificateSigningRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, 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 = readCertificateSigningRequestValidateBeforeCall(name, pretty, _callback); + okhttp3.Call localVarCall = replaceCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadCertificateSigningRequestRequest { + 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 APIreadCertificateSigningRequestRequest(@jakarta.annotation.Nonnull String name) { + private APIreplaceCertificateSigningRequestRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest 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 APIreadCertificateSigningRequestRequest + * @return APIreplaceCertificateSigningRequestRequest */ - public APIreadCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readCertificateSigningRequest + * 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 APIreplaceCertificateSigningRequestRequest + */ + public APIreplaceCertificateSigningRequestRequest 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 APIreplaceCertificateSigningRequestRequest + */ + public APIreplaceCertificateSigningRequestRequest 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 APIreplaceCertificateSigningRequestRequest + */ + public APIreplaceCertificateSigningRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceCertificateSigningRequest * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2403,15 +7330,16 @@ public APIreadCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullab Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readCertificateSigningRequestCall(name, pretty, _callback); + return replaceCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readCertificateSigningRequest request + * Execute replaceCertificateSigningRequest request * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2419,16 +7347,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public V1CertificateSigningRequest execute() throws ApiException { - ApiResponse localVarResp = readCertificateSigningRequestWithHttpInfo(name, pretty); + ApiResponse localVarResp = replaceCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readCertificateSigningRequest request with HTTP info returned + * Execute replaceCertificateSigningRequest request with HTTP info returned * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2436,15 +7365,16 @@ public V1CertificateSigningRequest execute() throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public ApiResponse executeWithHttpInfo() throws ApiException { - return readCertificateSigningRequestWithHttpInfo(name, pretty); + return replaceCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readCertificateSigningRequest request (asynchronously) + * Execute replaceCertificateSigningRequest 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 @@ -2453,31 +7383,34 @@ public ApiResponse executeWithHttpInfo() throws Api Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readCertificateSigningRequestAsync(name, pretty, _callback); + return replaceCertificateSigningRequestAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read the specified CertificateSigningRequest + * replace the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @return APIreadCertificateSigningRequestRequest + * @param body (required) + * @return APIreplaceCertificateSigningRequestRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadCertificateSigningRequestRequest readCertificateSigningRequest(@jakarta.annotation.Nonnull String name) { - return new APIreadCertificateSigningRequestRequest(name); + public APIreplaceCertificateSigningRequestRequest replaceCertificateSigningRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { + return new APIreplaceCertificateSigningRequestRequest(name, body); } - private okhttp3.Call readCertificateSigningRequestApprovalCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, 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[] { }; @@ -2491,7 +7424,7 @@ private okhttp3.Call readCertificateSigningRequestApprovalCall(@jakarta.annotati basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval" @@ -2507,6 +7440,18 @@ private okhttp3.Call readCertificateSigningRequestApprovalCall(@jakarta.annotati 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", @@ -2519,6 +7464,7 @@ private okhttp3.Call readCertificateSigningRequestApprovalCall(@jakarta.annotati } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2526,57 +7472,101 @@ private okhttp3.Call readCertificateSigningRequestApprovalCall(@jakarta.annotati } 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 readCertificateSigningRequestApprovalValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, 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 readCertificateSigningRequestApproval(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceCertificateSigningRequestApproval(Async)"); } - return readCertificateSigningRequestApprovalCall(name, pretty, _callback); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceCertificateSigningRequestApproval(Async)"); + } + + return replaceCertificateSigningRequestApprovalCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readCertificateSigningRequestApprovalWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readCertificateSigningRequestApprovalValidateBeforeCall(name, pretty, null); + 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 readCertificateSigningRequestApprovalAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, 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 = readCertificateSigningRequestApprovalValidateBeforeCall(name, pretty, _callback); + okhttp3.Call localVarCall = replaceCertificateSigningRequestApprovalValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadCertificateSigningRequestApprovalRequest { + 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 APIreadCertificateSigningRequestApprovalRequest(@jakarta.annotation.Nonnull String name) { + private APIreplaceCertificateSigningRequestApprovalRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest 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 APIreadCertificateSigningRequestApprovalRequest + * @return APIreplaceCertificateSigningRequestApprovalRequest */ - public APIreadCertificateSigningRequestApprovalRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceCertificateSigningRequestApprovalRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readCertificateSigningRequestApproval + * 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 APIreplaceCertificateSigningRequestApprovalRequest + */ + public APIreplaceCertificateSigningRequestApprovalRequest 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 APIreplaceCertificateSigningRequestApprovalRequest + */ + public APIreplaceCertificateSigningRequestApprovalRequest 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 APIreplaceCertificateSigningRequestApprovalRequest + */ + public APIreplaceCertificateSigningRequestApprovalRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceCertificateSigningRequestApproval * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2585,15 +7575,16 @@ public APIreadCertificateSigningRequestApprovalRequest pretty(@jakarta.annotatio Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readCertificateSigningRequestApprovalCall(name, pretty, _callback); + return replaceCertificateSigningRequestApprovalCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readCertificateSigningRequestApproval request + * Execute replaceCertificateSigningRequestApproval request * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2601,16 +7592,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public V1CertificateSigningRequest execute() throws ApiException { - ApiResponse localVarResp = readCertificateSigningRequestApprovalWithHttpInfo(name, pretty); + ApiResponse localVarResp = replaceCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readCertificateSigningRequestApproval request with HTTP info returned + * Execute replaceCertificateSigningRequestApproval request with HTTP info returned * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2618,15 +7610,16 @@ public V1CertificateSigningRequest execute() throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public ApiResponse executeWithHttpInfo() throws ApiException { - return readCertificateSigningRequestApprovalWithHttpInfo(name, pretty); + return replaceCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readCertificateSigningRequestApproval request (asynchronously) + * Execute replaceCertificateSigningRequestApproval 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 @@ -2635,31 +7628,34 @@ public ApiResponse executeWithHttpInfo() throws Api Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readCertificateSigningRequestApprovalAsync(name, pretty, _callback); + return replaceCertificateSigningRequestApprovalAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read approval of the specified CertificateSigningRequest + * replace approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @return APIreadCertificateSigningRequestApprovalRequest + * @param body (required) + * @return APIreplaceCertificateSigningRequestApprovalRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadCertificateSigningRequestApprovalRequest readCertificateSigningRequestApproval(@jakarta.annotation.Nonnull String name) { - return new APIreadCertificateSigningRequestApprovalRequest(name); + public APIreplaceCertificateSigningRequestApprovalRequest replaceCertificateSigningRequestApproval(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { + return new APIreplaceCertificateSigningRequestApprovalRequest(name, body); } - private okhttp3.Call readCertificateSigningRequestStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, 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[] { }; @@ -2673,7 +7669,7 @@ private okhttp3.Call readCertificateSigningRequestStatusCall(@jakarta.annotation basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status" @@ -2689,6 +7685,18 @@ private okhttp3.Call readCertificateSigningRequestStatusCall(@jakarta.annotation 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", @@ -2701,6 +7709,7 @@ private okhttp3.Call readCertificateSigningRequestStatusCall(@jakarta.annotation } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2708,57 +7717,101 @@ private okhttp3.Call readCertificateSigningRequestStatusCall(@jakarta.annotation } 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 readCertificateSigningRequestStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, 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 readCertificateSigningRequestStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceCertificateSigningRequestStatus(Async)"); } - return readCertificateSigningRequestStatusCall(name, pretty, _callback); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceCertificateSigningRequestStatus(Async)"); + } + + return replaceCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readCertificateSigningRequestStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readCertificateSigningRequestStatusValidateBeforeCall(name, pretty, null); + 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 readCertificateSigningRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, 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 = readCertificateSigningRequestStatusValidateBeforeCall(name, pretty, _callback); + okhttp3.Call localVarCall = replaceCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadCertificateSigningRequestStatusRequest { + 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 APIreadCertificateSigningRequestStatusRequest(@jakarta.annotation.Nonnull String name) { + private APIreplaceCertificateSigningRequestStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest 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 APIreadCertificateSigningRequestStatusRequest + * @return APIreplaceCertificateSigningRequestStatusRequest */ - public APIreadCertificateSigningRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceCertificateSigningRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readCertificateSigningRequestStatus + * 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 APIreplaceCertificateSigningRequestStatusRequest + */ + public APIreplaceCertificateSigningRequestStatusRequest 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 APIreplaceCertificateSigningRequestStatusRequest + */ + public APIreplaceCertificateSigningRequestStatusRequest 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 APIreplaceCertificateSigningRequestStatusRequest + */ + public APIreplaceCertificateSigningRequestStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceCertificateSigningRequestStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2767,15 +7820,16 @@ public APIreadCertificateSigningRequestStatusRequest pretty(@jakarta.annotation. Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readCertificateSigningRequestStatusCall(name, pretty, _callback); + return replaceCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readCertificateSigningRequestStatus request + * Execute replaceCertificateSigningRequestStatus request * @return V1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2783,16 +7837,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public V1CertificateSigningRequest execute() throws ApiException { - ApiResponse localVarResp = readCertificateSigningRequestStatusWithHttpInfo(name, pretty); + ApiResponse localVarResp = replaceCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readCertificateSigningRequestStatus request with HTTP info returned + * Execute replaceCertificateSigningRequestStatus request with HTTP info returned * @return ApiResponse<V1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2800,15 +7855,16 @@ public V1CertificateSigningRequest execute() throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public ApiResponse executeWithHttpInfo() throws ApiException { - return readCertificateSigningRequestStatusWithHttpInfo(name, pretty); + return replaceCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readCertificateSigningRequestStatus request (asynchronously) + * Execute replaceCertificateSigningRequestStatus 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 @@ -2817,31 +7873,34 @@ public ApiResponse executeWithHttpInfo() throws Api Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readCertificateSigningRequestStatusAsync(name, pretty, _callback); + return replaceCertificateSigningRequestStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read status of the specified CertificateSigningRequest + * replace status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) - * @return APIreadCertificateSigningRequestStatusRequest + * @param body (required) + * @return APIreplaceCertificateSigningRequestStatusRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadCertificateSigningRequestStatusRequest readCertificateSigningRequestStatus(@jakarta.annotation.Nonnull String name) { - return new APIreadCertificateSigningRequestStatusRequest(name); + public APIreplaceCertificateSigningRequestStatusRequest replaceCertificateSigningRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { + return new APIreplaceCertificateSigningRequestStatusRequest(name, body); } - 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 { + private okhttp3.Call replaceClusterTrustBundleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterTrustBundle body, @jakarta.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[] { }; @@ -2858,7 +7917,7 @@ private okhttp3.Call replaceCertificateSigningRequestCall(@jakarta.annotation.No Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}" + String localVarPath = "/apis/certificates.k8s.io/v1/clustertrustbundles/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2907,41 +7966,41 @@ private okhttp3.Call replaceCertificateSigningRequestCall(@jakarta.annotation.No } @SuppressWarnings("rawtypes") - 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 { + private okhttp3.Call replaceClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterTrustBundle body, @jakarta.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)"); + 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 replaceCertificateSigningRequest(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceClusterTrustBundle(Async)"); } - return replaceCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - 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(); + private ApiResponse replaceClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterTrustBundle 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 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 { + private okhttp3.Call replaceClusterTrustBundleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterTrustBundle body, @jakarta.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(); + 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 APIreplaceCertificateSigningRequestRequest { + public class APIreplaceClusterTrustBundleRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1CertificateSigningRequest body; + private final V1ClusterTrustBundle body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -2951,7 +8010,7 @@ public class APIreplaceCertificateSigningRequestRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceCertificateSigningRequestRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { + private APIreplaceClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterTrustBundle body) { this.name = name; this.body = body; } @@ -2959,9 +8018,9 @@ private APIreplaceCertificateSigningRequestRequest(@jakarta.annotation.Nonnull S /** * 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 APIreplaceCertificateSigningRequestRequest + * @return APIreplaceClusterTrustBundleRequest */ - public APIreplaceCertificateSigningRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2969,9 +8028,9 @@ public APIreplaceCertificateSigningRequestRequest pretty(@jakarta.annotation.Nul /** * 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 APIreplaceCertificateSigningRequestRequest + * @return APIreplaceClusterTrustBundleRequest */ - public APIreplaceCertificateSigningRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2979,9 +8038,9 @@ public APIreplaceCertificateSigningRequestRequest dryRun(@jakarta.annotation.Nul /** * 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 APIreplaceCertificateSigningRequestRequest + * @return APIreplaceClusterTrustBundleRequest */ - public APIreplaceCertificateSigningRequestRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2989,15 +8048,15 @@ public APIreplaceCertificateSigningRequestRequest fieldManager(@jakarta.annotati /** * 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 APIreplaceCertificateSigningRequestRequest + * @return APIreplaceClusterTrustBundleRequest */ - public APIreplaceCertificateSigningRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceClusterTrustBundleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceCertificateSigningRequest + * Build call for replaceClusterTrustBundle * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3011,12 +8070,12 @@ public APIreplaceCertificateSigningRequestRequest fieldValidation(@jakarta.annot */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceCertificateSigningRequest request - * @return V1CertificateSigningRequest + * Execute replaceClusterTrustBundle request + * @return V1ClusterTrustBundle * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3027,14 +8086,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1CertificateSigningRequest execute() throws ApiException { - ApiResponse localVarResp = replaceCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1ClusterTrustBundle execute() throws ApiException { + ApiResponse localVarResp = replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceCertificateSigningRequest request with HTTP info returned - * @return ApiResponse<V1CertificateSigningRequest> + * Execute replaceClusterTrustBundle request with HTTP info returned + * @return ApiResponse<V1ClusterTrustBundle> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3045,12 +8104,12 @@ public V1CertificateSigningRequest execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceCertificateSigningRequest request (asynchronously) + * 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 @@ -3063,17 +8122,17 @@ public ApiResponse executeWithHttpInfo() throws Api 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceCertificateSigningRequestAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceClusterTrustBundleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest (required) + * replace the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) * @param body (required) - * @return APIreplaceCertificateSigningRequestRequest + * @return APIreplaceClusterTrustBundleRequest * @http.response.details @@ -3083,10 +8142,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIreplaceCertificateSigningRequestRequest replaceCertificateSigningRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { - return new APIreplaceCertificateSigningRequestRequest(name, body); + public APIreplaceClusterTrustBundleRequest replaceClusterTrustBundle(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ClusterTrustBundle body) { + return new APIreplaceClusterTrustBundleRequest(name, body); } - 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 { + private okhttp3.Call replaceNamespacedPodCertificateRequestCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest body, @jakarta.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[] { }; @@ -3103,8 +8162,9 @@ private okhttp3.Call replaceCertificateSigningRequestApprovalCall(@jakarta.annot Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3152,41 +8212,48 @@ private okhttp3.Call replaceCertificateSigningRequestApprovalCall(@jakarta.annot } @SuppressWarnings("rawtypes") - 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 { + private okhttp3.Call replaceNamespacedPodCertificateRequestValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest body, @jakarta.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)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodCertificateRequest(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPodCertificateRequest(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceCertificateSigningRequestApproval(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodCertificateRequest(Async)"); } - return replaceCertificateSigningRequestApprovalCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedPodCertificateRequestCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - 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(); + private ApiResponse replaceNamespacedPodCertificateRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest 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 = replaceNamespacedPodCertificateRequestValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + private okhttp3.Call replaceNamespacedPodCertificateRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest body, @jakarta.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(); + okhttp3.Call localVarCall = replaceNamespacedPodCertificateRequestValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceCertificateSigningRequestApprovalRequest { + public class APIreplaceNamespacedPodCertificateRequestRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1CertificateSigningRequest body; + private final String namespace; + @jakarta.annotation.Nonnull + private final V1PodCertificateRequest body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -3196,17 +8263,18 @@ public class APIreplaceCertificateSigningRequestApprovalRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceCertificateSigningRequestApprovalRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { + private APIreplaceNamespacedPodCertificateRequestRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest 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 APIreplaceCertificateSigningRequestApprovalRequest + * @return APIreplaceNamespacedPodCertificateRequestRequest */ - public APIreplaceCertificateSigningRequestApprovalRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceNamespacedPodCertificateRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3214,9 +8282,9 @@ public APIreplaceCertificateSigningRequestApprovalRequest pretty(@jakarta.annota /** * 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 APIreplaceCertificateSigningRequestApprovalRequest + * @return APIreplaceNamespacedPodCertificateRequestRequest */ - public APIreplaceCertificateSigningRequestApprovalRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceNamespacedPodCertificateRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3224,9 +8292,9 @@ public APIreplaceCertificateSigningRequestApprovalRequest dryRun(@jakarta.annota /** * 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 APIreplaceCertificateSigningRequestApprovalRequest + * @return APIreplaceNamespacedPodCertificateRequestRequest */ - public APIreplaceCertificateSigningRequestApprovalRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceNamespacedPodCertificateRequestRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3234,15 +8302,15 @@ public APIreplaceCertificateSigningRequestApprovalRequest fieldManager(@jakarta. /** * 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 APIreplaceCertificateSigningRequestApprovalRequest + * @return APIreplaceNamespacedPodCertificateRequestRequest */ - public APIreplaceCertificateSigningRequestApprovalRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceNamespacedPodCertificateRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceCertificateSigningRequestApproval + * Build call for replaceNamespacedPodCertificateRequest * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3256,12 +8324,12 @@ public APIreplaceCertificateSigningRequestApprovalRequest fieldValidation(@jakar */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceCertificateSigningRequestApprovalCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedPodCertificateRequestCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceCertificateSigningRequestApproval request - * @return V1CertificateSigningRequest + * Execute replaceNamespacedPodCertificateRequest request + * @return V1PodCertificateRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3272,14 +8340,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1CertificateSigningRequest execute() throws ApiException { - ApiResponse localVarResp = replaceCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1PodCertificateRequest execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedPodCertificateRequestWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceCertificateSigningRequestApproval request with HTTP info returned - * @return ApiResponse<V1CertificateSigningRequest> + * Execute replaceNamespacedPodCertificateRequest request with HTTP info returned + * @return ApiResponse<V1PodCertificateRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3290,12 +8358,12 @@ public V1CertificateSigningRequest execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedPodCertificateRequestWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceCertificateSigningRequestApproval request (asynchronously) + * Execute replaceNamespacedPodCertificateRequest 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 @@ -3308,17 +8376,18 @@ public ApiResponse executeWithHttpInfo() throws Api 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceCertificateSigningRequestApprovalAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedPodCertificateRequestAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace approval of the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest (required) + * replace the specified PodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @return APIreplaceCertificateSigningRequestApprovalRequest + * @return APIreplaceNamespacedPodCertificateRequestRequest * @http.response.details @@ -3328,10 +8397,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIreplaceCertificateSigningRequestApprovalRequest replaceCertificateSigningRequestApproval(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { - return new APIreplaceCertificateSigningRequestApprovalRequest(name, body); + public APIreplaceNamespacedPodCertificateRequestRequest replaceNamespacedPodCertificateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest body) { + return new APIreplaceNamespacedPodCertificateRequestRequest(name, namespace, body); } - 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 { + private okhttp3.Call replaceNamespacedPodCertificateRequestStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest body, @jakarta.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[] { }; @@ -3348,8 +8417,9 @@ private okhttp3.Call replaceCertificateSigningRequestStatusCall(@jakarta.annotat Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3397,41 +8467,48 @@ private okhttp3.Call replaceCertificateSigningRequestStatusCall(@jakarta.annotat } @SuppressWarnings("rawtypes") - 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 { + private okhttp3.Call replaceNamespacedPodCertificateRequestStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest body, @jakarta.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)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodCertificateRequestStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPodCertificateRequestStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceCertificateSigningRequestStatus(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodCertificateRequestStatus(Async)"); } - return replaceCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedPodCertificateRequestStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - 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(); + private ApiResponse replaceNamespacedPodCertificateRequestStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest 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 = replaceNamespacedPodCertificateRequestStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + private okhttp3.Call replaceNamespacedPodCertificateRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest body, @jakarta.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(); + okhttp3.Call localVarCall = replaceNamespacedPodCertificateRequestStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceCertificateSigningRequestStatusRequest { + public class APIreplaceNamespacedPodCertificateRequestStatusRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1CertificateSigningRequest body; + private final String namespace; + @jakarta.annotation.Nonnull + private final V1PodCertificateRequest body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -3441,17 +8518,18 @@ public class APIreplaceCertificateSigningRequestStatusRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceCertificateSigningRequestStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { + private APIreplaceNamespacedPodCertificateRequestStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest 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 APIreplaceCertificateSigningRequestStatusRequest + * @return APIreplaceNamespacedPodCertificateRequestStatusRequest */ - public APIreplaceCertificateSigningRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceNamespacedPodCertificateRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3459,9 +8537,9 @@ public APIreplaceCertificateSigningRequestStatusRequest pretty(@jakarta.annotati /** * 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 APIreplaceCertificateSigningRequestStatusRequest + * @return APIreplaceNamespacedPodCertificateRequestStatusRequest */ - public APIreplaceCertificateSigningRequestStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceNamespacedPodCertificateRequestStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3469,9 +8547,9 @@ public APIreplaceCertificateSigningRequestStatusRequest dryRun(@jakarta.annotati /** * 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 APIreplaceCertificateSigningRequestStatusRequest + * @return APIreplaceNamespacedPodCertificateRequestStatusRequest */ - public APIreplaceCertificateSigningRequestStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceNamespacedPodCertificateRequestStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3479,15 +8557,15 @@ public APIreplaceCertificateSigningRequestStatusRequest fieldManager(@jakarta.an /** * 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 APIreplaceCertificateSigningRequestStatusRequest + * @return APIreplaceNamespacedPodCertificateRequestStatusRequest */ - public APIreplaceCertificateSigningRequestStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceNamespacedPodCertificateRequestStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceCertificateSigningRequestStatus + * Build call for replaceNamespacedPodCertificateRequestStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3501,12 +8579,12 @@ public APIreplaceCertificateSigningRequestStatusRequest fieldValidation(@jakarta */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedPodCertificateRequestStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceCertificateSigningRequestStatus request - * @return V1CertificateSigningRequest + * Execute replaceNamespacedPodCertificateRequestStatus request + * @return V1PodCertificateRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3517,14 +8595,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1CertificateSigningRequest execute() throws ApiException { - ApiResponse localVarResp = replaceCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1PodCertificateRequest execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceCertificateSigningRequestStatus request with HTTP info returned - * @return ApiResponse<V1CertificateSigningRequest> + * Execute replaceNamespacedPodCertificateRequestStatus request with HTTP info returned + * @return ApiResponse<V1PodCertificateRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3535,12 +8613,12 @@ public V1CertificateSigningRequest execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceCertificateSigningRequestStatus request (asynchronously) + * Execute replaceNamespacedPodCertificateRequestStatus 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 @@ -3553,17 +8631,18 @@ public ApiResponse executeWithHttpInfo() throws Api 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceCertificateSigningRequestStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedPodCertificateRequestStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace status of the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest (required) + * replace status of the specified PodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @return APIreplaceCertificateSigningRequestStatusRequest + * @return APIreplaceNamespacedPodCertificateRequestStatusRequest * @http.response.details @@ -3573,7 +8652,7 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIreplaceCertificateSigningRequestStatusRequest replaceCertificateSigningRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CertificateSigningRequest body) { - return new APIreplaceCertificateSigningRequestStatusRequest(name, body); + public APIreplaceNamespacedPodCertificateRequestStatusRequest replaceNamespacedPodCertificateRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodCertificateRequest body) { + return new APIreplaceNamespacedPodCertificateRequestStatusRequest(name, namespace, 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 cb16c91a52..a09a21a291 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 4b4327615d..9dc5172955 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIVersionsCall(final ApiCallback _callback) throws ApiE final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 a192375d95..ec82c28d90 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 e8bfc9f600..68c23a0216 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 a13db990e8..7501a47c75 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 847f73dc1b..756e0d7270 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LifecycleApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LifecycleApi.java new file mode 100644 index 0000000000..fde9b4913a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LifecycleApi.java @@ -0,0 +1,230 @@ +/* +Copyright 2026 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.V1APIGroup; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class LifecycleApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public LifecycleApi() { + this(Configuration.getDefaultApiClient()); + } + + public LifecycleApi(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 getAPIGroupCall(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/lifecycle.k8s.io/"; + + 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 getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAPIGroupCall(_callback); + + } + + + private ApiResponse getAPIGroupWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetAPIGroupRequest { + + private APIgetAPIGroupRequest() { + } + + /** + * Build call for getAPIGroup + * @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 getAPIGroupCall(_callback); + } + + /** + * Execute getAPIGroup request + * @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 -
+ */ + public V1APIGroup execute() throws ApiException { + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Execute getAPIGroup request with HTTP info returned + * @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 -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getAPIGroupWithHttpInfo(); + } + + /** + * Execute getAPIGroup 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 getAPIGroupAsync(_callback); + } + } + + /** + * + * get information of a group + * @return APIgetAPIGroupRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIgetAPIGroupRequest getAPIGroup() { + return new APIgetAPIGroupRequest(); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LifecycleV1alpha1Api.java similarity index 51% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LifecycleV1alpha1Api.java index 9737fe82f6..32d7b312f7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LifecycleV1alpha1Api.java @@ -30,10 +30,10 @@ 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.V1beta1IPAddress; -import io.kubernetes.client.openapi.models.V1beta1IPAddressList; -import io.kubernetes.client.openapi.models.V1beta1ServiceCIDR; -import io.kubernetes.client.openapi.models.V1beta1ServiceCIDRList; +import io.kubernetes.client.openapi.models.V1alpha1Eviction; +import io.kubernetes.client.openapi.models.V1alpha1EvictionList; +import io.kubernetes.client.openapi.models.V1alpha1EvictionRequest; +import io.kubernetes.client.openapi.models.V1alpha1EvictionRequestList; import java.lang.reflect.Type; import java.util.ArrayList; @@ -41,16 +41,16 @@ import java.util.List; import java.util.Map; -public class NetworkingV1beta1Api { +public class LifecycleV1alpha1Api { private ApiClient localVarApiClient; private int localHostIndex; private String localCustomBaseUrl; - public NetworkingV1beta1Api() { + public LifecycleV1alpha1Api() { this(Configuration.getDefaultApiClient()); } - public NetworkingV1beta1Api(ApiClient apiClient) { + public LifecycleV1alpha1Api(ApiClient apiClient) { this.localVarApiClient = apiClient; } @@ -78,7 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - 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 { + private okhttp3.Call createNamespacedEvictionCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction body, @jakarta.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[] { }; @@ -95,7 +95,8 @@ private okhttp3.Call createIPAddressCall(@jakarta.annotation.Nonnull V1beta1IPAd Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses"; + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -143,34 +144,41 @@ private okhttp3.Call createIPAddressCall(@jakarta.annotation.Nonnull V1beta1IPAd } @SuppressWarnings("rawtypes") - 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 { + private okhttp3.Call createNamespacedEvictionValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction body, @jakarta.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 createNamespacedEviction(Async)"); + } + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createIPAddress(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedEviction(Async)"); } - return createIPAddressCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createNamespacedEvictionCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - 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(); + private ApiResponse createNamespacedEvictionWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction 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 = createNamespacedEvictionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + private okhttp3.Call createNamespacedEvictionAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction body, @jakarta.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(); + okhttp3.Call localVarCall = createNamespacedEvictionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIcreateIPAddressRequest { + public class APIcreateNamespacedEvictionRequest { @jakarta.annotation.Nonnull - private final V1beta1IPAddress body; + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha1Eviction body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -180,16 +188,17 @@ public class APIcreateIPAddressRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateIPAddressRequest(@jakarta.annotation.Nonnull V1beta1IPAddress body) { + private APIcreateNamespacedEvictionRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction 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 APIcreateIPAddressRequest + * @return APIcreateNamespacedEvictionRequest */ - public APIcreateIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIcreateNamespacedEvictionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -197,9 +206,9 @@ public APIcreateIPAddressRequest pretty(@jakarta.annotation.Nullable String pret /** * 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 + * @return APIcreateNamespacedEvictionRequest */ - public APIcreateIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIcreateNamespacedEvictionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -207,9 +216,9 @@ public APIcreateIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryR /** * 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 + * @return APIcreateNamespacedEvictionRequest */ - public APIcreateIPAddressRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIcreateNamespacedEvictionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -217,15 +226,15 @@ public APIcreateIPAddressRequest fieldManager(@jakarta.annotation.Nullable Strin /** * 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 + * @return APIcreateNamespacedEvictionRequest */ - public APIcreateIPAddressRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIcreateNamespacedEvictionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createIPAddress + * Build call for createNamespacedEviction * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -240,12 +249,12 @@ public APIcreateIPAddressRequest fieldValidation(@jakarta.annotation.Nullable St */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createIPAddressCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createNamespacedEvictionCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createIPAddress request - * @return V1beta1IPAddress + * Execute createNamespacedEviction request + * @return V1alpha1Eviction * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -257,14 +266,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1IPAddress execute() throws ApiException { - ApiResponse localVarResp = createIPAddressWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha1Eviction execute() throws ApiException { + ApiResponse localVarResp = createNamespacedEvictionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createIPAddress request with HTTP info returned - * @return ApiResponse<V1beta1IPAddress> + * Execute createNamespacedEviction request with HTTP info returned + * @return ApiResponse<V1alpha1Eviction> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -276,12 +285,12 @@ public V1beta1IPAddress execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createIPAddressWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createNamespacedEvictionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createIPAddress request (asynchronously) + * Execute createNamespacedEviction 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 @@ -295,16 +304,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createIPAddressAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createNamespacedEvictionAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create an IPAddress + * create an Eviction + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @return APIcreateIPAddressRequest + * @return APIcreateNamespacedEvictionRequest * @http.response.details @@ -315,10 +325,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback)
Response Details
401 Unauthorized -
*/ - public APIcreateIPAddressRequest createIPAddress(@jakarta.annotation.Nonnull V1beta1IPAddress body) { - return new APIcreateIPAddressRequest(body); + public APIcreateNamespacedEvictionRequest createNamespacedEviction(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction body) { + return new APIcreateNamespacedEvictionRequest(namespace, body); } - 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 { + private okhttp3.Call createNamespacedEvictionRequestCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest body, @jakarta.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[] { }; @@ -335,7 +345,8 @@ private okhttp3.Call createServiceCIDRCall(@jakarta.annotation.Nonnull V1beta1Se Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs"; + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -383,34 +394,41 @@ private okhttp3.Call createServiceCIDRCall(@jakarta.annotation.Nonnull V1beta1Se } @SuppressWarnings("rawtypes") - 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 { + private okhttp3.Call createNamespacedEvictionRequestValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest body, @jakarta.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 createNamespacedEvictionRequest(Async)"); + } + // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createServiceCIDR(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedEvictionRequest(Async)"); } - return createServiceCIDRCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createNamespacedEvictionRequestCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - 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(); + private ApiResponse createNamespacedEvictionRequestWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest 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 = createNamespacedEvictionRequestValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + private okhttp3.Call createNamespacedEvictionRequestAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest body, @jakarta.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(); + okhttp3.Call localVarCall = createNamespacedEvictionRequestValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIcreateServiceCIDRRequest { + public class APIcreateNamespacedEvictionRequestRequest { + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nonnull - private final V1beta1ServiceCIDR body; + private final V1alpha1EvictionRequest body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -420,16 +438,17 @@ public class APIcreateServiceCIDRRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateServiceCIDRRequest(@jakarta.annotation.Nonnull V1beta1ServiceCIDR body) { + private APIcreateNamespacedEvictionRequestRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest 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 APIcreateServiceCIDRRequest + * @return APIcreateNamespacedEvictionRequestRequest */ - public APIcreateServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIcreateNamespacedEvictionRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -437,9 +456,9 @@ public APIcreateServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pr /** * 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 APIcreateServiceCIDRRequest + * @return APIcreateNamespacedEvictionRequestRequest */ - public APIcreateServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIcreateNamespacedEvictionRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -447,9 +466,9 @@ public APIcreateServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dr /** * 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 + * @return APIcreateNamespacedEvictionRequestRequest */ - public APIcreateServiceCIDRRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIcreateNamespacedEvictionRequestRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -457,15 +476,15 @@ public APIcreateServiceCIDRRequest fieldManager(@jakarta.annotation.Nullable Str /** * 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 + * @return APIcreateNamespacedEvictionRequestRequest */ - public APIcreateServiceCIDRRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIcreateNamespacedEvictionRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createServiceCIDR + * Build call for createNamespacedEvictionRequest * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -480,12 +499,12 @@ public APIcreateServiceCIDRRequest fieldValidation(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createServiceCIDRCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createNamespacedEvictionRequestCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createServiceCIDR request - * @return V1beta1ServiceCIDR + * Execute createNamespacedEvictionRequest request + * @return V1alpha1EvictionRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -497,14 +516,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ServiceCIDR execute() throws ApiException { - ApiResponse localVarResp = createServiceCIDRWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha1EvictionRequest execute() throws ApiException { + ApiResponse localVarResp = createNamespacedEvictionRequestWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createServiceCIDR request with HTTP info returned - * @return ApiResponse<V1beta1ServiceCIDR> + * Execute createNamespacedEvictionRequest request with HTTP info returned + * @return ApiResponse<V1alpha1EvictionRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -516,12 +535,12 @@ public V1beta1ServiceCIDR execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createServiceCIDRWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createNamespacedEvictionRequestWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createServiceCIDR request (asynchronously) + * Execute createNamespacedEvictionRequest 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 @@ -535,16 +554,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createServiceCIDRAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createNamespacedEvictionRequestAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create a ServiceCIDR + * create an EvictionRequest + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @return APIcreateServiceCIDRRequest + * @return APIcreateNamespacedEvictionRequestRequest * @http.response.details @@ -555,10 +575,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
401 Unauthorized -
*/ - public APIcreateServiceCIDRRequest createServiceCIDR(@jakarta.annotation.Nonnull V1beta1ServiceCIDR body) { - return new APIcreateServiceCIDRRequest(body); + public APIcreateNamespacedEvictionRequestRequest createNamespacedEvictionRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest body) { + return new APIcreateNamespacedEvictionRequestRequest(namespace, body); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEvictionCall(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -575,7 +595,8 @@ private okhttp3.Call deleteCollectionIPAddressCall(@jakarta.annotation.Nullable Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses"; + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -667,27 +688,34 @@ private okhttp3.Call deleteCollectionIPAddressCall(@jakarta.annotation.Nullable } @SuppressWarnings("rawtypes") - 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionNamespacedEvictionValidateBeforeCall(@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 String shardSelector, @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 deleteCollectionNamespacedEviction(Async)"); + } + + return deleteCollectionNamespacedEvictionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedEvictionWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedEvictionValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEvictionAsync(@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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEvictionValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionIPAddressRequest { + public class APIdeleteCollectionNamespacedEvictionRequest { + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -721,15 +749,16 @@ public class APIdeleteCollectionIPAddressRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionIPAddressRequest() { + private APIdeleteCollectionNamespacedEvictionRequest(@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 APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionNamespacedEvictionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -737,9 +766,9 @@ public APIdeleteCollectionIPAddressRequest pretty(@jakarta.annotation.Nullable S /** * 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 APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIdeleteCollectionNamespacedEvictionRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -747,9 +776,9 @@ public APIdeleteCollectionIPAddressRequest _continue(@jakarta.annotation.Nullabl /** * 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 APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionNamespacedEvictionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -757,9 +786,9 @@ public APIdeleteCollectionIPAddressRequest dryRun(@jakarta.annotation.Nullable S /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIdeleteCollectionNamespacedEvictionRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -767,9 +796,9 @@ public APIdeleteCollectionIPAddressRequest fieldSelector(@jakarta.annotation.Nul /** * 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 APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedEvictionRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -777,9 +806,9 @@ public APIdeleteCollectionIPAddressRequest gracePeriodSeconds(@jakarta.annotatio /** * 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 APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedEvictionRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -787,9 +816,9 @@ public APIdeleteCollectionIPAddressRequest ignoreStoreReadErrorWithClusterBreaki /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIdeleteCollectionNamespacedEvictionRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -797,9 +826,9 @@ public APIdeleteCollectionIPAddressRequest labelSelector(@jakarta.annotation.Nul /** * 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 APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIdeleteCollectionNamespacedEvictionRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -807,9 +836,9 @@ public APIdeleteCollectionIPAddressRequest limit(@jakarta.annotation.Nullable In /** * 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 APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionNamespacedEvictionRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -817,9 +846,9 @@ public APIdeleteCollectionIPAddressRequest orphanDependents(@jakarta.annotation. /** * 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 APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteCollectionNamespacedEvictionRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -827,9 +856,9 @@ public APIdeleteCollectionIPAddressRequest propagationPolicy(@jakarta.annotation /** * 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 APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIdeleteCollectionNamespacedEvictionRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -837,9 +866,9 @@ public APIdeleteCollectionIPAddressRequest resourceVersion(@jakarta.annotation.N /** * 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 APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIdeleteCollectionNamespacedEvictionRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -847,9 +876,9 @@ public APIdeleteCollectionIPAddressRequest resourceVersionMatch(@jakarta.annotat /** * 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 APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedEvictionRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -857,9 +886,9 @@ public APIdeleteCollectionIPAddressRequest sendInitialEvents(@jakarta.annotation /** * Set shardSelector * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + public APIdeleteCollectionNamespacedEvictionRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { this.shardSelector = shardSelector; return this; } @@ -867,9 +896,9 @@ public APIdeleteCollectionIPAddressRequest shardSelector(@jakarta.annotation.Nul /** * 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 APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedEvictionRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -877,15 +906,15 @@ public APIdeleteCollectionIPAddressRequest timeoutSeconds(@jakarta.annotation.Nu /** * Set body * @param body (optional) - * @return APIdeleteCollectionIPAddressRequest + * @return APIdeleteCollectionNamespacedEvictionRequest */ - public APIdeleteCollectionIPAddressRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteCollectionNamespacedEvictionRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionIPAddress + * Build call for deleteCollectionNamespacedEviction * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -898,11 +927,11 @@ public APIdeleteCollectionIPAddressRequest body(@jakarta.annotation.Nullable V1D */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEvictionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionIPAddress request + * Execute deleteCollectionNamespacedEviction request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -914,12 +943,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedEvictionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionIPAddress request with HTTP info returned + * Execute deleteCollectionNamespacedEviction 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 @@ -931,11 +960,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return deleteCollectionNamespacedEvictionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** - * Execute deleteCollectionIPAddress request (asynchronously) + * Execute deleteCollectionNamespacedEviction 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 @@ -948,14 +977,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionIPAddressAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEvictionAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } /** * - * delete collection of IPAddress - * @return APIdeleteCollectionIPAddressRequest + * delete collection of Eviction + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedEvictionRequest * @http.response.details @@ -964,10 +994,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionIPAddressRequest deleteCollectionIPAddress() { - return new APIdeleteCollectionIPAddressRequest(); + public APIdeleteCollectionNamespacedEvictionRequest deleteCollectionNamespacedEviction(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedEvictionRequest(namespace); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEvictionRequestCall(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -984,7 +1014,8 @@ private okhttp3.Call deleteCollectionServiceCIDRCall(@jakarta.annotation.Nullabl Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs"; + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1076,27 +1107,34 @@ private okhttp3.Call deleteCollectionServiceCIDRCall(@jakarta.annotation.Nullabl } @SuppressWarnings("rawtypes") - 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionNamespacedEvictionRequestValidateBeforeCall(@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 String shardSelector, @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 deleteCollectionNamespacedEvictionRequest(Async)"); + } + + return deleteCollectionNamespacedEvictionRequestCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedEvictionRequestWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedEvictionRequestValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEvictionRequestAsync(@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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEvictionRequestValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionServiceCIDRRequest { + public class APIdeleteCollectionNamespacedEvictionRequestRequest { + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -1130,15 +1168,16 @@ public class APIdeleteCollectionServiceCIDRRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionServiceCIDRRequest() { + private APIdeleteCollectionNamespacedEvictionRequestRequest(@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 APIdeleteCollectionServiceCIDRRequest + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionNamespacedEvictionRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1146,9 +1185,9 @@ public APIdeleteCollectionServiceCIDRRequest pretty(@jakarta.annotation.Nullable /** * 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 + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIdeleteCollectionNamespacedEvictionRequestRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1156,9 +1195,9 @@ public APIdeleteCollectionServiceCIDRRequest _continue(@jakarta.annotation.Nulla /** * 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 APIdeleteCollectionServiceCIDRRequest + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionNamespacedEvictionRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1166,9 +1205,9 @@ public APIdeleteCollectionServiceCIDRRequest dryRun(@jakarta.annotation.Nullable /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionServiceCIDRRequest + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIdeleteCollectionNamespacedEvictionRequestRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1176,9 +1215,9 @@ public APIdeleteCollectionServiceCIDRRequest fieldSelector(@jakarta.annotation.N /** * 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 APIdeleteCollectionServiceCIDRRequest + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedEvictionRequestRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1186,9 +1225,9 @@ public APIdeleteCollectionServiceCIDRRequest gracePeriodSeconds(@jakarta.annotat /** * 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 APIdeleteCollectionServiceCIDRRequest + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedEvictionRequestRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1196,9 +1235,9 @@ public APIdeleteCollectionServiceCIDRRequest ignoreStoreReadErrorWithClusterBrea /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionServiceCIDRRequest + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIdeleteCollectionNamespacedEvictionRequestRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1206,9 +1245,9 @@ public APIdeleteCollectionServiceCIDRRequest labelSelector(@jakarta.annotation.N /** * 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 + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIdeleteCollectionNamespacedEvictionRequestRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1216,9 +1255,9 @@ public APIdeleteCollectionServiceCIDRRequest limit(@jakarta.annotation.Nullable /** * 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 APIdeleteCollectionServiceCIDRRequest + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionNamespacedEvictionRequestRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1226,9 +1265,9 @@ public APIdeleteCollectionServiceCIDRRequest orphanDependents(@jakarta.annotatio /** * 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 APIdeleteCollectionServiceCIDRRequest + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteCollectionNamespacedEvictionRequestRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1236,9 +1275,9 @@ public APIdeleteCollectionServiceCIDRRequest propagationPolicy(@jakarta.annotati /** * 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 + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIdeleteCollectionNamespacedEvictionRequestRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1246,9 +1285,9 @@ public APIdeleteCollectionServiceCIDRRequest resourceVersion(@jakarta.annotation /** * 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 + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIdeleteCollectionNamespacedEvictionRequestRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1256,9 +1295,9 @@ public APIdeleteCollectionServiceCIDRRequest resourceVersionMatch(@jakarta.annot /** * 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 + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedEvictionRequestRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1266,9 +1305,9 @@ public APIdeleteCollectionServiceCIDRRequest sendInitialEvents(@jakarta.annotati /** * Set shardSelector * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIdeleteCollectionServiceCIDRRequest + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + public APIdeleteCollectionNamespacedEvictionRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { this.shardSelector = shardSelector; return this; } @@ -1276,9 +1315,9 @@ public APIdeleteCollectionServiceCIDRRequest shardSelector(@jakarta.annotation.N /** * 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 + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedEvictionRequestRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1286,15 +1325,15 @@ public APIdeleteCollectionServiceCIDRRequest timeoutSeconds(@jakarta.annotation. /** * Set body * @param body (optional) - * @return APIdeleteCollectionServiceCIDRRequest + * @return APIdeleteCollectionNamespacedEvictionRequestRequest */ - public APIdeleteCollectionServiceCIDRRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteCollectionNamespacedEvictionRequestRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionServiceCIDR + * Build call for deleteCollectionNamespacedEvictionRequest * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1307,11 +1346,11 @@ public APIdeleteCollectionServiceCIDRRequest body(@jakarta.annotation.Nullable V */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEvictionRequestCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionServiceCIDR request + * Execute deleteCollectionNamespacedEvictionRequest request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1323,12 +1362,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedEvictionRequestWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionServiceCIDR request with HTTP info returned + * Execute deleteCollectionNamespacedEvictionRequest 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 @@ -1340,11 +1379,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return deleteCollectionNamespacedEvictionRequestWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** - * Execute deleteCollectionServiceCIDR request (asynchronously) + * Execute deleteCollectionNamespacedEvictionRequest 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 @@ -1357,14 +1396,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionServiceCIDRAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEvictionRequestAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } /** * - * delete collection of ServiceCIDR - * @return APIdeleteCollectionServiceCIDRRequest + * delete collection of EvictionRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedEvictionRequestRequest * @http.response.details @@ -1373,10 +1413,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionServiceCIDRRequest deleteCollectionServiceCIDR() { - return new APIdeleteCollectionServiceCIDRRequest(); + public APIdeleteCollectionNamespacedEvictionRequestRequest deleteCollectionNamespacedEvictionRequest(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedEvictionRequestRequest(namespace); } - 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 { + private okhttp3.Call deleteNamespacedEvictionCall(@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[] { }; @@ -1393,8 +1433,9 @@ private okhttp3.Call deleteIPAddressCall(@jakarta.annotation.Nonnull String name Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1450,34 +1491,41 @@ private okhttp3.Call deleteIPAddressCall(@jakarta.annotation.Nonnull String name } @SuppressWarnings("rawtypes") - 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 { + private okhttp3.Call deleteNamespacedEvictionValidateBeforeCall(@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 deleteIPAddress(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedEviction(Async)"); } - return deleteIPAddressCall(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 deleteNamespacedEviction(Async)"); + } + + return deleteNamespacedEvictionCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - 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); + private ApiResponse deleteNamespacedEvictionWithHttpInfo(@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 = deleteNamespacedEvictionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + private okhttp3.Call deleteNamespacedEvictionAsync(@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 = deleteIPAddressValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedEvictionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteIPAddressRequest { + public class APIdeleteNamespacedEvictionRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -1493,16 +1541,17 @@ public class APIdeleteIPAddressRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteIPAddressRequest(@jakarta.annotation.Nonnull String name) { + private APIdeleteNamespacedEvictionRequest(@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 APIdeleteIPAddressRequest + * @return APIdeleteNamespacedEvictionRequest */ - public APIdeleteIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteNamespacedEvictionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1510,9 +1559,9 @@ public APIdeleteIPAddressRequest pretty(@jakarta.annotation.Nullable String pret /** * 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 + * @return APIdeleteNamespacedEvictionRequest */ - public APIdeleteIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteNamespacedEvictionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1520,9 +1569,9 @@ public APIdeleteIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryR /** * 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 + * @return APIdeleteNamespacedEvictionRequest */ - public APIdeleteIPAddressRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteNamespacedEvictionRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1530,9 +1579,9 @@ public APIdeleteIPAddressRequest gracePeriodSeconds(@jakarta.annotation.Nullable /** * 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 + * @return APIdeleteNamespacedEvictionRequest */ - public APIdeleteIPAddressRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedEvictionRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1540,9 +1589,9 @@ public APIdeleteIPAddressRequest ignoreStoreReadErrorWithClusterBreakingPotentia /** * 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 + * @return APIdeleteNamespacedEvictionRequest */ - public APIdeleteIPAddressRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteNamespacedEvictionRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1550,9 +1599,9 @@ public APIdeleteIPAddressRequest orphanDependents(@jakarta.annotation.Nullable B /** * 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 + * @return APIdeleteNamespacedEvictionRequest */ - public APIdeleteIPAddressRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteNamespacedEvictionRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1560,15 +1609,15 @@ public APIdeleteIPAddressRequest propagationPolicy(@jakarta.annotation.Nullable /** * Set body * @param body (optional) - * @return APIdeleteIPAddressRequest + * @return APIdeleteNamespacedEvictionRequest */ - public APIdeleteIPAddressRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteNamespacedEvictionRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteIPAddress + * Build call for deleteNamespacedEviction * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1582,11 +1631,11 @@ public APIdeleteIPAddressRequest body(@jakarta.annotation.Nullable V1DeleteOptio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteIPAddressCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedEvictionCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteIPAddress request + * Execute deleteNamespacedEviction request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1599,12 +1648,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteIPAddressWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteNamespacedEvictionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteIPAddress request with HTTP info returned + * Execute deleteNamespacedEviction 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 @@ -1617,11 +1666,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteIPAddressWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return deleteNamespacedEvictionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteIPAddress request (asynchronously) + * Execute deleteNamespacedEviction 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 @@ -1635,15 +1684,16 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteIPAddressAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedEvictionAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete an IPAddress - * @param name name of the IPAddress (required) - * @return APIdeleteIPAddressRequest + * delete an Eviction + * @param name name of the Eviction (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedEvictionRequest * @http.response.details @@ -1653,10 +1703,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteIPAddressRequest deleteIPAddress(@jakarta.annotation.Nonnull String name) { - return new APIdeleteIPAddressRequest(name); + public APIdeleteNamespacedEvictionRequest deleteNamespacedEviction(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedEvictionRequest(name, namespace); } - 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 { + private okhttp3.Call deleteNamespacedEvictionRequestCall(@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[] { }; @@ -1673,8 +1723,9 @@ private okhttp3.Call deleteServiceCIDRCall(@jakarta.annotation.Nonnull String na Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1730,34 +1781,41 @@ private okhttp3.Call deleteServiceCIDRCall(@jakarta.annotation.Nonnull String na } @SuppressWarnings("rawtypes") - 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 { + private okhttp3.Call deleteNamespacedEvictionRequestValidateBeforeCall(@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 deleteServiceCIDR(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedEvictionRequest(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedEvictionRequest(Async)"); } - return deleteServiceCIDRCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedEvictionRequestCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - 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); + private ApiResponse deleteNamespacedEvictionRequestWithHttpInfo(@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 = deleteNamespacedEvictionRequestValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + private okhttp3.Call deleteNamespacedEvictionRequestAsync(@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 = deleteServiceCIDRValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteNamespacedEvictionRequestValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteServiceCIDRRequest { + public class APIdeleteNamespacedEvictionRequestRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -1773,16 +1831,17 @@ public class APIdeleteServiceCIDRRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteServiceCIDRRequest(@jakarta.annotation.Nonnull String name) { + private APIdeleteNamespacedEvictionRequestRequest(@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 APIdeleteServiceCIDRRequest + * @return APIdeleteNamespacedEvictionRequestRequest */ - public APIdeleteServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteNamespacedEvictionRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1790,9 +1849,9 @@ public APIdeleteServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pr /** * 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 + * @return APIdeleteNamespacedEvictionRequestRequest */ - public APIdeleteServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteNamespacedEvictionRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1800,9 +1859,9 @@ public APIdeleteServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dr /** * 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 + * @return APIdeleteNamespacedEvictionRequestRequest */ - public APIdeleteServiceCIDRRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteNamespacedEvictionRequestRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1810,9 +1869,9 @@ public APIdeleteServiceCIDRRequest gracePeriodSeconds(@jakarta.annotation.Nullab /** * 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 + * @return APIdeleteNamespacedEvictionRequestRequest */ - public APIdeleteServiceCIDRRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedEvictionRequestRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1820,9 +1879,9 @@ public APIdeleteServiceCIDRRequest ignoreStoreReadErrorWithClusterBreakingPotent /** * 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 + * @return APIdeleteNamespacedEvictionRequestRequest */ - public APIdeleteServiceCIDRRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteNamespacedEvictionRequestRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1830,9 +1889,9 @@ public APIdeleteServiceCIDRRequest orphanDependents(@jakarta.annotation.Nullable /** * 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 + * @return APIdeleteNamespacedEvictionRequestRequest */ - public APIdeleteServiceCIDRRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteNamespacedEvictionRequestRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1840,15 +1899,15 @@ public APIdeleteServiceCIDRRequest propagationPolicy(@jakarta.annotation.Nullabl /** * Set body * @param body (optional) - * @return APIdeleteServiceCIDRRequest + * @return APIdeleteNamespacedEvictionRequestRequest */ - public APIdeleteServiceCIDRRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteNamespacedEvictionRequestRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteServiceCIDR + * Build call for deleteNamespacedEvictionRequest * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1862,11 +1921,11 @@ public APIdeleteServiceCIDRRequest body(@jakarta.annotation.Nullable V1DeleteOpt */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteServiceCIDRCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedEvictionRequestCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteServiceCIDR request + * Execute deleteNamespacedEvictionRequest request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1879,12 +1938,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteServiceCIDRWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteNamespacedEvictionRequestWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteServiceCIDR request with HTTP info returned + * Execute deleteNamespacedEvictionRequest 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 @@ -1897,11 +1956,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteServiceCIDRWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return deleteNamespacedEvictionRequestWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteServiceCIDR request (asynchronously) + * Execute deleteNamespacedEvictionRequest 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 @@ -1915,15 +1974,16 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteServiceCIDRAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedEvictionRequestAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ServiceCIDR - * @param name name of the ServiceCIDR (required) - * @return APIdeleteServiceCIDRRequest + * delete an EvictionRequest + * @param name name of the EvictionRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedEvictionRequestRequest * @http.response.details @@ -1933,8 +1993,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteServiceCIDRRequest deleteServiceCIDR(@jakarta.annotation.Nonnull String name) { - return new APIdeleteServiceCIDRRequest(name); + public APIdeleteNamespacedEvictionRequestRequest deleteNamespacedEvictionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedEvictionRequestRequest(name, namespace); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { String basePath = null; @@ -1953,7 +2013,7 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/"; + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2092,7 +2152,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEvictionForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2109,7 +2169,7 @@ private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String prett Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses"; + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/evictions"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2117,10 +2177,6 @@ private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String prett 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)); } @@ -2141,6 +2197,10 @@ private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } @@ -2191,29 +2251,27 @@ private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String prett } @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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); + private okhttp3.Call listEvictionForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listEvictionForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listEvictionForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listEvictionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEvictionForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listEvictionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistIPAddressRequest { - @jakarta.annotation.Nullable - private String pretty; + public class APIlistEvictionForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable @@ -2225,6 +2283,8 @@ public class APIlistIPAddressRequest { @jakarta.annotation.Nullable private Integer limit; @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; @jakarta.annotation.Nullable private String resourceVersionMatch; @@ -2237,25 +2297,15 @@ public class APIlistIPAddressRequest { @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; + private APIlistEvictionForAllNamespacesRequest() { } /** * 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 + * @return APIlistEvictionForAllNamespacesRequest */ - public APIlistIPAddressRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistEvictionForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2263,9 +2313,9 @@ public APIlistIPAddressRequest allowWatchBookmarks(@jakarta.annotation.Nullable /** * 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 + * @return APIlistEvictionForAllNamespacesRequest */ - public APIlistIPAddressRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistEvictionForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2273,9 +2323,9 @@ public APIlistIPAddressRequest _continue(@jakarta.annotation.Nullable String _co /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistIPAddressRequest + * @return APIlistEvictionForAllNamespacesRequest */ - public APIlistIPAddressRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistEvictionForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2283,9 +2333,9 @@ public APIlistIPAddressRequest fieldSelector(@jakarta.annotation.Nullable String /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistIPAddressRequest + * @return APIlistEvictionForAllNamespacesRequest */ - public APIlistIPAddressRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistEvictionForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2293,19 +2343,29 @@ public APIlistIPAddressRequest labelSelector(@jakarta.annotation.Nullable String /** * 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 + * @return APIlistEvictionForAllNamespacesRequest */ - public APIlistIPAddressRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistEvictionForAllNamespacesRequest 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 APIlistEvictionForAllNamespacesRequest + */ + public APIlistEvictionForAllNamespacesRequest 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 APIlistIPAddressRequest + * @return APIlistEvictionForAllNamespacesRequest */ - public APIlistIPAddressRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistEvictionForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2313,9 +2373,9 @@ public APIlistIPAddressRequest resourceVersion(@jakarta.annotation.Nullable Stri /** * 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 + * @return APIlistEvictionForAllNamespacesRequest */ - public APIlistIPAddressRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistEvictionForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2323,9 +2383,9 @@ public APIlistIPAddressRequest resourceVersionMatch(@jakarta.annotation.Nullable /** * 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 + * @return APIlistEvictionForAllNamespacesRequest */ - public APIlistIPAddressRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistEvictionForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2333,9 +2393,9 @@ public APIlistIPAddressRequest sendInitialEvents(@jakarta.annotation.Nullable Bo /** * Set shardSelector * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIlistIPAddressRequest + * @return APIlistEvictionForAllNamespacesRequest */ - public APIlistIPAddressRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + public APIlistEvictionForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { this.shardSelector = shardSelector; return this; } @@ -2343,9 +2403,9 @@ public APIlistIPAddressRequest shardSelector(@jakarta.annotation.Nullable String /** * 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 + * @return APIlistEvictionForAllNamespacesRequest */ - public APIlistIPAddressRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistEvictionForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2353,15 +2413,15 @@ public APIlistIPAddressRequest timeoutSeconds(@jakarta.annotation.Nullable Integ /** * 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 + * @return APIlistEvictionForAllNamespacesRequest */ - public APIlistIPAddressRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistEvictionForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listIPAddress + * Build call for listEvictionForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2374,12 +2434,12 @@ public APIlistIPAddressRequest watch(@jakarta.annotation.Nullable Boolean watch) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + return listEvictionForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute listIPAddress request - * @return V1beta1IPAddressList + * Execute listEvictionForAllNamespaces request + * @return V1alpha1EvictionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2389,14 +2449,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1IPAddressList execute() throws ApiException { - ApiResponse localVarResp = listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1alpha1EvictionList execute() throws ApiException { + ApiResponse localVarResp = listEvictionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listIPAddress request with HTTP info returned - * @return ApiResponse<V1beta1IPAddressList> + * Execute listEvictionForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1alpha1EvictionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2406,12 +2466,12 @@ public V1beta1IPAddressList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listEvictionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute listIPAddress request (asynchronously) + * Execute listEvictionForAllNamespaces 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 @@ -2423,15 +2483,15 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listIPAddressAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listEvictionForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind IPAddress - * @return APIlistIPAddressRequest + * list or watch objects of kind Eviction + * @return APIlistEvictionForAllNamespacesRequest * @http.response.details @@ -2440,10 +2500,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callba
Response Details
401 Unauthorized -
*/ - public APIlistIPAddressRequest listIPAddress() { - return new APIlistIPAddressRequest(); + public APIlistEvictionForAllNamespacesRequest listEvictionForAllNamespaces() { + return new APIlistEvictionForAllNamespacesRequest(); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEvictionRequestForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2460,7 +2520,7 @@ private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pre Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs"; + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/evictionrequests"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2468,10 +2528,6 @@ private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pre 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)); } @@ -2492,6 +2548,10 @@ private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } @@ -2542,29 +2602,27 @@ private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pre } @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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); + private okhttp3.Call listEvictionRequestForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listEvictionRequestForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listEvictionRequestForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listEvictionRequestForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEvictionRequestForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listEvictionRequestForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistServiceCIDRRequest { - @jakarta.annotation.Nullable - private String pretty; + public class APIlistEvictionRequestForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable @@ -2576,6 +2634,8 @@ public class APIlistServiceCIDRRequest { @jakarta.annotation.Nullable private Integer limit; @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; @jakarta.annotation.Nullable private String resourceVersionMatch; @@ -2588,25 +2648,15 @@ public class APIlistServiceCIDRRequest { @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; + private APIlistEvictionRequestForAllNamespacesRequest() { } /** * 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 + * @return APIlistEvictionRequestForAllNamespacesRequest */ - public APIlistServiceCIDRRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistEvictionRequestForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2614,9 +2664,9 @@ public APIlistServiceCIDRRequest allowWatchBookmarks(@jakarta.annotation.Nullabl /** * 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 + * @return APIlistEvictionRequestForAllNamespacesRequest */ - public APIlistServiceCIDRRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistEvictionRequestForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2624,9 +2674,9 @@ public APIlistServiceCIDRRequest _continue(@jakarta.annotation.Nullable String _ /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistServiceCIDRRequest + * @return APIlistEvictionRequestForAllNamespacesRequest */ - public APIlistServiceCIDRRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistEvictionRequestForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2634,9 +2684,9 @@ public APIlistServiceCIDRRequest fieldSelector(@jakarta.annotation.Nullable Stri /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistServiceCIDRRequest + * @return APIlistEvictionRequestForAllNamespacesRequest */ - public APIlistServiceCIDRRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistEvictionRequestForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2644,19 +2694,29 @@ public APIlistServiceCIDRRequest labelSelector(@jakarta.annotation.Nullable Stri /** * 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 + * @return APIlistEvictionRequestForAllNamespacesRequest */ - public APIlistServiceCIDRRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistEvictionRequestForAllNamespacesRequest 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 APIlistEvictionRequestForAllNamespacesRequest + */ + public APIlistEvictionRequestForAllNamespacesRequest 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 APIlistServiceCIDRRequest + * @return APIlistEvictionRequestForAllNamespacesRequest */ - public APIlistServiceCIDRRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistEvictionRequestForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2664,9 +2724,9 @@ public APIlistServiceCIDRRequest resourceVersion(@jakarta.annotation.Nullable St /** * 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 + * @return APIlistEvictionRequestForAllNamespacesRequest */ - public APIlistServiceCIDRRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistEvictionRequestForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2674,9 +2734,9 @@ public APIlistServiceCIDRRequest resourceVersionMatch(@jakarta.annotation.Nullab /** * 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 + * @return APIlistEvictionRequestForAllNamespacesRequest */ - public APIlistServiceCIDRRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistEvictionRequestForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2684,9 +2744,9 @@ public APIlistServiceCIDRRequest sendInitialEvents(@jakarta.annotation.Nullable /** * Set shardSelector * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIlistServiceCIDRRequest + * @return APIlistEvictionRequestForAllNamespacesRequest */ - public APIlistServiceCIDRRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + public APIlistEvictionRequestForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { this.shardSelector = shardSelector; return this; } @@ -2694,9 +2754,9 @@ public APIlistServiceCIDRRequest shardSelector(@jakarta.annotation.Nullable Stri /** * 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 + * @return APIlistEvictionRequestForAllNamespacesRequest */ - public APIlistServiceCIDRRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistEvictionRequestForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2704,15 +2764,15 @@ public APIlistServiceCIDRRequest timeoutSeconds(@jakarta.annotation.Nullable Int /** * 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 + * @return APIlistEvictionRequestForAllNamespacesRequest */ - public APIlistServiceCIDRRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistEvictionRequestForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listServiceCIDR + * Build call for listEvictionRequestForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2725,12 +2785,12 @@ public APIlistServiceCIDRRequest watch(@jakarta.annotation.Nullable Boolean watc */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + return listEvictionRequestForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute listServiceCIDR request - * @return V1beta1ServiceCIDRList + * Execute listEvictionRequestForAllNamespaces request + * @return V1alpha1EvictionRequestList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2740,14 +2800,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ServiceCIDRList execute() throws ApiException { - ApiResponse localVarResp = listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1alpha1EvictionRequestList execute() throws ApiException { + ApiResponse localVarResp = listEvictionRequestForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listServiceCIDR request with HTTP info returned - * @return ApiResponse<V1beta1ServiceCIDRList> + * Execute listEvictionRequestForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1alpha1EvictionRequestList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2757,12 +2817,12 @@ public V1beta1ServiceCIDRList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listEvictionRequestForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute listServiceCIDR request (asynchronously) + * Execute listEvictionRequestForAllNamespaces 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 @@ -2774,15 +2834,15 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listServiceCIDRAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listEvictionRequestForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind ServiceCIDR - * @return APIlistServiceCIDRRequest + * list or watch objects of kind EvictionRequest + * @return APIlistEvictionRequestForAllNamespacesRequest * @http.response.details @@ -2791,10 +2851,10 @@ public okhttp3.Call executeAsync(final ApiCallback _call
Response Details
401 Unauthorized -
*/ - public APIlistServiceCIDRRequest listServiceCIDR() { - return new APIlistServiceCIDRRequest(); + public APIlistEvictionRequestForAllNamespacesRequest listEvictionRequestForAllNamespaces() { + return new APIlistEvictionRequestForAllNamespacesRequest(); } - 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 { + private okhttp3.Call listNamespacedEvictionCall(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2808,11 +2868,11 @@ private okhttp3.Call patchIPAddressCall(@jakarta.annotation.Nonnull String name, basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2824,27 +2884,58 @@ private okhttp3.Call patchIPAddressCall(@jakarta.annotation.Nonnull String name, localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + 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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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) { @@ -2852,7 +2943,6 @@ private okhttp3.Call patchIPAddressCall(@jakarta.annotation.Nonnull String name, } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2860,113 +2950,189 @@ private okhttp3.Call patchIPAddressCall(@jakarta.annotation.Nonnull String name, } 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 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)"); + private okhttp3.Call listNamespacedEvictionValidateBeforeCall(@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 String shardSelector, @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 listNamespacedEviction(Async)"); } - return patchIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return listNamespacedEvictionCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _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(); + private ApiResponse listNamespacedEvictionWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedEvictionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, 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 { + private okhttp3.Call listNamespacedEvictionAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchIPAddressValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listNamespacedEvictionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchIPAddressRequest { - @jakarta.annotation.Nonnull - private final String name; + public class APIlistNamespacedEvictionRequest { @jakarta.annotation.Nonnull - private final V1Patch body; + private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private String dryRun; + private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable - private String fieldManager; + private String _continue; @jakarta.annotation.Nullable - private String fieldValidation; + private String fieldSelector; @jakarta.annotation.Nullable - private Boolean force; + 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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; - private APIpatchIPAddressRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - this.name = name; - this.body = body; + private APIlistNamespacedEvictionRequest(@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 APIpatchIPAddressRequest + * @return APIlistNamespacedEvictionRequest */ - public APIpatchIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistNamespacedEvictionRequest 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 + * 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 APIlistNamespacedEvictionRequest */ - public APIpatchIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; + public APIlistNamespacedEvictionRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; 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 + * 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 APIlistNamespacedEvictionRequest */ - public APIpatchIPAddressRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; + public APIlistNamespacedEvictionRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; 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 + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistNamespacedEvictionRequest */ - public APIpatchIPAddressRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; + public APIlistNamespacedEvictionRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; 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 + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistNamespacedEvictionRequest */ - public APIpatchIPAddressRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; + public APIlistNamespacedEvictionRequest 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 APIlistNamespacedEvictionRequest + */ + public APIlistNamespacedEvictionRequest 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 APIlistNamespacedEvictionRequest + */ + public APIlistNamespacedEvictionRequest 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 APIlistNamespacedEvictionRequest + */ + public APIlistNamespacedEvictionRequest 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 APIlistNamespacedEvictionRequest + */ + public APIlistNamespacedEvictionRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedEvictionRequest + */ + public APIlistNamespacedEvictionRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIlistNamespacedEvictionRequest + */ + public APIlistNamespacedEvictionRequest 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 APIlistNamespacedEvictionRequest + */ + public APIlistNamespacedEvictionRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; return this; } /** - * Build call for patchIPAddress + * Build call for listNamespacedEviction * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2975,51 +3141,48 @@ public APIpatchIPAddressRequest force(@jakarta.annotation.Nullable Boolean force 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); + return listNamespacedEvictionCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute patchIPAddress request - * @return V1beta1IPAddress + * Execute listNamespacedEviction request + * @return V1alpha1EvictionList * @throws ApiException If fail to call the API, 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 V1beta1IPAddress execute() throws ApiException { - ApiResponse localVarResp = patchIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1alpha1EvictionList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedEvictionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute patchIPAddress request with HTTP info returned - * @return ApiResponse<V1beta1IPAddress> + * Execute listNamespacedEviction request with HTTP info returned + * @return ApiResponse<V1alpha1EvictionList> * @throws ApiException If fail to call the API, 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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listNamespacedEvictionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute patchIPAddress request (asynchronously) + * Execute listNamespacedEviction 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 @@ -3028,34 +3191,31 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 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); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listNamespacedEvictionAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * - * partially update the specified IPAddress - * @param name name of the IPAddress (required) - * @param body (required) - * @return APIpatchIPAddressRequest + * list or watch objects of kind Eviction + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedEvictionRequest * @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); + public APIlistNamespacedEvictionRequest listNamespacedEviction(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedEvictionRequest(namespace); } - 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 { + private okhttp3.Call listNamespacedEvictionRequestCall(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3069,11 +3229,11 @@ private okhttp3.Call patchServiceCIDRCall(@jakarta.annotation.Nonnull String nam basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3085,20 +3245,1450 @@ private okhttp3.Call patchServiceCIDRCall(@jakarta.annotation.Nonnull String nam localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } + 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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 listNamespacedEvictionRequestValidateBeforeCall(@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 String shardSelector, @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 listNamespacedEvictionRequest(Async)"); + } + + return listNamespacedEvictionRequestCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedEvictionRequestWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedEvictionRequestValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedEvictionRequestAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedEvictionRequestValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedEvictionRequestRequest { + @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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedEvictionRequestRequest(@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 APIlistNamespacedEvictionRequestRequest + */ + public APIlistNamespacedEvictionRequestRequest 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 APIlistNamespacedEvictionRequestRequest + */ + public APIlistNamespacedEvictionRequestRequest 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 APIlistNamespacedEvictionRequestRequest + */ + public APIlistNamespacedEvictionRequestRequest _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 APIlistNamespacedEvictionRequestRequest + */ + public APIlistNamespacedEvictionRequestRequest 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 APIlistNamespacedEvictionRequestRequest + */ + public APIlistNamespacedEvictionRequestRequest 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 APIlistNamespacedEvictionRequestRequest + */ + public APIlistNamespacedEvictionRequestRequest 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 APIlistNamespacedEvictionRequestRequest + */ + public APIlistNamespacedEvictionRequestRequest 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 APIlistNamespacedEvictionRequestRequest + */ + public APIlistNamespacedEvictionRequestRequest 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 APIlistNamespacedEvictionRequestRequest + */ + public APIlistNamespacedEvictionRequestRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedEvictionRequestRequest + */ + public APIlistNamespacedEvictionRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIlistNamespacedEvictionRequestRequest + */ + public APIlistNamespacedEvictionRequestRequest 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 APIlistNamespacedEvictionRequestRequest + */ + public APIlistNamespacedEvictionRequestRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedEvictionRequest + * @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 listNamespacedEvictionRequestCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedEvictionRequest request + * @return V1alpha1EvictionRequestList + * @throws ApiException If fail to call the API, 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 V1alpha1EvictionRequestList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedEvictionRequestWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedEvictionRequest request with HTTP info returned + * @return ApiResponse<V1alpha1EvictionRequestList> + * @throws ApiException If fail to call the API, 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 listNamespacedEvictionRequestWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedEvictionRequest 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 listNamespacedEvictionRequestAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind EvictionRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedEvictionRequestRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedEvictionRequestRequest listNamespacedEvictionRequest(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedEvictionRequestRequest(namespace); + } + private okhttp3.Call patchNamespacedEvictionCall(@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/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{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 patchNamespacedEvictionValidateBeforeCall(@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 patchNamespacedEviction(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedEviction(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedEviction(Async)"); + } + + return patchNamespacedEvictionCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedEvictionWithHttpInfo(@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 = patchNamespacedEvictionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedEvictionAsync(@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 = patchNamespacedEvictionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedEvictionRequest { + @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 APIpatchNamespacedEvictionRequest(@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 APIpatchNamespacedEvictionRequest + */ + public APIpatchNamespacedEvictionRequest 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 APIpatchNamespacedEvictionRequest + */ + public APIpatchNamespacedEvictionRequest 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 APIpatchNamespacedEvictionRequest + */ + public APIpatchNamespacedEvictionRequest 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 APIpatchNamespacedEvictionRequest + */ + public APIpatchNamespacedEvictionRequest 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 APIpatchNamespacedEvictionRequest + */ + public APIpatchNamespacedEvictionRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedEviction + * @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 patchNamespacedEvictionCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedEviction request + * @return V1alpha1Eviction + * @throws ApiException If fail to call the API, 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 V1alpha1Eviction execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedEvictionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedEviction request with HTTP info returned + * @return ApiResponse<V1alpha1Eviction> + * @throws ApiException If fail to call the API, 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 patchNamespacedEvictionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedEviction 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 patchNamespacedEvictionAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified Eviction + * @param name name of the Eviction (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedEvictionRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedEvictionRequest patchNamespacedEviction(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedEvictionRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedEvictionRequestCall(@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/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{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 patchNamespacedEvictionRequestValidateBeforeCall(@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 patchNamespacedEvictionRequest(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedEvictionRequest(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedEvictionRequest(Async)"); + } + + return patchNamespacedEvictionRequestCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedEvictionRequestWithHttpInfo(@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 = patchNamespacedEvictionRequestValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedEvictionRequestAsync(@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 = patchNamespacedEvictionRequestValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedEvictionRequestRequest { + @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 APIpatchNamespacedEvictionRequestRequest(@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 APIpatchNamespacedEvictionRequestRequest + */ + public APIpatchNamespacedEvictionRequestRequest 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 APIpatchNamespacedEvictionRequestRequest + */ + public APIpatchNamespacedEvictionRequestRequest 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 APIpatchNamespacedEvictionRequestRequest + */ + public APIpatchNamespacedEvictionRequestRequest 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 APIpatchNamespacedEvictionRequestRequest + */ + public APIpatchNamespacedEvictionRequestRequest 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 APIpatchNamespacedEvictionRequestRequest + */ + public APIpatchNamespacedEvictionRequestRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedEvictionRequest + * @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 patchNamespacedEvictionRequestCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedEvictionRequest request + * @return V1alpha1EvictionRequest + * @throws ApiException If fail to call the API, 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 V1alpha1EvictionRequest execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedEvictionRequestWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedEvictionRequest request with HTTP info returned + * @return ApiResponse<V1alpha1EvictionRequest> + * @throws ApiException If fail to call the API, 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 patchNamespacedEvictionRequestWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedEvictionRequest 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 patchNamespacedEvictionRequestAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified EvictionRequest + * @param name name of the EvictionRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedEvictionRequestRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedEvictionRequestRequest patchNamespacedEvictionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedEvictionRequestRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedEvictionRequestStatusCall(@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/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{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 patchNamespacedEvictionRequestStatusValidateBeforeCall(@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 patchNamespacedEvictionRequestStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedEvictionRequestStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedEvictionRequestStatus(Async)"); + } + + return patchNamespacedEvictionRequestStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedEvictionRequestStatusWithHttpInfo(@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 = patchNamespacedEvictionRequestStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedEvictionRequestStatusAsync(@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 = patchNamespacedEvictionRequestStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedEvictionRequestStatusRequest { + @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 APIpatchNamespacedEvictionRequestStatusRequest(@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 APIpatchNamespacedEvictionRequestStatusRequest + */ + public APIpatchNamespacedEvictionRequestStatusRequest 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 APIpatchNamespacedEvictionRequestStatusRequest + */ + public APIpatchNamespacedEvictionRequestStatusRequest 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 APIpatchNamespacedEvictionRequestStatusRequest + */ + public APIpatchNamespacedEvictionRequestStatusRequest 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 APIpatchNamespacedEvictionRequestStatusRequest + */ + public APIpatchNamespacedEvictionRequestStatusRequest 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 APIpatchNamespacedEvictionRequestStatusRequest + */ + public APIpatchNamespacedEvictionRequestStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedEvictionRequestStatus + * @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 patchNamespacedEvictionRequestStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedEvictionRequestStatus request + * @return V1alpha1EvictionRequest + * @throws ApiException If fail to call the API, 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 V1alpha1EvictionRequest execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedEvictionRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedEvictionRequestStatus request with HTTP info returned + * @return ApiResponse<V1alpha1EvictionRequest> + * @throws ApiException If fail to call the API, 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 patchNamespacedEvictionRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedEvictionRequestStatus 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 patchNamespacedEvictionRequestStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified EvictionRequest + * @param name name of the EvictionRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedEvictionRequestStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedEvictionRequestStatusRequest patchNamespacedEvictionRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedEvictionRequestStatusRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedEvictionStatusCall(@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/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{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 patchNamespacedEvictionStatusValidateBeforeCall(@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 patchNamespacedEvictionStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedEvictionStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedEvictionStatus(Async)"); + } + + return patchNamespacedEvictionStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedEvictionStatusWithHttpInfo(@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 = patchNamespacedEvictionStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedEvictionStatusAsync(@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 = patchNamespacedEvictionStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedEvictionStatusRequest { + @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 APIpatchNamespacedEvictionStatusRequest(@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 APIpatchNamespacedEvictionStatusRequest + */ + public APIpatchNamespacedEvictionStatusRequest 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 APIpatchNamespacedEvictionStatusRequest + */ + public APIpatchNamespacedEvictionStatusRequest 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 APIpatchNamespacedEvictionStatusRequest + */ + public APIpatchNamespacedEvictionStatusRequest 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 APIpatchNamespacedEvictionStatusRequest + */ + public APIpatchNamespacedEvictionStatusRequest 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 APIpatchNamespacedEvictionStatusRequest + */ + public APIpatchNamespacedEvictionStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedEvictionStatus + * @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 patchNamespacedEvictionStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedEvictionStatus request + * @return V1alpha1Eviction + * @throws ApiException If fail to call the API, 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 V1alpha1Eviction execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedEvictionStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedEvictionStatus request with HTTP info returned + * @return ApiResponse<V1alpha1Eviction> + * @throws ApiException If fail to call the API, 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 patchNamespacedEvictionStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedEvictionStatus 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 patchNamespacedEvictionStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + /** + * + * partially update status of the specified Eviction + * @param name name of the Eviction (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedEvictionStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedEvictionStatusRequest patchNamespacedEvictionStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedEvictionStatusRequest(name, namespace, body); + } + private okhttp3.Call readNamespacedEvictionCall(@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; } - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{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 = { @@ -3113,7 +4703,6 @@ private okhttp3.Call patchServiceCIDRCall(@jakarta.annotation.Nonnull String nam } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3121,113 +4710,65 @@ private okhttp3.Call patchServiceCIDRCall(@jakarta.annotation.Nonnull String nam } 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 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 { + private okhttp3.Call readNamespacedEvictionValidateBeforeCall(@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 patchServiceCIDR(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedEviction(Async)"); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchServiceCIDR(Async)"); + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedEviction(Async)"); } - return patchServiceCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedEvictionCall(name, namespace, pretty, _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(); + private ApiResponse readNamespacedEvictionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedEvictionValidateBeforeCall(name, namespace, pretty, 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 { + private okhttp3.Call readNamespacedEvictionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchServiceCIDRValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedEvictionValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchServiceCIDRRequest { + public class APIreadNamespacedEvictionRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1Patch body; + private final String namespace; @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) { + private APIreadNamespacedEvictionRequest(@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 APIpatchServiceCIDRRequest + * @return APIreadNamespacedEvictionRequest */ - public APIpatchServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadNamespacedEvictionRequest 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 + * Build call for readNamespacedEviction * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3236,51 +4777,48 @@ public APIpatchServiceCIDRRequest force(@jakarta.annotation.Nullable Boolean for 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); + return readNamespacedEvictionCall(name, namespace, pretty, _callback); } /** - * Execute patchServiceCIDR request - * @return V1beta1ServiceCIDR + * Execute readNamespacedEviction request + * @return V1alpha1Eviction * @throws ApiException If fail to call the API, 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 V1beta1ServiceCIDR execute() throws ApiException { - ApiResponse localVarResp = patchServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1alpha1Eviction execute() throws ApiException { + ApiResponse localVarResp = readNamespacedEvictionWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute patchServiceCIDR request with HTTP info returned - * @return ApiResponse<V1beta1ServiceCIDR> + * Execute readNamespacedEviction request with HTTP info returned + * @return ApiResponse<V1alpha1Eviction> * @throws ApiException If fail to call the API, 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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedEvictionWithHttpInfo(name, namespace, pretty); } /** - * Execute patchServiceCIDR request (asynchronously) + * Execute readNamespacedEviction 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 @@ -3289,34 +4827,32 @@ public ApiResponse executeWithHttpInfo() throws ApiException 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); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedEvictionAsync(name, namespace, pretty, _callback); } } /** * - * partially update the specified ServiceCIDR - * @param name name of the ServiceCIDR (required) - * @param body (required) - * @return APIpatchServiceCIDRRequest + * read the specified Eviction + * @param name name of the Eviction (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedEvictionRequest * @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); + public APIreadNamespacedEvictionRequest readNamespacedEviction(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedEvictionRequest(name, namespace); } - 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 { + private okhttp3.Call readNamespacedEvictionRequestCall(@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[] { }; @@ -3330,11 +4866,12 @@ private okhttp3.Call patchServiceCIDRStatusCall(@jakarta.annotation.Nonnull Stri basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3346,22 +4883,6 @@ private okhttp3.Call patchServiceCIDRStatusCall(@jakarta.annotation.Nonnull Stri 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", @@ -3374,7 +4895,6 @@ private okhttp3.Call patchServiceCIDRStatusCall(@jakarta.annotation.Nonnull Stri } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3382,113 +4902,65 @@ private okhttp3.Call patchServiceCIDRStatusCall(@jakarta.annotation.Nonnull Stri } 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 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 { + private okhttp3.Call readNamespacedEvictionRequestValidateBeforeCall(@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 patchServiceCIDRStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedEvictionRequest(Async)"); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchServiceCIDRStatus(Async)"); + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedEvictionRequest(Async)"); } - return patchServiceCIDRStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedEvictionRequestCall(name, namespace, pretty, _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(); + private ApiResponse readNamespacedEvictionRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedEvictionRequestValidateBeforeCall(name, namespace, pretty, 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 { + private okhttp3.Call readNamespacedEvictionRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchServiceCIDRStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedEvictionRequestValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchServiceCIDRStatusRequest { + public class APIreadNamespacedEvictionRequestRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1Patch body; + private final String namespace; @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) { + private APIreadNamespacedEvictionRequestRequest(@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 APIpatchServiceCIDRStatusRequest + * @return APIreadNamespacedEvictionRequestRequest */ - public APIpatchServiceCIDRStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadNamespacedEvictionRequestRequest 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 + * Build call for readNamespacedEvictionRequest * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3497,51 +4969,48 @@ public APIpatchServiceCIDRStatusRequest force(@jakarta.annotation.Nullable Boole 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); + return readNamespacedEvictionRequestCall(name, namespace, pretty, _callback); } /** - * Execute patchServiceCIDRStatus request - * @return V1beta1ServiceCIDR + * Execute readNamespacedEvictionRequest request + * @return V1alpha1EvictionRequest * @throws ApiException If fail to call the API, 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 V1beta1ServiceCIDR execute() throws ApiException { - ApiResponse localVarResp = patchServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1alpha1EvictionRequest execute() throws ApiException { + ApiResponse localVarResp = readNamespacedEvictionRequestWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute patchServiceCIDRStatus request with HTTP info returned - * @return ApiResponse<V1beta1ServiceCIDR> + * Execute readNamespacedEvictionRequest request with HTTP info returned + * @return ApiResponse<V1alpha1EvictionRequest> * @throws ApiException If fail to call the API, 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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedEvictionRequestWithHttpInfo(name, namespace, pretty); } /** - * Execute patchServiceCIDRStatus request (asynchronously) + * Execute readNamespacedEvictionRequest 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 @@ -3550,34 +5019,32 @@ public ApiResponse executeWithHttpInfo() throws ApiException 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); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedEvictionRequestAsync(name, namespace, pretty, _callback); } } /** * - * partially update status of the specified ServiceCIDR - * @param name name of the ServiceCIDR (required) - * @param body (required) - * @return APIpatchServiceCIDRStatusRequest + * read the specified EvictionRequest + * @param name name of the EvictionRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedEvictionRequestRequest * @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); + public APIreadNamespacedEvictionRequestRequest readNamespacedEvictionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedEvictionRequestRequest(name, namespace); } - private okhttp3.Call readIPAddressCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEvictionRequestStatusCall(@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[] { }; @@ -3594,8 +5061,9 @@ private okhttp3.Call readIPAddressCall(@jakarta.annotation.Nonnull String name, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3630,53 +5098,61 @@ private okhttp3.Call readIPAddressCall(@jakarta.annotation.Nonnull String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call readIPAddressValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEvictionRequestStatusValidateBeforeCall(@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 readIPAddress(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedEvictionRequestStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedEvictionRequestStatus(Async)"); } - return readIPAddressCall(name, pretty, _callback); + return readNamespacedEvictionRequestStatusCall(name, namespace, 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(); + private ApiResponse readNamespacedEvictionRequestStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedEvictionRequestStatusValidateBeforeCall(name, namespace, 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 { + private okhttp3.Call readNamespacedEvictionRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readIPAddressValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedEvictionRequestStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadIPAddressRequest { + public class APIreadNamespacedEvictionRequestStatusRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nullable private String pretty; - private APIreadIPAddressRequest(@jakarta.annotation.Nonnull String name) { + private APIreadNamespacedEvictionRequestStatusRequest(@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 APIreadIPAddressRequest + * @return APIreadNamespacedEvictionRequestStatusRequest */ - public APIreadIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadNamespacedEvictionRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readIPAddress + * Build call for readNamespacedEvictionRequestStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3689,12 +5165,12 @@ public APIreadIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readIPAddressCall(name, pretty, _callback); + return readNamespacedEvictionRequestStatusCall(name, namespace, pretty, _callback); } /** - * Execute readIPAddress request - * @return V1beta1IPAddress + * Execute readNamespacedEvictionRequestStatus request + * @return V1alpha1EvictionRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3704,14 +5180,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1IPAddress execute() throws ApiException { - ApiResponse localVarResp = readIPAddressWithHttpInfo(name, pretty); + public V1alpha1EvictionRequest execute() throws ApiException { + ApiResponse localVarResp = readNamespacedEvictionRequestStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute readIPAddress request with HTTP info returned - * @return ApiResponse<V1beta1IPAddress> + * Execute readNamespacedEvictionRequestStatus request with HTTP info returned + * @return ApiResponse<V1alpha1EvictionRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3721,12 +5197,12 @@ public V1beta1IPAddress execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readIPAddressWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedEvictionRequestStatusWithHttpInfo(name, namespace, pretty); } /** - * Execute readIPAddress request (asynchronously) + * Execute readNamespacedEvictionRequestStatus 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 @@ -3738,16 +5214,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readIPAddressAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedEvictionRequestStatusAsync(name, namespace, pretty, _callback); } } /** * - * read the specified IPAddress - * @param name name of the IPAddress (required) - * @return APIreadIPAddressRequest + * read status of the specified EvictionRequest + * @param name name of the EvictionRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedEvictionRequestStatusRequest * @http.response.details @@ -3756,10 +5233,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback)
Response Details
401 Unauthorized -
*/ - public APIreadIPAddressRequest readIPAddress(@jakarta.annotation.Nonnull String name) { - return new APIreadIPAddressRequest(name); + public APIreadNamespacedEvictionRequestStatusRequest readNamespacedEvictionRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedEvictionRequestStatusRequest(name, namespace); } - private okhttp3.Call readServiceCIDRCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEvictionStatusCall(@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[] { }; @@ -3776,8 +5253,9 @@ private okhttp3.Call readServiceCIDRCall(@jakarta.annotation.Nonnull String name Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3812,53 +5290,61 @@ private okhttp3.Call readServiceCIDRCall(@jakarta.annotation.Nonnull String name } @SuppressWarnings("rawtypes") - private okhttp3.Call readServiceCIDRValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEvictionStatusValidateBeforeCall(@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 readServiceCIDR(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedEvictionStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedEvictionStatus(Async)"); } - return readServiceCIDRCall(name, pretty, _callback); + return readNamespacedEvictionStatusCall(name, namespace, pretty, _callback); } - 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(); + private ApiResponse readNamespacedEvictionStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedEvictionStatusValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readServiceCIDRAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedEvictionStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readServiceCIDRValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedEvictionStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadServiceCIDRRequest { + public class APIreadNamespacedEvictionStatusRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nullable private String pretty; - private APIreadServiceCIDRRequest(@jakarta.annotation.Nonnull String name) { + private APIreadNamespacedEvictionStatusRequest(@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 APIreadServiceCIDRRequest + * @return APIreadNamespacedEvictionStatusRequest */ - public APIreadServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadNamespacedEvictionStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readServiceCIDR + * Build call for readNamespacedEvictionStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3871,12 +5357,12 @@ public APIreadServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pret */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readServiceCIDRCall(name, pretty, _callback); + return readNamespacedEvictionStatusCall(name, namespace, pretty, _callback); } /** - * Execute readServiceCIDR request - * @return V1beta1ServiceCIDR + * Execute readNamespacedEvictionStatus request + * @return V1alpha1Eviction * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3886,14 +5372,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ServiceCIDR execute() throws ApiException { - ApiResponse localVarResp = readServiceCIDRWithHttpInfo(name, pretty); + public V1alpha1Eviction execute() throws ApiException { + ApiResponse localVarResp = readNamespacedEvictionStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute readServiceCIDR request with HTTP info returned - * @return ApiResponse<V1beta1ServiceCIDR> + * Execute readNamespacedEvictionStatus request with HTTP info returned + * @return ApiResponse<V1alpha1Eviction> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3903,12 +5389,12 @@ public V1beta1ServiceCIDR execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readServiceCIDRWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedEvictionStatusWithHttpInfo(name, namespace, pretty); } /** - * Execute readServiceCIDR request (asynchronously) + * Execute readNamespacedEvictionStatus 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 @@ -3920,16 +5406,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readServiceCIDRAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedEvictionStatusAsync(name, namespace, pretty, _callback); } } /** * - * read the specified ServiceCIDR - * @param name name of the ServiceCIDR (required) - * @return APIreadServiceCIDRRequest + * read status of the specified Eviction + * @param name name of the Eviction (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedEvictionStatusRequest * @http.response.details @@ -3938,10 +5425,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
401 Unauthorized -
*/ - public APIreadServiceCIDRRequest readServiceCIDR(@jakarta.annotation.Nonnull String name) { - return new APIreadServiceCIDRRequest(name); + public APIreadNamespacedEvictionStatusRequest readNamespacedEvictionStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedEvictionStatusRequest(name, namespace); } - private okhttp3.Call readServiceCIDRStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEvictionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction body, @jakarta.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[] { }; @@ -3955,11 +5442,12 @@ private okhttp3.Call readServiceCIDRStatusCall(@jakarta.annotation.Nonnull Strin basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3971,6 +5459,18 @@ private okhttp3.Call readServiceCIDRStatusCall(@jakarta.annotation.Nonnull Strin 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", @@ -3983,6 +5483,7 @@ private okhttp3.Call readServiceCIDRStatusCall(@jakarta.annotation.Nonnull Strin } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3990,57 +5491,109 @@ private okhttp3.Call readServiceCIDRStatusCall(@jakarta.annotation.Nonnull Strin } 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 readServiceCIDRStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEvictionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction body, @jakarta.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 readServiceCIDRStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedEviction(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedEviction(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedEviction(Async)"); } - return readServiceCIDRStatusCall(name, pretty, _callback); + return replaceNamespacedEvictionCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - 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(); + private ApiResponse replaceNamespacedEvictionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction 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 = replaceNamespacedEvictionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readServiceCIDRStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedEvictionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction body, @jakarta.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 = readServiceCIDRStatusValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceNamespacedEvictionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadServiceCIDRStatusRequest { + public class APIreplaceNamespacedEvictionRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha1Eviction body; @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 APIreadServiceCIDRStatusRequest(@jakarta.annotation.Nonnull String name) { + private APIreplaceNamespacedEvictionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction 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 APIreadServiceCIDRStatusRequest + * @return APIreplaceNamespacedEvictionRequest */ - public APIreadServiceCIDRStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceNamespacedEvictionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readServiceCIDRStatus + * 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 APIreplaceNamespacedEvictionRequest + */ + public APIreplaceNamespacedEvictionRequest 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 APIreplaceNamespacedEvictionRequest + */ + public APIreplaceNamespacedEvictionRequest 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 APIreplaceNamespacedEvictionRequest + */ + public APIreplaceNamespacedEvictionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedEviction * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4049,48 +5602,51 @@ public APIreadServiceCIDRStatusRequest pretty(@jakarta.annotation.Nullable Strin Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readServiceCIDRStatusCall(name, pretty, _callback); + return replaceNamespacedEvictionCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readServiceCIDRStatus request - * @return V1beta1ServiceCIDR + * Execute replaceNamespacedEviction request + * @return V1alpha1Eviction * @throws ApiException If fail to call the API, 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 V1beta1ServiceCIDR execute() throws ApiException { - ApiResponse localVarResp = readServiceCIDRStatusWithHttpInfo(name, pretty); + public V1alpha1Eviction execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedEvictionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readServiceCIDRStatus request with HTTP info returned - * @return ApiResponse<V1beta1ServiceCIDR> + * Execute replaceNamespacedEviction request with HTTP info returned + * @return ApiResponse<V1alpha1Eviction> * @throws ApiException If fail to call the API, 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 readServiceCIDRStatusWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedEvictionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readServiceCIDRStatus request (asynchronously) + * Execute replaceNamespacedEviction 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 @@ -4099,31 +5655,35 @@ public ApiResponse executeWithHttpInfo() throws ApiException Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readServiceCIDRStatusAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedEvictionAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read status of the specified ServiceCIDR - * @param name name of the ServiceCIDR (required) - * @return APIreadServiceCIDRStatusRequest + * replace the specified Eviction + * @param name name of the Eviction (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedEvictionRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadServiceCIDRStatusRequest readServiceCIDRStatus(@jakarta.annotation.Nonnull String name) { - return new APIreadServiceCIDRStatusRequest(name); + public APIreplaceNamespacedEvictionRequest replaceNamespacedEviction(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction body) { + return new APIreplaceNamespacedEvictionRequest(name, namespace, body); } - 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 { + private okhttp3.Call replaceNamespacedEvictionRequestCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest body, @jakarta.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[] { }; @@ -4140,8 +5700,9 @@ private okhttp3.Call replaceIPAddressCall(@jakarta.annotation.Nonnull String nam Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/ipaddresses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4189,41 +5750,48 @@ private okhttp3.Call replaceIPAddressCall(@jakarta.annotation.Nonnull String nam } @SuppressWarnings("rawtypes") - 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 { + private okhttp3.Call replaceNamespacedEvictionRequestValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest body, @jakarta.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)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedEvictionRequest(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedEvictionRequest(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceIPAddress(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedEvictionRequest(Async)"); } - return replaceIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedEvictionRequestCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - 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(); + private ApiResponse replaceNamespacedEvictionRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest 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 = replaceNamespacedEvictionRequestValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + private okhttp3.Call replaceNamespacedEvictionRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest body, @jakarta.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(); + okhttp3.Call localVarCall = replaceNamespacedEvictionRequestValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceIPAddressRequest { + public class APIreplaceNamespacedEvictionRequestRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1beta1IPAddress body; + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha1EvictionRequest body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -4233,17 +5801,18 @@ public class APIreplaceIPAddressRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceIPAddressRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1IPAddress body) { + private APIreplaceNamespacedEvictionRequestRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest 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 APIreplaceIPAddressRequest + * @return APIreplaceNamespacedEvictionRequestRequest */ - public APIreplaceIPAddressRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceNamespacedEvictionRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4251,9 +5820,9 @@ public APIreplaceIPAddressRequest pretty(@jakarta.annotation.Nullable String pre /** * 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 + * @return APIreplaceNamespacedEvictionRequestRequest */ - public APIreplaceIPAddressRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceNamespacedEvictionRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4261,9 +5830,9 @@ public APIreplaceIPAddressRequest dryRun(@jakarta.annotation.Nullable String dry /** * 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 + * @return APIreplaceNamespacedEvictionRequestRequest */ - public APIreplaceIPAddressRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceNamespacedEvictionRequestRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4271,15 +5840,15 @@ public APIreplaceIPAddressRequest fieldManager(@jakarta.annotation.Nullable Stri /** * 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 + * @return APIreplaceNamespacedEvictionRequestRequest */ - public APIreplaceIPAddressRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceNamespacedEvictionRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceIPAddress + * Build call for replaceNamespacedEvictionRequest * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4293,12 +5862,12 @@ public APIreplaceIPAddressRequest fieldValidation(@jakarta.annotation.Nullable S */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceIPAddressCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedEvictionRequestCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceIPAddress request - * @return V1beta1IPAddress + * Execute replaceNamespacedEvictionRequest request + * @return V1alpha1EvictionRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4309,14 +5878,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1IPAddress execute() throws ApiException { - ApiResponse localVarResp = replaceIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha1EvictionRequest execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedEvictionRequestWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceIPAddress request with HTTP info returned - * @return ApiResponse<V1beta1IPAddress> + * Execute replaceNamespacedEvictionRequest request with HTTP info returned + * @return ApiResponse<V1alpha1EvictionRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4327,12 +5896,12 @@ public V1beta1IPAddress execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedEvictionRequestWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceIPAddress request (asynchronously) + * Execute replaceNamespacedEvictionRequest 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 @@ -4345,17 +5914,18 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceIPAddressAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedEvictionRequestAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace the specified IPAddress - * @param name name of the IPAddress (required) + * replace the specified EvictionRequest + * @param name name of the EvictionRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @return APIreplaceIPAddressRequest + * @return APIreplaceNamespacedEvictionRequestRequest * @http.response.details @@ -4365,10 +5935,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback)
Response Details
401 Unauthorized -
*/ - public APIreplaceIPAddressRequest replaceIPAddress(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1IPAddress body) { - return new APIreplaceIPAddressRequest(name, body); + public APIreplaceNamespacedEvictionRequestRequest replaceNamespacedEvictionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest body) { + return new APIreplaceNamespacedEvictionRequestRequest(name, namespace, body); } - 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 { + private okhttp3.Call replaceNamespacedEvictionRequestStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest body, @jakarta.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[] { }; @@ -4385,8 +5955,9 @@ private okhttp3.Call replaceServiceCIDRCall(@jakarta.annotation.Nonnull String n Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4434,41 +6005,48 @@ private okhttp3.Call replaceServiceCIDRCall(@jakarta.annotation.Nonnull String n } @SuppressWarnings("rawtypes") - 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 { + private okhttp3.Call replaceNamespacedEvictionRequestStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest body, @jakarta.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)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedEvictionRequestStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedEvictionRequestStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceServiceCIDR(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedEvictionRequestStatus(Async)"); } - return replaceServiceCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedEvictionRequestStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - 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(); + private ApiResponse replaceNamespacedEvictionRequestStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest 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 = replaceNamespacedEvictionRequestStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + private okhttp3.Call replaceNamespacedEvictionRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest body, @jakarta.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(); + okhttp3.Call localVarCall = replaceNamespacedEvictionRequestStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceServiceCIDRRequest { + public class APIreplaceNamespacedEvictionRequestStatusRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1beta1ServiceCIDR body; + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha1EvictionRequest body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -4478,17 +6056,18 @@ public class APIreplaceServiceCIDRRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceServiceCIDRRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body) { + private APIreplaceNamespacedEvictionRequestStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest 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 APIreplaceServiceCIDRRequest + * @return APIreplaceNamespacedEvictionRequestStatusRequest */ - public APIreplaceServiceCIDRRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceNamespacedEvictionRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4496,9 +6075,9 @@ public APIreplaceServiceCIDRRequest pretty(@jakarta.annotation.Nullable String p /** * 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 APIreplaceServiceCIDRRequest + * @return APIreplaceNamespacedEvictionRequestStatusRequest */ - public APIreplaceServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceNamespacedEvictionRequestStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4506,9 +6085,9 @@ public APIreplaceServiceCIDRRequest dryRun(@jakarta.annotation.Nullable String d /** * 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 APIreplaceServiceCIDRRequest + * @return APIreplaceNamespacedEvictionRequestStatusRequest */ - public APIreplaceServiceCIDRRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceNamespacedEvictionRequestStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4516,15 +6095,15 @@ public APIreplaceServiceCIDRRequest fieldManager(@jakarta.annotation.Nullable St /** * 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 APIreplaceServiceCIDRRequest + * @return APIreplaceNamespacedEvictionRequestStatusRequest */ - public APIreplaceServiceCIDRRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceNamespacedEvictionRequestStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceServiceCIDR + * Build call for replaceNamespacedEvictionRequestStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4538,12 +6117,12 @@ public APIreplaceServiceCIDRRequest fieldValidation(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceServiceCIDRCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedEvictionRequestStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceServiceCIDR request - * @return V1beta1ServiceCIDR + * Execute replaceNamespacedEvictionRequestStatus request + * @return V1alpha1EvictionRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4554,14 +6133,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ServiceCIDR execute() throws ApiException { - ApiResponse localVarResp = replaceServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha1EvictionRequest execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedEvictionRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceServiceCIDR request with HTTP info returned - * @return ApiResponse<V1beta1ServiceCIDR> + * Execute replaceNamespacedEvictionRequestStatus request with HTTP info returned + * @return ApiResponse<V1alpha1EvictionRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4572,12 +6151,12 @@ public V1beta1ServiceCIDR execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedEvictionRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceServiceCIDR request (asynchronously) + * Execute replaceNamespacedEvictionRequestStatus 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 @@ -4590,17 +6169,18 @@ public ApiResponse executeWithHttpInfo() throws ApiException 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceServiceCIDRAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedEvictionRequestStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace the specified ServiceCIDR - * @param name name of the ServiceCIDR (required) + * replace status of the specified EvictionRequest + * @param name name of the EvictionRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @return APIreplaceServiceCIDRRequest + * @return APIreplaceNamespacedEvictionRequestStatusRequest * @http.response.details @@ -4610,10 +6190,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
401 Unauthorized -
*/ - public APIreplaceServiceCIDRRequest replaceServiceCIDR(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body) { - return new APIreplaceServiceCIDRRequest(name, body); + public APIreplaceNamespacedEvictionRequestStatusRequest replaceNamespacedEvictionRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1EvictionRequest body) { + return new APIreplaceNamespacedEvictionRequestStatusRequest(name, namespace, body); } - 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 { + private okhttp3.Call replaceNamespacedEvictionStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction body, @jakarta.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[] { }; @@ -4630,8 +6210,9 @@ private okhttp3.Call replaceServiceCIDRStatusCall(@jakarta.annotation.Nonnull St Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4679,41 +6260,48 @@ private okhttp3.Call replaceServiceCIDRStatusCall(@jakarta.annotation.Nonnull St } @SuppressWarnings("rawtypes") - 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 { + private okhttp3.Call replaceNamespacedEvictionStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction body, @jakarta.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)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedEvictionStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedEvictionStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceServiceCIDRStatus(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedEvictionStatus(Async)"); } - return replaceServiceCIDRStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedEvictionStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - 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(); + private ApiResponse replaceNamespacedEvictionStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction 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 = replaceNamespacedEvictionStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + private okhttp3.Call replaceNamespacedEvictionStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction body, @jakarta.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(); + okhttp3.Call localVarCall = replaceNamespacedEvictionStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceServiceCIDRStatusRequest { + public class APIreplaceNamespacedEvictionStatusRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1beta1ServiceCIDR body; + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha1Eviction body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -4723,17 +6311,18 @@ public class APIreplaceServiceCIDRStatusRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceServiceCIDRStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body) { + private APIreplaceNamespacedEvictionStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction 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 APIreplaceServiceCIDRStatusRequest + * @return APIreplaceNamespacedEvictionStatusRequest */ - public APIreplaceServiceCIDRStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceNamespacedEvictionStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4741,9 +6330,9 @@ public APIreplaceServiceCIDRStatusRequest pretty(@jakarta.annotation.Nullable St /** * 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 APIreplaceServiceCIDRStatusRequest + * @return APIreplaceNamespacedEvictionStatusRequest */ - public APIreplaceServiceCIDRStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceNamespacedEvictionStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4751,9 +6340,9 @@ public APIreplaceServiceCIDRStatusRequest dryRun(@jakarta.annotation.Nullable St /** * 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 APIreplaceServiceCIDRStatusRequest + * @return APIreplaceNamespacedEvictionStatusRequest */ - public APIreplaceServiceCIDRStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceNamespacedEvictionStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4761,15 +6350,15 @@ public APIreplaceServiceCIDRStatusRequest fieldManager(@jakarta.annotation.Nulla /** * 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 APIreplaceServiceCIDRStatusRequest + * @return APIreplaceNamespacedEvictionStatusRequest */ - public APIreplaceServiceCIDRStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceNamespacedEvictionStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceServiceCIDRStatus + * Build call for replaceNamespacedEvictionStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4783,12 +6372,12 @@ public APIreplaceServiceCIDRStatusRequest fieldValidation(@jakarta.annotation.Nu */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceServiceCIDRStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedEvictionStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceServiceCIDRStatus request - * @return V1beta1ServiceCIDR + * Execute replaceNamespacedEvictionStatus request + * @return V1alpha1Eviction * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4799,14 +6388,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ServiceCIDR execute() throws ApiException { - ApiResponse localVarResp = replaceServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha1Eviction execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedEvictionStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceServiceCIDRStatus request with HTTP info returned - * @return ApiResponse<V1beta1ServiceCIDR> + * Execute replaceNamespacedEvictionStatus request with HTTP info returned + * @return ApiResponse<V1alpha1Eviction> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4817,12 +6406,12 @@ public V1beta1ServiceCIDR execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedEvictionStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceServiceCIDRStatus request (asynchronously) + * Execute replaceNamespacedEvictionStatus 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 @@ -4835,17 +6424,18 @@ public ApiResponse executeWithHttpInfo() throws ApiException 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceServiceCIDRStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedEvictionStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace status of the specified ServiceCIDR - * @param name name of the ServiceCIDR (required) + * replace status of the specified Eviction + * @param name name of the Eviction (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @return APIreplaceServiceCIDRStatusRequest + * @return APIreplaceNamespacedEvictionStatusRequest * @http.response.details @@ -4855,7 +6445,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
401 Unauthorized -
*/ - public APIreplaceServiceCIDRStatusRequest replaceServiceCIDRStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ServiceCIDR body) { - return new APIreplaceServiceCIDRStatusRequest(name, body); + public APIreplaceNamespacedEvictionStatusRequest replaceNamespacedEvictionStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Eviction body) { + return new APIreplaceNamespacedEvictionStatusRequest(name, namespace, body); } } 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 2b602fdf96..f1f592981a 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 7e19c41e57..26f740df1e 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 7f86cf7816..5d1701566c 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 8ba37f3455..bbc0ab5568 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 e9c33604ee..5a0702156e 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java index 152d7d7e9e..266f4e21fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java @@ -31,6 +31,8 @@ import io.kubernetes.client.openapi.models.V1DeleteOptions; import io.kubernetes.client.openapi.models.V1DeviceClass; import io.kubernetes.client.openapi.models.V1DeviceClassList; +import io.kubernetes.client.openapi.models.V1DeviceTaintRule; +import io.kubernetes.client.openapi.models.V1DeviceTaintRuleList; import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.openapi.models.V1ResourceClaimList; import io.kubernetes.client.openapi.models.V1ResourceClaimTemplate; @@ -322,6 +324,246 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr public APIcreateDeviceClassRequest createDeviceClass(@jakarta.annotation.Nonnull V1DeviceClass body) { return new APIcreateDeviceClassRequest(body); } + private okhttp3.Call createDeviceTaintRuleCall(@jakarta.annotation.Nonnull V1DeviceTaintRule body, @jakarta.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/v1/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 V1DeviceTaintRule body, @jakarta.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 V1DeviceTaintRule 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 V1DeviceTaintRule body, @jakarta.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 V1DeviceTaintRule body; + @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 V1DeviceTaintRule 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 V1DeviceTaintRule + * @throws ApiException If fail to call the API, 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 V1DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = createDeviceTaintRuleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1DeviceTaintRule> + * @throws ApiException If fail to call the API, 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 V1DeviceTaintRule body) { + return new APIcreateDeviceTaintRuleRequest(body); + } private okhttp3.Call createNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull ResourceV1ResourceClaim body, @jakarta.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 @@ -1471,7 +1713,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1488,8 +1730,7 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annota Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/devicetaintrules"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1581,34 +1822,27 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annota } @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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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; + public class APIdeleteCollectionDeviceTaintRuleRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -1642,16 +1876,15 @@ public class APIdeleteCollectionNamespacedResourceClaimRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull 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(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1659,9 +1892,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest pretty(@jakarta.annotat /** * 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(@jakarta.annotation.Nullable String _continue) { + public APIdeleteCollectionDeviceTaintRuleRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1669,9 +1902,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest _continue(@jakarta.anno /** * 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(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1679,9 +1912,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(@jakarta.annotat /** * 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(@jakarta.annotation.Nullable String fieldSelector) { + public APIdeleteCollectionDeviceTaintRuleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1689,9 +1922,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(@jakarta. /** * 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(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionDeviceTaintRuleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1699,9 +1932,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(@jak /** * 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(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionDeviceTaintRuleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1709,9 +1942,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(@jakarta.annotation.Nullable String labelSelector) { + public APIdeleteCollectionDeviceTaintRuleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1719,9 +1952,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(@jakarta. /** * 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(@jakarta.annotation.Nullable Integer limit) { + public APIdeleteCollectionDeviceTaintRuleRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1729,9 +1962,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest limit(@jakarta.annotati /** * 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(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionDeviceTaintRuleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1739,9 +1972,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(@jakar /** * 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(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteCollectionDeviceTaintRuleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1749,9 +1982,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(@jaka /** * 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(@jakarta.annotation.Nullable String resourceVersion) { + public APIdeleteCollectionDeviceTaintRuleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1759,9 +1992,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(@jakart /** * 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(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIdeleteCollectionDeviceTaintRuleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1769,9 +2002,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(@j /** * 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(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIdeleteCollectionDeviceTaintRuleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1779,9 +2012,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(@jaka /** * Set shardSelector * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + public APIdeleteCollectionDeviceTaintRuleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { this.shardSelector = shardSelector; return this; } @@ -1789,9 +2022,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest shardSelector(@jakarta. /** * 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(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIdeleteCollectionDeviceTaintRuleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1799,15 +2032,15 @@ public APIdeleteCollectionNamespacedResourceClaimRequest timeoutSeconds(@jakarta /** * Set body * @param body (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable 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 @@ -1820,11 +2053,11 @@ public APIdeleteCollectionNamespacedResourceClaimRequest body(@jakarta.annotatio */ 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, shardSelector, timeoutSeconds, body, _callback); + return deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -1836,12 +2069,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -1853,11 +2086,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -1870,15 +2103,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ 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, shardSelector, timeoutSeconds, body, _callback); + return deleteCollectionDeviceTaintRuleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -1887,10 +2119,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedResourceClaimRequest deleteCollectionNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { - return new APIdeleteCollectionNamespacedResourceClaimRequest(namespace); + public APIdeleteCollectionDeviceTaintRuleRequest deleteCollectionDeviceTaintRule() { + return new APIdeleteCollectionDeviceTaintRuleRequest(); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1907,7 +2139,7 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakart Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates" + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); @@ -2000,32 +2232,32 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakart } @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -2061,16 +2293,16 @@ public class APIdeleteCollectionNamespacedResourceClaimTemplateRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull 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(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2078,9 +2310,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(@jakarta /** * 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(@jakarta.annotation.Nullable String _continue) { + public APIdeleteCollectionNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2088,9 +2320,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(@jaka /** * 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(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2098,9 +2330,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(@jakarta /** * 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(@jakarta.annotation.Nullable String fieldSelector) { + public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2108,9 +2340,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(@ /** * 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(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2118,9 +2350,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(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2128,9 +2360,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(@jakarta.annotation.Nullable String labelSelector) { + public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2138,9 +2370,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest 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 APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIdeleteCollectionNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2148,9 +2380,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(@jakarta. /** * 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(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2158,9 +2390,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(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2168,9 +2400,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(@jakarta.annotation.Nullable String resourceVersion) { + public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2178,9 +2410,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(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2188,9 +2420,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(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2198,9 +2430,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEven /** * Set shardSelector * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + public APIdeleteCollectionNamespacedResourceClaimRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { this.shardSelector = shardSelector; return this; } @@ -2208,9 +2440,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest shardSelector(@ /** * 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(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2218,15 +2450,15 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds( /** * Set body * @param body (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable 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 @@ -2239,11 +2471,11 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(@jakarta.a */ 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, shardSelector, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -2255,12 +2487,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -2272,11 +2504,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -2289,15 +2521,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ 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, shardSelector, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -2306,10 +2538,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest deleteCollectionNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { - return new APIdeleteCollectionNamespacedResourceClaimTemplateRequest(namespace); + public APIdeleteCollectionNamespacedResourceClaimRequest deleteCollectionNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedResourceClaimRequest(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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2326,7 +2558,8 @@ private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nulla Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/resourceslices"; + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2418,27 +2651,34 @@ private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nulla } @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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -2472,15 +2712,16 @@ public class APIdeleteCollectionResourceSliceRequest { @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(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2488,9 +2729,9 @@ public APIdeleteCollectionResourceSliceRequest pretty(@jakarta.annotation.Nullab /** * 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(@jakarta.annotation.Nullable String _continue) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2498,9 +2739,9 @@ public APIdeleteCollectionResourceSliceRequest _continue(@jakarta.annotation.Nul /** * 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(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2508,9 +2749,9 @@ public APIdeleteCollectionResourceSliceRequest dryRun(@jakarta.annotation.Nullab /** * 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(@jakarta.annotation.Nullable String fieldSelector) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2518,9 +2759,9 @@ public APIdeleteCollectionResourceSliceRequest fieldSelector(@jakarta.annotation /** * 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(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2528,9 +2769,9 @@ public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(@jakarta.annot /** * 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(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2538,9 +2779,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(@jakarta.annotation.Nullable String labelSelector) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2548,9 +2789,9 @@ public APIdeleteCollectionResourceSliceRequest labelSelector(@jakarta.annotation /** * 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(@jakarta.annotation.Nullable Integer limit) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2558,9 +2799,9 @@ public APIdeleteCollectionResourceSliceRequest limit(@jakarta.annotation.Nullabl /** * 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(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2568,9 +2809,9 @@ public APIdeleteCollectionResourceSliceRequest orphanDependents(@jakarta.annotat /** * 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(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2578,9 +2819,9 @@ public APIdeleteCollectionResourceSliceRequest propagationPolicy(@jakarta.annota /** * 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(@jakarta.annotation.Nullable String resourceVersion) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2588,9 +2829,9 @@ public APIdeleteCollectionResourceSliceRequest resourceVersion(@jakarta.annotati /** * 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(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2598,9 +2839,9 @@ public APIdeleteCollectionResourceSliceRequest resourceVersionMatch(@jakarta.ann /** * 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(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2608,9 +2849,9 @@ public APIdeleteCollectionResourceSliceRequest sendInitialEvents(@jakarta.annota /** * Set shardSelector * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { this.shardSelector = shardSelector; return this; } @@ -2618,9 +2859,9 @@ public APIdeleteCollectionResourceSliceRequest shardSelector(@jakarta.annotation /** * 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(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2628,15 +2869,15 @@ public APIdeleteCollectionResourceSliceRequest timeoutSeconds(@jakarta.annotatio /** * Set body * @param body (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest body(@jakarta.annotation.Nullable 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 @@ -2649,11 +2890,11 @@ public APIdeleteCollectionResourceSliceRequest body(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -2665,12 +2906,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -2682,11 +2923,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -2699,14 +2940,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 @@ -2715,10 +2957,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionResourceSliceRequest deleteCollectionResourceSlice() { - return new APIdeleteCollectionResourceSliceRequest(); + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest deleteCollectionNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedResourceClaimTemplateRequest(namespace); } - 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 { + 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2735,8 +2977,7 @@ private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String na Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2748,10 +2989,18 @@ private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String na 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)); } @@ -2760,12 +3009,40 @@ private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + 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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { @@ -2792,79 +3069,109 @@ private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String na } @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 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 String shardSelector, @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, shardSelector, timeoutSeconds, 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(); + 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 String shardSelector, @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, shardSelector, timeoutSeconds, 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 { + 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteDeviceClassRequest { - @jakarta.annotation.Nonnull - 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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteDeviceClassRequest(@jakarta.annotation.Nonnull 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(@jakarta.annotation.Nullable 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(@jakarta.annotation.Nullable 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(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2872,19 +3179,39 @@ public APIdeleteDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullab /** * 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(@jakarta.annotation.Nullable 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(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2892,25 +3219,75 @@ public APIdeleteDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable /** * 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(@jakarta.annotation.Nullable String propagationPolicy) { + 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 shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteCollectionResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteDeviceClass + * Build call for deleteCollectionResourceSlice * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2919,51 +3296,48 @@ public APIdeleteDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOpt 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); + return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** - * Execute deleteDeviceClass request - * @return V1DeviceClass + * 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 -
202 Accepted -
401 Unauthorized -
*/ - public V1DeviceClass execute() throws ApiException { - ApiResponse localVarResp = deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteDeviceClass request with HTTP info returned - * @return ApiResponse<V1DeviceClass> + * 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, shardSelector, 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 @@ -2972,33 +3346,30 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 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, shardSelector, 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(@jakarta.annotation.Nonnull String name) { - return new APIdeleteDeviceClassRequest(name); + public APIdeleteCollectionResourceSliceRequest deleteCollectionResourceSlice() { + return new APIdeleteCollectionResourceSliceRequest(); } - 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 { + 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[] { }; @@ -3015,9 +3386,8 @@ private okhttp3.Call deleteNamespacedResourceClaimCall(@jakarta.annotation.Nonnu Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3073,41 +3443,34 @@ private okhttp3.Call deleteNamespacedResourceClaimCall(@jakarta.annotation.Nonnu } @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 { + 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(@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 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(@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 { + 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; - @jakarta.annotation.Nonnull - private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -3123,17 +3486,16 @@ public class APIdeleteNamespacedResourceClaimRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull 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(@jakarta.annotation.Nullable String pretty) { + public APIdeleteDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3141,9 +3503,9 @@ public APIdeleteNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullab /** * 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(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3151,9 +3513,9 @@ public APIdeleteNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullab /** * 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(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3161,9 +3523,9 @@ public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annot /** * 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(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3171,9 +3533,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(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3181,9 +3543,9 @@ public APIdeleteNamespacedResourceClaimRequest orphanDependents(@jakarta.annotat /** * 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(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteDeviceClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3191,15 +3553,15 @@ public APIdeleteNamespacedResourceClaimRequest propagationPolicy(@jakarta.annota /** * Set body * @param body (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable 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 @@ -3213,12 +3575,12 @@ public APIdeleteNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable */ 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 ResourceV1ResourceClaim + * Execute deleteDeviceClass request + * @return V1DeviceClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3229,14 +3591,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public ResourceV1ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1DeviceClass 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<ResourceV1ResourceClaim> + * Execute deleteDeviceClass request with HTTP info returned + * @return ApiResponse<V1DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3247,12 +3609,12 @@ public ResourceV1ResourceClaim execute() throws ApiException {
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 @@ -3265,17 +3627,16 @@ public ApiResponse executeWithHttpInfo() throws ApiExce 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 @@ -3285,10 +3646,10 @@ public okhttp3.Call executeAsync(final ApiCallback _cal
Response Details
401 Unauthorized -
*/ - public APIdeleteNamespacedResourceClaimRequest deleteNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIdeleteNamespacedResourceClaimRequest(name, namespace); + public APIdeleteDeviceClassRequest deleteDeviceClass(@jakarta.annotation.Nonnull String name) { + return new APIdeleteDeviceClassRequest(name); } - 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 { + 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[] { }; @@ -3305,9 +3666,8 @@ private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(@jakarta.annotati Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/devicetaintrules/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3363,41 +3723,34 @@ private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(@jakarta.annotati } @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 { + 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(@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(); + 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(@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 { + 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; - @jakarta.annotation.Nonnull - private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -3413,17 +3766,16 @@ public class APIdeleteNamespacedResourceClaimTemplateRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull 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(@jakarta.annotation.Nullable String pretty) { + public APIdeleteDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3431,9 +3783,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotatio /** * 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(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3441,9 +3793,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotatio /** * 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(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteDeviceTaintRuleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3451,9 +3803,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakar /** * 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(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteDeviceTaintRuleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3461,9 +3813,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(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteDeviceTaintRuleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3471,9 +3823,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta /** * 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(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteDeviceTaintRuleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3481,15 +3833,15 @@ public APIdeleteNamespacedResourceClaimTemplateRequest propagationPolicy(@jakart /** * Set body * @param body (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable 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 @@ -3503,12 +3855,12 @@ public APIdeleteNamespacedResourceClaimTemplateRequest body(@jakarta.annotation. */ 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 V1ResourceClaimTemplate + * Execute deleteDeviceTaintRule request + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3519,14 +3871,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1ResourceClaimTemplate execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1Status 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<V1ResourceClaimTemplate> + * Execute deleteDeviceTaintRule 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 @@ -3537,12 +3889,12 @@ public V1ResourceClaimTemplate execute() throws ApiException {
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 @@ -3555,17 +3907,16 @@ public ApiResponse executeWithHttpInfo() throws ApiExce 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 @@ -3575,10 +3926,10 @@ public okhttp3.Call executeAsync(final ApiCallback _cal
Response Details
401 Unauthorized -
*/ - public APIdeleteNamespacedResourceClaimTemplateRequest deleteNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIdeleteNamespacedResourceClaimTemplateRequest(name, namespace); + public APIdeleteDeviceTaintRuleRequest deleteDeviceTaintRule(@jakarta.annotation.Nonnull String name) { + return new APIdeleteDeviceTaintRuleRequest(name); } - 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 { + 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[] { }; @@ -3595,8 +3946,9 @@ private okhttp3.Call deleteResourceSliceCall(@jakarta.annotation.Nonnull String Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/resourceslices/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3652,34 +4004,41 @@ private okhttp3.Call deleteResourceSliceCall(@jakarta.annotation.Nonnull String } @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 { + 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(@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(); + 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(@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 { + 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 @@ -3695,16 +4054,17 @@ public class APIdeleteResourceSliceRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteResourceSliceRequest(@jakarta.annotation.Nonnull 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(@jakarta.annotation.Nullable String pretty) { + public APIdeleteNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3712,9 +4072,9 @@ public APIdeleteResourceSliceRequest pretty(@jakarta.annotation.Nullable String /** * 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(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3722,9 +4082,9 @@ public APIdeleteResourceSliceRequest dryRun(@jakarta.annotation.Nullable String /** * 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(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3732,9 +4092,9 @@ public APIdeleteResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Null /** * 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(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3742,9 +4102,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(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3752,9 +4112,9 @@ public APIdeleteResourceSliceRequest orphanDependents(@jakarta.annotation.Nullab /** * 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(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3762,15 +4122,15 @@ public APIdeleteResourceSliceRequest propagationPolicy(@jakarta.annotation.Nulla /** * Set body * @param body (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest body(@jakarta.annotation.Nullable 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 @@ -3784,12 +4144,12 @@ public APIdeleteResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteO */ 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 V1ResourceSlice + * Execute deleteNamespacedResourceClaim request + * @return ResourceV1ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3800,14 +4160,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1ResourceSlice execute() throws ApiException { - ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ResourceV1ResourceClaim 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<V1ResourceSlice> + * Execute deleteNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<ResourceV1ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3818,12 +4178,12 @@ public V1ResourceSlice execute() throws ApiException {
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 @@ -3836,16 +4196,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteResourceSliceAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ResourceSlice - * @param name name of the ResourceSlice (required) - * @return APIdeleteResourceSliceRequest + * 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 @@ -3855,10 +4216,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t
Response Details
401 Unauthorized -
*/ - public APIdeleteResourceSliceRequest deleteResourceSlice(@jakarta.annotation.Nonnull String name) { - return new APIdeleteResourceSliceRequest(name); + public APIdeleteNamespacedResourceClaimRequest deleteNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedResourceClaimRequest(name, namespace); } - private okhttp3.Call getAPIResourcesCall(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[] { }; @@ -3872,10 +4233,12 @@ 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/resource.k8s.io/v1/"; + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3883,6 +4246,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", @@ -3895,6 +4282,7 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3902,37 +4290,137 @@ 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 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 getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 getAPIResourcesAsync(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 = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 APIgetAPIResourcesRequest { + 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 APIgetAPIResourcesRequest() { + private APIdeleteNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; } /** - * 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 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 @@ -3941,48 +4429,51 @@ private APIgetAPIResourcesRequest() { 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 deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute getAPIResources request - * @return V1APIResourceList + * Execute deleteNamespacedResourceClaimTemplate request + * @return V1ResourceClaimTemplate * @throws ApiException If fail to call 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 V1ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute getAPIResources request with HTTP info returned - * @return ApiResponse<V1APIResourceList> + * Execute deleteNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1ResourceClaimTemplate> * @throws ApiException If fail to call 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 deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute getAPIResources request (asynchronously) + * 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 @@ -3991,30 +4482,34 @@ public ApiResponse executeWithHttpInfo() throws ApiException 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 deleteNamespacedResourceClaimTemplateAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * get available resources - * @return APIgetAPIResourcesRequest + * 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 APIgetAPIResourcesRequest getAPIResources() { - return new APIgetAPIResourcesRequest(); + public APIdeleteNamespacedResourceClaimTemplateRequest deleteNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedResourceClaimTemplateRequest(name, namespace); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, 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[] { }; @@ -4028,10 +4523,11 @@ private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pre basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses"; + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4043,58 +4539,31 @@ private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pre 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 (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (shardSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + 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) { @@ -4102,6 +4571,7 @@ private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pre } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -4109,181 +4579,129 @@ private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pre } 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 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); + 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 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, 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 = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 APIlistDeviceClassRequest { + public class APIdeleteResourceSliceRequest { + @jakarta.annotation.Nonnull + private final String name; @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; + private String dryRun; @jakarta.annotation.Nullable - private String resourceVersionMatch; + private Integer gracePeriodSeconds; @jakarta.annotation.Nullable - private Boolean sendInitialEvents; + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; @jakarta.annotation.Nullable - private String shardSelector; + private Boolean orphanDependents; @jakarta.annotation.Nullable - private Integer timeoutSeconds; + private String propagationPolicy; @jakarta.annotation.Nullable - private Boolean watch; + private V1DeleteOptions body; - private APIlistDeviceClassRequest() { + 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 APIlistDeviceClassRequest + * @return APIdeleteResourceSliceRequest */ - public APIlistDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteResourceSliceRequest 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 + * 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 APIlistDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; + public APIdeleteResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; 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 + * 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 APIlistDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; + public APIdeleteResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; 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 + * 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 APIlistDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; + public APIdeleteResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } /** - * Set shardSelector - * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIlistDeviceClassRequest + * 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 APIlistDeviceClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { - this.shardSelector = shardSelector; + public APIdeleteResourceSliceRequest 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 APIlistDeviceClassRequest + * 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 APIlistDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIdeleteResourceSliceRequest 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 APIlistDeviceClassRequest + * Set body + * @param body (optional) + * @return APIdeleteResourceSliceRequest */ - public APIlistDeviceClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; + public APIdeleteResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; return this; } /** - * Build call for listDeviceClass + * Build call for deleteResourceSlice * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4292,48 +4710,51 @@ public APIlistDeviceClassRequest watch(@jakarta.annotation.Nullable Boolean watc Response Details Status Code Description Response Headers 200 OK - + 202 Accepted - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute listDeviceClass request - * @return V1DeviceClassList + * Execute deleteResourceSlice request + * @return V1ResourceSlice * @throws ApiException If fail to call 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 V1DeviceClassList execute() throws ApiException { - ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute listDeviceClass request with HTTP info returned - * @return ApiResponse<V1DeviceClassList> + * Execute deleteResourceSlice request with HTTP info returned + * @return ApiResponse<V1ResourceSlice> * @throws ApiException If fail to call 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 listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute listDeviceClass request (asynchronously) + * 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 @@ -4342,30 +4763,33 @@ public ApiResponse executeWithHttpInfo() throws ApiException Response Details Status Code Description Response Headers 200 OK - + 202 Accepted - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listDeviceClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteResourceSliceAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * list or watch objects of kind DeviceClass - * @return APIlistDeviceClassRequest + * 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 APIlistDeviceClassRequest listDeviceClass() { - return new APIlistDeviceClassRequest(); + public APIdeleteResourceSliceRequest deleteResourceSlice(@jakarta.annotation.Nonnull String name) { + return new APIdeleteResourceSliceRequest(name); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4382,8 +4806,7 @@ private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4391,62 +4814,11 @@ private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull 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 (shardSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); - } - - 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) { @@ -4465,185 +4837,33 @@ private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull } @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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_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 String shardSelector; - @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 shardSelector - * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIlistNamespacedResourceClaimRequest - */ - public APIlistNamespacedResourceClaimRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { - this.shardSelector = shardSelector; - 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; - } + public class APIgetAPIResourcesRequest { - /** - * 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; + private APIgetAPIResourcesRequest() { } /** - * Build call for listNamespacedResourceClaim + * Build call for getAPIResources * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4656,12 +4876,12 @@ public APIlistNamespacedResourceClaimRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + return getAPIResourcesCall(_callback); } /** - * Execute listNamespacedResourceClaim request - * @return V1ResourceClaimList + * 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 @@ -4671,14 +4891,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1ResourceClaimList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1APIResourceList execute() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); return localVarResp.getData(); } /** - * Execute listNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<V1ResourceClaimList> + * 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 @@ -4688,12 +4908,12 @@ public V1ResourceClaimList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getAPIResourcesWithHttpInfo(); } /** - * Execute listNamespacedResourceClaim request (asynchronously) + * 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 @@ -4705,16 +4925,15 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getAPIResourcesAsync(_callback); } } /** * - * list or watch objects of kind ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIlistNamespacedResourceClaimRequest + * get available resources + * @return APIgetAPIResourcesRequest * @http.response.details @@ -4723,10 +4942,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac
Response Details
401 Unauthorized -
*/ - public APIlistNamespacedResourceClaimRequest listNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { - return new APIlistNamespacedResourceClaimRequest(namespace); + public APIgetAPIResourcesRequest getAPIResources() { + return new APIgetAPIResourcesRequest(); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4743,8 +4962,7 @@ private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4826,34 +5044,27 @@ private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation } @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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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; + public class APIlistDeviceClassRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -4879,16 +5090,15 @@ public class APIlistNamespacedResourceClaimTemplateRequest { @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { - this.namespace = namespace; + 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 APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4896,9 +5106,9 @@ public APIlistNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation. /** * 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 + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistDeviceClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4906,9 +5116,9 @@ public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(@jakart /** * 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 + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistDeviceClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4916,9 +5126,9 @@ public APIlistNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotati /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistDeviceClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4926,9 +5136,9 @@ public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.anno /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistDeviceClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4936,9 +5146,9 @@ public APIlistNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.anno /** * 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 + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistDeviceClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4946,9 +5156,9 @@ public APIlistNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.N /** * 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 + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4956,9 +5166,9 @@ public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.an /** * 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 + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4966,9 +5176,9 @@ public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakar /** * 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 + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4976,9 +5186,9 @@ public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta. /** * Set shardSelector * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimTemplateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + public APIlistDeviceClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { this.shardSelector = shardSelector; return this; } @@ -4986,9 +5196,9 @@ public APIlistNamespacedResourceClaimTemplateRequest shardSelector(@jakarta.anno /** * 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 + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4996,15 +5206,15 @@ public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.ann /** * 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 + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimTemplateRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistDeviceClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listNamespacedResourceClaimTemplate + * Build call for listDeviceClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5017,12 +5227,12 @@ public APIlistNamespacedResourceClaimTemplateRequest watch(@jakarta.annotation.N */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute listNamespacedResourceClaimTemplate request - * @return V1ResourceClaimTemplateList + * Execute listDeviceClass request + * @return V1DeviceClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5032,14 +5242,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1ResourceClaimTemplateList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1DeviceClassList execute() throws ApiException { + ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1ResourceClaimTemplateList> + * Execute listDeviceClass request with HTTP info returned + * @return ApiResponse<V1DeviceClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5049,12 +5259,12 @@ public V1ResourceClaimTemplateList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute listNamespacedResourceClaimTemplate 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 @@ -5066,16 +5276,15 @@ public ApiResponse executeWithHttpInfo() throws Api 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimTemplateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listDeviceClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, 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 + * list or watch objects of kind DeviceClass + * @return APIlistDeviceClassRequest * @http.response.details @@ -5084,10 +5293,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIlistNamespacedResourceClaimTemplateRequest listNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { - return new APIlistNamespacedResourceClaimTemplateRequest(namespace); + public APIlistDeviceClassRequest listDeviceClass() { + return new APIlistDeviceClassRequest(); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5104,7 +5313,7 @@ private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.N Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/resourceclaims"; + String localVarPath = "/apis/resource.k8s.io/v1/devicetaintrules"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5112,6 +5321,10 @@ private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.N 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)); } @@ -5132,10 +5345,6 @@ private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.N localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } @@ -5186,27 +5395,29 @@ private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.N } @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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistResourceClaimForAllNamespacesRequest { + public class APIlistDeviceTaintRuleRequest { + @jakarta.annotation.Nullable + private String pretty; @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable @@ -5218,8 +5429,6 @@ public class APIlistResourceClaimForAllNamespacesRequest { @jakarta.annotation.Nullable private Integer limit; @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable private String resourceVersion; @jakarta.annotation.Nullable private String resourceVersionMatch; @@ -5232,15 +5441,25 @@ public class APIlistResourceClaimForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean watch; - private APIlistResourceClaimForAllNamespacesRequest() { + 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 APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest 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 APIlistResourceClaimForAllNamespacesRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistDeviceTaintRuleRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5248,9 +5467,9 @@ public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(@jakarta. /** * 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 + * @return APIlistDeviceTaintRuleRequest */ - public APIlistResourceClaimForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistDeviceTaintRuleRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5258,9 +5477,9 @@ public APIlistResourceClaimForAllNamespacesRequest _continue(@jakarta.annotation /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistResourceClaimForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistDeviceTaintRuleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5268,9 +5487,9 @@ public APIlistResourceClaimForAllNamespacesRequest fieldSelector(@jakarta.annota /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistResourceClaimForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistDeviceTaintRuleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5278,29 +5497,19 @@ public APIlistResourceClaimForAllNamespacesRequest labelSelector(@jakarta.annota /** * 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 + * @return APIlistDeviceTaintRuleRequest */ - public APIlistResourceClaimForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistDeviceTaintRuleRequest 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 + * @return APIlistDeviceTaintRuleRequest */ - public APIlistResourceClaimForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistDeviceTaintRuleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5308,9 +5517,9 @@ public APIlistResourceClaimForAllNamespacesRequest resourceVersion(@jakarta.anno /** * 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 + * @return APIlistDeviceTaintRuleRequest */ - public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistDeviceTaintRuleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5318,9 +5527,9 @@ public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(@jakarta /** * 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 + * @return APIlistDeviceTaintRuleRequest */ - public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistDeviceTaintRuleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5328,9 +5537,9 @@ public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(@jakarta.an /** * Set shardSelector * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistResourceClaimForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + public APIlistDeviceTaintRuleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { this.shardSelector = shardSelector; return this; } @@ -5338,9 +5547,9 @@ public APIlistResourceClaimForAllNamespacesRequest shardSelector(@jakarta.annota /** * 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 + * @return APIlistDeviceTaintRuleRequest */ - public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistDeviceTaintRuleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5348,15 +5557,15 @@ public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(@jakarta.annot /** * 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 + * @return APIlistDeviceTaintRuleRequest */ - public APIlistResourceClaimForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistDeviceTaintRuleRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listResourceClaimForAllNamespaces + * Build call for listDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5369,12 +5578,12 @@ public APIlistResourceClaimForAllNamespacesRequest watch(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + return listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute listResourceClaimForAllNamespaces request - * @return V1ResourceClaimList + * Execute listDeviceTaintRule request + * @return V1DeviceTaintRuleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5384,14 +5593,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1ResourceClaimList execute() throws ApiException { - ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1DeviceTaintRuleList execute() throws ApiException { + ApiResponse localVarResp = listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listResourceClaimForAllNamespaces request with HTTP info returned - * @return ApiResponse<V1ResourceClaimList> + * Execute listDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1DeviceTaintRuleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5401,12 +5610,12 @@ public V1ResourceClaimList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute listResourceClaimForAllNamespaces 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 @@ -5418,15 +5627,15 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceClaimForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listDeviceTaintRuleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind ResourceClaim - * @return APIlistResourceClaimForAllNamespacesRequest + * list or watch objects of kind DeviceTaintRule + * @return APIlistDeviceTaintRuleRequest * @http.response.details @@ -5435,10 +5644,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac
Response Details
401 Unauthorized -
*/ - public APIlistResourceClaimForAllNamespacesRequest listResourceClaimForAllNamespaces() { - return new APIlistResourceClaimForAllNamespacesRequest(); + public APIlistDeviceTaintRuleRequest listDeviceTaintRule() { + return new APIlistDeviceTaintRuleRequest(); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5455,7 +5664,8 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.anno Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/resourceclaimtemplates"; + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5463,6 +5673,10 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.anno 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)); } @@ -5483,10 +5697,6 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.anno localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } @@ -5537,27 +5747,36 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.anno } @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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); + 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistResourceClaimTemplateForAllNamespacesRequest { + 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 @@ -5569,8 +5788,6 @@ public class APIlistResourceClaimTemplateForAllNamespacesRequest { @jakarta.annotation.Nullable private Integer limit; @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable private String resourceVersion; @jakarta.annotation.Nullable private String resourceVersionMatch; @@ -5583,15 +5800,26 @@ public class APIlistResourceClaimTemplateForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean watch; - private APIlistResourceClaimTemplateForAllNamespacesRequest() { + 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 APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistNamespacedResourceClaimRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5599,9 +5827,9 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest 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 APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5609,9 +5837,9 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(@jakarta.an /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5619,9 +5847,9 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(@jakart /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5629,29 +5857,19 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(@jakart /** * 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 + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistNamespacedResourceClaimRequest 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 + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5659,9 +5877,9 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(@jaka /** * 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 + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5669,9 +5887,9 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch( /** * 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 + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5679,9 +5897,9 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(@ja /** * Set shardSelector * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + public APIlistNamespacedResourceClaimRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { this.shardSelector = shardSelector; return this; } @@ -5689,9 +5907,9 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest shardSelector(@jakart /** * 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 + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5699,15 +5917,15 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(@jakar /** * 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 + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistNamespacedResourceClaimRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listResourceClaimTemplateForAllNamespaces + * Build call for listNamespacedResourceClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5720,12 +5938,12 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest watch(@jakarta.annota */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute listResourceClaimTemplateForAllNamespaces request - * @return V1ResourceClaimTemplateList + * Execute listNamespacedResourceClaim request + * @return V1ResourceClaimList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5735,14 +5953,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1ResourceClaimTemplateList execute() throws ApiException { - ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1ResourceClaimList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listResourceClaimTemplateForAllNamespaces request with HTTP info returned - * @return ApiResponse<V1ResourceClaimTemplateList> + * Execute listNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<V1ResourceClaimList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5752,12 +5970,12 @@ public V1ResourceClaimTemplateList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute listResourceClaimTemplateForAllNamespaces request (asynchronously) + * 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 @@ -5769,15 +5987,16 @@ public ApiResponse executeWithHttpInfo() throws Api 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listNamespacedResourceClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind ResourceClaimTemplate - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * 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 @@ -5786,10 +6005,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIlistResourceClaimTemplateForAllNamespacesRequest listResourceClaimTemplateForAllNamespaces() { - return new APIlistResourceClaimTemplateForAllNamespacesRequest(); + public APIlistNamespacedResourceClaimRequest listNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedResourceClaimRequest(namespace); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5806,7 +6025,8 @@ private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String p Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/resourceslices"; + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5888,27 +6108,34 @@ private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String p } @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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); + 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistResourceSliceRequest { + public class APIlistNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -5934,15 +6161,16 @@ public class APIlistResourceSliceRequest { @jakarta.annotation.Nullable private Boolean watch; - private APIlistResourceSliceRequest() { + 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 APIlistResourceSliceRequest + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5950,9 +6178,9 @@ public APIlistResourceSliceRequest pretty(@jakarta.annotation.Nullable String pr /** * 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 + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceSliceRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5960,9 +6188,9 @@ public APIlistResourceSliceRequest allowWatchBookmarks(@jakarta.annotation.Nulla /** * 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 + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5970,9 +6198,9 @@ public APIlistResourceSliceRequest _continue(@jakarta.annotation.Nullable String /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistResourceSliceRequest + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5980,9 +6208,9 @@ public APIlistResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable St /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistResourceSliceRequest + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5990,75 +6218,2717 @@ public APIlistResourceSliceRequest labelSelector(@jakarta.annotation.Nullable St /** * 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 + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { + 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 APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - 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 shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedResourceClaimTemplate request + * @return V1ResourceClaimTemplateList + * @throws ApiException If fail to call the API, 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 V1ResourceClaimTemplateList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1ResourceClaimTemplateList> + * @throws ApiException If fail to call the API, 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, shardSelector, 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, shardSelector, 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 String shardSelector, @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/v1/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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector; + @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 shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourceClaimForAllNamespaces request + * @return V1ResourceClaimList + * @throws ApiException If fail to call the API, 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 V1ResourceClaimList execute() throws ApiException { + ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listResourceClaimForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1ResourceClaimList> + * @throws ApiException If fail to call the API, 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, shardSelector, 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, shardSelector, 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 String shardSelector, @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/v1/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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector; + @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 shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourceClaimTemplateForAllNamespaces request + * @return V1ResourceClaimTemplateList + * @throws ApiException If fail to call the API, 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 V1ResourceClaimTemplateList execute() throws ApiException { + ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listResourceClaimTemplateForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1ResourceClaimTemplateList> + * @throws ApiException If fail to call the API, 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, shardSelector, 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, shardSelector, 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 String shardSelector, @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/v1/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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector, @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, shardSelector, 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 String shardSelector; + @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 shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourceSlice request + * @return V1ResourceSliceList + * @throws ApiException If fail to call the API, 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 V1ResourceSliceList execute() throws ApiException { + ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listResourceSlice request with HTTP info returned + * @return ApiResponse<V1ResourceSliceList> + * @throws ApiException If fail to call the API, 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, shardSelector, 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, shardSelector, 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/v1/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 V1DeviceClass + * @throws ApiException If fail to call the API, 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 V1DeviceClass 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<V1DeviceClass> + * @throws ApiException If fail to call the API, 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 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[] { }; + + // 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/v1/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)); + } + + 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 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 patchDeviceTaintRule(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceTaintRule(Async)"); + } + + return patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + 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 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 = patchDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + 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 APIpatchDeviceTaintRuleRequest(@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 APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest 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 APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest 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 APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest 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 APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest 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 APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * 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 + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchDeviceTaintRule request + * @return V1DeviceTaintRule + * @throws ApiException If fail to call the API, 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 V1DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1DeviceTaintRule> + * @throws ApiException If fail to call the API, 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 patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * 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 patchDeviceTaintRuleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @return APIpatchDeviceTaintRuleRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchDeviceTaintRuleRequest patchDeviceTaintRule(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchDeviceTaintRuleRequest(name, body); + } + private okhttp3.Call patchDeviceTaintRuleStatusCall(@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/v1/devicetaintrules/{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 patchDeviceTaintRuleStatusValidateBeforeCall(@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 patchDeviceTaintRuleStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceTaintRuleStatus(Async)"); + } + + return patchDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchDeviceTaintRuleStatusWithHttpInfo(@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 = patchDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchDeviceTaintRuleStatusAsync(@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 = patchDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchDeviceTaintRuleStatusRequest { + @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 APIpatchDeviceTaintRuleStatusRequest(@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 APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest 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 APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest 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 APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest 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 APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest 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 APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchDeviceTaintRuleStatus + * @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 patchDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchDeviceTaintRuleStatus request + * @return V1DeviceTaintRule + * @throws ApiException If fail to call the API, 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 V1DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = patchDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchDeviceTaintRuleStatus request with HTTP info returned + * @return ApiResponse<V1DeviceTaintRule> + * @throws ApiException If fail to call the API, 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 patchDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchDeviceTaintRuleStatus 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 patchDeviceTaintRuleStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @return APIpatchDeviceTaintRuleStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchDeviceTaintRuleStatusRequest patchDeviceTaintRuleStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchDeviceTaintRuleStatusRequest(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/v1/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 ResourceV1ResourceClaim + * @throws ApiException If fail to call the API, 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 ResourceV1ResourceClaim 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<ResourceV1ResourceClaim> + * @throws ApiException If fail to call the API, 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/v1/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 ResourceV1ResourceClaim + * @throws ApiException If fail to call the API, 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 ResourceV1ResourceClaim 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<ResourceV1ResourceClaim> + * @throws ApiException If fail to call the API, 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/v1/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 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 + * 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 APIlistResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; + public APIpatchNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; 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 + * 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 APIlistResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; + public APIpatchNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; return this; } /** - * Set shardSelector - * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIlistResourceSliceRequest + * 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 APIlistResourceSliceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { - this.shardSelector = shardSelector; + public APIpatchNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; 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 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 APIlistResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIpatchNamespacedResourceClaimTemplateRequest 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 APIpatchNamespacedResourceClaimTemplateRequest */ - public APIlistResourceSliceRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; + public APIpatchNamespacedResourceClaimTemplateRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; return this; } /** - * Build call for listResourceSlice + * Build call for patchNamespacedResourceClaimTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6067,48 +8937,51 @@ public APIlistResourceSliceRequest watch(@jakarta.annotation.Nullable Boolean wa 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, shardSelector, timeoutSeconds, watch, _callback); + return patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute listResourceSlice request - * @return V1ResourceSliceList + * Execute patchNamespacedResourceClaimTemplate request + * @return V1ResourceClaimTemplate * @throws ApiException If fail to call the API, 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 V1ResourceSliceList execute() throws ApiException { - ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute listResourceSlice request with HTTP info returned - * @return ApiResponse<V1ResourceSliceList> + * Execute patchNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1ResourceClaimTemplate> * @throws ApiException If fail to call the API, 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, shardSelector, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute listResourceSlice request (asynchronously) + * 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 @@ -6117,30 +8990,35 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio 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, shardSelector, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimTemplateAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * list or watch objects of kind ResourceSlice - * @return APIlistResourceSliceRequest + * 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 APIlistResourceSliceRequest listResourceSlice() { - return new APIlistResourceSliceRequest(); + 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 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 { + 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[] { }; @@ -6157,7 +9035,7 @@ private okhttp3.Call patchDeviceClassCall(@jakarta.annotation.Nonnull String nam Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses/{name}" + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -6210,37 +9088,37 @@ private okhttp3.Call patchDeviceClassCall(@jakarta.annotation.Nonnull String nam } @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 { + 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 patchDeviceClass(Async)"); + 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 patchDeviceClass(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchResourceSlice(Async)"); } - return patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchResourceSliceCall(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(); + 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 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 { + 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 = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 APIpatchDeviceClassRequest { + public class APIpatchResourceSliceRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull @@ -6256,7 +9134,7 @@ public class APIpatchDeviceClassRequest { @jakarta.annotation.Nullable private Boolean force; - private APIpatchDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIpatchResourceSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -6264,9 +9142,9 @@ private APIpatchDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jak /** * 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 APIpatchResourceSliceRequest */ - public APIpatchDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6274,9 +9152,9 @@ public APIpatchDeviceClassRequest pretty(@jakarta.annotation.Nullable String pre /** * 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 APIpatchResourceSliceRequest */ - public APIpatchDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIpatchResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6284,9 +9162,9 @@ public APIpatchDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dry /** * 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 APIpatchResourceSliceRequest */ - public APIpatchDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIpatchResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6294,9 +9172,9 @@ public APIpatchDeviceClassRequest fieldManager(@jakarta.annotation.Nullable Stri /** * 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 APIpatchResourceSliceRequest */ - public APIpatchDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIpatchResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6304,15 +9182,15 @@ public APIpatchDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable S /** * 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 APIpatchResourceSliceRequest */ - public APIpatchDeviceClassRequest force(@jakarta.annotation.Nullable Boolean force) { + public APIpatchResourceSliceRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchDeviceClass + * Build call for patchResourceSlice * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6326,12 +9204,12 @@ public APIpatchDeviceClassRequest force(@jakarta.annotation.Nullable Boolean for */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchDeviceClass request - * @return V1DeviceClass + * Execute patchResourceSlice request + * @return V1ResourceSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6342,14 +9220,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1DeviceClass execute() throws ApiException { - ApiResponse localVarResp = patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchDeviceClass request with HTTP info returned - * @return ApiResponse<V1DeviceClass> + * Execute patchResourceSlice request with HTTP info returned + * @return ApiResponse<V1ResourceSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6360,12 +9238,12 @@ public V1DeviceClass execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchDeviceClass request (asynchronously) + * 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 @@ -6378,17 +9256,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 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 patchResourceSliceAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * partially update the specified DeviceClass - * @param name name of the DeviceClass (required) + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) * @param body (required) - * @return APIpatchDeviceClassRequest + * @return APIpatchResourceSliceRequest * @http.response.details @@ -6398,10 +9276,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr
Response Details
401 Unauthorized -
*/ - public APIpatchDeviceClassRequest patchDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchDeviceClassRequest(name, body); + public APIpatchResourceSliceRequest patchResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchResourceSliceRequest(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 { + 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[] { }; @@ -6415,12 +9293,11 @@ private okhttp3.Call patchNamespacedResourceClaimCall(@jakarta.annotation.Nonnul basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6432,22 +9309,6 @@ private okhttp3.Call patchNamespacedResourceClaimCall(@jakarta.annotation.Nonnul 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", @@ -6460,7 +9321,6 @@ private okhttp3.Call patchNamespacedResourceClaimCall(@jakarta.annotation.Nonnul } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -6468,121 +9328,57 @@ private okhttp3.Call patchNamespacedResourceClaimCall(@jakarta.annotation.Nonnul } 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 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 { + 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 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)"); + throw new ApiException("Missing the required parameter 'name' when calling readDeviceClass(Async)"); } - return patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readDeviceClassCall(name, pretty, _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(); + 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 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 { + private okhttp3.Call readDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchNamespacedResourceClaimRequest { + public class APIreadDeviceClassRequest { @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) { + private APIreadDeviceClassRequest(@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 APIpatchNamespacedResourceClaimRequest + * @return APIreadDeviceClassRequest */ - public APIpatchNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadDeviceClassRequest 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 + * Build call for readDeviceClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6591,51 +9387,48 @@ public APIpatchNamespacedResourceClaimRequest force(@jakarta.annotation.Nullable 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); + return readDeviceClassCall(name, pretty, _callback); } /** - * Execute patchNamespacedResourceClaim request - * @return ResourceV1ResourceClaim + * Execute readDeviceClass request + * @return V1DeviceClass * @throws ApiException If fail to call the API, 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 ResourceV1ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1DeviceClass execute() throws ApiException { + ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<ResourceV1ResourceClaim> + * Execute readDeviceClass request with HTTP info returned + * @return ApiResponse<V1DeviceClass> * @throws ApiException If fail to call the API, 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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readDeviceClassWithHttpInfo(name, pretty); } /** - * Execute patchNamespacedResourceClaim 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 @@ -6644,35 +9437,31 @@ public ApiResponse executeWithHttpInfo() throws ApiExce 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); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readDeviceClassAsync(name, pretty, _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 + * 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 APIpatchNamespacedResourceClaimRequest patchNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchNamespacedResourceClaimRequest(name, namespace, body); + public APIreadDeviceClassRequest readDeviceClass(@jakarta.annotation.Nonnull String name) { + return new APIreadDeviceClassRequest(name); } - 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 { + 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[] { }; @@ -6686,12 +9475,11 @@ private okhttp3.Call patchNamespacedResourceClaimStatusCall(@jakarta.annotation. basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/devicetaintrules/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6703,22 +9491,6 @@ private okhttp3.Call patchNamespacedResourceClaimStatusCall(@jakarta.annotation. 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", @@ -6731,7 +9503,6 @@ private okhttp3.Call patchNamespacedResourceClaimStatusCall(@jakarta.annotation. } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -6739,121 +9510,57 @@ private okhttp3.Call patchNamespacedResourceClaimStatusCall(@jakarta.annotation. } 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 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 { + 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 patchNamespacedResourceClaimStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readDeviceTaintRule(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); + return readDeviceTaintRuleCall(name, pretty, _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(); + 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 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 { + private okhttp3.Call readDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _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 APIpatchNamespacedResourceClaimStatusRequest { + public class APIreadDeviceTaintRuleRequest { @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) { + private APIreadDeviceTaintRuleRequest(@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 APIpatchNamespacedResourceClaimStatusRequest + * @return APIreadDeviceTaintRuleRequest */ - public APIpatchNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadDeviceTaintRuleRequest 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 + * Build call for readDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6862,51 +9569,48 @@ public APIpatchNamespacedResourceClaimStatusRequest force(@jakarta.annotation.Nu 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); + return readDeviceTaintRuleCall(name, pretty, _callback); } /** - * Execute patchNamespacedResourceClaimStatus request - * @return ResourceV1ResourceClaim + * Execute readDeviceTaintRule request + * @return V1DeviceTaintRule * @throws ApiException If fail to call the API, 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 ResourceV1ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = readDeviceTaintRuleWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchNamespacedResourceClaimStatus request with HTTP info returned - * @return ApiResponse<ResourceV1ResourceClaim> + * Execute readDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1DeviceTaintRule> * @throws ApiException If fail to call the API, 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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readDeviceTaintRuleWithHttpInfo(name, pretty); } /** - * Execute patchNamespacedResourceClaimStatus 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 @@ -6915,35 +9619,31 @@ public ApiResponse executeWithHttpInfo() throws ApiExce 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); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readDeviceTaintRuleAsync(name, pretty, _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 + * 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 -
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); + public APIreadDeviceTaintRuleRequest readDeviceTaintRule(@jakarta.annotation.Nonnull String name) { + return new APIreadDeviceTaintRuleRequest(name); } - 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 { + private okhttp3.Call readDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6957,12 +9657,11 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateCall(@jakarta.annotatio basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/devicetaintrules/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6970,24 +9669,8 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateCall(@jakarta.annotatio 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)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { @@ -7002,7 +9685,6 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateCall(@jakarta.annotatio } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -7010,121 +9692,57 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateCall(@jakarta.annotatio } 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 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 { + private okhttp3.Call readDeviceTaintRuleStatusValidateBeforeCall(@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 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)"); + throw new ApiException("Missing the required parameter 'name' when calling readDeviceTaintRuleStatus(Async)"); } - return patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readDeviceTaintRuleStatusCall(name, pretty, _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(); + private ApiResponse readDeviceTaintRuleStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceTaintRuleStatusValidateBeforeCall(name, pretty, 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 { + private okhttp3.Call readDeviceTaintRuleStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readDeviceTaintRuleStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchNamespacedResourceClaimTemplateRequest { + public class APIreadDeviceTaintRuleStatusRequest { @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) { + private APIreadDeviceTaintRuleStatusRequest(@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 APIpatchNamespacedResourceClaimTemplateRequest + * @return APIreadDeviceTaintRuleStatusRequest */ - public APIpatchNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadDeviceTaintRuleStatusRequest 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 + * Build call for readDeviceTaintRuleStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7133,51 +9751,48 @@ public APIpatchNamespacedResourceClaimTemplateRequest force(@jakarta.annotation. 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); + return readDeviceTaintRuleStatusCall(name, pretty, _callback); } /** - * Execute patchNamespacedResourceClaimTemplate request - * @return V1ResourceClaimTemplate + * Execute readDeviceTaintRuleStatus request + * @return V1DeviceTaintRule * @throws ApiException If fail to call the API, 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 V1ResourceClaimTemplate execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = readDeviceTaintRuleStatusWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1ResourceClaimTemplate> + * Execute readDeviceTaintRuleStatus request with HTTP info returned + * @return ApiResponse<V1DeviceTaintRule> * @throws ApiException If fail to call the API, 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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readDeviceTaintRuleStatusWithHttpInfo(name, pretty); } /** - * Execute patchNamespacedResourceClaimTemplate request (asynchronously) + * Execute readDeviceTaintRuleStatus 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 @@ -7186,35 +9801,31 @@ public ApiResponse executeWithHttpInfo() throws ApiExce 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); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readDeviceTaintRuleStatusAsync(name, pretty, _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 + * read status of the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @return APIreadDeviceTaintRuleStatusRequest * @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); + public APIreadDeviceTaintRuleStatusRequest readDeviceTaintRuleStatus(@jakarta.annotation.Nonnull String name) { + return new APIreadDeviceTaintRuleStatusRequest(name); } - 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 { + 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[] { }; @@ -7228,11 +9839,12 @@ private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String n basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/resourceslices/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7244,22 +9856,6 @@ private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String n 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", @@ -7272,7 +9868,6 @@ private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String n } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -7280,113 +9875,65 @@ private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String n } 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 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 { + 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 patchResourceSlice(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaim(Async)"); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchResourceSlice(Async)"); + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaim(Async)"); } - return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedResourceClaimCall(name, namespace, pretty, _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(); + 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 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 { + 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 = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchResourceSliceRequest { + public class APIreadNamespacedResourceClaimRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1Patch body; + private final String namespace; @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) { + private APIreadNamespacedResourceClaimRequest(@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 APIpatchResourceSliceRequest + * @return APIreadNamespacedResourceClaimRequest */ - public APIpatchResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadNamespacedResourceClaimRequest 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 + * Build call for readNamespacedResourceClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7395,51 +9942,48 @@ public APIpatchResourceSliceRequest force(@jakarta.annotation.Nullable Boolean f 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 readNamespacedResourceClaimCall(name, namespace, pretty, _callback); } /** - * Execute patchResourceSlice request - * @return V1ResourceSlice + * Execute readNamespacedResourceClaim request + * @return ResourceV1ResourceClaim * @throws ApiException If fail to call the API, 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 V1ResourceSlice execute() throws ApiException { - ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ResourceV1ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute patchResourceSlice request with HTTP info returned - * @return ApiResponse<V1ResourceSlice> + * Execute readNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<ResourceV1ResourceClaim> * @throws ApiException If fail to call the API, 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 readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); } /** - * Execute patchResourceSlice request (asynchronously) + * 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 @@ -7448,34 +9992,32 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 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 readNamespacedResourceClaimAsync(name, namespace, pretty, _callback); } } - - /** - * - * partially update the specified ResourceSlice - * @param name name of the ResourceSlice (required) - * @param body (required) - * @return APIpatchResourceSliceRequest + + /** + * + * 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 -
201 Created -
401 Unauthorized -
*/ - public APIpatchResourceSliceRequest patchResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchResourceSliceRequest(name, body); + public APIreadNamespacedResourceClaimRequest readNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedResourceClaimRequest(name, namespace); } - private okhttp3.Call readDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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[] { }; @@ -7492,8 +10034,9 @@ private okhttp3.Call readDeviceClassCall(@jakarta.annotation.Nonnull String name Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/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(); @@ -7528,53 +10071,61 @@ private okhttp3.Call readDeviceClassCall(@jakarta.annotation.Nonnull String name } @SuppressWarnings("rawtypes") - private okhttp3.Call readDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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 readDeviceClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimStatus(Async)"); } - return readDeviceClassCall(name, pretty, _callback); + // 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 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(); + 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 readDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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 = readDeviceClassValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadDeviceClassRequest { + public class APIreadNamespacedResourceClaimStatusRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nullable private String pretty; - private APIreadDeviceClassRequest(@jakarta.annotation.Nonnull String name) { + 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 APIreadDeviceClassRequest + * @return APIreadNamespacedResourceClaimStatusRequest */ - public APIreadDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readDeviceClass + * Build call for readNamespacedResourceClaimStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7587,12 +10138,12 @@ public APIreadDeviceClassRequest pretty(@jakarta.annotation.Nullable String pret */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readDeviceClassCall(name, pretty, _callback); + return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); } /** - * Execute readDeviceClass request - * @return V1DeviceClass + * Execute readNamespacedResourceClaimStatus request + * @return ResourceV1ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7602,14 +10153,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1DeviceClass execute() throws ApiException { - ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); + public ResourceV1ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute readDeviceClass request with HTTP info returned - * @return ApiResponse<V1DeviceClass> + * Execute readNamespacedResourceClaimStatus request with HTTP info returned + * @return ApiResponse<ResourceV1ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7619,12 +10170,12 @@ public V1DeviceClass execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readDeviceClassWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); } /** - * Execute readDeviceClass request (asynchronously) + * 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 @@ -7636,16 +10187,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 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 readNamespacedResourceClaimStatusAsync(name, namespace, pretty, _callback); } } /** * - * read the specified DeviceClass - * @param name name of the DeviceClass (required) - * @return APIreadDeviceClassRequest + * 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 @@ -7654,10 +10206,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr
Response Details
401 Unauthorized -
*/ - public APIreadDeviceClassRequest readDeviceClass(@jakarta.annotation.Nonnull String name) { - return new APIreadDeviceClassRequest(name); + public APIreadNamespacedResourceClaimStatusRequest readNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedResourceClaimStatusRequest(name, namespace); } - private okhttp3.Call readNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable 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[] { }; @@ -7674,7 +10226,7 @@ private okhttp3.Call readNamespacedResourceClaimCall(@jakarta.annotation.Nonnull Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}" + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -7711,37 +10263,37 @@ private okhttp3.Call readNamespacedResourceClaimCall(@jakarta.annotation.Nonnull } @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 { + 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 readNamespacedResourceClaim(Async)"); + 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 readNamespacedResourceClaim(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimTemplate(Async)"); } - return readNamespacedResourceClaimCall(name, namespace, pretty, _callback); + return readNamespacedResourceClaimTemplateCall(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(); + 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 readNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable 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 = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadNamespacedResourceClaimRequest { + public class APIreadNamespacedResourceClaimTemplateRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull @@ -7749,7 +10301,7 @@ public class APIreadNamespacedResourceClaimRequest { @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + private APIreadNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -7757,15 +10309,15 @@ private APIreadNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String /** * 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 + * @return APIreadNamespacedResourceClaimTemplateRequest */ - public APIreadNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readNamespacedResourceClaim + * Build call for readNamespacedResourceClaimTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7778,12 +10330,12 @@ public APIreadNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimCall(name, namespace, pretty, _callback); + return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); } /** - * Execute readNamespacedResourceClaim request - * @return ResourceV1ResourceClaim + * Execute readNamespacedResourceClaimTemplate request + * @return V1ResourceClaimTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7793,14 +10345,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public ResourceV1ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); + public V1ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute readNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<ResourceV1ResourceClaim> + * Execute readNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1ResourceClaimTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7810,12 +10362,12 @@ public ResourceV1ResourceClaim execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); } /** - * Execute readNamespacedResourceClaim request (asynchronously) + * 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 @@ -7827,17 +10379,17 @@ public ApiResponse executeWithHttpInfo() throws ApiExce 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimAsync(name, namespace, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimTemplateAsync(name, namespace, pretty, _callback); } } /** * - * read the specified ResourceClaim - * @param name name of the ResourceClaim (required) + * 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 APIreadNamespacedResourceClaimRequest + * @return APIreadNamespacedResourceClaimTemplateRequest * @http.response.details @@ -7846,10 +10398,10 @@ public okhttp3.Call executeAsync(final ApiCallback _cal
Response Details
401 Unauthorized -
*/ - public APIreadNamespacedResourceClaimRequest readNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIreadNamespacedResourceClaimRequest(name, namespace); + public APIreadNamespacedResourceClaimTemplateRequest readNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedResourceClaimTemplateRequest(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 { + 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[] { }; @@ -7866,9 +10418,8 @@ private okhttp3.Call readNamespacedResourceClaimStatusCall(@jakarta.annotation.N Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7903,61 +10454,53 @@ private okhttp3.Call readNamespacedResourceClaimStatusCall(@jakarta.annotation.N } @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 { + 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 readNamespacedResourceClaimStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readResourceSlice(Async)"); } - return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); + return readResourceSliceCall(name, 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(); + 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 readNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable 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 = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadNamespacedResourceClaimStatusRequest { + public class APIreadResourceSliceRequest { @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) { + private APIreadResourceSliceRequest(@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 APIreadNamespacedResourceClaimStatusRequest + * @return APIreadResourceSliceRequest */ - public APIreadNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readNamespacedResourceClaimStatus + * Build call for readResourceSlice * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7970,12 +10513,12 @@ public APIreadNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nu */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); + return readResourceSliceCall(name, pretty, _callback); } /** - * Execute readNamespacedResourceClaimStatus request - * @return ResourceV1ResourceClaim + * Execute readResourceSlice request + * @return V1ResourceSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7985,14 +10528,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public ResourceV1ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); + public V1ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = readResourceSliceWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute readNamespacedResourceClaimStatus request with HTTP info returned - * @return ApiResponse<ResourceV1ResourceClaim> + * Execute readResourceSlice request with HTTP info returned + * @return ApiResponse<V1ResourceSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8002,12 +10545,12 @@ public ResourceV1ResourceClaim execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readResourceSliceWithHttpInfo(name, pretty); } /** - * Execute readNamespacedResourceClaimStatus request (asynchronously) + * 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 @@ -8019,17 +10562,16 @@ public ApiResponse executeWithHttpInfo() throws ApiExce 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimStatusAsync(name, namespace, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readResourceSliceAsync(name, 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 + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @return APIreadResourceSliceRequest * @http.response.details @@ -8038,10 +10580,10 @@ public okhttp3.Call executeAsync(final ApiCallback _cal
Response Details
401 Unauthorized -
*/ - public APIreadNamespacedResourceClaimStatusRequest readNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIreadNamespacedResourceClaimStatusRequest(name, namespace); + public APIreadResourceSliceRequest readResourceSlice(@jakarta.annotation.Nonnull String name) { + return new APIreadResourceSliceRequest(name); } - private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceClass body, @jakarta.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[] { }; @@ -8055,12 +10597,11 @@ private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8068,8 +10609,20 @@ private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + 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 = { @@ -8084,6 +10637,7 @@ private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -8091,65 +10645,101 @@ private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation } 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 readNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceClass body, @jakarta.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 readNamespacedResourceClaimTemplate(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceClass(Async)"); } - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimTemplate(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceClass(Async)"); } - return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); + return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _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(); + private ApiResponse replaceDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceClass 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 readNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceClass body, @jakarta.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 = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 APIreadNamespacedResourceClaimTemplateRequest { + public class APIreplaceDeviceClassRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final String namespace; + private final V1DeviceClass body; @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 APIreadNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + private APIreplaceDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceClass 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 APIreadNamespacedResourceClaimTemplateRequest + * @return APIreplaceDeviceClassRequest */ - public APIreadNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readNamespacedResourceClaimTemplate + * 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 @@ -8158,48 +10748,51 @@ public APIreadNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation. Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); + return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readNamespacedResourceClaimTemplate request - * @return V1ResourceClaimTemplate + * Execute replaceDeviceClass request + * @return V1DeviceClass * @throws ApiException If fail to call the API, 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 V1ResourceClaimTemplate execute() throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); + public V1DeviceClass execute() throws ApiException { + ApiResponse localVarResp = replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1ResourceClaimTemplate> + * Execute replaceDeviceClass request with HTTP info returned + * @return ApiResponse<V1DeviceClass> * @throws ApiException If fail to call the API, 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 readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readNamespacedResourceClaimTemplate request (asynchronously) + * 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 @@ -8208,32 +10801,34 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimTemplateAsync(name, namespace, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceDeviceClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _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 + * 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 APIreadNamespacedResourceClaimTemplateRequest readNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIreadNamespacedResourceClaimTemplateRequest(name, namespace); + public APIreplaceDeviceClassRequest replaceDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceClass body) { + return new APIreplaceDeviceClassRequest(name, body); } - private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceTaintRule body, @jakarta.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[] { }; @@ -8247,10 +10842,10 @@ private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String na basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/resourceslices/{name}" + String localVarPath = "/apis/resource.k8s.io/v1/devicetaintrules/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -8263,6 +10858,18 @@ private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String na 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", @@ -8275,6 +10882,7 @@ private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String na } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -8282,57 +10890,101 @@ private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String na } 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 readResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceTaintRule body, @jakarta.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 readResourceSlice(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceTaintRule(Async)"); } - return readResourceSliceCall(name, pretty, _callback); + // 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 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(); + private ApiResponse replaceDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceTaintRule 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 readResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceTaintRule body, @jakarta.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 = readResourceSliceValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 APIreadResourceSliceRequest { + public class APIreplaceDeviceTaintRuleRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final V1DeviceTaintRule body; @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 APIreadResourceSliceRequest(@jakarta.annotation.Nonnull String name) { + private APIreplaceDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceTaintRule 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 APIreadResourceSliceRequest + * @return APIreplaceDeviceTaintRuleRequest */ - public APIreadResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readResourceSlice + * 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 @@ -8341,48 +10993,51 @@ public APIreadResourceSliceRequest pretty(@jakarta.annotation.Nullable String pr Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readResourceSliceCall(name, pretty, _callback); + return replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readResourceSlice request - * @return V1ResourceSlice + * Execute replaceDeviceTaintRule request + * @return V1DeviceTaintRule * @throws ApiException If fail to call the API, 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 V1ResourceSlice execute() throws ApiException { - ApiResponse localVarResp = readResourceSliceWithHttpInfo(name, pretty); + public V1DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readResourceSlice request with HTTP info returned - * @return ApiResponse<V1ResourceSlice> + * Execute replaceDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1DeviceTaintRule> * @throws ApiException If fail to call the API, 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 readResourceSliceWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readResourceSlice request (asynchronously) + * 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 @@ -8391,31 +11046,34 @@ public ApiResponse executeWithHttpInfo() throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readResourceSliceAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceDeviceTaintRuleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read the specified ResourceSlice - * @param name name of the ResourceSlice (required) - * @return APIreadResourceSliceRequest + * 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 APIreadResourceSliceRequest readResourceSlice(@jakarta.annotation.Nonnull String name) { - return new APIreadResourceSliceRequest(name); + public APIreplaceDeviceTaintRuleRequest replaceDeviceTaintRule(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceTaintRule body) { + return new APIreplaceDeviceTaintRuleRequest(name, body); } - private okhttp3.Call replaceDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceTaintRule body, @jakarta.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[] { }; @@ -8432,7 +11090,7 @@ private okhttp3.Call replaceDeviceClassCall(@jakarta.annotation.Nonnull String n Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses/{name}" + String localVarPath = "/apis/resource.k8s.io/v1/devicetaintrules/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -8481,41 +11139,41 @@ private okhttp3.Call replaceDeviceClassCall(@jakarta.annotation.Nonnull String n } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceTaintRule body, @jakarta.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)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceTaintRuleStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceClass(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceTaintRuleStatus(Async)"); } - return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse replaceDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceClass 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(); + private ApiResponse replaceDeviceTaintRuleStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceTaintRule 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 = replaceDeviceTaintRuleStatusValidateBeforeCall(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 V1DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceTaintRule body, @jakarta.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(); + okhttp3.Call localVarCall = replaceDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceDeviceClassRequest { + public class APIreplaceDeviceTaintRuleStatusRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1DeviceClass body; + private final V1DeviceTaintRule body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -8525,7 +11183,7 @@ public class APIreplaceDeviceClassRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceClass body) { + private APIreplaceDeviceTaintRuleStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceTaintRule body) { this.name = name; this.body = body; } @@ -8533,9 +11191,9 @@ private APIreplaceDeviceClassRequest(@jakarta.annotation.Nonnull String name, @j /** * 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 + * @return APIreplaceDeviceTaintRuleStatusRequest */ - public APIreplaceDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceDeviceTaintRuleStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8543,9 +11201,9 @@ public APIreplaceDeviceClassRequest pretty(@jakarta.annotation.Nullable String p /** * 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 + * @return APIreplaceDeviceTaintRuleStatusRequest */ - public APIreplaceDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceDeviceTaintRuleStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8553,9 +11211,9 @@ public APIreplaceDeviceClassRequest dryRun(@jakarta.annotation.Nullable String d /** * 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 + * @return APIreplaceDeviceTaintRuleStatusRequest */ - public APIreplaceDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceDeviceTaintRuleStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8563,15 +11221,15 @@ public APIreplaceDeviceClassRequest fieldManager(@jakarta.annotation.Nullable St /** * 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 + * @return APIreplaceDeviceTaintRuleStatusRequest */ - public APIreplaceDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceDeviceTaintRuleStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceDeviceClass + * Build call for replaceDeviceTaintRuleStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8585,12 +11243,12 @@ public APIreplaceDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceDeviceClass request - * @return V1DeviceClass + * Execute replaceDeviceTaintRuleStatus request + * @return V1DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8601,14 +11259,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1DeviceClass execute() throws ApiException { - ApiResponse localVarResp = replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = replaceDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceDeviceClass request with HTTP info returned - * @return ApiResponse<V1DeviceClass> + * Execute replaceDeviceTaintRuleStatus request with HTTP info returned + * @return ApiResponse<V1DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8619,12 +11277,12 @@ public V1DeviceClass execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceDeviceClass request (asynchronously) + * Execute replaceDeviceTaintRuleStatus 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 @@ -8637,17 +11295,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceDeviceClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceDeviceTaintRuleStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace the specified DeviceClass - * @param name name of the DeviceClass (required) + * replace status of the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param body (required) - * @return APIreplaceDeviceClassRequest + * @return APIreplaceDeviceTaintRuleStatusRequest * @http.response.details @@ -8657,8 +11315,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr
Response Details
401 Unauthorized -
*/ - public APIreplaceDeviceClassRequest replaceDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceClass body) { - return new APIreplaceDeviceClassRequest(name, body); + public APIreplaceDeviceTaintRuleStatusRequest replaceDeviceTaintRuleStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceTaintRule body) { + return new APIreplaceDeviceTaintRuleStatusRequest(name, body); } private okhttp3.Call replaceNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull ResourceV1ResourceClaim body, @jakarta.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; 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 25c8d9d531..b3b442f4b0 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha3Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha3Api.java new file mode 100644 index 0000000000..f4892a4bda --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha3Api.java @@ -0,0 +1,8842 @@ +/* +Copyright 2026 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.V1alpha3CompositePodGroup; +import io.kubernetes.client.openapi.models.V1alpha3CompositePodGroupList; +import io.kubernetes.client.openapi.models.V1alpha3PodGroup; +import io.kubernetes.client.openapi.models.V1alpha3PodGroupList; +import io.kubernetes.client.openapi.models.V1alpha3Workload; +import io.kubernetes.client.openapi.models.V1alpha3WorkloadList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SchedulingV1alpha3Api { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public SchedulingV1alpha3Api() { + this(Configuration.getDefaultApiClient()); + } + + public SchedulingV1alpha3Api(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 createNamespacedCompositePodGroupCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup body, @jakarta.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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups" + .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 createNamespacedCompositePodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup body, @jakarta.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 createNamespacedCompositePodGroup(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedCompositePodGroup(Async)"); + } + + return createNamespacedCompositePodGroupCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createNamespacedCompositePodGroupWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup 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 = createNamespacedCompositePodGroupValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createNamespacedCompositePodGroupAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup body, @jakarta.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 = createNamespacedCompositePodGroupValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateNamespacedCompositePodGroupRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha3CompositePodGroup body; + @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 APIcreateNamespacedCompositePodGroupRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup 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 APIcreateNamespacedCompositePodGroupRequest + */ + public APIcreateNamespacedCompositePodGroupRequest 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 APIcreateNamespacedCompositePodGroupRequest + */ + public APIcreateNamespacedCompositePodGroupRequest 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 APIcreateNamespacedCompositePodGroupRequest + */ + public APIcreateNamespacedCompositePodGroupRequest 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 APIcreateNamespacedCompositePodGroupRequest + */ + public APIcreateNamespacedCompositePodGroupRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createNamespacedCompositePodGroup + * @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 createNamespacedCompositePodGroupCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createNamespacedCompositePodGroup request + * @return V1alpha3CompositePodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3CompositePodGroup execute() throws ApiException { + ApiResponse localVarResp = createNamespacedCompositePodGroupWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createNamespacedCompositePodGroup request with HTTP info returned + * @return ApiResponse<V1alpha3CompositePodGroup> + * @throws ApiException If fail to call the API, 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 createNamespacedCompositePodGroupWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createNamespacedCompositePodGroup 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 createNamespacedCompositePodGroupAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a CompositePodGroup + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIcreateNamespacedCompositePodGroupRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateNamespacedCompositePodGroupRequest createNamespacedCompositePodGroup(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup body) { + return new APIcreateNamespacedCompositePodGroupRequest(namespace, body); + } + private okhttp3.Call createNamespacedPodGroupCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup body, @jakarta.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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups" + .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 createNamespacedPodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup body, @jakarta.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 createNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodGroup(Async)"); + } + + return createNamespacedPodGroupCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup 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 = createNamespacedPodGroupValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup body, @jakarta.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 = createNamespacedPodGroupValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateNamespacedPodGroupRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha3PodGroup body; + @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 APIcreateNamespacedPodGroupRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup 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 APIcreateNamespacedPodGroupRequest + */ + public APIcreateNamespacedPodGroupRequest 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 APIcreateNamespacedPodGroupRequest + */ + public APIcreateNamespacedPodGroupRequest 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 APIcreateNamespacedPodGroupRequest + */ + public APIcreateNamespacedPodGroupRequest 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 APIcreateNamespacedPodGroupRequest + */ + public APIcreateNamespacedPodGroupRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createNamespacedPodGroup + * @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 createNamespacedPodGroupCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createNamespacedPodGroup request + * @return V1alpha3PodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3PodGroup execute() throws ApiException { + ApiResponse localVarResp = createNamespacedPodGroupWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createNamespacedPodGroup request with HTTP info returned + * @return ApiResponse<V1alpha3PodGroup> + * @throws ApiException If fail to call the API, 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 createNamespacedPodGroupWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createNamespacedPodGroup 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 createNamespacedPodGroupAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a PodGroup + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIcreateNamespacedPodGroupRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateNamespacedPodGroupRequest createNamespacedPodGroup(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup body) { + return new APIcreateNamespacedPodGroupRequest(namespace, body); + } + private okhttp3.Call createNamespacedWorkloadCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3Workload body, @jakarta.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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads" + .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 createNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3Workload body, @jakarta.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 createNamespacedWorkload(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedWorkload(Async)"); + } + + return createNamespacedWorkloadCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3Workload 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 = createNamespacedWorkloadValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3Workload body, @jakarta.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 = createNamespacedWorkloadValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateNamespacedWorkloadRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha3Workload body; + @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 APIcreateNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3Workload 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 APIcreateNamespacedWorkloadRequest + */ + public APIcreateNamespacedWorkloadRequest 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 APIcreateNamespacedWorkloadRequest + */ + public APIcreateNamespacedWorkloadRequest 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 APIcreateNamespacedWorkloadRequest + */ + public APIcreateNamespacedWorkloadRequest 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 APIcreateNamespacedWorkloadRequest + */ + public APIcreateNamespacedWorkloadRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createNamespacedWorkload + * @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 createNamespacedWorkloadCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createNamespacedWorkload request + * @return V1alpha3Workload + * @throws ApiException If fail to call the API, 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 V1alpha3Workload execute() throws ApiException { + ApiResponse localVarResp = createNamespacedWorkloadWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createNamespacedWorkload request with HTTP info returned + * @return ApiResponse<V1alpha3Workload> + * @throws ApiException If fail to call the API, 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 createNamespacedWorkloadWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createNamespacedWorkload 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 createNamespacedWorkloadAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a Workload + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIcreateNamespacedWorkloadRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateNamespacedWorkloadRequest createNamespacedWorkload(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3Workload body) { + return new APIcreateNamespacedWorkloadRequest(namespace, body); + } + private okhttp3.Call deleteCollectionNamespacedCompositePodGroupCall(@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 String shardSelector, @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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups" + .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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 deleteCollectionNamespacedCompositePodGroupValidateBeforeCall(@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 String shardSelector, @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 deleteCollectionNamespacedCompositePodGroup(Async)"); + } + + return deleteCollectionNamespacedCompositePodGroupCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionNamespacedCompositePodGroupWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedCompositePodGroupValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionNamespacedCompositePodGroupAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedCompositePodGroupValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionNamespacedCompositePodGroupRequest { + @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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionNamespacedCompositePodGroupRequest(@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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest 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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest _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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest 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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest 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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest 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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest 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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest 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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest 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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest 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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest 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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest 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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest 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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionNamespacedCompositePodGroupRequest + */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionNamespacedCompositePodGroup + * @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 deleteCollectionNamespacedCompositePodGroupCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionNamespacedCompositePodGroup 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 = deleteCollectionNamespacedCompositePodGroupWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionNamespacedCompositePodGroup 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 deleteCollectionNamespacedCompositePodGroupWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionNamespacedCompositePodGroup 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 deleteCollectionNamespacedCompositePodGroupAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of CompositePodGroup + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedCompositePodGroupRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionNamespacedCompositePodGroupRequest deleteCollectionNamespacedCompositePodGroup(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedCompositePodGroupRequest(namespace); + } + private okhttp3.Call deleteCollectionNamespacedPodGroupCall(@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 String shardSelector, @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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups" + .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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 deleteCollectionNamespacedPodGroupValidateBeforeCall(@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 String shardSelector, @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 deleteCollectionNamespacedPodGroup(Async)"); + } + + return deleteCollectionNamespacedPodGroupCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionNamespacedPodGroupWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodGroupValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionNamespacedPodGroupAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedPodGroupValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionNamespacedPodGroupRequest { + @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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionNamespacedPodGroupRequest(@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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest 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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest _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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest 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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest 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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest 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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest 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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest 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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest 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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest 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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest 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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest 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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest 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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionNamespacedPodGroup + * @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 deleteCollectionNamespacedPodGroupCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionNamespacedPodGroup 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 = deleteCollectionNamespacedPodGroupWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionNamespacedPodGroup 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 deleteCollectionNamespacedPodGroupWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionNamespacedPodGroup 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 deleteCollectionNamespacedPodGroupAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of PodGroup + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedPodGroupRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionNamespacedPodGroupRequest deleteCollectionNamespacedPodGroup(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedPodGroupRequest(namespace); + } + private okhttp3.Call deleteCollectionNamespacedWorkloadCall(@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 String shardSelector, @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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads" + .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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 deleteCollectionNamespacedWorkloadValidateBeforeCall(@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 String shardSelector, @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 deleteCollectionNamespacedWorkload(Async)"); + } + + return deleteCollectionNamespacedWorkloadCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionNamespacedWorkloadWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedWorkloadValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionNamespacedWorkloadAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedWorkloadValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionNamespacedWorkloadRequest { + @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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionNamespacedWorkloadRequest(@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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest 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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest _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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest 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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest 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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest 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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest 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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest 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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest 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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest 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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest 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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest 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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest 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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionNamespacedWorkload + * @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 deleteCollectionNamespacedWorkloadCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionNamespacedWorkload 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 = deleteCollectionNamespacedWorkloadWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionNamespacedWorkload 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 deleteCollectionNamespacedWorkloadWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionNamespacedWorkload 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 deleteCollectionNamespacedWorkloadAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of Workload + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedWorkloadRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionNamespacedWorkloadRequest deleteCollectionNamespacedWorkload(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedWorkloadRequest(namespace); + } + private okhttp3.Call deleteNamespacedCompositePodGroupCall(@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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{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 deleteNamespacedCompositePodGroupValidateBeforeCall(@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 deleteNamespacedCompositePodGroup(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedCompositePodGroup(Async)"); + } + + return deleteNamespacedCompositePodGroupCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteNamespacedCompositePodGroupWithHttpInfo(@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 = deleteNamespacedCompositePodGroupValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteNamespacedCompositePodGroupAsync(@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 = deleteNamespacedCompositePodGroupValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteNamespacedCompositePodGroupRequest { + @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 APIdeleteNamespacedCompositePodGroupRequest(@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 APIdeleteNamespacedCompositePodGroupRequest + */ + public APIdeleteNamespacedCompositePodGroupRequest 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 APIdeleteNamespacedCompositePodGroupRequest + */ + public APIdeleteNamespacedCompositePodGroupRequest 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 APIdeleteNamespacedCompositePodGroupRequest + */ + public APIdeleteNamespacedCompositePodGroupRequest 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 APIdeleteNamespacedCompositePodGroupRequest + */ + public APIdeleteNamespacedCompositePodGroupRequest 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 APIdeleteNamespacedCompositePodGroupRequest + */ + public APIdeleteNamespacedCompositePodGroupRequest 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 APIdeleteNamespacedCompositePodGroupRequest + */ + public APIdeleteNamespacedCompositePodGroupRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteNamespacedCompositePodGroupRequest + */ + public APIdeleteNamespacedCompositePodGroupRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteNamespacedCompositePodGroup + * @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 deleteNamespacedCompositePodGroupCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteNamespacedCompositePodGroup 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 = deleteNamespacedCompositePodGroupWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteNamespacedCompositePodGroup 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 deleteNamespacedCompositePodGroupWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteNamespacedCompositePodGroup 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 deleteNamespacedCompositePodGroupAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a CompositePodGroup + * @param name name of the CompositePodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedCompositePodGroupRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteNamespacedCompositePodGroupRequest deleteNamespacedCompositePodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedCompositePodGroupRequest(name, namespace); + } + private okhttp3.Call deleteNamespacedPodGroupCall(@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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{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 deleteNamespacedPodGroupValidateBeforeCall(@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 deleteNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPodGroup(Async)"); + } + + return deleteNamespacedPodGroupCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteNamespacedPodGroupWithHttpInfo(@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 = deleteNamespacedPodGroupValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteNamespacedPodGroupAsync(@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 = deleteNamespacedPodGroupValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteNamespacedPodGroupRequest { + @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 APIdeleteNamespacedPodGroupRequest(@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 APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest 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 APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest 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 APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest 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 APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest 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 APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest 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 APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteNamespacedPodGroup + * @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 deleteNamespacedPodGroupCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteNamespacedPodGroup 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 = deleteNamespacedPodGroupWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteNamespacedPodGroup 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 deleteNamespacedPodGroupWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteNamespacedPodGroup 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 deleteNamespacedPodGroupAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedPodGroupRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteNamespacedPodGroupRequest deleteNamespacedPodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedPodGroupRequest(name, namespace); + } + private okhttp3.Call deleteNamespacedWorkloadCall(@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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{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 deleteNamespacedWorkloadValidateBeforeCall(@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 deleteNamespacedWorkload(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedWorkload(Async)"); + } + + return deleteNamespacedWorkloadCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteNamespacedWorkloadWithHttpInfo(@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 = deleteNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteNamespacedWorkloadAsync(@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 = deleteNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteNamespacedWorkloadRequest { + @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 APIdeleteNamespacedWorkloadRequest(@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 APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest 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 APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest 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 APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest 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 APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest 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 APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest 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 APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteNamespacedWorkload + * @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 deleteNamespacedWorkloadCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteNamespacedWorkload 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 = deleteNamespacedWorkloadWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteNamespacedWorkload 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 deleteNamespacedWorkloadWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteNamespacedWorkload 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 deleteNamespacedWorkloadAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a Workload + * @param name name of the Workload (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedWorkloadRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteNamespacedWorkloadRequest deleteNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedWorkloadRequest(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/scheduling.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 -
401 Unauthorized -
+ */ + public APIgetAPIResourcesRequest getAPIResources() { + return new APIgetAPIResourcesRequest(); + } + private okhttp3.Call listCompositePodGroupForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @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/scheduling.k8s.io/v1alpha3/compositepodgroups"; + + 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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 listCompositePodGroupForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listCompositePodGroupForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listCompositePodGroupForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCompositePodGroupForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listCompositePodGroupForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listCompositePodGroupForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistCompositePodGroupForAllNamespacesRequest { + @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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistCompositePodGroupForAllNamespacesRequest() { + } + + /** + * 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 APIlistCompositePodGroupForAllNamespacesRequest + */ + public APIlistCompositePodGroupForAllNamespacesRequest 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 APIlistCompositePodGroupForAllNamespacesRequest + */ + public APIlistCompositePodGroupForAllNamespacesRequest _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 APIlistCompositePodGroupForAllNamespacesRequest + */ + public APIlistCompositePodGroupForAllNamespacesRequest 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 APIlistCompositePodGroupForAllNamespacesRequest + */ + public APIlistCompositePodGroupForAllNamespacesRequest 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 APIlistCompositePodGroupForAllNamespacesRequest + */ + public APIlistCompositePodGroupForAllNamespacesRequest 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 APIlistCompositePodGroupForAllNamespacesRequest + */ + public APIlistCompositePodGroupForAllNamespacesRequest 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 APIlistCompositePodGroupForAllNamespacesRequest + */ + public APIlistCompositePodGroupForAllNamespacesRequest 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 APIlistCompositePodGroupForAllNamespacesRequest + */ + public APIlistCompositePodGroupForAllNamespacesRequest 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 APIlistCompositePodGroupForAllNamespacesRequest + */ + public APIlistCompositePodGroupForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistCompositePodGroupForAllNamespacesRequest + */ + public APIlistCompositePodGroupForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIlistCompositePodGroupForAllNamespacesRequest + */ + public APIlistCompositePodGroupForAllNamespacesRequest 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 APIlistCompositePodGroupForAllNamespacesRequest + */ + public APIlistCompositePodGroupForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listCompositePodGroupForAllNamespaces + * @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 listCompositePodGroupForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listCompositePodGroupForAllNamespaces request + * @return V1alpha3CompositePodGroupList + * @throws ApiException If fail to call the API, 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 V1alpha3CompositePodGroupList execute() throws ApiException { + ApiResponse localVarResp = listCompositePodGroupForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listCompositePodGroupForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1alpha3CompositePodGroupList> + * @throws ApiException If fail to call the API, 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 listCompositePodGroupForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listCompositePodGroupForAllNamespaces 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 listCompositePodGroupForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind CompositePodGroup + * @return APIlistCompositePodGroupForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistCompositePodGroupForAllNamespacesRequest listCompositePodGroupForAllNamespaces() { + return new APIlistCompositePodGroupForAllNamespacesRequest(); + } + private okhttp3.Call listNamespacedCompositePodGroupCall(@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 String shardSelector, @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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups" + .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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 listNamespacedCompositePodGroupValidateBeforeCall(@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 String shardSelector, @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 listNamespacedCompositePodGroup(Async)"); + } + + return listNamespacedCompositePodGroupCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedCompositePodGroupWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedCompositePodGroupValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedCompositePodGroupAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedCompositePodGroupValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedCompositePodGroupRequest { + @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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedCompositePodGroupRequest(@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 APIlistNamespacedCompositePodGroupRequest + */ + public APIlistNamespacedCompositePodGroupRequest 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 APIlistNamespacedCompositePodGroupRequest + */ + public APIlistNamespacedCompositePodGroupRequest 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 APIlistNamespacedCompositePodGroupRequest + */ + public APIlistNamespacedCompositePodGroupRequest _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 APIlistNamespacedCompositePodGroupRequest + */ + public APIlistNamespacedCompositePodGroupRequest 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 APIlistNamespacedCompositePodGroupRequest + */ + public APIlistNamespacedCompositePodGroupRequest 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 APIlistNamespacedCompositePodGroupRequest + */ + public APIlistNamespacedCompositePodGroupRequest 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 APIlistNamespacedCompositePodGroupRequest + */ + public APIlistNamespacedCompositePodGroupRequest 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 APIlistNamespacedCompositePodGroupRequest + */ + public APIlistNamespacedCompositePodGroupRequest 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 APIlistNamespacedCompositePodGroupRequest + */ + public APIlistNamespacedCompositePodGroupRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedCompositePodGroupRequest + */ + public APIlistNamespacedCompositePodGroupRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIlistNamespacedCompositePodGroupRequest + */ + public APIlistNamespacedCompositePodGroupRequest 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 APIlistNamespacedCompositePodGroupRequest + */ + public APIlistNamespacedCompositePodGroupRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedCompositePodGroup + * @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 listNamespacedCompositePodGroupCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedCompositePodGroup request + * @return V1alpha3CompositePodGroupList + * @throws ApiException If fail to call the API, 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 V1alpha3CompositePodGroupList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedCompositePodGroupWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedCompositePodGroup request with HTTP info returned + * @return ApiResponse<V1alpha3CompositePodGroupList> + * @throws ApiException If fail to call the API, 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 listNamespacedCompositePodGroupWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedCompositePodGroup 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 listNamespacedCompositePodGroupAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind CompositePodGroup + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedCompositePodGroupRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedCompositePodGroupRequest listNamespacedCompositePodGroup(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedCompositePodGroupRequest(namespace); + } + private okhttp3.Call listNamespacedPodGroupCall(@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 String shardSelector, @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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups" + .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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 listNamespacedPodGroupValidateBeforeCall(@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 String shardSelector, @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 listNamespacedPodGroup(Async)"); + } + + return listNamespacedPodGroupCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedPodGroupWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPodGroupValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedPodGroupAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedPodGroupValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedPodGroupRequest { + @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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedPodGroupRequest(@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 APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest 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 APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest 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 APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest _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 APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest 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 APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest 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 APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest 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 APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest 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 APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest 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 APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest 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 APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedPodGroup + * @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 listNamespacedPodGroupCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedPodGroup request + * @return V1alpha3PodGroupList + * @throws ApiException If fail to call the API, 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 V1alpha3PodGroupList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedPodGroupWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedPodGroup request with HTTP info returned + * @return ApiResponse<V1alpha3PodGroupList> + * @throws ApiException If fail to call the API, 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 listNamespacedPodGroupWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedPodGroup 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 listNamespacedPodGroupAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind PodGroup + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedPodGroupRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedPodGroupRequest listNamespacedPodGroup(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedPodGroupRequest(namespace); + } + private okhttp3.Call listNamespacedWorkloadCall(@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 String shardSelector, @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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads" + .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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 listNamespacedWorkloadValidateBeforeCall(@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 String shardSelector, @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 listNamespacedWorkload(Async)"); + } + + return listNamespacedWorkloadCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedWorkloadWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedWorkloadValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedWorkloadAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedWorkloadValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedWorkloadRequest { + @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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedWorkloadRequest(@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 APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest 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 APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest 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 APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest _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 APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest 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 APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest 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 APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest 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 APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest 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 APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest 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 APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest 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 APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedWorkload + * @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 listNamespacedWorkloadCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedWorkload request + * @return V1alpha3WorkloadList + * @throws ApiException If fail to call the API, 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 V1alpha3WorkloadList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedWorkloadWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedWorkload request with HTTP info returned + * @return ApiResponse<V1alpha3WorkloadList> + * @throws ApiException If fail to call the API, 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 listNamespacedWorkloadWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedWorkload 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 listNamespacedWorkloadAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind Workload + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedWorkloadRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedWorkloadRequest listNamespacedWorkload(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedWorkloadRequest(namespace); + } + private okhttp3.Call listPodGroupForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @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/scheduling.k8s.io/v1alpha3/podgroups"; + + 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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 listPodGroupForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listPodGroupForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listPodGroupForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodGroupForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listPodGroupForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listPodGroupForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistPodGroupForAllNamespacesRequest { + @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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistPodGroupForAllNamespacesRequest() { + } + + /** + * 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 APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest 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 APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest _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 APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest 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 APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest 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 APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest 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 APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest 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 APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest 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 APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest 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 APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest 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 APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listPodGroupForAllNamespaces + * @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 listPodGroupForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listPodGroupForAllNamespaces request + * @return V1alpha3PodGroupList + * @throws ApiException If fail to call the API, 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 V1alpha3PodGroupList execute() throws ApiException { + ApiResponse localVarResp = listPodGroupForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listPodGroupForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1alpha3PodGroupList> + * @throws ApiException If fail to call the API, 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 listPodGroupForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listPodGroupForAllNamespaces 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 listPodGroupForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind PodGroup + * @return APIlistPodGroupForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistPodGroupForAllNamespacesRequest listPodGroupForAllNamespaces() { + return new APIlistPodGroupForAllNamespacesRequest(); + } + private okhttp3.Call listWorkloadForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @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/scheduling.k8s.io/v1alpha3/workloads"; + + 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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + 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 listWorkloadForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listWorkloadForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listWorkloadForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listWorkloadForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listWorkloadForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listWorkloadForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistWorkloadForAllNamespacesRequest { + @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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistWorkloadForAllNamespacesRequest() { + } + + /** + * 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 APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest 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 APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest _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 APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest 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 APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest 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 APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest 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 APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest 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 APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest 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 APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest 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 APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest 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 APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listWorkloadForAllNamespaces + * @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 listWorkloadForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listWorkloadForAllNamespaces request + * @return V1alpha3WorkloadList + * @throws ApiException If fail to call the API, 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 V1alpha3WorkloadList execute() throws ApiException { + ApiResponse localVarResp = listWorkloadForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listWorkloadForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1alpha3WorkloadList> + * @throws ApiException If fail to call the API, 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 listWorkloadForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listWorkloadForAllNamespaces 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 listWorkloadForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind Workload + * @return APIlistWorkloadForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistWorkloadForAllNamespacesRequest listWorkloadForAllNamespaces() { + return new APIlistWorkloadForAllNamespacesRequest(); + } + private okhttp3.Call patchNamespacedCompositePodGroupCall(@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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{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 patchNamespacedCompositePodGroupValidateBeforeCall(@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 patchNamespacedCompositePodGroup(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedCompositePodGroup(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCompositePodGroup(Async)"); + } + + return patchNamespacedCompositePodGroupCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedCompositePodGroupWithHttpInfo(@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 = patchNamespacedCompositePodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedCompositePodGroupAsync(@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 = patchNamespacedCompositePodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedCompositePodGroupRequest { + @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 APIpatchNamespacedCompositePodGroupRequest(@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 APIpatchNamespacedCompositePodGroupRequest + */ + public APIpatchNamespacedCompositePodGroupRequest 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 APIpatchNamespacedCompositePodGroupRequest + */ + public APIpatchNamespacedCompositePodGroupRequest 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 APIpatchNamespacedCompositePodGroupRequest + */ + public APIpatchNamespacedCompositePodGroupRequest 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 APIpatchNamespacedCompositePodGroupRequest + */ + public APIpatchNamespacedCompositePodGroupRequest 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 APIpatchNamespacedCompositePodGroupRequest + */ + public APIpatchNamespacedCompositePodGroupRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedCompositePodGroup + * @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 patchNamespacedCompositePodGroupCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedCompositePodGroup request + * @return V1alpha3CompositePodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3CompositePodGroup execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedCompositePodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedCompositePodGroup request with HTTP info returned + * @return ApiResponse<V1alpha3CompositePodGroup> + * @throws ApiException If fail to call the API, 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 patchNamespacedCompositePodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedCompositePodGroup 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 patchNamespacedCompositePodGroupAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified CompositePodGroup + * @param name name of the CompositePodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedCompositePodGroupRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedCompositePodGroupRequest patchNamespacedCompositePodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedCompositePodGroupRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedCompositePodGroupStatusCall(@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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{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 patchNamespacedCompositePodGroupStatusValidateBeforeCall(@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 patchNamespacedCompositePodGroupStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedCompositePodGroupStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCompositePodGroupStatus(Async)"); + } + + return patchNamespacedCompositePodGroupStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedCompositePodGroupStatusWithHttpInfo(@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 = patchNamespacedCompositePodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedCompositePodGroupStatusAsync(@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 = patchNamespacedCompositePodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedCompositePodGroupStatusRequest { + @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 APIpatchNamespacedCompositePodGroupStatusRequest(@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 APIpatchNamespacedCompositePodGroupStatusRequest + */ + public APIpatchNamespacedCompositePodGroupStatusRequest 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 APIpatchNamespacedCompositePodGroupStatusRequest + */ + public APIpatchNamespacedCompositePodGroupStatusRequest 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 APIpatchNamespacedCompositePodGroupStatusRequest + */ + public APIpatchNamespacedCompositePodGroupStatusRequest 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 APIpatchNamespacedCompositePodGroupStatusRequest + */ + public APIpatchNamespacedCompositePodGroupStatusRequest 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 APIpatchNamespacedCompositePodGroupStatusRequest + */ + public APIpatchNamespacedCompositePodGroupStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedCompositePodGroupStatus + * @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 patchNamespacedCompositePodGroupStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedCompositePodGroupStatus request + * @return V1alpha3CompositePodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3CompositePodGroup execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedCompositePodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedCompositePodGroupStatus request with HTTP info returned + * @return ApiResponse<V1alpha3CompositePodGroup> + * @throws ApiException If fail to call the API, 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 patchNamespacedCompositePodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedCompositePodGroupStatus 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 patchNamespacedCompositePodGroupStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified CompositePodGroup + * @param name name of the CompositePodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedCompositePodGroupStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedCompositePodGroupStatusRequest patchNamespacedCompositePodGroupStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedCompositePodGroupStatusRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedPodGroupCall(@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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{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 patchNamespacedPodGroupValidateBeforeCall(@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 patchNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodGroup(Async)"); + } + + return patchNamespacedPodGroupCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedPodGroupWithHttpInfo(@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 = patchNamespacedPodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedPodGroupAsync(@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 = patchNamespacedPodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedPodGroupRequest { + @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 APIpatchNamespacedPodGroupRequest(@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 APIpatchNamespacedPodGroupRequest + */ + public APIpatchNamespacedPodGroupRequest 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 APIpatchNamespacedPodGroupRequest + */ + public APIpatchNamespacedPodGroupRequest 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 APIpatchNamespacedPodGroupRequest + */ + public APIpatchNamespacedPodGroupRequest 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 APIpatchNamespacedPodGroupRequest + */ + public APIpatchNamespacedPodGroupRequest 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 APIpatchNamespacedPodGroupRequest + */ + public APIpatchNamespacedPodGroupRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedPodGroup + * @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 patchNamespacedPodGroupCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedPodGroup request + * @return V1alpha3PodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3PodGroup execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedPodGroup request with HTTP info returned + * @return ApiResponse<V1alpha3PodGroup> + * @throws ApiException If fail to call the API, 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 patchNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedPodGroup 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 patchNamespacedPodGroupAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedPodGroupRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedPodGroupRequest patchNamespacedPodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedPodGroupRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedPodGroupStatusCall(@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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{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 patchNamespacedPodGroupStatusValidateBeforeCall(@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 patchNamespacedPodGroupStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPodGroupStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodGroupStatus(Async)"); + } + + return patchNamespacedPodGroupStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedPodGroupStatusWithHttpInfo(@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 = patchNamespacedPodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedPodGroupStatusAsync(@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 = patchNamespacedPodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedPodGroupStatusRequest { + @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 APIpatchNamespacedPodGroupStatusRequest(@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 APIpatchNamespacedPodGroupStatusRequest + */ + public APIpatchNamespacedPodGroupStatusRequest 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 APIpatchNamespacedPodGroupStatusRequest + */ + public APIpatchNamespacedPodGroupStatusRequest 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 APIpatchNamespacedPodGroupStatusRequest + */ + public APIpatchNamespacedPodGroupStatusRequest 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 APIpatchNamespacedPodGroupStatusRequest + */ + public APIpatchNamespacedPodGroupStatusRequest 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 APIpatchNamespacedPodGroupStatusRequest + */ + public APIpatchNamespacedPodGroupStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedPodGroupStatus + * @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 patchNamespacedPodGroupStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedPodGroupStatus request + * @return V1alpha3PodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3PodGroup execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedPodGroupStatus request with HTTP info returned + * @return ApiResponse<V1alpha3PodGroup> + * @throws ApiException If fail to call the API, 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 patchNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedPodGroupStatus 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 patchNamespacedPodGroupStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedPodGroupStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedPodGroupStatusRequest patchNamespacedPodGroupStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedPodGroupStatusRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedWorkloadCall(@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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{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 patchNamespacedWorkloadValidateBeforeCall(@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 patchNamespacedWorkload(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedWorkload(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedWorkload(Async)"); + } + + return patchNamespacedWorkloadCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedWorkloadWithHttpInfo(@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 = patchNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedWorkloadAsync(@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 = patchNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedWorkloadRequest { + @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 APIpatchNamespacedWorkloadRequest(@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 APIpatchNamespacedWorkloadRequest + */ + public APIpatchNamespacedWorkloadRequest 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 APIpatchNamespacedWorkloadRequest + */ + public APIpatchNamespacedWorkloadRequest 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 APIpatchNamespacedWorkloadRequest + */ + public APIpatchNamespacedWorkloadRequest 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 APIpatchNamespacedWorkloadRequest + */ + public APIpatchNamespacedWorkloadRequest 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 APIpatchNamespacedWorkloadRequest + */ + public APIpatchNamespacedWorkloadRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedWorkload + * @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 patchNamespacedWorkloadCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedWorkload request + * @return V1alpha3Workload + * @throws ApiException If fail to call the API, 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 V1alpha3Workload execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedWorkload request with HTTP info returned + * @return ApiResponse<V1alpha3Workload> + * @throws ApiException If fail to call the API, 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 patchNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedWorkload 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 patchNamespacedWorkloadAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified Workload + * @param name name of the Workload (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedWorkloadRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedWorkloadRequest patchNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedWorkloadRequest(name, namespace, body); + } + private okhttp3.Call readNamespacedCompositePodGroupCall(@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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{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 readNamespacedCompositePodGroupValidateBeforeCall(@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 readNamespacedCompositePodGroup(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedCompositePodGroup(Async)"); + } + + return readNamespacedCompositePodGroupCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedCompositePodGroupWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedCompositePodGroupValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedCompositePodGroupAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedCompositePodGroupValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedCompositePodGroupRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedCompositePodGroupRequest(@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 APIreadNamespacedCompositePodGroupRequest + */ + public APIreadNamespacedCompositePodGroupRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedCompositePodGroup + * @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 readNamespacedCompositePodGroupCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedCompositePodGroup request + * @return V1alpha3CompositePodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3CompositePodGroup execute() throws ApiException { + ApiResponse localVarResp = readNamespacedCompositePodGroupWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * Execute readNamespacedCompositePodGroup request with HTTP info returned + * @return ApiResponse<V1alpha3CompositePodGroup> + * @throws ApiException If fail to call the API, 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 readNamespacedCompositePodGroupWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedCompositePodGroup 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 readNamespacedCompositePodGroupAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read the specified CompositePodGroup + * @param name name of the CompositePodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedCompositePodGroupRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedCompositePodGroupRequest readNamespacedCompositePodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedCompositePodGroupRequest(name, namespace); + } + private okhttp3.Call readNamespacedCompositePodGroupStatusCall(@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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{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 readNamespacedCompositePodGroupStatusValidateBeforeCall(@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 readNamespacedCompositePodGroupStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedCompositePodGroupStatus(Async)"); + } + + return readNamespacedCompositePodGroupStatusCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedCompositePodGroupStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedCompositePodGroupStatusValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedCompositePodGroupStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedCompositePodGroupStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedCompositePodGroupStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedCompositePodGroupStatusRequest(@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 APIreadNamespacedCompositePodGroupStatusRequest + */ + public APIreadNamespacedCompositePodGroupStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedCompositePodGroupStatus + * @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 readNamespacedCompositePodGroupStatusCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedCompositePodGroupStatus request + * @return V1alpha3CompositePodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3CompositePodGroup execute() throws ApiException { + ApiResponse localVarResp = readNamespacedCompositePodGroupStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * Execute readNamespacedCompositePodGroupStatus request with HTTP info returned + * @return ApiResponse<V1alpha3CompositePodGroup> + * @throws ApiException If fail to call the API, 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 readNamespacedCompositePodGroupStatusWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedCompositePodGroupStatus 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 readNamespacedCompositePodGroupStatusAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read status of the specified CompositePodGroup + * @param name name of the CompositePodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedCompositePodGroupStatusRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedCompositePodGroupStatusRequest readNamespacedCompositePodGroupStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedCompositePodGroupStatusRequest(name, namespace); + } + private okhttp3.Call readNamespacedPodGroupCall(@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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{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 readNamespacedPodGroupValidateBeforeCall(@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 readNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodGroup(Async)"); + } + + return readNamespacedPodGroupCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedPodGroupValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedPodGroupValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedPodGroupRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedPodGroupRequest(@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 APIreadNamespacedPodGroupRequest + */ + public APIreadNamespacedPodGroupRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedPodGroup + * @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 readNamespacedPodGroupCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedPodGroup request + * @return V1alpha3PodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3PodGroup execute() throws ApiException { + ApiResponse localVarResp = readNamespacedPodGroupWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * Execute readNamespacedPodGroup request with HTTP info returned + * @return ApiResponse<V1alpha3PodGroup> + * @throws ApiException If fail to call the API, 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 readNamespacedPodGroupWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedPodGroup 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 readNamespacedPodGroupAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read the specified PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedPodGroupRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedPodGroupRequest readNamespacedPodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedPodGroupRequest(name, namespace); + } + private okhttp3.Call readNamespacedPodGroupStatusCall(@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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{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 readNamespacedPodGroupStatusValidateBeforeCall(@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 readNamespacedPodGroupStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodGroupStatus(Async)"); + } + + return readNamespacedPodGroupStatusCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedPodGroupStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedPodGroupStatusValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedPodGroupStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedPodGroupStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedPodGroupStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedPodGroupStatusRequest(@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 APIreadNamespacedPodGroupStatusRequest + */ + public APIreadNamespacedPodGroupStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedPodGroupStatus + * @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 readNamespacedPodGroupStatusCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedPodGroupStatus request + * @return V1alpha3PodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3PodGroup execute() throws ApiException { + ApiResponse localVarResp = readNamespacedPodGroupStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * Execute readNamespacedPodGroupStatus request with HTTP info returned + * @return ApiResponse<V1alpha3PodGroup> + * @throws ApiException If fail to call the API, 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 readNamespacedPodGroupStatusWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedPodGroupStatus 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 readNamespacedPodGroupStatusAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read status of the specified PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedPodGroupStatusRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedPodGroupStatusRequest readNamespacedPodGroupStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedPodGroupStatusRequest(name, namespace); + } + private okhttp3.Call readNamespacedWorkloadCall(@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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{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 readNamespacedWorkloadValidateBeforeCall(@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 readNamespacedWorkload(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedWorkload(Async)"); + } + + return readNamespacedWorkloadCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedWorkloadRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedWorkloadRequest(@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 APIreadNamespacedWorkloadRequest + */ + public APIreadNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedWorkload + * @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 readNamespacedWorkloadCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedWorkload request + * @return V1alpha3Workload + * @throws ApiException If fail to call the API, 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 V1alpha3Workload execute() throws ApiException { + ApiResponse localVarResp = readNamespacedWorkloadWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * Execute readNamespacedWorkload request with HTTP info returned + * @return ApiResponse<V1alpha3Workload> + * @throws ApiException If fail to call the API, 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 readNamespacedWorkloadWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedWorkload 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 readNamespacedWorkloadAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read the specified Workload + * @param name name of the Workload (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedWorkloadRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedWorkloadRequest readNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedWorkloadRequest(name, namespace); + } + private okhttp3.Call replaceNamespacedCompositePodGroupCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup body, @jakarta.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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{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 replaceNamespacedCompositePodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup body, @jakarta.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 replaceNamespacedCompositePodGroup(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedCompositePodGroup(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCompositePodGroup(Async)"); + } + + return replaceNamespacedCompositePodGroupCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedCompositePodGroupWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup 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 = replaceNamespacedCompositePodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedCompositePodGroupAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup body, @jakarta.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 = replaceNamespacedCompositePodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedCompositePodGroupRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha3CompositePodGroup body; + @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 APIreplaceNamespacedCompositePodGroupRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup 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 APIreplaceNamespacedCompositePodGroupRequest + */ + public APIreplaceNamespacedCompositePodGroupRequest 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 APIreplaceNamespacedCompositePodGroupRequest + */ + public APIreplaceNamespacedCompositePodGroupRequest 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 APIreplaceNamespacedCompositePodGroupRequest + */ + public APIreplaceNamespacedCompositePodGroupRequest 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 APIreplaceNamespacedCompositePodGroupRequest + */ + public APIreplaceNamespacedCompositePodGroupRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedCompositePodGroup + * @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 replaceNamespacedCompositePodGroupCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedCompositePodGroup request + * @return V1alpha3CompositePodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3CompositePodGroup execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedCompositePodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedCompositePodGroup request with HTTP info returned + * @return ApiResponse<V1alpha3CompositePodGroup> + * @throws ApiException If fail to call the API, 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 replaceNamespacedCompositePodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedCompositePodGroup 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 replaceNamespacedCompositePodGroupAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified CompositePodGroup + * @param name name of the CompositePodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedCompositePodGroupRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedCompositePodGroupRequest replaceNamespacedCompositePodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup body) { + return new APIreplaceNamespacedCompositePodGroupRequest(name, namespace, body); + } + private okhttp3.Call replaceNamespacedCompositePodGroupStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup body, @jakarta.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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{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 replaceNamespacedCompositePodGroupStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup body, @jakarta.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 replaceNamespacedCompositePodGroupStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedCompositePodGroupStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCompositePodGroupStatus(Async)"); + } + + return replaceNamespacedCompositePodGroupStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedCompositePodGroupStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup 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 = replaceNamespacedCompositePodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedCompositePodGroupStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup body, @jakarta.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 = replaceNamespacedCompositePodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedCompositePodGroupStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha3CompositePodGroup body; + @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 APIreplaceNamespacedCompositePodGroupStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup 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 APIreplaceNamespacedCompositePodGroupStatusRequest + */ + public APIreplaceNamespacedCompositePodGroupStatusRequest 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 APIreplaceNamespacedCompositePodGroupStatusRequest + */ + public APIreplaceNamespacedCompositePodGroupStatusRequest 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 APIreplaceNamespacedCompositePodGroupStatusRequest + */ + public APIreplaceNamespacedCompositePodGroupStatusRequest 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 APIreplaceNamespacedCompositePodGroupStatusRequest + */ + public APIreplaceNamespacedCompositePodGroupStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedCompositePodGroupStatus + * @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 replaceNamespacedCompositePodGroupStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedCompositePodGroupStatus request + * @return V1alpha3CompositePodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3CompositePodGroup execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedCompositePodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedCompositePodGroupStatus request with HTTP info returned + * @return ApiResponse<V1alpha3CompositePodGroup> + * @throws ApiException If fail to call the API, 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 replaceNamespacedCompositePodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedCompositePodGroupStatus 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 replaceNamespacedCompositePodGroupStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace status of the specified CompositePodGroup + * @param name name of the CompositePodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedCompositePodGroupStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedCompositePodGroupStatusRequest replaceNamespacedCompositePodGroupStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3CompositePodGroup body) { + return new APIreplaceNamespacedCompositePodGroupStatusRequest(name, namespace, body); + } + private okhttp3.Call replaceNamespacedPodGroupCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup body, @jakarta.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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{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 replaceNamespacedPodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup body, @jakarta.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 replaceNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodGroup(Async)"); + } + + return replaceNamespacedPodGroupCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup 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 = replaceNamespacedPodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup body, @jakarta.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 = replaceNamespacedPodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedPodGroupRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha3PodGroup body; + @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 APIreplaceNamespacedPodGroupRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup 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 APIreplaceNamespacedPodGroupRequest + */ + public APIreplaceNamespacedPodGroupRequest 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 APIreplaceNamespacedPodGroupRequest + */ + public APIreplaceNamespacedPodGroupRequest 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 APIreplaceNamespacedPodGroupRequest + */ + public APIreplaceNamespacedPodGroupRequest 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 APIreplaceNamespacedPodGroupRequest + */ + public APIreplaceNamespacedPodGroupRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedPodGroup + * @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 replaceNamespacedPodGroupCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedPodGroup request + * @return V1alpha3PodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3PodGroup execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedPodGroup request with HTTP info returned + * @return ApiResponse<V1alpha3PodGroup> + * @throws ApiException If fail to call the API, 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 replaceNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedPodGroup 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 replaceNamespacedPodGroupAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedPodGroupRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedPodGroupRequest replaceNamespacedPodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup body) { + return new APIreplaceNamespacedPodGroupRequest(name, namespace, body); + } + private okhttp3.Call replaceNamespacedPodGroupStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup body, @jakarta.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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{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 replaceNamespacedPodGroupStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup body, @jakarta.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 replaceNamespacedPodGroupStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPodGroupStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodGroupStatus(Async)"); + } + + return replaceNamespacedPodGroupStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedPodGroupStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup 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 = replaceNamespacedPodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedPodGroupStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup body, @jakarta.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 = replaceNamespacedPodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedPodGroupStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha3PodGroup body; + @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 APIreplaceNamespacedPodGroupStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup 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 APIreplaceNamespacedPodGroupStatusRequest + */ + public APIreplaceNamespacedPodGroupStatusRequest 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 APIreplaceNamespacedPodGroupStatusRequest + */ + public APIreplaceNamespacedPodGroupStatusRequest 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 APIreplaceNamespacedPodGroupStatusRequest + */ + public APIreplaceNamespacedPodGroupStatusRequest 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 APIreplaceNamespacedPodGroupStatusRequest + */ + public APIreplaceNamespacedPodGroupStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedPodGroupStatus + * @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 replaceNamespacedPodGroupStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedPodGroupStatus request + * @return V1alpha3PodGroup + * @throws ApiException If fail to call the API, 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 V1alpha3PodGroup execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedPodGroupStatus request with HTTP info returned + * @return ApiResponse<V1alpha3PodGroup> + * @throws ApiException If fail to call the API, 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 replaceNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedPodGroupStatus 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 replaceNamespacedPodGroupStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace status of the specified PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedPodGroupStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedPodGroupStatusRequest replaceNamespacedPodGroupStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3PodGroup body) { + return new APIreplaceNamespacedPodGroupStatusRequest(name, namespace, body); + } + private okhttp3.Call replaceNamespacedWorkloadCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3Workload body, @jakarta.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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{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 replaceNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3Workload body, @jakarta.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 replaceNamespacedWorkload(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedWorkload(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedWorkload(Async)"); + } + + return replaceNamespacedWorkloadCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3Workload 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 = replaceNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3Workload body, @jakarta.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 = replaceNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedWorkloadRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha3Workload body; + @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 APIreplaceNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3Workload 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 APIreplaceNamespacedWorkloadRequest + */ + public APIreplaceNamespacedWorkloadRequest 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 APIreplaceNamespacedWorkloadRequest + */ + public APIreplaceNamespacedWorkloadRequest 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 APIreplaceNamespacedWorkloadRequest + */ + public APIreplaceNamespacedWorkloadRequest 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 APIreplaceNamespacedWorkloadRequest + */ + public APIreplaceNamespacedWorkloadRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedWorkload + * @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 replaceNamespacedWorkloadCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedWorkload request + * @return V1alpha3Workload + * @throws ApiException If fail to call the API, 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 V1alpha3Workload execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedWorkload request with HTTP info returned + * @return ApiResponse<V1alpha3Workload> + * @throws ApiException If fail to call the API, 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 replaceNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedWorkload 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 replaceNamespacedWorkloadAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified Workload + * @param name name of the Workload (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedWorkloadRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedWorkloadRequest replaceNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3Workload body) { + return new APIreplaceNamespacedWorkloadRequest(name, namespace, body); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1beta1Api.java similarity index 93% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha2Api.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1beta1Api.java index d456493540..45eb27199c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1beta1Api.java @@ -30,10 +30,10 @@ 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.V1alpha2PodGroup; -import io.kubernetes.client.openapi.models.V1alpha2PodGroupList; -import io.kubernetes.client.openapi.models.V1alpha2Workload; -import io.kubernetes.client.openapi.models.V1alpha2WorkloadList; +import io.kubernetes.client.openapi.models.V1beta1PodGroup; +import io.kubernetes.client.openapi.models.V1beta1PodGroupList; +import io.kubernetes.client.openapi.models.V1beta1Workload; +import io.kubernetes.client.openapi.models.V1beta1WorkloadList; import java.lang.reflect.Type; import java.util.ArrayList; @@ -41,16 +41,16 @@ import java.util.List; import java.util.Map; -public class SchedulingV1alpha2Api { +public class SchedulingV1beta1Api { private ApiClient localVarApiClient; private int localHostIndex; private String localCustomBaseUrl; - public SchedulingV1alpha2Api() { + public SchedulingV1beta1Api() { this(Configuration.getDefaultApiClient()); } - public SchedulingV1alpha2Api(ApiClient apiClient) { + public SchedulingV1beta1Api(ApiClient apiClient) { this.localVarApiClient = apiClient; } @@ -78,7 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createNamespacedPodGroupCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodGroupCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body, @jakarta.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[] { }; @@ -95,7 +95,7 @@ private okhttp3.Call createNamespacedPodGroupCall(@jakarta.annotation.Nonnull St Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); @@ -144,7 +144,7 @@ private okhttp3.Call createNamespacedPodGroupCall(@jakarta.annotation.Nonnull St } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedPodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body, @jakarta.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 createNamespacedPodGroup(Async)"); @@ -160,16 +160,16 @@ private okhttp3.Call createNamespacedPodGroupValidateBeforeCall(@jakarta.annotat } - private ApiResponse createNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + private ApiResponse createNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup 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 = createNamespacedPodGroupValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body, @jakarta.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 = createNamespacedPodGroupValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -178,7 +178,7 @@ public class APIcreateNamespacedPodGroupRequest { @jakarta.annotation.Nonnull private final String namespace; @jakarta.annotation.Nonnull - private final V1alpha2PodGroup body; + private final V1beta1PodGroup body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -188,7 +188,7 @@ public class APIcreateNamespacedPodGroupRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedPodGroupRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body) { + private APIcreateNamespacedPodGroupRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body) { this.namespace = namespace; this.body = body; } @@ -254,7 +254,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createNamespacedPodGroup request - * @return V1alpha2PodGroup + * @return V1beta1PodGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -266,14 +266,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2PodGroup execute() throws ApiException { - ApiResponse localVarResp = createNamespacedPodGroupWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1PodGroup execute() throws ApiException { + ApiResponse localVarResp = createNamespacedPodGroupWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedPodGroup request with HTTP info returned - * @return ApiResponse<V1alpha2PodGroup> + * @return ApiResponse<V1beta1PodGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -285,7 +285,7 @@ public V1alpha2PodGroup execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedPodGroupWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } @@ -304,7 +304,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedPodGroupAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } @@ -325,10 +325,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 401 Unauthorized - */ - public APIcreateNamespacedPodGroupRequest createNamespacedPodGroup(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body) { + public APIcreateNamespacedPodGroupRequest createNamespacedPodGroup(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body) { return new APIcreateNamespacedPodGroupRequest(namespace, body); } - private okhttp3.Call createNamespacedWorkloadCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedWorkloadCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1Workload body, @jakarta.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[] { }; @@ -345,7 +345,7 @@ private okhttp3.Call createNamespacedWorkloadCall(@jakarta.annotation.Nonnull St Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); @@ -394,7 +394,7 @@ private okhttp3.Call createNamespacedWorkloadCall(@jakarta.annotation.Nonnull St } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1Workload body, @jakarta.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 createNamespacedWorkload(Async)"); @@ -410,16 +410,16 @@ private okhttp3.Call createNamespacedWorkloadValidateBeforeCall(@jakarta.annotat } - private ApiResponse createNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + private ApiResponse createNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1Workload 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 = createNamespacedWorkloadValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1Workload body, @jakarta.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 = createNamespacedWorkloadValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -428,7 +428,7 @@ public class APIcreateNamespacedWorkloadRequest { @jakarta.annotation.Nonnull private final String namespace; @jakarta.annotation.Nonnull - private final V1alpha2Workload body; + private final V1beta1Workload body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -438,7 +438,7 @@ public class APIcreateNamespacedWorkloadRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body) { + private APIcreateNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1Workload body) { this.namespace = namespace; this.body = body; } @@ -504,7 +504,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createNamespacedWorkload request - * @return V1alpha2Workload + * @return V1beta1Workload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -516,14 +516,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2Workload execute() throws ApiException { - ApiResponse localVarResp = createNamespacedWorkloadWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1Workload execute() throws ApiException { + ApiResponse localVarResp = createNamespacedWorkloadWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute createNamespacedWorkload request with HTTP info returned - * @return ApiResponse<V1alpha2Workload> + * @return ApiResponse<V1beta1Workload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -535,7 +535,7 @@ public V1alpha2Workload execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createNamespacedWorkloadWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); } @@ -554,7 +554,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createNamespacedWorkloadAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } @@ -575,7 +575,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 401 Unauthorized - */ - public APIcreateNamespacedWorkloadRequest createNamespacedWorkload(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body) { + public APIcreateNamespacedWorkloadRequest createNamespacedWorkload(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1Workload body) { return new APIcreateNamespacedWorkloadRequest(namespace, body); } private okhttp3.Call deleteCollectionNamespacedPodGroupCall(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { @@ -595,7 +595,7 @@ private okhttp3.Call deleteCollectionNamespacedPodGroupCall(@jakarta.annotation. Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); @@ -1014,7 +1014,7 @@ private okhttp3.Call deleteCollectionNamespacedWorkloadCall(@jakarta.annotation. Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); @@ -1433,7 +1433,7 @@ private okhttp3.Call deleteNamespacedPodGroupCall(@jakarta.annotation.Nonnull St Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -1723,7 +1723,7 @@ private okhttp3.Call deleteNamespacedWorkloadCall(@jakarta.annotation.Nonnull St Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -2013,7 +2013,7 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/"; + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2169,7 +2169,7 @@ private okhttp3.Call listNamespacedPodGroupCall(@jakarta.annotation.Nonnull Stri Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); @@ -2263,16 +2263,16 @@ private okhttp3.Call listNamespacedPodGroupValidateBeforeCall(@jakarta.annotatio } - private ApiResponse listNamespacedPodGroupWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + private ApiResponse listNamespacedPodGroupWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedPodGroupValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedPodGroupAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodGroupAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedPodGroupValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2448,7 +2448,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute listNamespacedPodGroup request - * @return V1alpha2PodGroupList + * @return V1beta1PodGroupList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2458,14 +2458,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2PodGroupList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedPodGroupWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1beta1PodGroupList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedPodGroupWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedPodGroup request with HTTP info returned - * @return ApiResponse<V1alpha2PodGroupList> + * @return ApiResponse<V1beta1PodGroupList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2475,7 +2475,7 @@ public V1alpha2PodGroupList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedPodGroupWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } @@ -2492,7 +2492,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedPodGroupAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -2530,7 +2530,7 @@ private okhttp3.Call listNamespacedWorkloadCall(@jakarta.annotation.Nonnull Stri Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); @@ -2624,16 +2624,16 @@ private okhttp3.Call listNamespacedWorkloadValidateBeforeCall(@jakarta.annotatio } - private ApiResponse listNamespacedWorkloadWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + private ApiResponse listNamespacedWorkloadWithHttpInfo(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedWorkloadValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedWorkloadAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedWorkloadAsync(@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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedWorkloadValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2809,7 +2809,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute listNamespacedWorkload request - * @return V1alpha2WorkloadList + * @return V1beta1WorkloadList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2819,14 +2819,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2WorkloadList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedWorkloadWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1beta1WorkloadList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedWorkloadWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listNamespacedWorkload request with HTTP info returned - * @return ApiResponse<V1alpha2WorkloadList> + * @return ApiResponse<V1beta1WorkloadList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2836,7 +2836,7 @@ public V1alpha2WorkloadList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return listNamespacedWorkloadWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } @@ -2853,7 +2853,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listNamespacedWorkloadAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -2891,7 +2891,7 @@ private okhttp3.Call listPodGroupForAllNamespacesCall(@jakarta.annotation.Nullab Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/podgroups"; + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/podgroups"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2979,16 +2979,16 @@ private okhttp3.Call listPodGroupForAllNamespacesValidateBeforeCall(@jakarta.ann } - private ApiResponse listPodGroupForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + private ApiResponse listPodGroupForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listPodGroupForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPodGroupForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodGroupForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listPodGroupForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3161,7 +3161,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute listPodGroupForAllNamespaces request - * @return V1alpha2PodGroupList + * @return V1beta1PodGroupList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3171,14 +3171,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2PodGroupList execute() throws ApiException { - ApiResponse localVarResp = listPodGroupForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1beta1PodGroupList execute() throws ApiException { + ApiResponse localVarResp = listPodGroupForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listPodGroupForAllNamespaces request with HTTP info returned - * @return ApiResponse<V1alpha2PodGroupList> + * @return ApiResponse<V1beta1PodGroupList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3188,7 +3188,7 @@ public V1alpha2PodGroupList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return listPodGroupForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } @@ -3205,7 +3205,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listPodGroupForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -3242,7 +3242,7 @@ private okhttp3.Call listWorkloadForAllNamespacesCall(@jakarta.annotation.Nullab Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/workloads"; + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/workloads"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3330,16 +3330,16 @@ private okhttp3.Call listWorkloadForAllNamespacesValidateBeforeCall(@jakarta.ann } - private ApiResponse listWorkloadForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + private ApiResponse listWorkloadForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listWorkloadForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listWorkloadForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listWorkloadForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listWorkloadForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3512,7 +3512,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute listWorkloadForAllNamespaces request - * @return V1alpha2WorkloadList + * @return V1beta1WorkloadList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3522,14 +3522,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2WorkloadList execute() throws ApiException { - ApiResponse localVarResp = listWorkloadForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1beta1WorkloadList execute() throws ApiException { + ApiResponse localVarResp = listWorkloadForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** * Execute listWorkloadForAllNamespaces request with HTTP info returned - * @return ApiResponse<V1alpha2WorkloadList> + * @return ApiResponse<V1beta1WorkloadList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3539,7 +3539,7 @@ public V1alpha2WorkloadList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return listWorkloadForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } @@ -3556,7 +3556,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listWorkloadForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -3593,7 +3593,7 @@ private okhttp3.Call patchNamespacedPodGroupCall(@jakarta.annotation.Nonnull Str Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -3668,16 +3668,16 @@ private okhttp3.Call patchNamespacedPodGroupValidateBeforeCall(@jakarta.annotati } - private ApiResponse patchNamespacedPodGroupWithHttpInfo(@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 { + private ApiResponse patchNamespacedPodGroupWithHttpInfo(@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 = patchNamespacedPodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedPodGroupAsync(@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 { + private okhttp3.Call patchNamespacedPodGroupAsync(@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 = patchNamespacedPodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3776,7 +3776,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute patchNamespacedPodGroup request - * @return V1alpha2PodGroup + * @return V1beta1PodGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3787,14 +3787,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2PodGroup execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta1PodGroup execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedPodGroup request with HTTP info returned - * @return ApiResponse<V1alpha2PodGroup> + * @return ApiResponse<V1beta1PodGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3805,7 +3805,7 @@ public V1alpha2PodGroup execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } @@ -3823,7 +3823,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedPodGroupAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } @@ -3864,7 +3864,7 @@ private okhttp3.Call patchNamespacedPodGroupStatusCall(@jakarta.annotation.Nonnu Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -3939,16 +3939,16 @@ private okhttp3.Call patchNamespacedPodGroupStatusValidateBeforeCall(@jakarta.an } - private ApiResponse patchNamespacedPodGroupStatusWithHttpInfo(@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 { + private ApiResponse patchNamespacedPodGroupStatusWithHttpInfo(@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 = patchNamespacedPodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedPodGroupStatusAsync(@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 { + private okhttp3.Call patchNamespacedPodGroupStatusAsync(@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 = patchNamespacedPodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4047,7 +4047,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute patchNamespacedPodGroupStatus request - * @return V1alpha2PodGroup + * @return V1beta1PodGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4058,14 +4058,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2PodGroup execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta1PodGroup execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedPodGroupStatus request with HTTP info returned - * @return ApiResponse<V1alpha2PodGroup> + * @return ApiResponse<V1beta1PodGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4076,7 +4076,7 @@ public V1alpha2PodGroup execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } @@ -4094,7 +4094,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedPodGroupStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } @@ -4135,7 +4135,7 @@ private okhttp3.Call patchNamespacedWorkloadCall(@jakarta.annotation.Nonnull Str Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -4210,16 +4210,16 @@ private okhttp3.Call patchNamespacedWorkloadValidateBeforeCall(@jakarta.annotati } - private ApiResponse patchNamespacedWorkloadWithHttpInfo(@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 { + private ApiResponse patchNamespacedWorkloadWithHttpInfo(@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 = patchNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedWorkloadAsync(@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 { + private okhttp3.Call patchNamespacedWorkloadAsync(@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 = patchNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4318,7 +4318,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute patchNamespacedWorkload request - * @return V1alpha2Workload + * @return V1beta1Workload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4329,14 +4329,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2Workload execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta1Workload execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * Execute patchNamespacedWorkload request with HTTP info returned - * @return ApiResponse<V1alpha2Workload> + * @return ApiResponse<V1beta1Workload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4347,7 +4347,7 @@ public V1alpha2Workload execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return patchNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } @@ -4365,7 +4365,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return patchNamespacedWorkloadAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } @@ -4406,7 +4406,7 @@ private okhttp3.Call readNamespacedPodGroupCall(@jakarta.annotation.Nonnull Stri Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -4459,16 +4459,16 @@ private okhttp3.Call readNamespacedPodGroupValidateBeforeCall(@jakarta.annotatio } - private ApiResponse readNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + private ApiResponse readNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodGroupValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodGroupValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4515,7 +4515,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute readNamespacedPodGroup request - * @return V1alpha2PodGroup + * @return V1beta1PodGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4525,14 +4525,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2PodGroup execute() throws ApiException { - ApiResponse localVarResp = readNamespacedPodGroupWithHttpInfo(name, namespace, pretty); + public V1beta1PodGroup execute() throws ApiException { + ApiResponse localVarResp = readNamespacedPodGroupWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedPodGroup request with HTTP info returned - * @return ApiResponse<V1alpha2PodGroup> + * @return ApiResponse<V1beta1PodGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4542,7 +4542,7 @@ public V1alpha2PodGroup execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedPodGroupWithHttpInfo(name, namespace, pretty); } @@ -4559,7 +4559,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedPodGroupAsync(name, namespace, pretty, _callback); } } @@ -4598,7 +4598,7 @@ private okhttp3.Call readNamespacedPodGroupStatusCall(@jakarta.annotation.Nonnul Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -4651,16 +4651,16 @@ private okhttp3.Call readNamespacedPodGroupStatusValidateBeforeCall(@jakarta.ann } - private ApiResponse readNamespacedPodGroupStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + private ApiResponse readNamespacedPodGroupStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodGroupStatusValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedPodGroupStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodGroupStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedPodGroupStatusValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4707,7 +4707,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute readNamespacedPodGroupStatus request - * @return V1alpha2PodGroup + * @return V1beta1PodGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4717,14 +4717,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2PodGroup execute() throws ApiException { - ApiResponse localVarResp = readNamespacedPodGroupStatusWithHttpInfo(name, namespace, pretty); + public V1beta1PodGroup execute() throws ApiException { + ApiResponse localVarResp = readNamespacedPodGroupStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedPodGroupStatus request with HTTP info returned - * @return ApiResponse<V1alpha2PodGroup> + * @return ApiResponse<V1beta1PodGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4734,7 +4734,7 @@ public V1alpha2PodGroup execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedPodGroupStatusWithHttpInfo(name, namespace, pretty); } @@ -4751,7 +4751,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedPodGroupStatusAsync(name, namespace, pretty, _callback); } } @@ -4790,7 +4790,7 @@ private okhttp3.Call readNamespacedWorkloadCall(@jakarta.annotation.Nonnull Stri Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -4843,16 +4843,16 @@ private okhttp3.Call readNamespacedWorkloadValidateBeforeCall(@jakarta.annotatio } - private ApiResponse readNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + private ApiResponse readNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4899,7 +4899,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute readNamespacedWorkload request - * @return V1alpha2Workload + * @return V1beta1Workload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4909,14 +4909,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2Workload execute() throws ApiException { - ApiResponse localVarResp = readNamespacedWorkloadWithHttpInfo(name, namespace, pretty); + public V1beta1Workload execute() throws ApiException { + ApiResponse localVarResp = readNamespacedWorkloadWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * Execute readNamespacedWorkload request with HTTP info returned - * @return ApiResponse<V1alpha2Workload> + * @return ApiResponse<V1beta1Workload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4926,7 +4926,7 @@ public V1alpha2Workload execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return readNamespacedWorkloadWithHttpInfo(name, namespace, pretty); } @@ -4943,7 +4943,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return readNamespacedWorkloadAsync(name, namespace, pretty, _callback); } } @@ -4965,7 +4965,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIreadNamespacedWorkloadRequest readNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIreadNamespacedWorkloadRequest(name, namespace); } - private okhttp3.Call replaceNamespacedPodGroupCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodGroupCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body, @jakarta.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[] { }; @@ -4982,7 +4982,7 @@ private okhttp3.Call replaceNamespacedPodGroupCall(@jakarta.annotation.Nonnull S Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -5032,7 +5032,7 @@ private okhttp3.Call replaceNamespacedPodGroupCall(@jakarta.annotation.Nonnull S } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body, @jakarta.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 replaceNamespacedPodGroup(Async)"); @@ -5053,16 +5053,16 @@ private okhttp3.Call replaceNamespacedPodGroupValidateBeforeCall(@jakarta.annota } - private ApiResponse replaceNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup 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 = replaceNamespacedPodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body, @jakarta.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 = replaceNamespacedPodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5073,7 +5073,7 @@ public class APIreplaceNamespacedPodGroupRequest { @jakarta.annotation.Nonnull private final String namespace; @jakarta.annotation.Nonnull - private final V1alpha2PodGroup body; + private final V1beta1PodGroup body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -5083,7 +5083,7 @@ public class APIreplaceNamespacedPodGroupRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedPodGroupRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body) { + private APIreplaceNamespacedPodGroupRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body) { this.name = name; this.namespace = namespace; this.body = body; @@ -5149,7 +5149,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute replaceNamespacedPodGroup request - * @return V1alpha2PodGroup + * @return V1beta1PodGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5160,14 +5160,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2PodGroup execute() throws ApiException { - ApiResponse localVarResp = replaceNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1PodGroup execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedPodGroup request with HTTP info returned - * @return ApiResponse<V1alpha2PodGroup> + * @return ApiResponse<V1beta1PodGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5178,7 +5178,7 @@ public V1alpha2PodGroup execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } @@ -5196,7 +5196,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedPodGroupAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } @@ -5217,10 +5217,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 401 Unauthorized - */ - public APIreplaceNamespacedPodGroupRequest replaceNamespacedPodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body) { + public APIreplaceNamespacedPodGroupRequest replaceNamespacedPodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body) { return new APIreplaceNamespacedPodGroupRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedPodGroupStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodGroupStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body, @jakarta.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[] { }; @@ -5237,7 +5237,7 @@ private okhttp3.Call replaceNamespacedPodGroupStatusCall(@jakarta.annotation.Non Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -5287,7 +5287,7 @@ private okhttp3.Call replaceNamespacedPodGroupStatusCall(@jakarta.annotation.Non } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPodGroupStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodGroupStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body, @jakarta.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 replaceNamespacedPodGroupStatus(Async)"); @@ -5308,16 +5308,16 @@ private okhttp3.Call replaceNamespacedPodGroupStatusValidateBeforeCall(@jakarta. } - private ApiResponse replaceNamespacedPodGroupStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedPodGroupStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup 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 = replaceNamespacedPodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedPodGroupStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodGroupStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body, @jakarta.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 = replaceNamespacedPodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5328,7 +5328,7 @@ public class APIreplaceNamespacedPodGroupStatusRequest { @jakarta.annotation.Nonnull private final String namespace; @jakarta.annotation.Nonnull - private final V1alpha2PodGroup body; + private final V1beta1PodGroup body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -5338,7 +5338,7 @@ public class APIreplaceNamespacedPodGroupStatusRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedPodGroupStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body) { + private APIreplaceNamespacedPodGroupStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body) { this.name = name; this.namespace = namespace; this.body = body; @@ -5404,7 +5404,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute replaceNamespacedPodGroupStatus request - * @return V1alpha2PodGroup + * @return V1beta1PodGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5415,14 +5415,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2PodGroup execute() throws ApiException { - ApiResponse localVarResp = replaceNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1PodGroup execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedPodGroupStatus request with HTTP info returned - * @return ApiResponse<V1alpha2PodGroup> + * @return ApiResponse<V1beta1PodGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5433,7 +5433,7 @@ public V1alpha2PodGroup execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } @@ -5451,7 +5451,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedPodGroupStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } @@ -5472,10 +5472,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 401 Unauthorized - */ - public APIreplaceNamespacedPodGroupStatusRequest replaceNamespacedPodGroupStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body) { + public APIreplaceNamespacedPodGroupStatusRequest replaceNamespacedPodGroupStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1PodGroup body) { return new APIreplaceNamespacedPodGroupStatusRequest(name, namespace, body); } - private okhttp3.Call replaceNamespacedWorkloadCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedWorkloadCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1Workload body, @jakarta.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[] { }; @@ -5492,7 +5492,7 @@ private okhttp3.Call replaceNamespacedWorkloadCall(@jakarta.annotation.Nonnull S Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}" + String localVarPath = "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -5542,7 +5542,7 @@ private okhttp3.Call replaceNamespacedWorkloadCall(@jakarta.annotation.Nonnull S } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1Workload body, @jakarta.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 replaceNamespacedWorkload(Async)"); @@ -5563,16 +5563,16 @@ private okhttp3.Call replaceNamespacedWorkloadValidateBeforeCall(@jakarta.annota } - private ApiResponse replaceNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + private ApiResponse replaceNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1Workload 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 = replaceNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1Workload body, @jakarta.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 = replaceNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5583,7 +5583,7 @@ public class APIreplaceNamespacedWorkloadRequest { @jakarta.annotation.Nonnull private final String namespace; @jakarta.annotation.Nonnull - private final V1alpha2Workload body; + private final V1beta1Workload body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -5593,7 +5593,7 @@ public class APIreplaceNamespacedWorkloadRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body) { + private APIreplaceNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1Workload body) { this.name = name; this.namespace = namespace; this.body = body; @@ -5659,7 +5659,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute replaceNamespacedWorkload request - * @return V1alpha2Workload + * @return V1beta1Workload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5670,14 +5670,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha2Workload execute() throws ApiException { - ApiResponse localVarResp = replaceNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1Workload execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * Execute replaceNamespacedWorkload request with HTTP info returned - * @return ApiResponse<V1alpha2Workload> + * @return ApiResponse<V1beta1Workload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5688,7 +5688,7 @@ public V1alpha2Workload execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return replaceNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } @@ -5706,7 +5706,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return replaceNamespacedWorkloadAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } @@ -5727,7 +5727,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 401 Unauthorized - */ - public APIreplaceNamespacedWorkloadRequest replaceNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body) { + public APIreplaceNamespacedWorkloadRequest replaceNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1Workload body) { return new APIreplaceNamespacedWorkloadRequest(name, namespace, 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 792105713d..a5e03e5ec7 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { 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 6c32e6c91b..f44700cf74 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 @@ -8835,6 +8835,267 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws public APIpatchCSINodeRequest patchCSINode(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchCSINodeRequest(name, body); } + private okhttp3.Call patchCSINodeStatusCall(@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/storage.k8s.io/v1/csinodes/{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 patchCSINodeStatusValidateBeforeCall(@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 patchCSINodeStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchCSINodeStatus(Async)"); + } + + return patchCSINodeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchCSINodeStatusWithHttpInfo(@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 = patchCSINodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchCSINodeStatusAsync(@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 = patchCSINodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchCSINodeStatusRequest { + @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 APIpatchCSINodeStatusRequest(@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 APIpatchCSINodeStatusRequest + */ + public APIpatchCSINodeStatusRequest 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 APIpatchCSINodeStatusRequest + */ + public APIpatchCSINodeStatusRequest 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 APIpatchCSINodeStatusRequest + */ + public APIpatchCSINodeStatusRequest 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 APIpatchCSINodeStatusRequest + */ + public APIpatchCSINodeStatusRequest 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 APIpatchCSINodeStatusRequest + */ + public APIpatchCSINodeStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchCSINodeStatus + * @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 patchCSINodeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchCSINodeStatus request + * @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 -
401 Unauthorized -
+ */ + public V1CSINode execute() throws ApiException { + ApiResponse localVarResp = patchCSINodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchCSINodeStatus request with HTTP info returned + * @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 -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchCSINodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchCSINodeStatus 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 patchCSINodeStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified CSINode + * @param name name of the CSINode (required) + * @param body (required) + * @return APIpatchCSINodeStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchCSINodeStatusRequest patchCSINodeStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchCSINodeStatusRequest(name, body); + } 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 @@ -10514,7 +10775,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws public APIreadCSINodeRequest readCSINode(@jakarta.annotation.Nonnull String name) { return new APIreadCSINodeRequest(name); } - private okhttp3.Call readNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCSINodeStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -10531,9 +10792,8 @@ private okhttp3.Call readNamespacedCSIStorageCapacityCall(@jakarta.annotation.No Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/storage.k8s.io/v1/csinodes/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -10568,61 +10828,244 @@ private okhttp3.Call readNamespacedCSIStorageCapacityCall(@jakarta.annotation.No } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCSINodeStatusValidateBeforeCall(@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 readNamespacedCSIStorageCapacity(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedCSIStorageCapacity(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readCSINodeStatus(Async)"); } - return readNamespacedCSIStorageCapacityCall(name, namespace, pretty, _callback); + return readCSINodeStatusCall(name, pretty, _callback); } - 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(); + private ApiResponse readCSINodeStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readCSINodeStatusValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCSINodeStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readCSINodeStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadNamespacedCSIStorageCapacityRequest { + public class APIreadCSINodeStatusRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final String namespace; @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedCSIStorageCapacityRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + private APIreadCSINodeStatusRequest(@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 APIreadNamespacedCSIStorageCapacityRequest + * @return APIreadCSINodeStatusRequest */ - public APIreadNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadCSINodeStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readNamespacedCSIStorageCapacity + * Build call for readCSINodeStatus + * @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 readCSINodeStatusCall(name, pretty, _callback); + } + + /** + * Execute readCSINodeStatus request + * @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 -
+ */ + public V1CSINode execute() throws ApiException { + ApiResponse localVarResp = readCSINodeStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * Execute readCSINodeStatus request with HTTP info returned + * @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 -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readCSINodeStatusWithHttpInfo(name, pretty); + } + + /** + * Execute readCSINodeStatus 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 readCSINodeStatusAsync(name, pretty, _callback); + } + } + + /** + * + * read status of the specified CSINode + * @param name name of the CSINode (required) + * @return APIreadCSINodeStatusRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadCSINodeStatusRequest readCSINodeStatus(@jakarta.annotation.Nonnull String name) { + return new APIreadCSINodeStatusRequest(name); + } + 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[] { }; + + // 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/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{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 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)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedCSIStorageCapacity(Async)"); + } + + return readNamespacedCSIStorageCapacityCall(name, namespace, pretty, _callback); + + } + + + 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(@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(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + 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(@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 APIreadNamespacedCSIStorageCapacityRequest + */ + public APIreadNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedCSIStorageCapacity * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -11924,6 +12367,251 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws public APIreplaceCSINodeRequest replaceCSINode(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSINode body) { return new APIreplaceCSINodeRequest(name, body); } + private okhttp3.Call replaceCSINodeStatusCall(@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[] { }; + + // 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/storage.k8s.io/v1/csinodes/{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)); + } + + 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 replaceCSINodeStatusValidateBeforeCall(@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 replaceCSINodeStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceCSINodeStatus(Async)"); + } + + return replaceCSINodeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceCSINodeStatusWithHttpInfo(@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 = replaceCSINodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceCSINodeStatusAsync(@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 = replaceCSINodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceCSINodeStatusRequest { + @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 APIreplaceCSINodeStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSINode 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 APIreplaceCSINodeStatusRequest + */ + public APIreplaceCSINodeStatusRequest 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 APIreplaceCSINodeStatusRequest + */ + public APIreplaceCSINodeStatusRequest 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 APIreplaceCSINodeStatusRequest + */ + public APIreplaceCSINodeStatusRequest 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 APIreplaceCSINodeStatusRequest + */ + public APIreplaceCSINodeStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceCSINodeStatus + * @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 replaceCSINodeStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceCSINodeStatus request + * @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 -
401 Unauthorized -
+ */ + public V1CSINode execute() throws ApiException { + ApiResponse localVarResp = replaceCSINodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceCSINodeStatus request with HTTP info returned + * @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 -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceCSINodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceCSINodeStatus 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 replaceCSINodeStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace status of the specified CSINode + * @param name name of the CSINode (required) + * @param body (required) + * @return APIreplaceCSINodeStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceCSINodeStatusRequest replaceCSINodeStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSINode body) { + return new APIreplaceCSINodeStatusRequest(name, body); + } 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 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 deleted file mode 100644 index 90da2e4a9a..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java +++ /dev/null @@ -1,2203 +0,0 @@ -/* -Copyright 2026 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.V1beta1VolumeAttributesClass; -import io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClassList; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class StorageV1beta1Api { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public StorageV1beta1Api() { - this(Configuration.getDefaultApiClient()); - } - - public StorageV1beta1Api(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 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[] { }; - - // 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/storage.k8s.io/v1beta1/volumeattributesclasses"; - - 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 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)"); - } - - return createVolumeAttributesClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - - } - - - 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(@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(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - 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(@jakarta.annotation.Nonnull V1beta1VolumeAttributesClass 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 APIcreateVolumeAttributesClassRequest - */ - public APIcreateVolumeAttributesClassRequest 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 APIcreateVolumeAttributesClassRequest - */ - public APIcreateVolumeAttributesClassRequest 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 APIcreateVolumeAttributesClassRequest - */ - public APIcreateVolumeAttributesClassRequest 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 APIcreateVolumeAttributesClassRequest - */ - public APIcreateVolumeAttributesClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Build call for createVolumeAttributesClass - * @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 createVolumeAttributesClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - - /** - * Execute createVolumeAttributesClass request - * @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 -
202 Accepted -
401 Unauthorized -
- */ - public V1beta1VolumeAttributesClass execute() throws ApiException { - ApiResponse localVarResp = createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * Execute createVolumeAttributesClass request with HTTP info returned - * @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 -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); - } - - /** - * Execute createVolumeAttributesClass 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 createVolumeAttributesClassAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - } - - /** - * - * create a VolumeAttributesClass - * @param body (required) - * @return APIcreateVolumeAttributesClassRequest - * @http.response.details - - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public APIcreateVolumeAttributesClassRequest createVolumeAttributesClass(@jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body) { - return new APIcreateVolumeAttributesClassRequest(body); - } - 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 String shardSelector, @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/storage.k8s.io/v1beta1/volumeattributesclasses"; - - 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 (shardSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); - } - - 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 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); - - } - - - 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - 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 String shardSelector; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private V1DeleteOptions body; - - private APIdeleteCollectionVolumeAttributesClassRequest() { - } - - /** - * 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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest 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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest _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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest 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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest 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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest 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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest 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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest 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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest 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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest 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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest 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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest 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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest 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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set shardSelector - * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { - this.shardSelector = shardSelector; - 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 APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteCollectionVolumeAttributesClassRequest - */ - public APIdeleteCollectionVolumeAttributesClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteCollectionVolumeAttributesClass - * @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 deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); - } - - /** - * Execute deleteCollectionVolumeAttributesClass 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 = deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * Execute deleteCollectionVolumeAttributesClass 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 deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); - } - - /** - * Execute deleteCollectionVolumeAttributesClass 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 deleteCollectionVolumeAttributesClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); - } - } - - /** - * - * delete collection of VolumeAttributesClass - * @return APIdeleteCollectionVolumeAttributesClassRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIdeleteCollectionVolumeAttributesClassRequest deleteCollectionVolumeAttributesClass() { - return new APIdeleteCollectionVolumeAttributesClassRequest(); - } - 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[] { }; - - // 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/storage.k8s.io/v1beta1/volumeattributesclasses/{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 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)"); - } - - return deleteVolumeAttributesClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - - } - - - 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(@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(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - 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(@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 APIdeleteVolumeAttributesClassRequest - */ - public APIdeleteVolumeAttributesClassRequest 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 APIdeleteVolumeAttributesClassRequest - */ - public APIdeleteVolumeAttributesClassRequest 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 APIdeleteVolumeAttributesClassRequest - */ - public APIdeleteVolumeAttributesClassRequest 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 APIdeleteVolumeAttributesClassRequest - */ - public APIdeleteVolumeAttributesClassRequest 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 APIdeleteVolumeAttributesClassRequest - */ - public APIdeleteVolumeAttributesClassRequest 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 APIdeleteVolumeAttributesClassRequest - */ - public APIdeleteVolumeAttributesClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteVolumeAttributesClassRequest - */ - public APIdeleteVolumeAttributesClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteVolumeAttributesClass - * @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 deleteVolumeAttributesClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - - /** - * Execute deleteVolumeAttributesClass request - * @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 -
401 Unauthorized -
- */ - public V1beta1VolumeAttributesClass execute() throws ApiException { - ApiResponse localVarResp = deleteVolumeAttributesClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * Execute deleteVolumeAttributesClass request with HTTP info returned - * @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 -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteVolumeAttributesClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - } - - /** - * Execute deleteVolumeAttributesClass 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 deleteVolumeAttributesClassAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - } - - /** - * - * delete a VolumeAttributesClass - * @param name name of the VolumeAttributesClass (required) - * @return APIdeleteVolumeAttributesClassRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public APIdeleteVolumeAttributesClassRequest deleteVolumeAttributesClass(@jakarta.annotation.Nonnull String name) { - return new APIdeleteVolumeAttributesClassRequest(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/storage.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 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 String shardSelector, @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/storage.k8s.io/v1beta1/volumeattributesclasses"; - - 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 (shardSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); - } - - 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 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); - - } - - - 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - 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 String shardSelector; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - - private APIlistVolumeAttributesClassRequest() { - } - - /** - * 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 APIlistVolumeAttributesClassRequest - */ - public APIlistVolumeAttributesClassRequest 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 APIlistVolumeAttributesClassRequest - */ - public APIlistVolumeAttributesClassRequest 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 APIlistVolumeAttributesClassRequest - */ - public APIlistVolumeAttributesClassRequest _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 APIlistVolumeAttributesClassRequest - */ - public APIlistVolumeAttributesClassRequest 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 APIlistVolumeAttributesClassRequest - */ - public APIlistVolumeAttributesClassRequest 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 APIlistVolumeAttributesClassRequest - */ - public APIlistVolumeAttributesClassRequest 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 APIlistVolumeAttributesClassRequest - */ - public APIlistVolumeAttributesClassRequest 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 APIlistVolumeAttributesClassRequest - */ - public APIlistVolumeAttributesClassRequest 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 APIlistVolumeAttributesClassRequest - */ - public APIlistVolumeAttributesClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set shardSelector - * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIlistVolumeAttributesClassRequest - */ - public APIlistVolumeAttributesClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { - this.shardSelector = shardSelector; - 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 APIlistVolumeAttributesClassRequest - */ - public APIlistVolumeAttributesClassRequest 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 APIlistVolumeAttributesClassRequest - */ - public APIlistVolumeAttributesClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; - return this; - } - - /** - * Build call for listVolumeAttributesClass - * @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 listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); - } - - /** - * Execute listVolumeAttributesClass request - * @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 -
- */ - public V1beta1VolumeAttributesClassList execute() throws ApiException { - ApiResponse localVarResp = listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * Execute listVolumeAttributesClass request with HTTP info returned - * @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 -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); - } - - /** - * Execute listVolumeAttributesClass 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 listVolumeAttributesClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); - } - } - - /** - * - * list or watch objects of kind VolumeAttributesClass - * @return APIlistVolumeAttributesClassRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIlistVolumeAttributesClassRequest listVolumeAttributesClass() { - return new APIlistVolumeAttributesClassRequest(); - } - private okhttp3.Call patchVolumeAttributesClassCall(@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/storage.k8s.io/v1beta1/volumeattributesclasses/{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 patchVolumeAttributesClassValidateBeforeCall(@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 patchVolumeAttributesClass(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttributesClass(Async)"); - } - - return patchVolumeAttributesClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - - } - - - 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(@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(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - 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(@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 APIpatchVolumeAttributesClassRequest - */ - public APIpatchVolumeAttributesClassRequest 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 APIpatchVolumeAttributesClassRequest - */ - public APIpatchVolumeAttributesClassRequest 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 APIpatchVolumeAttributesClassRequest - */ - public APIpatchVolumeAttributesClassRequest 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 APIpatchVolumeAttributesClassRequest - */ - public APIpatchVolumeAttributesClassRequest 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 APIpatchVolumeAttributesClassRequest - */ - public APIpatchVolumeAttributesClassRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchVolumeAttributesClass - * @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 patchVolumeAttributesClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - } - - /** - * Execute patchVolumeAttributesClass request - * @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 -
401 Unauthorized -
- */ - public V1beta1VolumeAttributesClass execute() throws ApiException { - ApiResponse localVarResp = patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * Execute patchVolumeAttributesClass request with HTTP info returned - * @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 -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - } - - /** - * Execute patchVolumeAttributesClass 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 patchVolumeAttributesClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - } - } - - /** - * - * partially update the specified VolumeAttributesClass - * @param name name of the VolumeAttributesClass (required) - * @param body (required) - * @return APIpatchVolumeAttributesClassRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public APIpatchVolumeAttributesClassRequest patchVolumeAttributesClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchVolumeAttributesClassRequest(name, body); - } - 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[] { }; - - // 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/storage.k8s.io/v1beta1/volumeattributesclasses/{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 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)"); - } - - return readVolumeAttributesClassCall(name, pretty, _callback); - - } - - - 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(@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(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreadVolumeAttributesClassRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nullable - private String pretty; - - private APIreadVolumeAttributesClassRequest(@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 APIreadVolumeAttributesClassRequest - */ - public APIreadVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Build call for readVolumeAttributesClass - * @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 readVolumeAttributesClassCall(name, pretty, _callback); - } - - /** - * Execute readVolumeAttributesClass request - * @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 -
- */ - public V1beta1VolumeAttributesClass execute() throws ApiException { - ApiResponse localVarResp = readVolumeAttributesClassWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * Execute readVolumeAttributesClass request with HTTP info returned - * @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 -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readVolumeAttributesClassWithHttpInfo(name, pretty); - } - - /** - * Execute readVolumeAttributesClass 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 readVolumeAttributesClassAsync(name, pretty, _callback); - } - } - - /** - * - * read the specified VolumeAttributesClass - * @param name name of the VolumeAttributesClass (required) - * @return APIreadVolumeAttributesClassRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIreadVolumeAttributesClassRequest readVolumeAttributesClass(@jakarta.annotation.Nonnull String name) { - return new APIreadVolumeAttributesClassRequest(name); - } - 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[] { }; - - // 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/storage.k8s.io/v1beta1/volumeattributesclasses/{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 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)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceVolumeAttributesClass(Async)"); - } - - return replaceVolumeAttributesClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - - } - - - 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(@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(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - 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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1VolumeAttributesClass 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 APIreplaceVolumeAttributesClassRequest - */ - public APIreplaceVolumeAttributesClassRequest 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 APIreplaceVolumeAttributesClassRequest - */ - public APIreplaceVolumeAttributesClassRequest 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 APIreplaceVolumeAttributesClassRequest - */ - public APIreplaceVolumeAttributesClassRequest 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 APIreplaceVolumeAttributesClassRequest - */ - public APIreplaceVolumeAttributesClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Build call for replaceVolumeAttributesClass - * @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 replaceVolumeAttributesClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - - /** - * Execute replaceVolumeAttributesClass request - * @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 -
401 Unauthorized -
- */ - public V1beta1VolumeAttributesClass execute() throws ApiException { - ApiResponse localVarResp = replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * Execute replaceVolumeAttributesClass request with HTTP info returned - * @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 -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - } - - /** - * Execute replaceVolumeAttributesClass 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 replaceVolumeAttributesClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - } - - /** - * - * replace the specified VolumeAttributesClass - * @param name name of the VolumeAttributesClass (required) - * @param body (required) - * @return APIreplaceVolumeAttributesClassRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - 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 9ab68f6359..0d3e6cbff3 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 @@ -99,7 +99,8 @@ private okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiExce final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1Api.java similarity index 54% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1Api.java index c222dea0b2..17175fdac3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1Api.java @@ -30,8 +30,8 @@ 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.V1alpha1ClusterTrustBundle; -import io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundleList; +import io.kubernetes.client.openapi.models.V1StorageVersionMigration; +import io.kubernetes.client.openapi.models.V1StorageVersionMigrationList; import java.lang.reflect.Type; import java.util.ArrayList; @@ -39,16 +39,16 @@ import java.util.List; import java.util.Map; -public class CertificatesV1alpha1Api { +public class StoragemigrationV1Api { private ApiClient localVarApiClient; private int localHostIndex; private String localCustomBaseUrl; - public CertificatesV1alpha1Api() { + public StoragemigrationV1Api() { this(Configuration.getDefaultApiClient()); } - public CertificatesV1alpha1Api(ApiClient apiClient) { + public StoragemigrationV1Api(ApiClient apiClient) { this.localVarApiClient = apiClient; } @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - 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 { + private okhttp3.Call createStorageVersionMigrationCall(@jakarta.annotation.Nonnull V1StorageVersionMigration body, @jakarta.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[] { }; @@ -93,7 +93,7 @@ private okhttp3.Call createClusterTrustBundleCall(@jakarta.annotation.Nonnull V1 Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles"; + String localVarPath = "/apis/storagemigration.k8s.io/v1/storageversionmigrations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -141,34 +141,34 @@ private okhttp3.Call createClusterTrustBundleCall(@jakarta.annotation.Nonnull V1 } @SuppressWarnings("rawtypes") - 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 { + private okhttp3.Call createStorageVersionMigrationValidateBeforeCall(@jakarta.annotation.Nonnull V1StorageVersionMigration body, @jakarta.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)"); + throw new ApiException("Missing the required parameter 'body' when calling createStorageVersionMigration(Async)"); } - return createClusterTrustBundleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createStorageVersionMigrationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - 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(); + private ApiResponse createStorageVersionMigrationWithHttpInfo(@jakarta.annotation.Nonnull V1StorageVersionMigration 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 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 { + private okhttp3.Call createStorageVersionMigrationAsync(@jakarta.annotation.Nonnull V1StorageVersionMigration body, @jakarta.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(); + okhttp3.Call localVarCall = createStorageVersionMigrationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIcreateClusterTrustBundleRequest { + public class APIcreateStorageVersionMigrationRequest { @jakarta.annotation.Nonnull - private final V1alpha1ClusterTrustBundle body; + private final V1StorageVersionMigration body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -178,16 +178,16 @@ public class APIcreateClusterTrustBundleRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateClusterTrustBundleRequest(@jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body) { + private APIcreateStorageVersionMigrationRequest(@jakarta.annotation.Nonnull V1StorageVersionMigration 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 + * @return APIcreateStorageVersionMigrationRequest */ - public APIcreateClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIcreateStorageVersionMigrationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -195,9 +195,9 @@ public APIcreateClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable St /** * 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 + * @return APIcreateStorageVersionMigrationRequest */ - public APIcreateClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIcreateStorageVersionMigrationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -205,9 +205,9 @@ public APIcreateClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable St /** * 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 + * @return APIcreateStorageVersionMigrationRequest */ - public APIcreateClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIcreateStorageVersionMigrationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -215,15 +215,15 @@ public APIcreateClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nulla /** * 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 + * @return APIcreateStorageVersionMigrationRequest */ - public APIcreateClusterTrustBundleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIcreateStorageVersionMigrationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createClusterTrustBundle + * Build call for createStorageVersionMigration * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -238,12 +238,12 @@ public APIcreateClusterTrustBundleRequest fieldValidation(@jakarta.annotation.Nu */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createClusterTrustBundleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createStorageVersionMigrationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createClusterTrustBundle request - * @return V1alpha1ClusterTrustBundle + * Execute createStorageVersionMigration request + * @return V1StorageVersionMigration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -255,14 +255,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha1ClusterTrustBundle execute() throws ApiException { - ApiResponse localVarResp = createClusterTrustBundleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1StorageVersionMigration execute() throws ApiException { + ApiResponse localVarResp = createStorageVersionMigrationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createClusterTrustBundle request with HTTP info returned - * @return ApiResponse<V1alpha1ClusterTrustBundle> + * Execute createStorageVersionMigration request with HTTP info returned + * @return ApiResponse<V1StorageVersionMigration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -274,12 +274,12 @@ public V1alpha1ClusterTrustBundle execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createClusterTrustBundleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createStorageVersionMigrationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createClusterTrustBundle request (asynchronously) + * Execute createStorageVersionMigration 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 @@ -293,16 +293,16 @@ public ApiResponse executeWithHttpInfo() throws ApiE 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createClusterTrustBundleAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createStorageVersionMigrationAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create a ClusterTrustBundle + * create a StorageVersionMigration * @param body (required) - * @return APIcreateClusterTrustBundleRequest + * @return APIcreateStorageVersionMigrationRequest * @http.response.details @@ -313,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback _
Response Details
401 Unauthorized -
*/ - public APIcreateClusterTrustBundleRequest createClusterTrustBundle(@jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body) { - return new APIcreateClusterTrustBundleRequest(body); + public APIcreateStorageVersionMigrationRequest createStorageVersionMigration(@jakarta.annotation.Nonnull V1StorageVersionMigration body) { + return new APIcreateStorageVersionMigrationRequest(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 { + 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -333,8 +333,7 @@ private okhttp3.Call deleteClusterTrustBundleCall(@jakarta.annotation.Nonnull St Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/storagemigration.k8s.io/v1/storageversionmigrations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -346,10 +345,18 @@ private okhttp3.Call deleteClusterTrustBundleCall(@jakarta.annotation.Nonnull St 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)); } @@ -358,6 +365,14 @@ private okhttp3.Call deleteClusterTrustBundleCall(@jakarta.annotation.Nonnull St 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)); } @@ -366,6 +381,26 @@ private okhttp3.Call deleteClusterTrustBundleCall(@jakarta.annotation.Nonnull St 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 (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -390,79 +425,109 @@ private okhttp3.Call deleteClusterTrustBundleCall(@jakarta.annotation.Nonnull St } @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 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 String shardSelector, @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, shardSelector, timeoutSeconds, 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); + 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 String shardSelector, @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, shardSelector, timeoutSeconds, 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 { + 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteClusterTrustBundleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionStorageVersionMigrationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteClusterTrustBundleRequest { - @jakarta.annotation.Nonnull - private final String name; + 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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name) { - this.name = name; + private APIdeleteCollectionStorageVersionMigrationRequest() { } /** * 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 + * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionStorageVersionMigrationRequest 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 APIdeleteCollectionStorageVersionMigrationRequest + */ + public APIdeleteCollectionStorageVersionMigrationRequest _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 APIdeleteClusterTrustBundleRequest + * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionStorageVersionMigrationRequest 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 APIdeleteCollectionStorageVersionMigrationRequest + */ + public APIdeleteCollectionStorageVersionMigrationRequest 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 APIdeleteClusterTrustBundleRequest + * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteClusterTrustBundleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionStorageVersionMigrationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -470,19 +535,39 @@ public APIdeleteClusterTrustBundleRequest gracePeriodSeconds(@jakarta.annotation /** * 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 + * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteClusterTrustBundleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionStorageVersionMigrationRequest 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 APIdeleteCollectionStorageVersionMigrationRequest + */ + public APIdeleteCollectionStorageVersionMigrationRequest 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 APIdeleteCollectionStorageVersionMigrationRequest + */ + public APIdeleteCollectionStorageVersionMigrationRequest 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 APIdeleteClusterTrustBundleRequest + * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteClusterTrustBundleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionStorageVersionMigrationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -490,25 +575,75 @@ public APIdeleteClusterTrustBundleRequest orphanDependents(@jakarta.annotation.N /** * 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 + * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteClusterTrustBundleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteCollectionStorageVersionMigrationRequest 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 APIdeleteCollectionStorageVersionMigrationRequest + */ + public APIdeleteCollectionStorageVersionMigrationRequest 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 APIdeleteCollectionStorageVersionMigrationRequest + */ + public APIdeleteCollectionStorageVersionMigrationRequest 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 APIdeleteCollectionStorageVersionMigrationRequest + */ + public APIdeleteCollectionStorageVersionMigrationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionStorageVersionMigrationRequest + */ + public APIdeleteCollectionStorageVersionMigrationRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIdeleteCollectionStorageVersionMigrationRequest + */ + public APIdeleteCollectionStorageVersionMigrationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + /** * Set body * @param body (optional) - * @return APIdeleteClusterTrustBundleRequest + * @return APIdeleteCollectionStorageVersionMigrationRequest */ - public APIdeleteClusterTrustBundleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteCollectionStorageVersionMigrationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteClusterTrustBundle + * Build call for deleteCollectionStorageVersionMigration * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -517,16 +652,15 @@ public APIdeleteClusterTrustBundleRequest body(@jakarta.annotation.Nullable V1De 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); + return deleteCollectionStorageVersionMigrationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** - * Execute deleteClusterTrustBundle request + * Execute deleteCollectionStorageVersionMigration request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -534,17 +668,16 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { 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); + ApiResponse localVarResp = deleteCollectionStorageVersionMigrationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteClusterTrustBundle request with HTTP info returned + * Execute deleteCollectionStorageVersionMigration 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 @@ -552,16 +685,15 @@ public V1Status execute() throws ApiException { 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); + return deleteCollectionStorageVersionMigrationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** - * Execute deleteClusterTrustBundle request (asynchronously) + * Execute deleteCollectionStorageVersionMigration 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 @@ -570,33 +702,30 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 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); + return deleteCollectionStorageVersionMigrationAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } /** * - * delete a ClusterTrustBundle - * @param name name of the ClusterTrustBundle (required) - * @return APIdeleteClusterTrustBundleRequest + * delete collection of StorageVersionMigration + * @return APIdeleteCollectionStorageVersionMigrationRequest * @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); + public APIdeleteCollectionStorageVersionMigrationRequest deleteCollectionStorageVersionMigration() { + return new APIdeleteCollectionStorageVersionMigrationRequest(); } - 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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[] { }; @@ -613,7 +742,8 @@ private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation. Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles"; + String localVarPath = "/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -625,18 +755,10 @@ private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation. 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)); } @@ -645,14 +767,6 @@ private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation. 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)); } @@ -661,26 +775,6 @@ private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation. 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 (shardSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -705,109 +799,79 @@ private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation. } @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 String shardSelector, @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, shardSelector, timeoutSeconds, body, _callback); + 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)"); + } + + return deleteStorageVersionMigrationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, 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 String shardSelector, @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, shardSelector, timeoutSeconds, body, null); + 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 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteStorageVersionMigrationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionClusterTrustBundleRequest { + public class APIdeleteStorageVersionMigrationRequest { + @jakarta.annotation.Nonnull + private final String name; @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 String shardSelector; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionClusterTrustBundleRequest() { + private APIdeleteStorageVersionMigrationRequest(@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 APIdeleteCollectionClusterTrustBundleRequest + * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteCollectionClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteStorageVersionMigrationRequest 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 + * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteCollectionClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteStorageVersionMigrationRequest 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 + * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteCollectionClusterTrustBundleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteStorageVersionMigrationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -815,39 +879,19 @@ public APIdeleteCollectionClusterTrustBundleRequest gracePeriodSeconds(@jakarta. /** * 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 + * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteCollectionClusterTrustBundleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteStorageVersionMigrationRequest 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 + * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteCollectionClusterTrustBundleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteStorageVersionMigrationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -855,92 +899,43 @@ public APIdeleteCollectionClusterTrustBundleRequest orphanDependents(@jakarta.an /** * 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 + * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteCollectionClusterTrustBundleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteStorageVersionMigrationRequest 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 + * Set body + * @param body (optional) + * @return APIdeleteStorageVersionMigrationRequest */ - public APIdeleteCollectionClusterTrustBundleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; + public APIdeleteStorageVersionMigrationRequest 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 APIdeleteCollectionClusterTrustBundleRequest + * Build call for deleteStorageVersionMigration + * @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 APIdeleteCollectionClusterTrustBundleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteStorageVersionMigrationCall(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 APIdeleteCollectionClusterTrustBundleRequest - */ - public APIdeleteCollectionClusterTrustBundleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set shardSelector - * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIdeleteCollectionClusterTrustBundleRequest - */ - public APIdeleteCollectionClusterTrustBundleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { - this.shardSelector = shardSelector; - 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, shardSelector, timeoutSeconds, body, _callback); - } - - /** - * Execute deleteCollectionClusterTrustBundle request + * Execute deleteStorageVersionMigration request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -948,16 +943,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 202 Accepted - 401 Unauthorized - */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + ApiResponse localVarResp = deleteStorageVersionMigrationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteCollectionClusterTrustBundle request with HTTP info returned + * Execute deleteStorageVersionMigration 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 @@ -965,15 +961,16 @@ public V1Status execute() throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 202 Accepted - 401 Unauthorized - */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return deleteStorageVersionMigrationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteCollectionClusterTrustBundle request (asynchronously) + * Execute deleteStorageVersionMigration 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 @@ -982,28 +979,31 @@ public ApiResponse executeWithHttpInfo() throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 202 Accepted - 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, shardSelector, timeoutSeconds, body, _callback); + return deleteStorageVersionMigrationAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete collection of ClusterTrustBundle - * @return APIdeleteCollectionClusterTrustBundleRequest + * delete a StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @return APIdeleteStorageVersionMigrationRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteCollectionClusterTrustBundleRequest deleteCollectionClusterTrustBundle() { - return new APIdeleteCollectionClusterTrustBundleRequest(); + public APIdeleteStorageVersionMigrationRequest deleteStorageVersionMigration(@jakarta.annotation.Nonnull String name) { + return new APIdeleteStorageVersionMigrationRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { String basePath = null; @@ -1022,7 +1022,7 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1alpha1/"; + String localVarPath = "/apis/storagemigration.k8s.io/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1161,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1178,7 +1178,7 @@ private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable Str Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles"; + String localVarPath = "/apis/storagemigration.k8s.io/v1/storageversionmigrations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1238,10 +1238,837 @@ private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable Str "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", + "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 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); + + } + + + 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + 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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + 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 String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistStorageVersionMigrationRequest() { + } + + /** + * 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 APIlistStorageVersionMigrationRequest + */ + public APIlistStorageVersionMigrationRequest 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 APIlistStorageVersionMigrationRequest + */ + public APIlistStorageVersionMigrationRequest 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 APIlistStorageVersionMigrationRequest + */ + public APIlistStorageVersionMigrationRequest _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 APIlistStorageVersionMigrationRequest + */ + public APIlistStorageVersionMigrationRequest 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 APIlistStorageVersionMigrationRequest + */ + public APIlistStorageVersionMigrationRequest 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 APIlistStorageVersionMigrationRequest + */ + public APIlistStorageVersionMigrationRequest 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 APIlistStorageVersionMigrationRequest + */ + public APIlistStorageVersionMigrationRequest 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 APIlistStorageVersionMigrationRequest + */ + public APIlistStorageVersionMigrationRequest 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 APIlistStorageVersionMigrationRequest + */ + public APIlistStorageVersionMigrationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistStorageVersionMigrationRequest + */ + public APIlistStorageVersionMigrationRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + 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 APIlistStorageVersionMigrationRequest + */ + public APIlistStorageVersionMigrationRequest 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 APIlistStorageVersionMigrationRequest + */ + public APIlistStorageVersionMigrationRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listStorageVersionMigration + * @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 listStorageVersionMigrationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listStorageVersionMigration request + * @return V1StorageVersionMigrationList + * @throws ApiException If fail to call the API, 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 V1StorageVersionMigrationList execute() throws ApiException { + ApiResponse localVarResp = listStorageVersionMigrationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listStorageVersionMigration request with HTTP info returned + * @return ApiResponse<V1StorageVersionMigrationList> + * @throws ApiException If fail to call the API, 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 listStorageVersionMigrationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listStorageVersionMigration 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 listStorageVersionMigrationAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind StorageVersionMigration + * @return APIlistStorageVersionMigrationRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistStorageVersionMigrationRequest listStorageVersionMigration() { + return new APIlistStorageVersionMigrationRequest(); + } + private okhttp3.Call patchStorageVersionMigrationCall(@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/storagemigration.k8s.io/v1/storageversionmigrations/{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 patchStorageVersionMigrationValidateBeforeCall(@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 patchStorageVersionMigration(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchStorageVersionMigration(Async)"); + } + + return patchStorageVersionMigrationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + 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(@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(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + 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(@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 APIpatchStorageVersionMigrationRequest + */ + public APIpatchStorageVersionMigrationRequest 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 APIpatchStorageVersionMigrationRequest + */ + public APIpatchStorageVersionMigrationRequest 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 APIpatchStorageVersionMigrationRequest + */ + public APIpatchStorageVersionMigrationRequest 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 APIpatchStorageVersionMigrationRequest + */ + public APIpatchStorageVersionMigrationRequest 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 APIpatchStorageVersionMigrationRequest + */ + public APIpatchStorageVersionMigrationRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchStorageVersionMigration + * @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 patchStorageVersionMigrationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchStorageVersionMigration request + * @return V1StorageVersionMigration + * @throws ApiException If fail to call the API, 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 V1StorageVersionMigration execute() throws ApiException { + ApiResponse localVarResp = patchStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchStorageVersionMigration request with HTTP info returned + * @return ApiResponse<V1StorageVersionMigration> + * @throws ApiException If fail to call the API, 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 patchStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchStorageVersionMigration 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 patchStorageVersionMigrationAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @return APIpatchStorageVersionMigrationRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchStorageVersionMigrationRequest patchStorageVersionMigration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchStorageVersionMigrationRequest(name, body); + } + 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[] { }; + + // 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/storagemigration.k8s.io/v1/storageversionmigrations/{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 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)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchStorageVersionMigrationStatus(Async)"); + } + + return patchStorageVersionMigrationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + 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(@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(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + 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(@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 APIpatchStorageVersionMigrationStatusRequest + */ + public APIpatchStorageVersionMigrationStatusRequest 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 APIpatchStorageVersionMigrationStatusRequest + */ + public APIpatchStorageVersionMigrationStatusRequest 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 APIpatchStorageVersionMigrationStatusRequest + */ + public APIpatchStorageVersionMigrationStatusRequest 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 APIpatchStorageVersionMigrationStatusRequest + */ + public APIpatchStorageVersionMigrationStatusRequest 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 APIpatchStorageVersionMigrationStatusRequest + */ + public APIpatchStorageVersionMigrationStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchStorageVersionMigrationStatus + * @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 patchStorageVersionMigrationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchStorageVersionMigrationStatus request + * @return V1StorageVersionMigration + * @throws ApiException If fail to call the API, 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 V1StorageVersionMigration execute() throws ApiException { + ApiResponse localVarResp = patchStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchStorageVersionMigrationStatus request with HTTP info returned + * @return ApiResponse<V1StorageVersionMigration> + * @throws ApiException If fail to call the API, 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 patchStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchStorageVersionMigrationStatus 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 patchStorageVersionMigrationStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @return APIpatchStorageVersionMigrationStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchStorageVersionMigrationStatusRequest patchStorageVersionMigrationStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchStorageVersionMigrationStatusRequest(name, body); + } + 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[] { }; + + // 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/storagemigration.k8s.io/v1/storageversionmigrations/{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) { @@ -1260,177 +2087,53 @@ private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable Str } @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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, _callback); + 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)"); + } + + return readStorageVersionMigrationCall(name, pretty, _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 String shardSelector, @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, shardSelector, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 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 String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, 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 = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readStorageVersionMigrationValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistClusterTrustBundleRequest { + public class APIreadStorageVersionMigrationRequest { + @jakarta.annotation.Nonnull + private final String name; @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 String shardSelector; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - private APIlistClusterTrustBundleRequest() { + private APIreadStorageVersionMigrationRequest(@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 APIlistClusterTrustBundleRequest + * @return APIreadStorageVersionMigrationRequest */ - public APIlistClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadStorageVersionMigrationRequest 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 shardSelector - * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - * @return APIlistClusterTrustBundleRequest - */ - public APIlistClusterTrustBundleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { - this.shardSelector = shardSelector; - 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 + * Build call for readStorageVersionMigration * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1443,12 +2146,12 @@ public APIlistClusterTrustBundleRequest watch(@jakarta.annotation.Nullable Boole */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + return readStorageVersionMigrationCall(name, pretty, _callback); } /** - * Execute listClusterTrustBundle request - * @return V1alpha1ClusterTrustBundleList + * Execute readStorageVersionMigration request + * @return V1StorageVersionMigration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1458,14 +2161,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha1ClusterTrustBundleList execute() throws ApiException { - ApiResponse localVarResp = listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public V1StorageVersionMigration execute() throws ApiException { + ApiResponse localVarResp = readStorageVersionMigrationWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute listClusterTrustBundle request with HTTP info returned - * @return ApiResponse<V1alpha1ClusterTrustBundleList> + * Execute readStorageVersionMigration request with HTTP info returned + * @return ApiResponse<V1StorageVersionMigration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1475,12 +2178,12 @@ public V1alpha1ClusterTrustBundleList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readStorageVersionMigrationWithHttpInfo(name, pretty); } /** - * Execute listClusterTrustBundle request (asynchronously) + * Execute readStorageVersionMigration 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 @@ -1492,15 +2195,16 @@ public ApiResponse executeWithHttpInfo() throws 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listClusterTrustBundleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readStorageVersionMigrationAsync(name, pretty, _callback); } } /** * - * list or watch objects of kind ClusterTrustBundle - * @return APIlistClusterTrustBundleRequest + * read the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @return APIreadStorageVersionMigrationRequest * @http.response.details @@ -1509,10 +2213,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIlistClusterTrustBundleRequest listClusterTrustBundle() { - return new APIlistClusterTrustBundleRequest(); + public APIreadStorageVersionMigrationRequest readStorageVersionMigration(@jakarta.annotation.Nonnull String name) { + return new APIreadStorageVersionMigrationRequest(name); } - 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 { + 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[] { }; @@ -1526,10 +2230,10 @@ private okhttp3.Call patchClusterTrustBundleCall(@jakarta.annotation.Nonnull Str basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}" + String localVarPath = "/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1542,22 +2246,6 @@ private okhttp3.Call patchClusterTrustBundleCall(@jakarta.annotation.Nonnull Str 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", @@ -1570,7 +2258,6 @@ private okhttp3.Call patchClusterTrustBundleCall(@jakarta.annotation.Nonnull Str } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1578,113 +2265,57 @@ private okhttp3.Call patchClusterTrustBundleCall(@jakarta.annotation.Nonnull Str } 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 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 { + 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 patchClusterTrustBundle(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readStorageVersionMigrationStatus(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); + return readStorageVersionMigrationStatusCall(name, pretty, _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(); + 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 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 { + private okhttp3.Call readStorageVersionMigrationStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readStorageVersionMigrationStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchClusterTrustBundleRequest { + public class APIreadStorageVersionMigrationStatusRequest { @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) { + private APIreadStorageVersionMigrationStatusRequest(@jakarta.annotation.Nonnull String name) { 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 + * @return APIreadStorageVersionMigrationStatusRequest */ - public APIpatchClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadStorageVersionMigrationStatusRequest 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 + * Build call for readStorageVersionMigrationStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1693,51 +2324,48 @@ public APIpatchClusterTrustBundleRequest force(@jakarta.annotation.Nullable Bool 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); + return readStorageVersionMigrationStatusCall(name, pretty, _callback); } /** - * Execute patchClusterTrustBundle request - * @return V1alpha1ClusterTrustBundle + * Execute readStorageVersionMigrationStatus request + * @return V1StorageVersionMigration * @throws ApiException If fail to call the API, 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 V1alpha1ClusterTrustBundle execute() throws ApiException { - ApiResponse localVarResp = patchClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1StorageVersionMigration execute() throws ApiException { + ApiResponse localVarResp = readStorageVersionMigrationStatusWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchClusterTrustBundle request with HTTP info returned - * @return ApiResponse<V1alpha1ClusterTrustBundle> + * Execute readStorageVersionMigrationStatus request with HTTP info returned + * @return ApiResponse<V1StorageVersionMigration> * @throws ApiException If fail to call the API, 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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readStorageVersionMigrationStatusWithHttpInfo(name, pretty); } /** - * Execute patchClusterTrustBundle request (asynchronously) + * Execute readStorageVersionMigrationStatus 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 @@ -1746,34 +2374,31 @@ public ApiResponse executeWithHttpInfo() throws ApiE 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); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readStorageVersionMigrationStatusAsync(name, pretty, _callback); } } /** * - * partially update the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle (required) - * @param body (required) - * @return APIpatchClusterTrustBundleRequest + * read status of the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @return APIreadStorageVersionMigrationStatusRequest * @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); + public APIreadStorageVersionMigrationStatusRequest readStorageVersionMigrationStatus(@jakarta.annotation.Nonnull String name) { + return new APIreadStorageVersionMigrationStatusRequest(name); } - private okhttp3.Call readClusterTrustBundleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionMigrationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageVersionMigration body, @jakarta.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[] { }; @@ -1787,10 +2412,10 @@ private okhttp3.Call readClusterTrustBundleCall(@jakarta.annotation.Nonnull Stri basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}" + String localVarPath = "/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1803,6 +2428,18 @@ private okhttp3.Call readClusterTrustBundleCall(@jakarta.annotation.Nonnull Stri 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", @@ -1815,6 +2452,7 @@ private okhttp3.Call readClusterTrustBundleCall(@jakarta.annotation.Nonnull Stri } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1822,57 +2460,101 @@ private okhttp3.Call readClusterTrustBundleCall(@jakarta.annotation.Nonnull Stri } 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 readClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionMigrationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageVersionMigration body, @jakarta.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 readClusterTrustBundle(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceStorageVersionMigration(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceStorageVersionMigration(Async)"); } - return readClusterTrustBundleCall(name, pretty, _callback); + return replaceStorageVersionMigrationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _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(); + private ApiResponse replaceStorageVersionMigrationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageVersionMigration 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 readClusterTrustBundleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceStorageVersionMigrationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageVersionMigration body, @jakarta.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 = readClusterTrustBundleValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceStorageVersionMigrationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadClusterTrustBundleRequest { + public class APIreplaceStorageVersionMigrationRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final V1StorageVersionMigration body; @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 APIreadClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name) { + private APIreplaceStorageVersionMigrationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageVersionMigration 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 APIreadClusterTrustBundleRequest + * @return APIreplaceStorageVersionMigrationRequest */ - public APIreadClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceStorageVersionMigrationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readClusterTrustBundle + * 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 APIreplaceStorageVersionMigrationRequest + */ + public APIreplaceStorageVersionMigrationRequest 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 APIreplaceStorageVersionMigrationRequest + */ + public APIreplaceStorageVersionMigrationRequest 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 APIreplaceStorageVersionMigrationRequest + */ + public APIreplaceStorageVersionMigrationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceStorageVersionMigration * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1881,48 +2563,51 @@ public APIreadClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable Stri Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readClusterTrustBundleCall(name, pretty, _callback); + return replaceStorageVersionMigrationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readClusterTrustBundle request - * @return V1alpha1ClusterTrustBundle + * Execute replaceStorageVersionMigration request + * @return V1StorageVersionMigration * @throws ApiException If fail to call the API, 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 V1alpha1ClusterTrustBundle execute() throws ApiException { - ApiResponse localVarResp = readClusterTrustBundleWithHttpInfo(name, pretty); + public V1StorageVersionMigration execute() throws ApiException { + ApiResponse localVarResp = replaceStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readClusterTrustBundle request with HTTP info returned - * @return ApiResponse<V1alpha1ClusterTrustBundle> + * Execute replaceStorageVersionMigration request with HTTP info returned + * @return ApiResponse<V1StorageVersionMigration> * @throws ApiException If fail to call the API, 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 readClusterTrustBundleWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readClusterTrustBundle request (asynchronously) + * Execute replaceStorageVersionMigration 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 @@ -1931,31 +2616,34 @@ public ApiResponse executeWithHttpInfo() throws ApiE Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readClusterTrustBundleAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceStorageVersionMigrationAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle (required) - * @return APIreadClusterTrustBundleRequest + * replace the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) + * @param body (required) + * @return APIreplaceStorageVersionMigrationRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadClusterTrustBundleRequest readClusterTrustBundle(@jakarta.annotation.Nonnull String name) { - return new APIreadClusterTrustBundleRequest(name); + public APIreplaceStorageVersionMigrationRequest replaceStorageVersionMigration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageVersionMigration body) { + return new APIreplaceStorageVersionMigrationRequest(name, body); } - 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 { + private okhttp3.Call replaceStorageVersionMigrationStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageVersionMigration body, @jakarta.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[] { }; @@ -1972,7 +2660,7 @@ private okhttp3.Call replaceClusterTrustBundleCall(@jakarta.annotation.Nonnull S Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}" + String localVarPath = "/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2021,41 +2709,41 @@ private okhttp3.Call replaceClusterTrustBundleCall(@jakarta.annotation.Nonnull S } @SuppressWarnings("rawtypes") - 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 { + private okhttp3.Call replaceStorageVersionMigrationStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageVersionMigration body, @jakarta.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)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceStorageVersionMigrationStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceClusterTrustBundle(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceStorageVersionMigrationStatus(Async)"); } - return replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceStorageVersionMigrationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - 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(); + private ApiResponse replaceStorageVersionMigrationStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageVersionMigration 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 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 { + private okhttp3.Call replaceStorageVersionMigrationStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageVersionMigration body, @jakarta.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(); + okhttp3.Call localVarCall = replaceStorageVersionMigrationStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceClusterTrustBundleRequest { + public class APIreplaceStorageVersionMigrationStatusRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1alpha1ClusterTrustBundle body; + private final V1StorageVersionMigration body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -2065,7 +2753,7 @@ public class APIreplaceClusterTrustBundleRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body) { + private APIreplaceStorageVersionMigrationStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageVersionMigration body) { this.name = name; this.body = body; } @@ -2073,9 +2761,9 @@ private APIreplaceClusterTrustBundleRequest(@jakarta.annotation.Nonnull String n /** * 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 + * @return APIreplaceStorageVersionMigrationStatusRequest */ - public APIreplaceClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceStorageVersionMigrationStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2083,9 +2771,9 @@ public APIreplaceClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable S /** * 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 + * @return APIreplaceStorageVersionMigrationStatusRequest */ - public APIreplaceClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceStorageVersionMigrationStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2093,9 +2781,9 @@ public APIreplaceClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable S /** * 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 + * @return APIreplaceStorageVersionMigrationStatusRequest */ - public APIreplaceClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceStorageVersionMigrationStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2103,15 +2791,15 @@ public APIreplaceClusterTrustBundleRequest fieldManager(@jakarta.annotation.Null /** * 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 + * @return APIreplaceStorageVersionMigrationStatusRequest */ - public APIreplaceClusterTrustBundleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceStorageVersionMigrationStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceClusterTrustBundle + * Build call for replaceStorageVersionMigrationStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2125,12 +2813,12 @@ public APIreplaceClusterTrustBundleRequest fieldValidation(@jakarta.annotation.N */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceStorageVersionMigrationStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceClusterTrustBundle request - * @return V1alpha1ClusterTrustBundle + * Execute replaceStorageVersionMigrationStatus request + * @return V1StorageVersionMigration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2141,14 +2829,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha1ClusterTrustBundle execute() throws ApiException { - ApiResponse localVarResp = replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1StorageVersionMigration execute() throws ApiException { + ApiResponse localVarResp = replaceStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceClusterTrustBundle request with HTTP info returned - * @return ApiResponse<V1alpha1ClusterTrustBundle> + * Execute replaceStorageVersionMigrationStatus request with HTTP info returned + * @return ApiResponse<V1StorageVersionMigration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2159,12 +2847,12 @@ public V1alpha1ClusterTrustBundle execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceClusterTrustBundle request (asynchronously) + * Execute replaceStorageVersionMigrationStatus 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 @@ -2177,17 +2865,17 @@ public ApiResponse executeWithHttpInfo() throws ApiE 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceClusterTrustBundleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceStorageVersionMigrationStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle (required) + * replace status of the specified StorageVersionMigration + * @param name name of the StorageVersionMigration (required) * @param body (required) - * @return APIreplaceClusterTrustBundleRequest + * @return APIreplaceStorageVersionMigrationStatusRequest * @http.response.details @@ -2197,7 +2885,7 @@ public okhttp3.Call executeAsync(final ApiCallback _
Response Details
401 Unauthorized -
*/ - public APIreplaceClusterTrustBundleRequest replaceClusterTrustBundle(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body) { - return new APIreplaceClusterTrustBundleRequest(name, body); + public APIreplaceStorageVersionMigrationStatusRequest replaceStorageVersionMigrationStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1StorageVersionMigration body) { + return new APIreplaceStorageVersionMigrationStatusRequest(name, body); } } 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 ecb07abb51..36826cadeb 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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 9cbbbbae76..fe0993add0 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,7 +19,7 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public interface Authentication { /** * Apply authentication settings to header and query params. 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 e3cf2be64e..cb17b20c09 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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 dc0734cf2a..84ae708ed0 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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 027e513ba7..5d7070aee7 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class AdmissionregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 6224701231..7ed2712549 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class AdmissionregistrationV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) 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 c92f8534b0..9fdce34e26 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ApiextensionsV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 dd3104d19d..5efe1af3ad 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ApiextensionsV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) 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 06fa34853a..a7d4e5b001 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ApiregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 2d0c0188ce..e4130d2a98 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class AuthenticationV1TokenRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 1c5d39db62..c207fc9c4c 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 @@ -50,7 +50,7 @@ * 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. Deprecated: This API is deprecated in v1.33+.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class CoreV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) 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 e074785d25..a17415c30f 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class CoreV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) 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 ca381dcba6..56087832e4 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 @@ -54,7 +54,7 @@ * EventList is a list of events. */ @ApiModel(description = "EventList is a list of events.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class CoreV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 9bc553ffc1..bc36e5ce49 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class CoreV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java index 0e357ae279..982ec29a79 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class CoreV1ResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 8ef5f0e190..ab62f31d49 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class DiscoveryV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) 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 3d78b7b5dc..9a8c764929 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class EventsV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) 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 0e25bae2b7..ccf01df6c4 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class EventsV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 37d6d0f184..ba6fc17838 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class EventsV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) 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 0893de97da..0248d6c9e7 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class FlowcontrolV1Subject { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) 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 434f161ede..ff1c058061 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class RbacV1Subject { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -81,11 +81,11 @@ public RbacV1Subject apiGroup(@jakarta.annotation.Nullable String apiGroup) { } /** - * 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. + * 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.") + @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; } @@ -101,11 +101,11 @@ public RbacV1Subject kind(@jakarta.annotation.Nonnull String kind) { } /** - * 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. + * 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.") + @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; } @@ -121,11 +121,11 @@ public RbacV1Subject name(@jakarta.annotation.Nonnull String name) { } /** - * Name of the object being referenced. + * name of the object being referenced. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name of the object being referenced.") + @ApiModelProperty(required = true, value = "name of the object being referenced.") public String getName() { return name; } @@ -141,11 +141,11 @@ public RbacV1Subject namespace(@jakarta.annotation.Nullable String namespace) { } /** - * 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. + * 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.") + @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; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java index 0fff5d83e4..b16ef92f85 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java @@ -53,7 +53,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ResourceV1ResourceClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -72,7 +72,7 @@ public class ResourceV1ResourceClaim implements io.kubernetes.client.common.Kube public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1ResourceClaimSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public ResourceV1ResourceClaim spec(@jakarta.annotation.Nonnull V1ResourceClaimSpec spec) { + public ResourceV1ResourceClaim spec(@jakarta.annotation.Nullable V1ResourceClaimSpec spec) { this.spec = spec; return this; } @@ -152,13 +152,13 @@ public ResourceV1ResourceClaim spec(@jakarta.annotation.Nonnull V1ResourceClaimS * Get spec * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ResourceClaimSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1ResourceClaimSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1ResourceClaimSpec spec) { this.spec = spec; } @@ -238,7 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec")); + openapiRequiredFields = new HashSet(0); } /** @@ -261,13 +261,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ResourceV1ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ResourceV1ResourceClaim.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -279,8 +272,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the required field `spec` - V1ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { V1ResourceClaimStatus.validateJsonElement(jsonObj.get("status")); 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 d6f0b282df..b6a75c5437 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class StorageV1TokenRequest { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; @SerializedName(SERIALIZED_NAME_AUDIENCE) 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 22e0db08dc..0a6c0b2960 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIGroup { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 703f10efe5..8578ee83b2 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIGroupList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 7cf3955232..91d10b5fd1 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIResource { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) 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 97f9b90df3..243cf96e64 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIResourceList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 a6926b5197..9ac812bcb3 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIService implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 50a2ec4c4e..2f171a87a1 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIServiceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 9bcb57c204..906f4ca069 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 7fcef29452..296a70b6ad 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIServiceSpec { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) 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 f9d4497160..30ec64fd58 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) 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 1a1d449196..01623af104 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIVersions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 834df4f0b2..d2a747b1b9 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AWSElasticBlockStoreVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 2bb3b72159..5c022a2248 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Affinity { public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; @SerializedName(SERIALIZED_NAME_NODE_AFFINITY) 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 a7ab9e27d2..e949f730a9 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AggregationRule { public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; @SerializedName(SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS) @@ -77,11 +77,11 @@ public V1AggregationRule addClusterRoleSelectorsItem(V1LabelSelector clusterRole } /** - * 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 + * 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") + @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; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java index 0546d1bf9a..e6a91eacfa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java @@ -54,7 +54,7 @@ * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. */ @ApiModel(description = "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java index d97c911076..39172163d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AllocationResult { public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) 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 696272857b..cf9cf120c8 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AppArmorProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfiguration.java index ead4f53ed4..37c83e4162 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfiguration.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ApplyConfiguration { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) 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 ad5fe349bf..0ce6299786 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AttachedVolume { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) 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 42fcf86cae..1865383989 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AuditAnnotation { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) 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 8955fdbb37..4f58a7a02a 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AzureDiskVolumeSource { public static final String SERIALIZED_NAME_CACHING_MODE = "cachingMode"; @SerializedName(SERIALIZED_NAME_CACHING_MODE) 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 c9d1c12eca..93243af48f 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AzureFilePersistentVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) 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 3d5a321fba..20c848f1f9 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AzureFileVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) 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 89f86436f9..dfbac32ae8 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Binding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ac6d85b72a..eae343e8ec 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1BoundObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -101,11 +101,11 @@ public V1BoundObjectReference kind(@jakarta.annotation.Nullable String kind) { } /** - * kind of the referent. Valid kinds are 'Pod' and 'Secret'. + * kind of the referent. Valid kinds are 'Pod', 'Secret', 'Node', 'ValidatingWebhookConfiguration', and 'MutatingWebhookConfiguration'. * @return kind */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "kind of the referent. Valid kinds are 'Pod' and 'Secret'.") + @ApiModelProperty(value = "kind of the referent. Valid kinds are 'Pod', 'Secret', 'Node', 'ValidatingWebhookConfiguration', and 'MutatingWebhookConfiguration'.") public String getKind() { return kind; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java index 97507c50c2..ce7ba82548 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -66,11 +66,11 @@ public V1CELDeviceSelector expression(@jakarta.annotation.Nonnull String express } /** - * 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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. + * 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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. Common errors: - \"no such key\": Use optional chaining (.? followed by orValue()) or guarding the check with has() for optional fields. See CEL Optional Types for details: https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes For more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/ 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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.") + @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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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. Common errors: - \"no such key\": Use optional chaining (.? followed by orValue()) or guarding the check with has() for optional fields. See CEL Optional Types for details: https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes For more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/ 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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; } 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 a34b741c78..b8983578a5 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIDriver implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 f65ef51749..a9131906f2 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIDriverList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 3354b1e82e..325edbaaf2 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIDriverSpec { public static final String SERIALIZED_NAME_ATTACH_REQUIRED = "attachRequired"; @SerializedName(SERIALIZED_NAME_ATTACH_REQUIRED) @@ -199,11 +199,11 @@ public V1CSIDriverSpec preventPodSchedulingIfMissing(@jakarta.annotation.Nullabl } /** - * PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver on the node is missing. Enabling this option will prevent the scheduler (or any other component which embeds default scheduler such as cluster-autoscaler) from scheduling pods to nodes where CSI driver is not installed. For components(such as cluster-autoscaler) that embed the scheduler and run pod placement simulations using scheduler plugins, they MUST be aware of CSI driver registration information via CSINode object. They must create simulated CSINode objects in addition to Node objects during scheduling simulation, otherwise if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any newly created node may be rejected by the scheduler because of missing CSI driver information from the node. This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\". + * preventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver on the node is missing. Enabling this option will prevent the scheduler (or any other component which embeds default scheduler such as cluster-autoscaler) from scheduling pods to nodes where CSI driver is not installed. For components(such as cluster-autoscaler) that embed the scheduler and run pod placement simulations using scheduler plugins, they MUST be aware of CSI driver registration information via CSINode object. They must create simulated CSINode objects in addition to Node objects during scheduling simulation, otherwise if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any newly created node may be rejected by the scheduler because of missing CSI driver information from the node. This is a beta feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\". * @return preventPodSchedulingIfMissing */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver on the node is missing. Enabling this option will prevent the scheduler (or any other component which embeds default scheduler such as cluster-autoscaler) from scheduling pods to nodes where CSI driver is not installed. For components(such as cluster-autoscaler) that embed the scheduler and run pod placement simulations using scheduler plugins, they MUST be aware of CSI driver registration information via CSINode object. They must create simulated CSINode objects in addition to Node objects during scheduling simulation, otherwise if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any newly created node may be rejected by the scheduler because of missing CSI driver information from the node. This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\".") + @ApiModelProperty(value = "preventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver on the node is missing. Enabling this option will prevent the scheduler (or any other component which embeds default scheduler such as cluster-autoscaler) from scheduling pods to nodes where CSI driver is not installed. For components(such as cluster-autoscaler) that embed the scheduler and run pod placement simulations using scheduler plugins, they MUST be aware of CSI driver registration information via CSINode object. They must create simulated CSINode objects in addition to Node objects during scheduling simulation, otherwise if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any newly created node may be rejected by the scheduler because of missing CSI driver information from the node. This is a beta feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\".") public Boolean getPreventPodSchedulingIfMissing() { return preventPodSchedulingIfMissing; } 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 f9aec3436a..9cefaa0c69 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 @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CSINodeSpec; +import io.kubernetes.client.openapi.models.V1CSINodeStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -52,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSINode implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -74,6 +75,11 @@ public class V1CSINode implements io.kubernetes.client.common.KubernetesObject { @jakarta.annotation.Nonnull private V1CSINodeSpec spec; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable + private V1CSINodeStatus status; + public V1CSINode() { } @@ -157,6 +163,26 @@ public void setSpec(@jakarta.annotation.Nonnull V1CSINodeSpec spec) { } + public V1CSINode status(@jakarta.annotation.Nullable V1CSINodeStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1CSINodeStatus getStatus() { + return status; + } + + public void setStatus(@jakarta.annotation.Nullable V1CSINodeStatus status) { + this.status = status; + } + + @Override public boolean equals(Object o) { @@ -170,12 +196,13 @@ public boolean equals(Object o) { return Objects.equals(this.apiVersion, v1CSINode.apiVersion) && Objects.equals(this.kind, v1CSINode.kind) && Objects.equals(this.metadata, v1CSINode.metadata) && - Objects.equals(this.spec, v1CSINode.spec); + Objects.equals(this.spec, v1CSINode.spec) && + Objects.equals(this.status, v1CSINode.status); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return Objects.hash(apiVersion, kind, metadata, spec, status); } @Override @@ -186,6 +213,7 @@ public String toString() { 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(); } @@ -207,7 +235,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("spec")); @@ -253,6 +281,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // validate the required field `spec` V1CSINodeSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1CSINodeStatus.validateJsonElement(jsonObj.get("status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { 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 714b5f24e5..6b40e07c7d 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSINodeDriver { public static final String SERIALIZED_NAME_ALLOCATABLE = "allocatable"; @SerializedName(SERIALIZED_NAME_ALLOCATABLE) 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 a25c9ea8d7..2a08b2d542 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSINodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d2d868481f..06511fd301 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSINodeSpec { public static final String SERIALIZED_NAME_DRIVERS = "drivers"; @SerializedName(SERIALIZED_NAME_DRIVERS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeStatus.java new file mode 100644 index 0000000000..ad19d52b2d --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeStatus.java @@ -0,0 +1,229 @@ +/* +Copyright 2026 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.V1StorageHealth; +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; + +/** + * CSINodeStatus contains health and status information for storage on a node. + */ +@ApiModel(description = "CSINodeStatus contains health and status information for storage on a node.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1CSINodeStatus { + public static final String SERIALIZED_NAME_STORAGE_HEALTH = "storageHealth"; + @SerializedName(SERIALIZED_NAME_STORAGE_HEALTH) + @jakarta.annotation.Nullable + private List storageHealth = new ArrayList<>(); + + public V1CSINodeStatus() { + } + + public V1CSINodeStatus storageHealth(@jakarta.annotation.Nullable List storageHealth) { + this.storageHealth = storageHealth; + return this; + } + + public V1CSINodeStatus addStorageHealthItem(V1StorageHealth storageHealthItem) { + if (this.storageHealth == null) { + this.storageHealth = new ArrayList<>(); + } + this.storageHealth.add(storageHealthItem); + return this; + } + + /** + * storageHealth contains backend health reports for CSI drivers registered on the node. + * @return storageHealth + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "storageHealth contains backend health reports for CSI drivers registered on the node.") + public List getStorageHealth() { + return storageHealth; + } + + public void setStorageHealth(@jakarta.annotation.Nullable List storageHealth) { + this.storageHealth = storageHealth; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1CSINodeStatus v1CSINodeStatus = (V1CSINodeStatus) o; + return Objects.equals(this.storageHealth, v1CSINodeStatus.storageHealth); + } + + @Override + public int hashCode() { + return Objects.hash(storageHealth); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1CSINodeStatus {\n"); + sb.append(" storageHealth: ").append(toIndentedString(storageHealth)).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(Arrays.asList("storageHealth")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CSINodeStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1CSINodeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1CSINodeStatus is not found in the empty JSON string", V1CSINodeStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1CSINodeStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CSINodeStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("storageHealth") != null && !jsonObj.get("storageHealth").isJsonNull()) { + JsonArray jsonArraystorageHealth = jsonObj.getAsJsonArray("storageHealth"); + if (jsonArraystorageHealth != null) { + // ensure the json data is an array + if (!jsonObj.get("storageHealth").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `storageHealth` to be an array in the JSON string but got `%s`", jsonObj.get("storageHealth").toString())); + } + + // validate the optional field `storageHealth` (array) + for (int i = 0; i < jsonArraystorageHealth.size(); i++) { + V1StorageHealth.validateJsonElement(jsonArraystorageHealth.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CSINodeStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CSINodeStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CSINodeStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CSINodeStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CSINodeStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CSINodeStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CSINodeStatus + * @throws IOException if the JSON string is invalid with respect to V1CSINodeStatus + */ + public static V1CSINodeStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CSINodeStatus.class); + } + + /** + * Convert an instance of V1CSINodeStatus to an JSON 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 d256b1edd0..77fbdd6b74 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF = "controllerExpandSecretRef"; @SerializedName(SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF) 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 9e8fc94007..579b012b9a 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIStorageCapacity implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 c450daa664..d47031c9ca 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIStorageCapacityList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6d8895b4da..2cb2821220 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) 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 986dcd0b7e..b93c0863e9 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Capabilities { public static final String SERIALIZED_NAME_ADD = "add"; @SerializedName(SERIALIZED_NAME_ADD) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java index ba6531859f..b3e78abffb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java @@ -54,7 +54,7 @@ * CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. */ @ApiModel(description = "CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CapacityRequestPolicy { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java index a4ea4259d7..7ce3b4d4e4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java @@ -48,10 +48,10 @@ import io.kubernetes.client.openapi.JSON; /** - * CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. + * CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. */ -@ApiModel(description = "CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@ApiModel(description = "CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CapacityRequestPolicyRange { public static final String SERIALIZED_NAME_MAX = "max"; @SerializedName(SERIALIZED_NAME_MAX) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java index 34268a4113..eaed952326 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java @@ -53,7 +53,7 @@ * CapacityRequirements defines the capacity requirements for a specific device request. */ @ApiModel(description = "CapacityRequirements defines the capacity requirements for a specific device request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CapacityRequirements { public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) 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 333e8825ab..733d139c3e 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CephFSPersistentVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) 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 2d5ed3cce0..babd7ab527 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CephFSVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) 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 a2676da041..a29fc5842d 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CertificateSigningRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d362f2bf95..dcd0db7415 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CertificateSigningRequestCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 e8a315ed34..6f1955a78f 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CertificateSigningRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 5b37840c09..1dc788516c 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 @@ -54,7 +54,7 @@ * CertificateSigningRequestSpec contains the certificate request. */ @ApiModel(description = "CertificateSigningRequestSpec contains the certificate request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CertificateSigningRequestSpec { public static final String SERIALIZED_NAME_EXPIRATION_SECONDS = "expirationSeconds"; @SerializedName(SERIALIZED_NAME_EXPIRATION_SECONDS) 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 7e15b36bb4..3b2dfb4555 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CertificateSigningRequestStatus { public static final String SERIALIZED_NAME_CERTIFICATE = "certificate"; @SerializedName(SERIALIZED_NAME_CERTIFICATE) 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 5328fac9d2..d491006cf4 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CinderPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 82c59d0f2c..c408ac83c4 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CinderVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 06f8217550..f077d6f16d 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ClientIPConfig { public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) 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 6d062f35f5..1fbd3e695a 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ClusterRole implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; @SerializedName(SERIALIZED_NAME_AGGREGATION_RULE) @@ -179,11 +179,11 @@ public V1ClusterRole addRulesItem(V1PolicyRule rulesItem) { } /** - * Rules holds all the PolicyRules for this ClusterRole + * rules holds all the PolicyRules for this ClusterRole * @return rules */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Rules holds all the PolicyRules for this ClusterRole") + @ApiModelProperty(value = "rules holds all the PolicyRules for this ClusterRole") public List getRules() { return rules; } 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 3a3f1e56ae..f0e2fc27c4 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ClusterRoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -179,11 +179,11 @@ public V1ClusterRoleBinding addSubjectsItem(RbacV1Subject subjectsItem) { } /** - * Subjects holds references to the objects the role applies to. + * 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.") + @ApiModelProperty(value = "subjects holds references to the objects the role applies to.") public List getSubjects() { return subjects; } 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 49d53424c4..74d0a71400 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 @@ -54,7 +54,7 @@ * ClusterRoleBindingList is a collection of ClusterRoleBindings */ @ApiModel(description = "ClusterRoleBindingList is a collection of ClusterRoleBindings") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ClusterRoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 154f02b426..43cf5afb87 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 @@ -54,7 +54,7 @@ * ClusterRoleList is a collection of ClusterRoles */ @ApiModel(description = "ClusterRoleList is a collection of ClusterRoles") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ClusterRoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundle.java similarity index 73% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundle.java index 9114606011..cca5cba953 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundle.java @@ -18,8 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ClusterTrustBundleSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundleSpec; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -49,11 +49,11 @@ import io.kubernetes.client.openapi.JSON; /** - * 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. + * 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 signer, 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha1ClusterTrustBundle implements io.kubernetes.client.common.KubernetesObject { +@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 signer, 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 = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1ClusterTrustBundle implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @jakarta.annotation.Nullable @@ -72,12 +72,12 @@ public class V1alpha1ClusterTrustBundle implements io.kubernetes.client.common.K public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) @jakarta.annotation.Nonnull - private V1alpha1ClusterTrustBundleSpec spec; + private V1ClusterTrustBundleSpec spec; - public V1alpha1ClusterTrustBundle() { + public V1ClusterTrustBundle() { } - public V1alpha1ClusterTrustBundle apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1ClusterTrustBundle apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -97,7 +97,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha1ClusterTrustBundle kind(@jakarta.annotation.Nullable String kind) { + public V1ClusterTrustBundle kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -117,7 +117,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha1ClusterTrustBundle metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public V1ClusterTrustBundle metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1alpha1ClusterTrustBundle spec(@jakarta.annotation.Nonnull V1alpha1ClusterTrustBundleSpec spec) { + public V1ClusterTrustBundle spec(@jakarta.annotation.Nonnull V1ClusterTrustBundleSpec spec) { this.spec = spec; return this; } @@ -148,11 +148,11 @@ public V1alpha1ClusterTrustBundle spec(@jakarta.annotation.Nonnull V1alpha1Clust */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1alpha1ClusterTrustBundleSpec getSpec() { + public V1ClusterTrustBundleSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1alpha1ClusterTrustBundleSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1ClusterTrustBundleSpec spec) { this.spec = spec; } @@ -166,11 +166,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha1ClusterTrustBundle v1alpha1ClusterTrustBundle = (V1alpha1ClusterTrustBundle) o; - return Objects.equals(this.apiVersion, v1alpha1ClusterTrustBundle.apiVersion) && - Objects.equals(this.kind, v1alpha1ClusterTrustBundle.kind) && - Objects.equals(this.metadata, v1alpha1ClusterTrustBundle.metadata) && - Objects.equals(this.spec, v1alpha1ClusterTrustBundle.spec); + V1ClusterTrustBundle v1ClusterTrustBundle = (V1ClusterTrustBundle) o; + return Objects.equals(this.apiVersion, v1ClusterTrustBundle.apiVersion) && + Objects.equals(this.kind, v1ClusterTrustBundle.kind) && + Objects.equals(this.metadata, v1ClusterTrustBundle.metadata) && + Objects.equals(this.spec, v1ClusterTrustBundle.spec); } @Override @@ -181,7 +181,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ClusterTrustBundle {\n"); + sb.append("class V1ClusterTrustBundle {\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"); @@ -217,25 +217,25 @@ private String toIndentedString(Object o) { * Validates the 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 + * @throws IOException if the JSON Element is invalid with respect to V1ClusterTrustBundle */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha1ClusterTrustBundle.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1ClusterTrustBundle is not found in the empty JSON string", V1alpha1ClusterTrustBundle.openapiRequiredFields.toString())); + if (!V1ClusterTrustBundle.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1ClusterTrustBundle is not found in the empty JSON string", V1ClusterTrustBundle.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha1ClusterTrustBundle.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1ClusterTrustBundle` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ClusterTrustBundle.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ClusterTrustBundle` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha1ClusterTrustBundle.openapiRequiredFields) { + for (String requiredField : V1ClusterTrustBundle.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -252,29 +252,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } // validate the required field `spec` - V1alpha1ClusterTrustBundleSpec.validateJsonElement(jsonObj.get("spec")); + V1ClusterTrustBundleSpec.validateJsonElement(jsonObj.get("spec")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha1ClusterTrustBundle.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha1ClusterTrustBundle' and its subtypes + if (!V1ClusterTrustBundle.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ClusterTrustBundle' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ClusterTrustBundle.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ClusterTrustBundle.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha1ClusterTrustBundle value) throws IOException { + public void write(JsonWriter out, V1ClusterTrustBundle value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha1ClusterTrustBundle read(JsonReader in) throws IOException { + public V1ClusterTrustBundle read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -285,18 +285,18 @@ public V1alpha1ClusterTrustBundle read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha1ClusterTrustBundle given an JSON string + * Create an instance of V1ClusterTrustBundle 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 + * @return An instance of V1ClusterTrustBundle + * @throws IOException if the JSON string is invalid with respect to V1ClusterTrustBundle */ - public static V1alpha1ClusterTrustBundle fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha1ClusterTrustBundle.class); + public static V1ClusterTrustBundle fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ClusterTrustBundle.class); } /** - * Convert an instance of V1alpha1ClusterTrustBundle to an JSON string + * Convert an instance of V1ClusterTrustBundle to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleList.java similarity index 76% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleList.java index b46ed60614..4edc323f22 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleList.java @@ -18,8 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ClusterTrustBundle; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundle; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -54,8 +54,8 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha1ClusterTrustBundleList implements io.kubernetes.client.common.KubernetesListObject { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1ClusterTrustBundleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @jakarta.annotation.Nullable @@ -64,7 +64,7 @@ public class V1alpha1ClusterTrustBundleList implements io.kubernetes.client.comm public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @jakarta.annotation.Nonnull - private List items = new ArrayList<>(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -76,10 +76,10 @@ public class V1alpha1ClusterTrustBundleList implements io.kubernetes.client.comm @jakarta.annotation.Nullable private V1ListMeta metadata; - public V1alpha1ClusterTrustBundleList() { + public V1ClusterTrustBundleList() { } - public V1alpha1ClusterTrustBundleList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1ClusterTrustBundleList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -99,12 +99,12 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha1ClusterTrustBundleList items(@jakarta.annotation.Nonnull List items) { + public V1ClusterTrustBundleList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } - public V1alpha1ClusterTrustBundleList addItemsItem(V1alpha1ClusterTrustBundle itemsItem) { + public V1ClusterTrustBundleList addItemsItem(V1ClusterTrustBundle itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -118,16 +118,16 @@ public V1alpha1ClusterTrustBundleList addItemsItem(V1alpha1ClusterTrustBundle it */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "items is a collection of ClusterTrustBundle objects") - public List getItems() { + public List getItems() { return items; } - public void setItems(@jakarta.annotation.Nonnull List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1alpha1ClusterTrustBundleList kind(@jakarta.annotation.Nullable String kind) { + public V1ClusterTrustBundleList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -147,7 +147,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha1ClusterTrustBundleList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + public V1ClusterTrustBundleList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } @@ -176,11 +176,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha1ClusterTrustBundleList v1alpha1ClusterTrustBundleList = (V1alpha1ClusterTrustBundleList) o; - return Objects.equals(this.apiVersion, v1alpha1ClusterTrustBundleList.apiVersion) && - Objects.equals(this.items, v1alpha1ClusterTrustBundleList.items) && - Objects.equals(this.kind, v1alpha1ClusterTrustBundleList.kind) && - Objects.equals(this.metadata, v1alpha1ClusterTrustBundleList.metadata); + V1ClusterTrustBundleList v1ClusterTrustBundleList = (V1ClusterTrustBundleList) o; + return Objects.equals(this.apiVersion, v1ClusterTrustBundleList.apiVersion) && + Objects.equals(this.items, v1ClusterTrustBundleList.items) && + Objects.equals(this.kind, v1ClusterTrustBundleList.kind) && + Objects.equals(this.metadata, v1ClusterTrustBundleList.metadata); } @Override @@ -191,7 +191,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ClusterTrustBundleList {\n"); + sb.append("class V1ClusterTrustBundleList {\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"); @@ -227,25 +227,25 @@ private String toIndentedString(Object o) { * Validates the 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 + * @throws IOException if the JSON Element is invalid with respect to V1ClusterTrustBundleList */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha1ClusterTrustBundleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1ClusterTrustBundleList is not found in the empty JSON string", V1alpha1ClusterTrustBundleList.openapiRequiredFields.toString())); + if (!V1ClusterTrustBundleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1ClusterTrustBundleList is not found in the empty JSON string", V1ClusterTrustBundleList.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha1ClusterTrustBundleList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1ClusterTrustBundleList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ClusterTrustBundleList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ClusterTrustBundleList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha1ClusterTrustBundleList.openapiRequiredFields) { + for (String requiredField : V1ClusterTrustBundleList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -262,7 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); // validate the required field `items` (array) for (int i = 0; i < jsonArrayitems.size(); i++) { - V1alpha1ClusterTrustBundle.validateJsonElement(jsonArrayitems.get(i)); + V1ClusterTrustBundle.validateJsonElement(jsonArrayitems.get(i)); }; if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); @@ -277,22 +277,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha1ClusterTrustBundleList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha1ClusterTrustBundleList' and its subtypes + if (!V1ClusterTrustBundleList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ClusterTrustBundleList' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ClusterTrustBundleList.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ClusterTrustBundleList.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha1ClusterTrustBundleList value) throws IOException { + public void write(JsonWriter out, V1ClusterTrustBundleList value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha1ClusterTrustBundleList read(JsonReader in) throws IOException { + public V1ClusterTrustBundleList read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -303,18 +303,18 @@ public V1alpha1ClusterTrustBundleList read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha1ClusterTrustBundleList given an JSON string + * Create an instance of V1ClusterTrustBundleList 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 + * @return An instance of V1ClusterTrustBundleList + * @throws IOException if the JSON string is invalid with respect to V1ClusterTrustBundleList */ - public static V1alpha1ClusterTrustBundleList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha1ClusterTrustBundleList.class); + public static V1ClusterTrustBundleList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ClusterTrustBundleList.class); } /** - * Convert an instance of V1alpha1ClusterTrustBundleList to an JSON string + * Convert an instance of V1ClusterTrustBundleList to an JSON string * * @return JSON string */ 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 d1d323d358..277491543e 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ClusterTrustBundleProjection { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) @@ -78,6 +78,11 @@ public class V1ClusterTrustBundleProjection { @jakarta.annotation.Nullable private String signerName; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable + private Long user; + public V1ClusterTrustBundleProjection() { } @@ -181,6 +186,26 @@ public void setSignerName(@jakarta.annotation.Nullable String signerName) { } + public V1ClusterTrustBundleProjection user(@jakarta.annotation.Nullable Long user) { + this.user = user; + return this; + } + + /** + * user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. + * @return user + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") + public Long getUser() { + return user; + } + + public void setUser(@jakarta.annotation.Nullable Long user) { + this.user = user; + } + + @Override public boolean equals(Object o) { @@ -195,12 +220,13 @@ public boolean equals(Object o) { Objects.equals(this.name, v1ClusterTrustBundleProjection.name) && Objects.equals(this.optional, v1ClusterTrustBundleProjection.optional) && Objects.equals(this.path, v1ClusterTrustBundleProjection.path) && - Objects.equals(this.signerName, v1ClusterTrustBundleProjection.signerName); + Objects.equals(this.signerName, v1ClusterTrustBundleProjection.signerName) && + Objects.equals(this.user, v1ClusterTrustBundleProjection.user); } @Override public int hashCode() { - return Objects.hash(labelSelector, name, optional, path, signerName); + return Objects.hash(labelSelector, name, optional, path, signerName, user); } @Override @@ -212,6 +238,7 @@ public String toString() { sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" signerName: ").append(toIndentedString(signerName)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); sb.append("}"); return sb.toString(); } @@ -233,7 +260,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("labelSelector", "name", "optional", "path", "signerName")); + openapiFields = new HashSet(Arrays.asList("labelSelector", "name", "optional", "path", "signerName", "user")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("path")); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleSpec.java similarity index 80% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleSpec.java index e6ef6d11eb..821cfc8b7d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleSpec.java @@ -50,8 +50,8 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha1ClusterTrustBundleSpec { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1ClusterTrustBundleSpec { public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; @SerializedName(SERIALIZED_NAME_SIGNER_NAME) @jakarta.annotation.Nullable @@ -62,10 +62,10 @@ public class V1alpha1ClusterTrustBundleSpec { @jakarta.annotation.Nonnull private String trustBundle; - public V1alpha1ClusterTrustBundleSpec() { + public V1ClusterTrustBundleSpec() { } - public V1alpha1ClusterTrustBundleSpec signerName(@jakarta.annotation.Nullable String signerName) { + public V1ClusterTrustBundleSpec signerName(@jakarta.annotation.Nullable String signerName) { this.signerName = signerName; return this; } @@ -85,7 +85,7 @@ public void setSignerName(@jakarta.annotation.Nullable String signerName) { } - public V1alpha1ClusterTrustBundleSpec trustBundle(@jakarta.annotation.Nonnull String trustBundle) { + public V1ClusterTrustBundleSpec trustBundle(@jakarta.annotation.Nonnull String trustBundle) { this.trustBundle = trustBundle; return this; } @@ -114,9 +114,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha1ClusterTrustBundleSpec v1alpha1ClusterTrustBundleSpec = (V1alpha1ClusterTrustBundleSpec) o; - return Objects.equals(this.signerName, v1alpha1ClusterTrustBundleSpec.signerName) && - Objects.equals(this.trustBundle, v1alpha1ClusterTrustBundleSpec.trustBundle); + V1ClusterTrustBundleSpec v1ClusterTrustBundleSpec = (V1ClusterTrustBundleSpec) o; + return Objects.equals(this.signerName, v1ClusterTrustBundleSpec.signerName) && + Objects.equals(this.trustBundle, v1ClusterTrustBundleSpec.trustBundle); } @Override @@ -127,7 +127,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1ClusterTrustBundleSpec {\n"); + sb.append("class V1ClusterTrustBundleSpec {\n"); sb.append(" signerName: ").append(toIndentedString(signerName)).append("\n"); sb.append(" trustBundle: ").append(toIndentedString(trustBundle)).append("\n"); sb.append("}"); @@ -161,25 +161,25 @@ private String toIndentedString(Object o) { * Validates the 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 + * @throws IOException if the JSON Element is invalid with respect to V1ClusterTrustBundleSpec */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha1ClusterTrustBundleSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1ClusterTrustBundleSpec is not found in the empty JSON string", V1alpha1ClusterTrustBundleSpec.openapiRequiredFields.toString())); + if (!V1ClusterTrustBundleSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1ClusterTrustBundleSpec is not found in the empty JSON string", V1ClusterTrustBundleSpec.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha1ClusterTrustBundleSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1ClusterTrustBundleSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ClusterTrustBundleSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ClusterTrustBundleSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha1ClusterTrustBundleSpec.openapiRequiredFields) { + for (String requiredField : V1ClusterTrustBundleSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -197,22 +197,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha1ClusterTrustBundleSpec.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha1ClusterTrustBundleSpec' and its subtypes + if (!V1ClusterTrustBundleSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ClusterTrustBundleSpec' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ClusterTrustBundleSpec.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ClusterTrustBundleSpec.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha1ClusterTrustBundleSpec value) throws IOException { + public void write(JsonWriter out, V1ClusterTrustBundleSpec value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha1ClusterTrustBundleSpec read(JsonReader in) throws IOException { + public V1ClusterTrustBundleSpec read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -223,18 +223,18 @@ public V1alpha1ClusterTrustBundleSpec read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha1ClusterTrustBundleSpec given an JSON string + * Create an instance of V1ClusterTrustBundleSpec 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 + * @return An instance of V1ClusterTrustBundleSpec + * @throws IOException if the JSON string is invalid with respect to V1ClusterTrustBundleSpec */ - public static V1alpha1ClusterTrustBundleSpec fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha1ClusterTrustBundleSpec.class); + public static V1ClusterTrustBundleSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ClusterTrustBundleSpec.class); } /** - * Convert an instance of V1alpha1ClusterTrustBundleSpec to an JSON string + * Convert an instance of V1ClusterTrustBundleSpec to an JSON string * * @return JSON string */ 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 5d38d94ccc..e9f6091c7c 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ComponentCondition { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) 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 fdcc5337af..1fc8c6c496 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ComponentStatus implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 629c5c0b9b..cbb3894c09 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ComponentStatusList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6e88d8edb8..4f0125921a 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Condition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 8111575035..9af4bcab65 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ConfigMap implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -122,11 +122,11 @@ public V1ConfigMap putBinaryDataItem(String key, byte[] binaryDataItem) { } /** - * 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. + * 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. Note: BinaryData keys are not currently propagated to container env vars via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * @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.") + @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. Note: BinaryData keys are not currently propagated to container env vars via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used.") public Map getBinaryData() { return binaryData; } 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 38e1ec2b32..889f50b888 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 @@ -47,10 +47,10 @@ import io.kubernetes.client.openapi.JSON; /** - * 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. + * 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. Keys in the BinaryData field are not currently propagated to container env vars. */ -@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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@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. Keys in the BinaryData field are not currently propagated to container env vars.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ConfigMapEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 1dfbb2b6e9..07a8391c9d 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 @@ -50,7 +50,7 @@ * Selects a key from a ConfigMap. */ @ApiModel(description = "Selects a key from a ConfigMap.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ConfigMapKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -76,11 +76,11 @@ public V1ConfigMapKeySelector key(@jakarta.annotation.Nonnull String key) { } /** - * The key to select. + * The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars. * @return key */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "The key to select.") + @ApiModelProperty(required = true, value = "The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars.") public String getKey() { return key; } 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 d1f119589f..3f8cb86c86 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ConfigMapList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 21a4dc539e..e41f6841f3 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ConfigMapNodeConfigSource { public static final String SERIALIZED_NAME_KUBELET_CONFIG_KEY = "kubeletConfigKey"; @SerializedName(SERIALIZED_NAME_KUBELET_CONFIG_KEY) 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 a935d86fcc..f50241ed92 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ConfigMapProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) 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 df7f5d4535..4071584d10 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 @@ -53,13 +53,18 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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_DEFAULT_USER = "defaultUser"; + @SerializedName(SERIALIZED_NAME_DEFAULT_USER) + @jakarta.annotation.Nullable + private Long defaultUser; + public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @jakarta.annotation.Nullable @@ -98,6 +103,26 @@ public void setDefaultMode(@jakarta.annotation.Nullable Integer defaultMode) { } + public V1ConfigMapVolumeSource defaultUser(@jakarta.annotation.Nullable Long defaultUser) { + this.defaultUser = defaultUser; + return this; + } + + /** + * defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. + * @return defaultUser + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") + public Long getDefaultUser() { + return defaultUser; + } + + public void setDefaultUser(@jakarta.annotation.Nullable Long defaultUser) { + this.defaultUser = defaultUser; + } + + public V1ConfigMapVolumeSource items(@jakarta.annotation.Nullable List items) { this.items = items; return this; @@ -177,6 +202,7 @@ public boolean equals(Object o) { } V1ConfigMapVolumeSource v1ConfigMapVolumeSource = (V1ConfigMapVolumeSource) o; return Objects.equals(this.defaultMode, v1ConfigMapVolumeSource.defaultMode) && + Objects.equals(this.defaultUser, v1ConfigMapVolumeSource.defaultUser) && Objects.equals(this.items, v1ConfigMapVolumeSource.items) && Objects.equals(this.name, v1ConfigMapVolumeSource.name) && Objects.equals(this.optional, v1ConfigMapVolumeSource.optional); @@ -184,7 +210,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(defaultMode, items, name, optional); + return Objects.hash(defaultMode, defaultUser, items, name, optional); } @Override @@ -192,6 +218,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ConfigMapVolumeSource {\n"); sb.append(" defaultMode: ").append(toIndentedString(defaultMode)).append("\n"); + sb.append(" defaultUser: ").append(toIndentedString(defaultUser)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); @@ -216,7 +243,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("defaultMode", "items", "name", "optional")); + openapiFields = new HashSet(Arrays.asList("defaultMode", "defaultUser", "items", "name", "optional")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); 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 474f1e1946..84ff4868d3 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 @@ -63,7 +63,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Container { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java index 81b1ce7a52..ce78d82788 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java @@ -50,7 +50,7 @@ * ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name. */ @ApiModel(description = "ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerExtendedResourceRequest { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) 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 5375d612dc..7f0fe547a0 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 @@ -52,7 +52,7 @@ * Describe a container image */ @ApiModel(description = "Describe a container image") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerImage { public static final String SERIALIZED_NAME_NAMES = "names"; @SerializedName(SERIALIZED_NAME_NAMES) 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 4e08a3f551..a6614c4246 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerPort { public static final String SERIALIZED_NAME_CONTAINER_PORT = "containerPort"; @SerializedName(SERIALIZED_NAME_CONTAINER_PORT) 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 45e6d19c88..118054afce 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerResizePolicy { public static final String SERIALIZED_NAME_RESOURCE_NAME = "resourceName"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java index 1a22fd81b7..0ce758ac4b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java @@ -51,7 +51,7 @@ * ContainerRestartRule describes how a container exit is handled. */ @ApiModel(description = "ContainerRestartRule describes how a container exit is handled.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerRestartRule { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java index 75e3aa480a..848f5f8cf1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java @@ -52,7 +52,7 @@ * ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes. */ @ApiModel(description = "ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerRestartRuleOnExitCodes { public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) 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 274c0c63a2..f20d2974cb 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerState { public static final String SERIALIZED_NAME_RUNNING = "running"; @SerializedName(SERIALIZED_NAME_RUNNING) 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 b98cd1b2eb..e9726bee72 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerStateRunning { public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; @SerializedName(SERIALIZED_NAME_STARTED_AT) 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 80f56fc793..c12fd5d1a6 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerStateTerminated { public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; @SerializedName(SERIALIZED_NAME_CONTAINER_I_D) 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 836225c21b..07f2104f42 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerStateWaiting { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) 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 1585d3e257..a80bb6ce01 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 @@ -60,7 +60,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerStatus { public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES = "allocatedResources"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES) 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 f86907c095..86d439ab79 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 @@ -51,7 +51,7 @@ * ContainerUser represents user identity information */ @ApiModel(description = "ContainerUser represents user identity information") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerUser { public static final String SERIALIZED_NAME_LINUX = "linux"; @SerializedName(SERIALIZED_NAME_LINUX) 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 5e2240a47c..f4aa946adb 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ControllerRevision implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -60,7 +60,7 @@ public class V1ControllerRevision implements io.kubernetes.client.common.Kuberne public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private Object data; public static final String SERIALIZED_NAME_KIND = "kind"; @@ -75,7 +75,7 @@ public class V1ControllerRevision implements io.kubernetes.client.common.Kuberne public static final String SERIALIZED_NAME_REVISION = "revision"; @SerializedName(SERIALIZED_NAME_REVISION) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private Long revision; public V1ControllerRevision() { @@ -101,7 +101,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1ControllerRevision data(@jakarta.annotation.Nullable Object data) { + public V1ControllerRevision data(@jakarta.annotation.Nonnull Object data) { this.data = data; return this; } @@ -110,13 +110,13 @@ public V1ControllerRevision data(@jakarta.annotation.Nullable Object data) { * Data is the serialized representation of the state. * @return data */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "Data is the serialized representation of the state.") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Data is the serialized representation of the state.") public Object getData() { return data; } - public void setData(@jakarta.annotation.Nullable Object data) { + public void setData(@jakarta.annotation.Nonnull Object data) { this.data = data; } @@ -161,7 +161,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1ControllerRevision revision(@jakarta.annotation.Nonnull Long revision) { + public V1ControllerRevision revision(@jakarta.annotation.Nullable Long revision) { this.revision = revision; return this; } @@ -170,13 +170,13 @@ public V1ControllerRevision revision(@jakarta.annotation.Nonnull Long revision) * 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.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Revision indicates the revision of the state represented by Data.") public Long getRevision() { return revision; } - public void setRevision(@jakarta.annotation.Nonnull Long revision) { + public void setRevision(@jakarta.annotation.Nullable Long revision) { this.revision = revision; } @@ -236,7 +236,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "data", "kind", "metadata", "revision")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("revision")); + openapiRequiredFields = new HashSet(Arrays.asList("data")); } /** 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 2df329e95b..dcdec8f286 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ControllerRevisionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java index e53fbbd836..53d28baf99 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Counter { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java index 1f53187852..2611656a5f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java @@ -53,7 +53,7 @@ * CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. 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 ResourcePool. 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CounterSet { public static final String SERIALIZED_NAME_COUNTERS = "counters"; @SerializedName(SERIALIZED_NAME_COUNTERS) 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 baf7c18746..0818c0a27e 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CronJob implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b66a3dcb30..54f2442671 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CronJobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 919d4b22b1..23f3153f4b 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CronJobSpec { public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; @SerializedName(SERIALIZED_NAME_CONCURRENCY_POLICY) 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 d91ef89ffc..6054b5d0fd 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CronJobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) 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 a1fb87d30e..ee701f8e3a 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 8d556207a2..13b8144673 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceColumnDefinition { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) 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 d0b2b88c37..4f2e9601a9 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceConversion { public static final String SERIALIZED_NAME_STRATEGY = "strategy"; @SerializedName(SERIALIZED_NAME_STRATEGY) 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 36a47f7f14..1dc14caeaf 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinition implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2c162f329e..4c451d9794 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinitionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 653f522680..c14924d75c 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinitionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6b676e8ea1..0e0f238a9a 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinitionNames { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) 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 79be029d59..bb502bcebc 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinitionSpec { public static final String SERIALIZED_NAME_CONVERSION = "conversion"; @SerializedName(SERIALIZED_NAME_CONVERSION) 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 ad673f25f0..957a50e8c7 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinitionStatus { public static final String SERIALIZED_NAME_ACCEPTED_NAMES = "acceptedNames"; @SerializedName(SERIALIZED_NAME_ACCEPTED_NAMES) 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 19a7bf1d8f..b5feaa1381 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 @@ -56,7 +56,7 @@ * CustomResourceDefinitionVersion describes a version for CRD. */ @ApiModel(description = "CustomResourceDefinitionVersion describes a version for CRD.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinitionVersion { public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS) 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 aaa45eda08..f5be0ffd1f 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceSubresourceScale { public static final String SERIALIZED_NAME_LABEL_SELECTOR_PATH = "labelSelectorPath"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR_PATH) 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 8e82fffdbf..7e4af9bb48 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceSubresources { public static final String SERIALIZED_NAME_SCALE = "scale"; @SerializedName(SERIALIZED_NAME_SCALE) 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 0feb95fcb7..7cf61e81fb 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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) 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 e6402a5fa3..9fec19f5af 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonEndpoint { public static final String SERIALIZED_NAME_PORT = "Port"; @SerializedName(SERIALIZED_NAME_PORT) 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 f9684f86ab..6c20513ed1 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -72,7 +72,7 @@ public class V1DaemonSet implements io.kubernetes.client.common.KubernetesObject public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1DaemonSetSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1DaemonSet spec(@jakarta.annotation.Nullable V1DaemonSetSpec spec) { + public V1DaemonSet spec(@jakarta.annotation.Nonnull V1DaemonSetSpec spec) { this.spec = spec; return this; } @@ -152,13 +152,13 @@ public V1DaemonSet spec(@jakarta.annotation.Nullable V1DaemonSetSpec spec) { * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1DaemonSetSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1DaemonSetSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1DaemonSetSpec spec) { this.spec = spec; } @@ -238,7 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -261,6 +261,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DaemonSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DaemonSet.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -272,10 +279,8 @@ 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()) { - V1DaemonSetSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1DaemonSetSpec.validateJsonElement(jsonObj.get("spec")); // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { V1DaemonSetStatus.validateJsonElement(jsonObj.get("status")); 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 ed9294ced1..6c6e6a4f40 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -70,12 +70,12 @@ public class V1DaemonSetCondition { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private String type; public V1DaemonSetCondition() { @@ -141,7 +141,7 @@ public void setReason(@jakarta.annotation.Nullable String reason) { } - public V1DaemonSetCondition status(@jakarta.annotation.Nonnull String status) { + public V1DaemonSetCondition status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } @@ -150,18 +150,18 @@ public V1DaemonSetCondition status(@jakarta.annotation.Nonnull String status) { * 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.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(@jakarta.annotation.Nonnull String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } - public V1DaemonSetCondition type(@jakarta.annotation.Nonnull String type) { + public V1DaemonSetCondition type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -170,13 +170,13 @@ public V1DaemonSetCondition type(@jakarta.annotation.Nonnull String type) { * Type of DaemonSet condition. * @return type */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Type of DaemonSet condition.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Type of DaemonSet condition.") public String getType() { return type; } - public void setType(@jakarta.annotation.Nonnull String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -236,7 +236,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); + openapiRequiredFields = new HashSet(0); } /** @@ -259,13 +259,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DaemonSetCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1DaemonSetCondition.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); @@ -273,10 +266,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); } - if (!jsonObj.get("status").isJsonPrimitive()) { + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } - if (!jsonObj.get("type").isJsonPrimitive()) { + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } 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 a8a06290b5..9f39c190fe 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 0b55663d9e..496d4d4b2f 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) 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 d26b20daa3..96c2f25d38 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonSetStatus { public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) 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 50ff11a8e6..de0af91459 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) 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 df63e2cec1..e8f4d5b5e9 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeleteOptions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d39e010198..1e8adecf0c 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Deployment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -72,7 +72,7 @@ public class V1Deployment implements io.kubernetes.client.common.KubernetesObjec public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1DeploymentSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1Deployment spec(@jakarta.annotation.Nullable V1DeploymentSpec spec) { + public V1Deployment spec(@jakarta.annotation.Nonnull V1DeploymentSpec spec) { this.spec = spec; return this; } @@ -152,13 +152,13 @@ public V1Deployment spec(@jakarta.annotation.Nullable V1DeploymentSpec spec) { * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1DeploymentSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1DeploymentSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1DeploymentSpec spec) { this.spec = spec; } @@ -238,7 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -261,6 +261,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Deployment` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1Deployment.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -272,10 +279,8 @@ 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()) { - V1DeploymentSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1DeploymentSpec.validateJsonElement(jsonObj.get("spec")); // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { V1DeploymentStatus.validateJsonElement(jsonObj.get("status")); 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 e6cceed3f0..4a82a11d04 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeploymentCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -75,12 +75,12 @@ public class V1DeploymentCondition { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private String type; public V1DeploymentCondition() { @@ -166,7 +166,7 @@ public void setReason(@jakarta.annotation.Nullable String reason) { } - public V1DeploymentCondition status(@jakarta.annotation.Nonnull String status) { + public V1DeploymentCondition status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } @@ -175,18 +175,18 @@ public V1DeploymentCondition status(@jakarta.annotation.Nonnull String status) { * 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.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(@jakarta.annotation.Nonnull String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } - public V1DeploymentCondition type(@jakarta.annotation.Nonnull String type) { + public V1DeploymentCondition type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -195,13 +195,13 @@ public V1DeploymentCondition type(@jakarta.annotation.Nonnull String type) { * Type of deployment condition. * @return type */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Type of deployment condition.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Type of deployment condition.") public String getType() { return type; } - public void setType(@jakarta.annotation.Nonnull String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -263,7 +263,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "lastUpdateTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); + openapiRequiredFields = new HashSet(0); } /** @@ -286,13 +286,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeploymentCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1DeploymentCondition.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); @@ -300,10 +293,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); } - if (!jsonObj.get("status").isJsonPrimitive()) { + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } - if (!jsonObj.get("type").isJsonPrimitive()) { + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } 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 4b46143d2c..ba3d19fe01 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 @@ -54,7 +54,7 @@ * DeploymentList is a list of Deployments. */ @ApiModel(description = "DeploymentList is a list of Deployments.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeploymentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6c80d0e16c..76d69189d5 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeploymentSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) 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 6122f986d2..2cca8130de 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeploymentStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) 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 c46a354e0c..6a0b131a0c 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeploymentStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java index fc87ba73a7..7605d96fb9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java @@ -22,7 +22,7 @@ import io.kubernetes.client.openapi.models.V1DeviceCapacity; import io.kubernetes.client.openapi.models.V1DeviceCounterConsumption; import io.kubernetes.client.openapi.models.V1DeviceTaint; -import io.kubernetes.client.openapi.models.V1NodeAllocatableResourceMapping; +import io.kubernetes.client.openapi.models.V1NodeAllocatableResource; import io.kubernetes.client.openapi.models.V1NodeSelector; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -60,7 +60,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Device { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -107,10 +107,10 @@ public class V1Device { @jakarta.annotation.Nonnull private String name; - public static final String SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_MAPPINGS = "nodeAllocatableResourceMappings"; - @SerializedName(SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_MAPPINGS) + public static final String SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCES = "nodeAllocatableResources"; + @SerializedName(SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCES) @jakarta.annotation.Nullable - private Map nodeAllocatableResourceMappings = new HashMap<>(); + private Map nodeAllocatableResources = new HashMap<>(); public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; @SerializedName(SERIALIZED_NAME_NODE_NAME) @@ -350,31 +350,31 @@ public void setName(@jakarta.annotation.Nonnull String name) { } - public V1Device nodeAllocatableResourceMappings(@jakarta.annotation.Nullable Map nodeAllocatableResourceMappings) { - this.nodeAllocatableResourceMappings = nodeAllocatableResourceMappings; + public V1Device nodeAllocatableResources(@jakarta.annotation.Nullable Map nodeAllocatableResources) { + this.nodeAllocatableResources = nodeAllocatableResources; return this; } - public V1Device putNodeAllocatableResourceMappingsItem(String key, V1NodeAllocatableResourceMapping nodeAllocatableResourceMappingsItem) { - if (this.nodeAllocatableResourceMappings == null) { - this.nodeAllocatableResourceMappings = new HashMap<>(); + public V1Device putNodeAllocatableResourcesItem(String key, V1NodeAllocatableResource nodeAllocatableResourcesItem) { + if (this.nodeAllocatableResources == null) { + this.nodeAllocatableResources = new HashMap<>(); } - this.nodeAllocatableResourceMappings.put(key, nodeAllocatableResourceMappingsItem); + this.nodeAllocatableResources.put(key, nodeAllocatableResourcesItem); return this; } /** - * NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. - * @return nodeAllocatableResourceMappings + * NodeAllocatableResources defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. + * @return nodeAllocatableResources */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.") - public Map getNodeAllocatableResourceMappings() { - return nodeAllocatableResourceMappings; + @ApiModelProperty(value = "NodeAllocatableResources defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.") + public Map getNodeAllocatableResources() { + return nodeAllocatableResources; } - public void setNodeAllocatableResourceMappings(@jakarta.annotation.Nullable Map nodeAllocatableResourceMappings) { - this.nodeAllocatableResourceMappings = nodeAllocatableResourceMappings; + public void setNodeAllocatableResources(@jakarta.annotation.Nullable Map nodeAllocatableResources) { + this.nodeAllocatableResources = nodeAllocatableResources; } @@ -465,7 +465,7 @@ public boolean equals(Object o) { Objects.equals(this.capacity, v1Device.capacity) && Objects.equals(this.consumesCounters, v1Device.consumesCounters) && Objects.equals(this.name, v1Device.name) && - Objects.equals(this.nodeAllocatableResourceMappings, v1Device.nodeAllocatableResourceMappings) && + Objects.equals(this.nodeAllocatableResources, v1Device.nodeAllocatableResources) && Objects.equals(this.nodeName, v1Device.nodeName) && Objects.equals(this.nodeSelector, v1Device.nodeSelector) && Objects.equals(this.taints, v1Device.taints); @@ -473,7 +473,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeAllocatableResourceMappings, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeAllocatableResources, nodeName, nodeSelector, taints); } @Override @@ -489,7 +489,7 @@ public String toString() { sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" consumesCounters: ").append(toIndentedString(consumesCounters)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" nodeAllocatableResourceMappings: ").append(toIndentedString(nodeAllocatableResourceMappings)).append("\n"); + sb.append(" nodeAllocatableResources: ").append(toIndentedString(nodeAllocatableResources)).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"); @@ -514,7 +514,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResourceMappings", "nodeName", "nodeSelector", "taints")); + openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResources", "nodeName", "nodeSelector", "taints")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name")); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java index 44b0f8741c..551ef844d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java @@ -53,7 +53,7 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceAllocationConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java index 2a63f56fb3..c52ed6ba22 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceAllocationResult { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java index b281a780a8..5e8b7343bf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceAttribute { public static final String SERIALIZED_NAME_BOOL = "bool"; @SerializedName(SERIALIZED_NAME_BOOL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java index 21d27d9d71..60ba98772a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java @@ -52,7 +52,7 @@ * DeviceCapacity describes a quantity associated with a device. */ @ApiModel(description = "DeviceCapacity describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceCapacity { public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java index 22b862c726..04666b0ccd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceClaim { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java index 8f12b05836..59bd2db9a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceClaimConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java index cf07c751ae..ec90631c3d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java @@ -52,7 +52,7 @@ * 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. */ @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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,7 +71,7 @@ public class V1DeviceClass implements io.kubernetes.client.common.KubernetesObje public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1DeviceClassSpec spec; public V1DeviceClass() { @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1DeviceClass spec(@jakarta.annotation.Nonnull V1DeviceClassSpec spec) { + public V1DeviceClass spec(@jakarta.annotation.Nullable V1DeviceClassSpec spec) { this.spec = spec; return this; } @@ -146,13 +146,13 @@ public V1DeviceClass spec(@jakarta.annotation.Nonnull V1DeviceClassSpec spec) { * Get spec * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1DeviceClassSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1DeviceClassSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1DeviceClassSpec spec) { this.spec = spec; } @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec")); + openapiRequiredFields = new HashSet(0); } /** @@ -233,13 +233,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1DeviceClass.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -251,8 +244,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the required field `spec` - V1DeviceClassSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1DeviceClassSpec.validateJsonElement(jsonObj.get("spec")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java index 85902a8f6f..b679a4f594 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java @@ -51,7 +51,7 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceClassConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java index b98eab7bcb..a4421ce3fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java @@ -54,7 +54,7 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java index 139eb16986..d0a05a04c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -108,11 +108,11 @@ public V1DeviceClassSpec extendedResourceName(@jakarta.annotation.Nullable Strin } /** - * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field. + * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. * @return extendedResourceName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field.") + @ApiModelProperty(value = "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.") public String getExtendedResourceName() { return extendedResourceName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java index 238cc91555..8e5ef365b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceConstraint { public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java index 005ba7b189..9d9f060ced 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java @@ -22,8 +22,10 @@ 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; @@ -53,8 +55,13 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceCounterConsumption { + public static final String SERIALIZED_NAME_COMPATIBILITY_GROUPS = "compatibilityGroups"; + @SerializedName(SERIALIZED_NAME_COMPATIBILITY_GROUPS) + @jakarta.annotation.Nullable + private List compatibilityGroups = new ArrayList<>(); + public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; @SerializedName(SERIALIZED_NAME_COUNTER_SET) @jakarta.annotation.Nonnull @@ -68,6 +75,34 @@ public class V1DeviceCounterConsumption { public V1DeviceCounterConsumption() { } + public V1DeviceCounterConsumption compatibilityGroups(@jakarta.annotation.Nullable List compatibilityGroups) { + this.compatibilityGroups = compatibilityGroups; + return this; + } + + public V1DeviceCounterConsumption addCompatibilityGroupsItem(String compatibilityGroupsItem) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + this.compatibilityGroups.add(compatibilityGroupsItem); + return this; + } + + /** + * CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique. + * @return compatibilityGroups + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique.") + public List getCompatibilityGroups() { + return compatibilityGroups; + } + + public void setCompatibilityGroups(@jakarta.annotation.Nullable List compatibilityGroups) { + this.compatibilityGroups = compatibilityGroups; + } + + public V1DeviceCounterConsumption counterSet(@jakarta.annotation.Nonnull String counterSet) { this.counterSet = counterSet; return this; @@ -126,19 +161,21 @@ public boolean equals(Object o) { return false; } V1DeviceCounterConsumption v1DeviceCounterConsumption = (V1DeviceCounterConsumption) o; - return Objects.equals(this.counterSet, v1DeviceCounterConsumption.counterSet) && + return Objects.equals(this.compatibilityGroups, v1DeviceCounterConsumption.compatibilityGroups) && + Objects.equals(this.counterSet, v1DeviceCounterConsumption.counterSet) && Objects.equals(this.counters, v1DeviceCounterConsumption.counters); } @Override public int hashCode() { - return Objects.hash(counterSet, counters); + return Objects.hash(compatibilityGroups, counterSet, counters); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DeviceCounterConsumption {\n"); + sb.append(" compatibilityGroups: ").append(toIndentedString(compatibilityGroups)).append("\n"); sb.append(" counterSet: ").append(toIndentedString(counterSet)).append("\n"); sb.append(" counters: ").append(toIndentedString(counters)).append("\n"); sb.append("}"); @@ -162,7 +199,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("counterSet", "counters")); + openapiFields = new HashSet(Arrays.asList("compatibilityGroups", "counterSet", "counters")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("counterSet", "counters")); @@ -196,6 +233,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("compatibilityGroups") != null && !jsonObj.get("compatibilityGroups").isJsonNull() && !jsonObj.get("compatibilityGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `compatibilityGroups` to be an array in the JSON string but got `%s`", jsonObj.get("compatibilityGroups").toString())); + } if (!jsonObj.get("counterSet").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `counterSet` to be a primitive type in the JSON string but got `%s`", jsonObj.get("counterSet").toString())); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceDerivedAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceDerivedAttribute.java new file mode 100644 index 0000000000..2336d553f3 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceDerivedAttribute.java @@ -0,0 +1,244 @@ +/* +Copyright 2026 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; + +/** + * DeviceDerivedAttribute defines a derived attribute computed via CEL. + */ +@ApiModel(description = "DeviceDerivedAttribute defines a derived attribute computed via CEL.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1DeviceDerivedAttribute { + 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 V1DeviceDerivedAttribute() { + } + + public V1DeviceDerivedAttribute expression(@jakarta.annotation.Nonnull String expression) { + this.expression = expression; + return this; + } + + /** + * Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. + * @return expression + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.") + public String getExpression() { + return expression; + } + + public void setExpression(@jakarta.annotation.Nonnull String expression) { + this.expression = expression; + } + + + public V1DeviceDerivedAttribute name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint.") + 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; + } + V1DeviceDerivedAttribute v1DeviceDerivedAttribute = (V1DeviceDerivedAttribute) o; + return Objects.equals(this.expression, v1DeviceDerivedAttribute.expression) && + Objects.equals(this.name, v1DeviceDerivedAttribute.name); + } + + @Override + public int hashCode() { + return Objects.hash(expression, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1DeviceDerivedAttribute {\n"); + sb.append(" expression: ").append(toIndentedString(expression)).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(Arrays.asList("expression", "name")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("expression", "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 V1DeviceDerivedAttribute + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1DeviceDerivedAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1DeviceDerivedAttribute is not found in the empty JSON string", V1DeviceDerivedAttribute.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1DeviceDerivedAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceDerivedAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DeviceDerivedAttribute.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("expression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1DeviceDerivedAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceDerivedAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceDerivedAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeviceDerivedAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeviceDerivedAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeviceDerivedAttribute given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeviceDerivedAttribute + * @throws IOException if the JSON string is invalid with respect to V1DeviceDerivedAttribute + */ + public static V1DeviceDerivedAttribute fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceDerivedAttribute.class); + } + + /** + * Convert an instance of V1DeviceDerivedAttribute to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java index a3c84298ce..eab50ec445 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java @@ -54,7 +54,7 @@ * 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. */ @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. With FirstAvailable it is also possible to provide a prioritized list of requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceRequest { public static final String SERIALIZED_NAME_EXACTLY = "exactly"; @SerializedName(SERIALIZED_NAME_EXACTLY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java index 9d0f4f8729..8253839301 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java @@ -56,7 +56,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -103,6 +103,11 @@ public class V1DeviceRequestAllocationResult { @jakarta.annotation.Nullable private String shareID; + public static final String SERIALIZED_NAME_SKIP_NODE_OPERATIONS = "skipNodeOperations"; + @SerializedName(SERIALIZED_NAME_SKIP_NODE_OPERATIONS) + @jakarta.annotation.Nullable + private List skipNodeOperations = new ArrayList<>(); + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) @jakarta.annotation.Nullable @@ -315,6 +320,34 @@ public void setShareID(@jakarta.annotation.Nullable String shareID) { } + public V1DeviceRequestAllocationResult skipNodeOperations(@jakarta.annotation.Nullable List skipNodeOperations) { + this.skipNodeOperations = skipNodeOperations; + return this; + } + + public V1DeviceRequestAllocationResult addSkipNodeOperationsItem(String skipNodeOperationsItem) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.add(skipNodeOperationsItem); + return this; + } + + /** + * SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated. + * @return skipNodeOperations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.") + public List getSkipNodeOperations() { + return skipNodeOperations; + } + + public void setSkipNodeOperations(@jakarta.annotation.Nullable List skipNodeOperations) { + this.skipNodeOperations = skipNodeOperations; + } + + public V1DeviceRequestAllocationResult tolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; return this; @@ -362,12 +395,13 @@ public boolean equals(Object o) { Objects.equals(this.pool, v1DeviceRequestAllocationResult.pool) && Objects.equals(this.request, v1DeviceRequestAllocationResult.request) && Objects.equals(this.shareID, v1DeviceRequestAllocationResult.shareID) && + Objects.equals(this.skipNodeOperations, v1DeviceRequestAllocationResult.skipNodeOperations) && Objects.equals(this.tolerations, v1DeviceRequestAllocationResult.tolerations); } @Override public int hashCode() { - return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, skipNodeOperations, tolerations); } @Override @@ -383,6 +417,7 @@ public String toString() { sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); sb.append(" request: ").append(toIndentedString(request)).append("\n"); sb.append(" shareID: ").append(toIndentedString(shareID)).append("\n"); + sb.append(" skipNodeOperations: ").append(toIndentedString(skipNodeOperations)).append("\n"); sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); sb.append("}"); return sb.toString(); @@ -405,7 +440,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "tolerations")); + openapiFields = new HashSet(Arrays.asList("adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "skipNodeOperations", "tolerations")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("device", "driver", "pool", "request")); @@ -462,6 +497,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); } + // ensure the optional json data is an array if present + if (jsonObj.get("skipNodeOperations") != null && !jsonObj.get("skipNodeOperations").isJsonNull() && !jsonObj.get("skipNodeOperations").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `skipNodeOperations` to be an array in the JSON string but got `%s`", jsonObj.get("skipNodeOperations").toString())); + } if (jsonObj.get("tolerations") != null && !jsonObj.get("tolerations").isJsonNull()) { JsonArray jsonArraytolerations = jsonObj.getAsJsonArray("tolerations"); if (jsonArraytolerations != null) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java index cf71a5ca0c..c30b9e331c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceSelector { public static final String SERIALIZED_NAME_CEL = "cel"; @SerializedName(SERIALIZED_NAME_CEL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java index 869d3ca74e..eea8436b5e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CapacityRequirements; +import io.kubernetes.client.openapi.models.V1DeviceDerivedAttribute; import io.kubernetes.client.openapi.models.V1DeviceSelector; import io.kubernetes.client.openapi.models.V1DeviceToleration; import io.swagger.annotations.ApiModel; @@ -55,7 +56,7 @@ * 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. */ @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 ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) @@ -72,6 +73,11 @@ public class V1DeviceSubRequest { @jakarta.annotation.Nullable private Long count; + public static final String SERIALIZED_NAME_DERIVED_ATTRIBUTES = "derivedAttributes"; + @SerializedName(SERIALIZED_NAME_DERIVED_ATTRIBUTES) + @jakarta.annotation.Nullable + private List derivedAttributes = new ArrayList<>(); + public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) @jakarta.annotation.Nonnull @@ -155,6 +161,34 @@ public void setCount(@jakarta.annotation.Nullable Long count) { } + public V1DeviceSubRequest derivedAttributes(@jakarta.annotation.Nullable List derivedAttributes) { + this.derivedAttributes = derivedAttributes; + return this; + } + + public V1DeviceSubRequest addDerivedAttributesItem(V1DeviceDerivedAttribute derivedAttributesItem) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + this.derivedAttributes.add(derivedAttributesItem); + return this; + } + + /** + * DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. + * @return derivedAttributes + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") + public List getDerivedAttributes() { + return derivedAttributes; + } + + public void setDerivedAttributes(@jakarta.annotation.Nullable List derivedAttributes) { + this.derivedAttributes = derivedAttributes; + } + + public V1DeviceSubRequest deviceClassName(@jakarta.annotation.Nonnull String deviceClassName) { this.deviceClassName = deviceClassName; return this; @@ -264,6 +298,7 @@ public boolean equals(Object o) { return Objects.equals(this.allocationMode, v1DeviceSubRequest.allocationMode) && Objects.equals(this.capacity, v1DeviceSubRequest.capacity) && Objects.equals(this.count, v1DeviceSubRequest.count) && + Objects.equals(this.derivedAttributes, v1DeviceSubRequest.derivedAttributes) && Objects.equals(this.deviceClassName, v1DeviceSubRequest.deviceClassName) && Objects.equals(this.name, v1DeviceSubRequest.name) && Objects.equals(this.selectors, v1DeviceSubRequest.selectors) && @@ -272,7 +307,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + return Objects.hash(allocationMode, capacity, count, derivedAttributes, deviceClassName, name, selectors, tolerations); } @Override @@ -282,6 +317,7 @@ public String toString() { sb.append(" allocationMode: ").append(toIndentedString(allocationMode)).append("\n"); sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" derivedAttributes: ").append(toIndentedString(derivedAttributes)).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"); @@ -307,7 +343,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allocationMode", "capacity", "count", "deviceClassName", "name", "selectors", "tolerations")); + openapiFields = new HashSet(Arrays.asList("allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "name", "selectors", "tolerations")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("deviceClassName", "name")); @@ -348,6 +384,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { V1CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); } + if (jsonObj.get("derivedAttributes") != null && !jsonObj.get("derivedAttributes").isJsonNull()) { + JsonArray jsonArrayderivedAttributes = jsonObj.getAsJsonArray("derivedAttributes"); + if (jsonArrayderivedAttributes != null) { + // ensure the json data is an array + if (!jsonObj.get("derivedAttributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `derivedAttributes` to be an array in the JSON string but got `%s`", jsonObj.get("derivedAttributes").toString())); + } + + // validate the optional field `derivedAttributes` (array) + for (int i = 0; i < jsonArrayderivedAttributes.size(); i++) { + V1DeviceDerivedAttribute.validateJsonElement(jsonArrayderivedAttributes.get(i)); + }; + } + } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java index 40d815deb9..1836ebcd4f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceTaint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRule.java new file mode 100644 index 0000000000..a4d79d67d5 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRule.java @@ -0,0 +1,338 @@ +/* +Copyright 2026 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.V1DeviceTaintRuleSpec; +import io.kubernetes.client.openapi.models.V1DeviceTaintRuleStatus; +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; + +/** + * 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 = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1DeviceTaintRule 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 V1DeviceTaintRuleSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable + private V1DeviceTaintRuleStatus status; + + public V1DeviceTaintRule() { + } + + public V1DeviceTaintRule 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 V1DeviceTaintRule 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 V1DeviceTaintRule 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 V1DeviceTaintRule spec(@jakarta.annotation.Nonnull V1DeviceTaintRuleSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1DeviceTaintRuleSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nonnull V1DeviceTaintRuleSpec spec) { + this.spec = spec; + } + + + public V1DeviceTaintRule status(@jakarta.annotation.Nullable V1DeviceTaintRuleStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1DeviceTaintRuleStatus getStatus() { + return status; + } + + public void setStatus(@jakarta.annotation.Nullable V1DeviceTaintRuleStatus status) { + this.status = status; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1DeviceTaintRule v1DeviceTaintRule = (V1DeviceTaintRule) o; + return Objects.equals(this.apiVersion, v1DeviceTaintRule.apiVersion) && + Objects.equals(this.kind, v1DeviceTaintRule.kind) && + Objects.equals(this.metadata, v1DeviceTaintRule.metadata) && + Objects.equals(this.spec, v1DeviceTaintRule.spec) && + Objects.equals(this.status, v1DeviceTaintRule.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1DeviceTaintRule {\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(); + } + + /** + * 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(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1DeviceTaintRule + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1DeviceTaintRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1DeviceTaintRule is not found in the empty JSON string", V1DeviceTaintRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1DeviceTaintRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceTaintRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DeviceTaintRule.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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` + V1DeviceTaintRuleSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1DeviceTaintRuleStatus.validateJsonElement(jsonObj.get("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DeviceTaintRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceTaintRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceTaintRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeviceTaintRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeviceTaintRule read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeviceTaintRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeviceTaintRule + * @throws IOException if the JSON string is invalid with respect to V1DeviceTaintRule + */ + public static V1DeviceTaintRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceTaintRule.class); + } + + /** + * Convert an instance of V1DeviceTaintRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleList.java new file mode 100644 index 0000000000..2a5d164710 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleList.java @@ -0,0 +1,324 @@ +/* +Copyright 2026 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.V1DeviceTaintRule; +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; + +/** + * DeviceTaintRuleList is a collection of DeviceTaintRules. + */ +@ApiModel(description = "DeviceTaintRuleList is a collection of DeviceTaintRules.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1DeviceTaintRuleList 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 V1DeviceTaintRuleList() { + } + + public V1DeviceTaintRuleList 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 V1DeviceTaintRuleList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1DeviceTaintRuleList addItemsItem(V1DeviceTaintRule 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 V1DeviceTaintRuleList 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 V1DeviceTaintRuleList 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; + } + V1DeviceTaintRuleList v1DeviceTaintRuleList = (V1DeviceTaintRuleList) o; + return Objects.equals(this.apiVersion, v1DeviceTaintRuleList.apiVersion) && + Objects.equals(this.items, v1DeviceTaintRuleList.items) && + Objects.equals(this.kind, v1DeviceTaintRuleList.kind) && + Objects.equals(this.metadata, v1DeviceTaintRuleList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1DeviceTaintRuleList {\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(Arrays.asList("apiVersion", "items", "kind", "metadata")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1DeviceTaintRuleList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1DeviceTaintRuleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1DeviceTaintRuleList is not found in the empty JSON string", V1DeviceTaintRuleList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1DeviceTaintRuleList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceTaintRuleList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DeviceTaintRuleList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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++) { + V1DeviceTaintRule.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1DeviceTaintRuleList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceTaintRuleList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceTaintRuleList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeviceTaintRuleList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeviceTaintRuleList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeviceTaintRuleList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeviceTaintRuleList + * @throws IOException if the JSON string is invalid with respect to V1DeviceTaintRuleList + */ + public static V1DeviceTaintRuleList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceTaintRuleList.class); + } + + /** + * Convert an instance of V1DeviceTaintRuleList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleSpec.java new file mode 100644 index 0000000000..f7c23eb1bb --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleSpec.java @@ -0,0 +1,246 @@ +/* +Copyright 2026 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.V1DeviceTaint; +import io.kubernetes.client.openapi.models.V1DeviceTaintSelector; +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 = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1DeviceTaintRuleSpec { + public static final String SERIALIZED_NAME_DEVICE_SELECTOR = "deviceSelector"; + @SerializedName(SERIALIZED_NAME_DEVICE_SELECTOR) + @jakarta.annotation.Nullable + private V1DeviceTaintSelector deviceSelector; + + public static final String SERIALIZED_NAME_TAINT = "taint"; + @SerializedName(SERIALIZED_NAME_TAINT) + @jakarta.annotation.Nonnull + private V1DeviceTaint taint; + + public V1DeviceTaintRuleSpec() { + } + + public V1DeviceTaintRuleSpec deviceSelector(@jakarta.annotation.Nullable V1DeviceTaintSelector deviceSelector) { + this.deviceSelector = deviceSelector; + return this; + } + + /** + * Get deviceSelector + * @return deviceSelector + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1DeviceTaintSelector getDeviceSelector() { + return deviceSelector; + } + + public void setDeviceSelector(@jakarta.annotation.Nullable V1DeviceTaintSelector deviceSelector) { + this.deviceSelector = deviceSelector; + } + + + public V1DeviceTaintRuleSpec taint(@jakarta.annotation.Nonnull V1DeviceTaint taint) { + this.taint = taint; + return this; + } + + /** + * Get taint + * @return taint + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1DeviceTaint getTaint() { + return taint; + } + + public void setTaint(@jakarta.annotation.Nonnull V1DeviceTaint taint) { + this.taint = taint; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1DeviceTaintRuleSpec v1DeviceTaintRuleSpec = (V1DeviceTaintRuleSpec) o; + return Objects.equals(this.deviceSelector, v1DeviceTaintRuleSpec.deviceSelector) && + Objects.equals(this.taint, v1DeviceTaintRuleSpec.taint); + } + + @Override + public int hashCode() { + return Objects.hash(deviceSelector, taint); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1DeviceTaintRuleSpec {\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(Arrays.asList("deviceSelector", "taint")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1DeviceTaintRuleSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1DeviceTaintRuleSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1DeviceTaintRuleSpec is not found in the empty JSON string", V1DeviceTaintRuleSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1DeviceTaintRuleSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceTaintRuleSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DeviceTaintRuleSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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()) { + V1DeviceTaintSelector.validateJsonElement(jsonObj.get("deviceSelector")); + } + // validate the required field `taint` + V1DeviceTaint.validateJsonElement(jsonObj.get("taint")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DeviceTaintRuleSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceTaintRuleSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceTaintRuleSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeviceTaintRuleSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeviceTaintRuleSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeviceTaintRuleSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeviceTaintRuleSpec + * @throws IOException if the JSON string is invalid with respect to V1DeviceTaintRuleSpec + */ + public static V1DeviceTaintRuleSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceTaintRuleSpec.class); + } + + /** + * Convert an instance of V1DeviceTaintRuleSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleStatus.java similarity index 60% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleStatus.java index cca56fda31..3e5c1af760 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintRuleStatus.java @@ -50,25 +50,25 @@ import io.kubernetes.client.openapi.JSON; /** - * ServiceCIDRStatus describes the current state of the ServiceCIDR. + * DeviceTaintRuleStatus provides information about an on-going pod eviction. */ -@ApiModel(description = "ServiceCIDRStatus describes the current state of the ServiceCIDR.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1beta1ServiceCIDRStatus { +@ApiModel(description = "DeviceTaintRuleStatus provides information about an on-going pod eviction.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1DeviceTaintRuleStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @jakarta.annotation.Nullable private List conditions = new ArrayList<>(); - public V1beta1ServiceCIDRStatus() { + public V1DeviceTaintRuleStatus() { } - public V1beta1ServiceCIDRStatus conditions(@jakarta.annotation.Nullable List conditions) { + public V1DeviceTaintRuleStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } - public V1beta1ServiceCIDRStatus addConditionsItem(V1Condition conditionsItem) { + public V1DeviceTaintRuleStatus addConditionsItem(V1Condition conditionsItem) { if (this.conditions == null) { this.conditions = new ArrayList<>(); } @@ -77,11 +77,11 @@ public V1beta1ServiceCIDRStatus addConditionsItem(V1Condition conditionsItem) { } /** - * conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state + * Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise (includes the effects which don't cause eviction). - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods in a human-readable format, updated periodically, may change For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. Must have 8 or fewer entries. * @return conditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state") + @ApiModelProperty(value = "Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise (includes the effects which don't cause eviction). - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods in a human-readable format, updated periodically, may change For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. Must have 8 or fewer entries.") public List getConditions() { return conditions; } @@ -100,8 +100,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1ServiceCIDRStatus v1beta1ServiceCIDRStatus = (V1beta1ServiceCIDRStatus) o; - return Objects.equals(this.conditions, v1beta1ServiceCIDRStatus.conditions); + V1DeviceTaintRuleStatus v1DeviceTaintRuleStatus = (V1DeviceTaintRuleStatus) o; + return Objects.equals(this.conditions, v1DeviceTaintRuleStatus.conditions); } @Override @@ -112,7 +112,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ServiceCIDRStatus {\n"); + sb.append("class V1DeviceTaintRuleStatus {\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append("}"); return sb.toString(); @@ -145,20 +145,20 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1ServiceCIDRStatus + * @throws IOException if the JSON Element is invalid with respect to V1DeviceTaintRuleStatus */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1ServiceCIDRStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1ServiceCIDRStatus is not found in the empty JSON string", V1beta1ServiceCIDRStatus.openapiRequiredFields.toString())); + if (!V1DeviceTaintRuleStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1DeviceTaintRuleStatus is not found in the empty JSON string", V1DeviceTaintRuleStatus.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1ServiceCIDRStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ServiceCIDRStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceTaintRuleStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceTaintRuleStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -182,22 +182,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1ServiceCIDRStatus.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1ServiceCIDRStatus' and its subtypes + if (!V1DeviceTaintRuleStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceTaintRuleStatus' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ServiceCIDRStatus.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceTaintRuleStatus.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1ServiceCIDRStatus value) throws IOException { + public void write(JsonWriter out, V1DeviceTaintRuleStatus value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1ServiceCIDRStatus read(JsonReader in) throws IOException { + public V1DeviceTaintRuleStatus read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -208,18 +208,18 @@ public V1beta1ServiceCIDRStatus read(JsonReader in) throws IOException { } /** - * Create an instance of V1beta1ServiceCIDRStatus given an JSON string + * Create an instance of V1DeviceTaintRuleStatus given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1ServiceCIDRStatus - * @throws IOException if the JSON string is invalid with respect to V1beta1ServiceCIDRStatus + * @return An instance of V1DeviceTaintRuleStatus + * @throws IOException if the JSON string is invalid with respect to V1DeviceTaintRuleStatus */ - public static V1beta1ServiceCIDRStatus fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1ServiceCIDRStatus.class); + public static V1DeviceTaintRuleStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceTaintRuleStatus.class); } /** - * Convert an instance of V1beta1ServiceCIDRStatus to an JSON string + * Convert an instance of V1DeviceTaintRuleStatus to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintSelector.java new file mode 100644 index 0000000000..8e35271571 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintSelector.java @@ -0,0 +1,267 @@ +/* +Copyright 2026 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; + +/** + * 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 = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1DeviceTaintSelector { + public static final String SERIALIZED_NAME_DEVICE = "device"; + @SerializedName(SERIALIZED_NAME_DEVICE) + @jakarta.annotation.Nullable + private String device; + + 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 V1DeviceTaintSelector() { + } + + public V1DeviceTaintSelector 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 V1DeviceTaintSelector 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 V1DeviceTaintSelector 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; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1DeviceTaintSelector v1DeviceTaintSelector = (V1DeviceTaintSelector) o; + return Objects.equals(this.device, v1DeviceTaintSelector.device) && + Objects.equals(this.driver, v1DeviceTaintSelector.driver) && + Objects.equals(this.pool, v1DeviceTaintSelector.pool); + } + + @Override + public int hashCode() { + return Objects.hash(device, driver, pool); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1DeviceTaintSelector {\n"); + sb.append(" device: ").append(toIndentedString(device)).append("\n"); + sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); + sb.append(" pool: ").append(toIndentedString(pool)).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(Arrays.asList("device", "driver", "pool")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DeviceTaintSelector + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1DeviceTaintSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1DeviceTaintSelector is not found in the empty JSON string", V1DeviceTaintSelector.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1DeviceTaintSelector.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceTaintSelector` 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(java.util.Locale.ROOT, "Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); + } + if ((jsonObj.get("driver") != null && !jsonObj.get("driver").isJsonNull()) && !jsonObj.get("driver").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DeviceTaintSelector.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceTaintSelector' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceTaintSelector.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeviceTaintSelector value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeviceTaintSelector read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeviceTaintSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeviceTaintSelector + * @throws IOException if the JSON string is invalid with respect to V1DeviceTaintSelector + */ + public static V1DeviceTaintSelector fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceTaintSelector.class); + } + + /** + * Convert an instance of V1DeviceTaintSelector to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java index e3273b3f42..771f7c910f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceToleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) 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 7ede632253..c5551d6e09 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DownwardAPIProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) 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 93e84264dc..25c179a7b4 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DownwardAPIVolumeFile { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) @@ -74,6 +74,11 @@ public class V1DownwardAPIVolumeFile { @jakarta.annotation.Nullable private V1ResourceFieldSelector resourceFieldRef; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable + private Long user; + public V1DownwardAPIVolumeFile() { } @@ -157,6 +162,26 @@ public void setResourceFieldRef(@jakarta.annotation.Nullable V1ResourceFieldSele } + public V1DownwardAPIVolumeFile user(@jakarta.annotation.Nullable Long user) { + this.user = user; + return this; + } + + /** + * user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. + * @return user + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") + public Long getUser() { + return user; + } + + public void setUser(@jakarta.annotation.Nullable Long user) { + this.user = user; + } + + @Override public boolean equals(Object o) { @@ -170,12 +195,13 @@ public boolean equals(Object o) { return Objects.equals(this.fieldRef, v1DownwardAPIVolumeFile.fieldRef) && Objects.equals(this.mode, v1DownwardAPIVolumeFile.mode) && Objects.equals(this.path, v1DownwardAPIVolumeFile.path) && - Objects.equals(this.resourceFieldRef, v1DownwardAPIVolumeFile.resourceFieldRef); + Objects.equals(this.resourceFieldRef, v1DownwardAPIVolumeFile.resourceFieldRef) && + Objects.equals(this.user, v1DownwardAPIVolumeFile.user); } @Override public int hashCode() { - return Objects.hash(fieldRef, mode, path, resourceFieldRef); + return Objects.hash(fieldRef, mode, path, resourceFieldRef, user); } @Override @@ -186,6 +212,7 @@ public String toString() { sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" resourceFieldRef: ").append(toIndentedString(resourceFieldRef)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); sb.append("}"); return sb.toString(); } @@ -207,7 +234,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("fieldRef", "mode", "path", "resourceFieldRef")); + openapiFields = new HashSet(Arrays.asList("fieldRef", "mode", "path", "resourceFieldRef", "user")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("path")); 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 dcc872caad..105e2b137e 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 @@ -53,13 +53,18 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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_DEFAULT_USER = "defaultUser"; + @SerializedName(SERIALIZED_NAME_DEFAULT_USER) + @jakarta.annotation.Nullable + private Long defaultUser; + public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @jakarta.annotation.Nullable @@ -88,6 +93,26 @@ public void setDefaultMode(@jakarta.annotation.Nullable Integer defaultMode) { } + public V1DownwardAPIVolumeSource defaultUser(@jakarta.annotation.Nullable Long defaultUser) { + this.defaultUser = defaultUser; + return this; + } + + /** + * defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. + * @return defaultUser + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") + public Long getDefaultUser() { + return defaultUser; + } + + public void setDefaultUser(@jakarta.annotation.Nullable Long defaultUser) { + this.defaultUser = defaultUser; + } + + public V1DownwardAPIVolumeSource items(@jakarta.annotation.Nullable List items) { this.items = items; return this; @@ -127,12 +152,13 @@ public boolean equals(Object o) { } V1DownwardAPIVolumeSource v1DownwardAPIVolumeSource = (V1DownwardAPIVolumeSource) o; return Objects.equals(this.defaultMode, v1DownwardAPIVolumeSource.defaultMode) && + Objects.equals(this.defaultUser, v1DownwardAPIVolumeSource.defaultUser) && Objects.equals(this.items, v1DownwardAPIVolumeSource.items); } @Override public int hashCode() { - return Objects.hash(defaultMode, items); + return Objects.hash(defaultMode, defaultUser, items); } @Override @@ -140,6 +166,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DownwardAPIVolumeSource {\n"); sb.append(" defaultMode: ").append(toIndentedString(defaultMode)).append("\n"); + sb.append(" defaultUser: ").append(toIndentedString(defaultUser)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append("}"); return sb.toString(); @@ -162,7 +189,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("defaultMode", "items")); + openapiFields = new HashSet(Arrays.asList("defaultMode", "defaultUser", "items")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); 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 843172ff79..b3f96999d5 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 @@ -51,13 +51,18 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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_MODE = "mode"; + @SerializedName(SERIALIZED_NAME_MODE) + @jakarta.annotation.Nullable + private Integer mode; + public static final String SERIALIZED_NAME_SIZE_LIMIT = "sizeLimit"; @SerializedName(SERIALIZED_NAME_SIZE_LIMIT) @jakarta.annotation.Nullable @@ -86,6 +91,26 @@ public void setMedium(@jakarta.annotation.Nullable String medium) { } + public V1EmptyDirVolumeSource mode(@jakarta.annotation.Nullable Integer mode) { + this.mode = mode; + return this; + } + + /** + * mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not specified, defaults to 0777. This might be in conflict with other options that affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup permissions will override the mode specified here. This field has no effect on Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be enabled. + * @return mode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not specified, defaults to 0777. This might be in conflict with other options that affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup permissions will override the mode specified here. This field has no effect on Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be enabled.") + public Integer getMode() { + return mode; + } + + public void setMode(@jakarta.annotation.Nullable Integer mode) { + this.mode = mode; + } + + public V1EmptyDirVolumeSource sizeLimit(@jakarta.annotation.Nullable Quantity sizeLimit) { this.sizeLimit = sizeLimit; return this; @@ -117,12 +142,13 @@ public boolean equals(Object o) { } V1EmptyDirVolumeSource v1EmptyDirVolumeSource = (V1EmptyDirVolumeSource) o; return Objects.equals(this.medium, v1EmptyDirVolumeSource.medium) && + Objects.equals(this.mode, v1EmptyDirVolumeSource.mode) && Objects.equals(this.sizeLimit, v1EmptyDirVolumeSource.sizeLimit); } @Override public int hashCode() { - return Objects.hash(medium, sizeLimit); + return Objects.hash(medium, mode, sizeLimit); } @Override @@ -130,6 +156,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EmptyDirVolumeSource {\n"); sb.append(" medium: ").append(toIndentedString(medium)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" sizeLimit: ").append(toIndentedString(sizeLimit)).append("\n"); sb.append("}"); return sb.toString(); @@ -152,7 +179,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("medium", "sizeLimit")); + openapiFields = new HashSet(Arrays.asList("medium", "mode", "sizeLimit")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); 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 09516f331d..641ec2e0fb 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 @@ -57,7 +57,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Endpoint { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) 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 b6aaf7b18e..67d69e66cb 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 @@ -51,7 +51,7 @@ * 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. Deprecated: This API is deprecated in v1.33+.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointAddress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) 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 c905ac9a43..38a8ee3925 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointConditions { public static final String SERIALIZED_NAME_READY = "ready"; @SerializedName(SERIALIZED_NAME_READY) 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 c7268348fd..61e6bc3e19 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointHints { public static final String SERIALIZED_NAME_FOR_NODES = "forNodes"; @SerializedName(SERIALIZED_NAME_FOR_NODES) 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 19a8903b86..3c6b5c83f1 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 @@ -55,7 +55,7 @@ * 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 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ADDRESS_TYPE = "addressType"; @SerializedName(SERIALIZED_NAME_ADDRESS_TYPE) 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 d50c95d0d7..67dd6b7350 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 fa379446da..e350dd39b7 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 @@ -54,7 +54,7 @@ * 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 ] Deprecated: This API is deprecated in v1.33+.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointSubset { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) 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 54b6c90e36..04e9ab62cd 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 @@ -54,7 +54,7 @@ * 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}] }, ] 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Endpoints implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2d50cd9ff7..87a4993324 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 @@ -54,7 +54,7 @@ * EndpointsList is a list of endpoints. Deprecated: This API is deprecated in v1.33+. */ @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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointsList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 846b63640e..1892e29cc5 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 @@ -52,7 +52,7 @@ * EnvFromSource represents the source of a set of ConfigMaps or Secrets */ @ApiModel(description = "EnvFromSource represents the source of a set of ConfigMaps or Secrets") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EnvFromSource { public static final String SERIALIZED_NAME_CONFIG_MAP_REF = "configMapRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_REF) 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 d842d2f492..176ec1762d 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EnvVar { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 9b24dd8eba..5822a33116 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EnvVarSource { public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_KEY_REF) 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 7b0f150b43..63cdedf0c6 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 @@ -63,7 +63,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EphemeralContainer { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) 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 95730d4681..29374718b0 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EphemeralVolumeSource { public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE = "volumeClaimTemplate"; @SerializedName(SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE) 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 53f0747b4f..3bd10960b9 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 @@ -50,7 +50,7 @@ * EventSource contains information for an event. */ @ApiModel(description = "EventSource contains information for an event.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EventSource { public static final String SERIALIZED_NAME_COMPONENT = "component"; @SerializedName(SERIALIZED_NAME_COMPONENT) 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 41b618308b..2aede32b7b 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Eviction implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EvictionResponder.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EvictionResponder.java new file mode 100644 index 0000000000..8b9eb5a8eb --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EvictionResponder.java @@ -0,0 +1,241 @@ +/* +Copyright 2026 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; + +/** + * EvictionResponder allows you to specify the responder reacting to an Eviction. Responders should observe and communicate through the Eviction Resource API to help with the graceful eviction of a target (e.g. termination of a pod). + */ +@ApiModel(description = "EvictionResponder allows you to specify the responder reacting to an Eviction. Responders should observe and communicate through the Eviction Resource API to help with the graceful eviction of a target (e.g. termination of a pod).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1EvictionResponder { + 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.Nonnull + private Integer priority; + + public V1EvictionResponder() { + } + + public V1EvictionResponder name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name allows you to identify the responder responding to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name allows you to identify the responder responding to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1EvictionResponder priority(@jakarta.annotation.Nonnull Integer priority) { + this.priority = priority; + return this; + } + + /** + * priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required. + * @return priority + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required.") + public Integer getPriority() { + return priority; + } + + public void setPriority(@jakarta.annotation.Nonnull Integer priority) { + this.priority = priority; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1EvictionResponder v1EvictionResponder = (V1EvictionResponder) o; + return Objects.equals(this.name, v1EvictionResponder.name) && + Objects.equals(this.priority, v1EvictionResponder.priority); + } + + @Override + public int hashCode() { + return Objects.hash(name, priority); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1EvictionResponder {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).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(Arrays.asList("name", "priority")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("name", "priority")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1EvictionResponder + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1EvictionResponder.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1EvictionResponder is not found in the empty JSON string", V1EvictionResponder.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1EvictionResponder.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EvictionResponder` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1EvictionResponder.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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 (!V1EvictionResponder.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1EvictionResponder' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1EvictionResponder.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1EvictionResponder value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1EvictionResponder read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1EvictionResponder given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1EvictionResponder + * @throws IOException if the JSON string is invalid with respect to V1EvictionResponder + */ + public static V1EvictionResponder fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1EvictionResponder.class); + } + + /** + * Convert an instance of V1EvictionResponder to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java index 4c5ce9259a..cadc411157 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CapacityRequirements; +import io.kubernetes.client.openapi.models.V1DeviceDerivedAttribute; import io.kubernetes.client.openapi.models.V1DeviceSelector; import io.kubernetes.client.openapi.models.V1DeviceToleration; import io.swagger.annotations.ApiModel; @@ -55,7 +56,7 @@ * ExactDeviceRequest is a request for one or more identical devices. */ @ApiModel(description = "ExactDeviceRequest is a request for one or more identical devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ExactDeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -77,6 +78,11 @@ public class V1ExactDeviceRequest { @jakarta.annotation.Nullable private Long count; + public static final String SERIALIZED_NAME_DERIVED_ATTRIBUTES = "derivedAttributes"; + @SerializedName(SERIALIZED_NAME_DERIVED_ATTRIBUTES) + @jakarta.annotation.Nullable + private List derivedAttributes = new ArrayList<>(); + public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) @jakarta.annotation.Nonnull @@ -175,6 +181,34 @@ public void setCount(@jakarta.annotation.Nullable Long count) { } + public V1ExactDeviceRequest derivedAttributes(@jakarta.annotation.Nullable List derivedAttributes) { + this.derivedAttributes = derivedAttributes; + return this; + } + + public V1ExactDeviceRequest addDerivedAttributesItem(V1DeviceDerivedAttribute derivedAttributesItem) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + this.derivedAttributes.add(derivedAttributesItem); + return this; + } + + /** + * DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. + * @return derivedAttributes + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") + public List getDerivedAttributes() { + return derivedAttributes; + } + + public void setDerivedAttributes(@jakarta.annotation.Nullable List derivedAttributes) { + this.derivedAttributes = derivedAttributes; + } + + public V1ExactDeviceRequest deviceClassName(@jakarta.annotation.Nonnull String deviceClassName) { this.deviceClassName = deviceClassName; return this; @@ -265,6 +299,7 @@ public boolean equals(Object o) { Objects.equals(this.allocationMode, v1ExactDeviceRequest.allocationMode) && Objects.equals(this.capacity, v1ExactDeviceRequest.capacity) && Objects.equals(this.count, v1ExactDeviceRequest.count) && + Objects.equals(this.derivedAttributes, v1ExactDeviceRequest.derivedAttributes) && Objects.equals(this.deviceClassName, v1ExactDeviceRequest.deviceClassName) && Objects.equals(this.selectors, v1ExactDeviceRequest.selectors) && Objects.equals(this.tolerations, v1ExactDeviceRequest.tolerations); @@ -272,7 +307,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, selectors, tolerations); + return Objects.hash(adminAccess, allocationMode, capacity, count, derivedAttributes, deviceClassName, selectors, tolerations); } @Override @@ -283,6 +318,7 @@ public String toString() { sb.append(" allocationMode: ").append(toIndentedString(allocationMode)).append("\n"); sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" derivedAttributes: ").append(toIndentedString(derivedAttributes)).append("\n"); sb.append(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); @@ -307,7 +343,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("adminAccess", "allocationMode", "capacity", "count", "deviceClassName", "selectors", "tolerations")); + openapiFields = new HashSet(Arrays.asList("adminAccess", "allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "selectors", "tolerations")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("deviceClassName")); @@ -348,6 +384,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { V1CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); } + if (jsonObj.get("derivedAttributes") != null && !jsonObj.get("derivedAttributes").isJsonNull()) { + JsonArray jsonArrayderivedAttributes = jsonObj.getAsJsonArray("derivedAttributes"); + if (jsonArrayderivedAttributes != null) { + // ensure the json data is an array + if (!jsonObj.get("derivedAttributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `derivedAttributes` to be an array in the JSON string but got `%s`", jsonObj.get("derivedAttributes").toString())); + } + + // validate the optional field `derivedAttributes` (array) + for (int i = 0; i < jsonArrayderivedAttributes.size(); i++) { + V1DeviceDerivedAttribute.validateJsonElement(jsonArrayderivedAttributes.get(i)); + }; + } + } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } 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 90bad47396..79d4039bb7 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ExecAction { public static final String SERIALIZED_NAME_COMMAND = "command"; @SerializedName(SERIALIZED_NAME_COMMAND) 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 240345c471..fb8fd559d7 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ExemptPriorityLevelConfiguration { public static final String SERIALIZED_NAME_LENDABLE_PERCENT = "lendablePercent"; @SerializedName(SERIALIZED_NAME_LENDABLE_PERCENT) 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 d0a16f3e72..9143912027 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ExpressionWarning { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) 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 66dedac01e..dae6ad9c11 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ExternalDocumentation { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) 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 cfbdceb6f1..d8bdfa3586 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FCVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 2eefb7fb5c..c1ad616ef3 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FieldSelectorAttributes { public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) 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 955885b005..bcae5ee0a4 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FieldSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java index 814ac3c0f0..85388c921c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java @@ -50,7 +50,7 @@ * FileKeySelector selects a key of the env file. */ @ApiModel(description = "FileKeySelector selects a key of the env file.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FileKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) 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 d7070e38ff..96efdced68 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlexPersistentVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) 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 19632a084c..1ca1a760df 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlexVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) 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 9f852662c8..e0496796e6 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlockerVolumeSource { public static final String SERIALIZED_NAME_DATASET_NAME = "datasetName"; @SerializedName(SERIALIZED_NAME_DATASET_NAME) 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 372c054186..4ce28e380e 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlowDistinguisherMethod { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) 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 0dd2869db9..71a988327a 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlowSchema implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -72,7 +72,7 @@ public class V1FlowSchema implements io.kubernetes.client.common.KubernetesObjec public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1FlowSchemaSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1FlowSchema spec(@jakarta.annotation.Nullable V1FlowSchemaSpec spec) { + public V1FlowSchema spec(@jakarta.annotation.Nonnull V1FlowSchemaSpec spec) { this.spec = spec; return this; } @@ -152,13 +152,13 @@ public V1FlowSchema spec(@jakarta.annotation.Nullable V1FlowSchemaSpec spec) { * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1FlowSchemaSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1FlowSchemaSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1FlowSchemaSpec spec) { this.spec = spec; } @@ -238,7 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -261,6 +261,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FlowSchema` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1FlowSchema.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -272,10 +279,8 @@ 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()) { - V1FlowSchemaSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1FlowSchemaSpec.validateJsonElement(jsonObj.get("spec")); // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { V1FlowSchemaStatus.validateJsonElement(jsonObj.get("status")); 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 9ea55e3121..033b07e4c9 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 @@ -51,7 +51,7 @@ * FlowSchemaCondition describes conditions for a FlowSchema. */ @ApiModel(description = "FlowSchemaCondition describes conditions for a FlowSchema.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlowSchemaCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -75,7 +75,7 @@ public class V1FlowSchemaCondition { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private String type; public V1FlowSchemaCondition() { @@ -147,11 +147,11 @@ public V1FlowSchemaCondition status(@jakarta.annotation.Nullable String status) } /** - * `status` is the status of the condition. Can be True, False, Unknown. Required. + * `status` is the status of the condition. Should be specified and set to one of True, False, Unknown. * @return status */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") + @ApiModelProperty(value = "`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.") public String getStatus() { return status; } @@ -161,7 +161,7 @@ public void setStatus(@jakarta.annotation.Nullable String status) { } - public V1FlowSchemaCondition type(@jakarta.annotation.Nullable String type) { + public V1FlowSchemaCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -170,13 +170,13 @@ public V1FlowSchemaCondition type(@jakarta.annotation.Nullable String type) { * `type` is the type of the condition. Required. * @return type */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "`type` is the type of the condition. Required.") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`type` is the type of the condition. Required.") public String getType() { return type; } - public void setType(@jakarta.annotation.Nullable String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -236,7 +236,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -259,6 +259,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FlowSchemaCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1FlowSchemaCondition.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); @@ -269,7 +276,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } 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 fd8efb6499..33bee24af7 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlowSchemaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 a095503c86..62d5fc1c66 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlowSchemaSpec { public static final String SERIALIZED_NAME_DISTINGUISHER_METHOD = "distinguisherMethod"; @SerializedName(SERIALIZED_NAME_DISTINGUISHER_METHOD) 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 b2f1a96d7a..fcea83479d 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlowSchemaStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) 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 index 751c6111ba..aa89460b37 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ForNode { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 12b80a66b8..34ea8395e9 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ForZone { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 e33d8b1e55..e5126ea3c7 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GCEPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 9ae348a3b9..577ae5230b 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 @@ -50,8 +50,13 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GRPCAction { + public static final String SERIALIZED_NAME_MODE = "mode"; + @SerializedName(SERIALIZED_NAME_MODE) + @jakarta.annotation.Nullable + private String mode; + public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) @jakarta.annotation.Nonnull @@ -65,6 +70,26 @@ public class V1GRPCAction { public V1GRPCAction() { } + public V1GRPCAction mode(@jakarta.annotation.Nullable String mode) { + this.mode = mode; + return this; + } + + /** + * mode specifies the connection mode for the gRPC health probe. Set to \"TLS\" to use TLS without certificate verification. Set to \"Plaintext\" to use a plaintext (insecure) connection explicitly. If not specified, the probe uses a plaintext (insecure) connection. + * @return mode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "mode specifies the connection mode for the gRPC health probe. Set to \"TLS\" to use TLS without certificate verification. Set to \"Plaintext\" to use a plaintext (insecure) connection explicitly. If not specified, the probe uses a plaintext (insecure) connection.") + public String getMode() { + return mode; + } + + public void setMode(@jakarta.annotation.Nullable String mode) { + this.mode = mode; + } + + public V1GRPCAction port(@jakarta.annotation.Nonnull Integer port) { this.port = port; return this; @@ -115,19 +140,21 @@ public boolean equals(Object o) { return false; } V1GRPCAction v1GRPCAction = (V1GRPCAction) o; - return Objects.equals(this.port, v1GRPCAction.port) && + return Objects.equals(this.mode, v1GRPCAction.mode) && + Objects.equals(this.port, v1GRPCAction.port) && Objects.equals(this.service, v1GRPCAction.service); } @Override public int hashCode() { - return Objects.hash(port, service); + return Objects.hash(mode, port, service); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1GRPCAction {\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append(" service: ").append(toIndentedString(service)).append("\n"); sb.append("}"); @@ -151,7 +178,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("port", "service")); + openapiFields = new HashSet(Arrays.asList("mode", "port", "service")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("port")); @@ -185,6 +212,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("mode") != null && !jsonObj.get("mode").isJsonNull()) && !jsonObj.get("mode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `mode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mode").toString())); + } if ((jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) && !jsonObj.get("service").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `service` to be a primitive type in the JSON string but got `%s`", jsonObj.get("service").toString())); } 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 9f3145fcdf..a55f912583 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GitRepoVolumeSource { public static final String SERIALIZED_NAME_DIRECTORY = "directory"; @SerializedName(SERIALIZED_NAME_DIRECTORY) 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 4aa28d8bb0..13cf766b1a 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GlusterfsPersistentVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) 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 66300e9e3e..ba10665d40 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GlusterfsVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupResource.java index f942b31e26..09dec0b0cd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupResource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupResource.java @@ -50,7 +50,7 @@ * GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types */ @ApiModel(description = "GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GroupResource { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) 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 1ad2433d7f..9b9d828c66 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GroupSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 90bae3c084..3dc39497db 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GroupVersionForDiscovery { public static final String SERIALIZED_NAME_GROUP_VERSION = "groupVersion"; @SerializedName(SERIALIZED_NAME_GROUP_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKind.java index 19591d3643..86aa61f24d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKind.java @@ -50,83 +50,83 @@ * GroupVersionKind unambiguously identifies a kind. */ @ApiModel(description = "GroupVersionKind unambiguously identifies a kind.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GroupVersionKind { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) - @jakarta.annotation.Nonnull + @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_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private String version; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + public V1GroupVersionKind() { } - public V1GroupVersionKind group(@jakarta.annotation.Nonnull String group) { + public V1GroupVersionKind group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } /** - * group is the group part of the GroupVersionKind. + * Get group * @return group */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "group is the group part of the GroupVersionKind.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public String getGroup() { return group; } - public void setGroup(@jakarta.annotation.Nonnull String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } - public V1GroupVersionKind kind(@jakarta.annotation.Nonnull String kind) { - this.kind = kind; + public V1GroupVersionKind version(@jakarta.annotation.Nullable String version) { + this.version = version; return this; } /** - * kind is the kind part of the GroupVersionKind. - * @return kind + * Get version + * @return version */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "kind is the kind part of the GroupVersionKind.") - public String getKind() { - return kind; + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public String getVersion() { + return version; } - public void setKind(@jakarta.annotation.Nonnull String kind) { - this.kind = kind; + public void setVersion(@jakarta.annotation.Nullable String version) { + this.version = version; } - public V1GroupVersionKind version(@jakarta.annotation.Nonnull String version) { - this.version = version; + public V1GroupVersionKind kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; return this; } /** - * version is the version part of the GroupVersionKind. - * @return version + * Get kind + * @return kind */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "version is the version part of the GroupVersionKind.") - public String getVersion() { - return version; + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public String getKind() { + return kind; } - public void setVersion(@jakarta.annotation.Nonnull String version) { - this.version = version; + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; } @@ -141,13 +141,13 @@ public boolean equals(Object o) { } V1GroupVersionKind v1GroupVersionKind = (V1GroupVersionKind) o; return Objects.equals(this.group, v1GroupVersionKind.group) && - Objects.equals(this.kind, v1GroupVersionKind.kind) && - Objects.equals(this.version, v1GroupVersionKind.version); + Objects.equals(this.version, v1GroupVersionKind.version) && + Objects.equals(this.kind, v1GroupVersionKind.kind); } @Override public int hashCode() { - return Objects.hash(group, kind, version); + return Objects.hash(group, version, kind); } @Override @@ -155,8 +155,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1GroupVersionKind {\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append("}"); return sb.toString(); } @@ -178,10 +178,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("group", "kind", "version")); + openapiFields = new HashSet(Arrays.asList("group", "version", "kind")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("group", "kind", "version")); + openapiRequiredFields = new HashSet(0); } /** @@ -204,23 +204,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1GroupVersionKind` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1GroupVersionKind.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("group").isJsonPrimitive()) { + if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); } - if (!jsonObj.get("kind").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); - } - if (!jsonObj.get("version").isJsonPrimitive()) { + if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { 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 de580d2ba8..8406bd7e2a 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HTTPGetAction { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) @@ -76,6 +76,11 @@ public class V1HTTPGetAction { @jakarta.annotation.Nonnull private IntOrString 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_SCHEME = "scheme"; @SerializedName(SERIALIZED_NAME_SCHEME) @jakarta.annotation.Nullable @@ -172,6 +177,26 @@ public void setPort(@jakarta.annotation.Nonnull IntOrString port) { } + public V1HTTPGetAction protocol(@jakarta.annotation.Nullable String protocol) { + this.protocol = protocol; + return this; + } + + /** + * Protocol selects the wire protocol for the probe connection. Nil defaults to HTTP/1.1. + * @return protocol + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Protocol selects the wire protocol for the probe connection. Nil defaults to HTTP/1.1.") + public String getProtocol() { + return protocol; + } + + public void setProtocol(@jakarta.annotation.Nullable String protocol) { + this.protocol = protocol; + } + + public V1HTTPGetAction scheme(@jakarta.annotation.Nullable String scheme) { this.scheme = scheme; return this; @@ -206,12 +231,13 @@ public boolean equals(Object o) { Objects.equals(this.httpHeaders, v1HTTPGetAction.httpHeaders) && Objects.equals(this.path, v1HTTPGetAction.path) && Objects.equals(this.port, v1HTTPGetAction.port) && + Objects.equals(this.protocol, v1HTTPGetAction.protocol) && Objects.equals(this.scheme, v1HTTPGetAction.scheme); } @Override public int hashCode() { - return Objects.hash(host, httpHeaders, path, port, scheme); + return Objects.hash(host, httpHeaders, path, port, protocol, scheme); } @Override @@ -222,6 +248,7 @@ public String toString() { sb.append(" httpHeaders: ").append(toIndentedString(httpHeaders)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); sb.append(" scheme: ").append(toIndentedString(scheme)).append("\n"); sb.append("}"); return sb.toString(); @@ -244,7 +271,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("host", "httpHeaders", "path", "port", "scheme")); + openapiFields = new HashSet(Arrays.asList("host", "httpHeaders", "path", "port", "protocol", "scheme")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("port")); @@ -301,6 +328,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("port").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `port` to be a primitive type in the JSON string but got `%s`", jsonObj.get("port").toString())); } + if ((jsonObj.get("protocol") != null && !jsonObj.get("protocol").isJsonNull()) && !jsonObj.get("protocol").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); + } if ((jsonObj.get("scheme") != null && !jsonObj.get("scheme").isJsonNull()) && !jsonObj.get("scheme").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `scheme` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scheme").toString())); } 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 242b278699..aa650cce68 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HTTPHeader { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 a308057b04..f983782bf6 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HTTPIngressPath { public static final String SERIALIZED_NAME_BACKEND = "backend"; @SerializedName(SERIALIZED_NAME_BACKEND) 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 4f0f9ecceb..854d0a5451 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HTTPIngressRuleValue { public static final String SERIALIZED_NAME_PATHS = "paths"; @SerializedName(SERIALIZED_NAME_PATHS) 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 ee0d6947ee..ff99283085 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 @@ -53,7 +53,7 @@ * configuration of a horizontal pod autoscaler. */ @ApiModel(description = "configuration of a horizontal pod autoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 17b0c09f03..64666821c9 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 @@ -54,7 +54,7 @@ * list of horizontal pod autoscaler objects. */ @ApiModel(description = "list of horizontal pod autoscaler objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 eaeedb4c5f..a0f652907e 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 @@ -51,7 +51,7 @@ * specification of a horizontal pod autoscaler. */ @ApiModel(description = "specification of a horizontal pod autoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; @SerializedName(SERIALIZED_NAME_MAX_REPLICAS) 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 c73ba5573b..a975065c31 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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) 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 5a99515bad..6e00cc7afc 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HostAlias { public static final String SERIALIZED_NAME_HOSTNAMES = "hostnames"; @SerializedName(SERIALIZED_NAME_HOSTNAMES) 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 62998e210e..719889076e 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HostIP { public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) 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 a4a5febaad..1a2b083c11 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HostPathVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) 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 index 7ccf0faab9..39394ac11f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IPAddress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 index 71ce9f2ba7..ef65d5164b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java @@ -54,7 +54,7 @@ * IPAddressList contains a list of IPAddress. */ @ApiModel(description = "IPAddressList contains a list of IPAddress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IPAddressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 index 6f60a3070f..d53bb4f63e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IPAddressSpec { public static final String SERIALIZED_NAME_PARENT_REF = "parentRef"; @SerializedName(SERIALIZED_NAME_PARENT_REF) 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 0f9b1733dc..e50a4ad0d3 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IPBlock { public static final String SERIALIZED_NAME_CIDR = "cidr"; @SerializedName(SERIALIZED_NAME_CIDR) 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 bd356a56ac..ca5e304271 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ISCSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) 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 31586e0144..be081f62f6 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ISCSIVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) 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 b6dd306047..549edcff66 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 @@ -50,7 +50,7 @@ * ImageVolumeSource represents a image volume resource. */ @ApiModel(description = "ImageVolumeSource represents a image volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ImageVolumeSource { public static final String SERIALIZED_NAME_PULL_POLICY = "pullPolicy"; @SerializedName(SERIALIZED_NAME_PULL_POLICY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatus.java index fa14e8de4f..7a0f9eeba6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatus.java @@ -50,7 +50,7 @@ * ImageVolumeStatus represents the image-based volume status. */ @ApiModel(description = "ImageVolumeStatus represents the image-based volume status.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ImageVolumeStatus { public static final String SERIALIZED_NAME_IMAGE_REF = "imageRef"; @SerializedName(SERIALIZED_NAME_IMAGE_REF) 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 89397cb061..c7e7e821db 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Ingress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 58f60a3636..8510b2ca73 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressBackend { public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) 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 51a7ffda5e..b7d69d1e54 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2a8bd4df23..d39f4fa4b2 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 @@ -54,7 +54,7 @@ * IngressClassList is a collection of IngressClasses. */ @ApiModel(description = "IngressClassList is a collection of IngressClasses.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ea5de486bb..5724c16005 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressClassParametersReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) 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 47bae16dd4..700586a86b 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressClassSpec { public static final String SERIALIZED_NAME_CONTROLLER = "controller"; @SerializedName(SERIALIZED_NAME_CONTROLLER) 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 65a1ff9cc9..8f40e2e9e2 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 @@ -54,7 +54,7 @@ * IngressList is a collection of Ingress. */ @ApiModel(description = "IngressList is a collection of Ingress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 aa98d1e225..9c6fdce432 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressLoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) 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 4ad673c6eb..ab15886a2e 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressLoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) 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 8a5d4e3e59..5df2a49e84 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressPortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) 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 9a89149b36..0137a8bd32 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressRule { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) 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 36053201a6..b571274575 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressServiceBackend { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 74b18f91a6..59fe488728 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressSpec { public static final String SERIALIZED_NAME_DEFAULT_BACKEND = "defaultBackend"; @SerializedName(SERIALIZED_NAME_DEFAULT_BACKEND) 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 1a963a1e22..0f51f0e83b 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressStatus { public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; @SerializedName(SERIALIZED_NAME_LOAD_BALANCER) 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 8980aad9ec..15a377a570 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressTLS { public static final String SERIALIZED_NAME_HOSTS = "hosts"; @SerializedName(SERIALIZED_NAME_HOSTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatch.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatch.java index 1105ad73b5..174c1dfb14 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatch.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatch.java @@ -50,7 +50,7 @@ * JSONPatch defines a JSON Patch. */ @ApiModel(description = "JSONPatch defines a JSON Patch.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1JSONPatch { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) 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 3fca3fedd2..a0c2407f1f 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 @@ -56,7 +56,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_$_REF = "$ref"; @SerializedName(SERIALIZED_NAME_$_REF) 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 23641a9efd..ec53fe2ffe 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Job implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 37dd039c2d..9485707f5a 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1JobCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) 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 35061a9e06..75d9267e00 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 @@ -54,7 +54,7 @@ * JobList is a collection of jobs. */ @ApiModel(description = "JobList is a collection of jobs.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1JobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSchedulingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSchedulingConfiguration.java new file mode 100644 index 0000000000..fe835b185b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSchedulingConfiguration.java @@ -0,0 +1,325 @@ +/* +Copyright 2026 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.V1alpha3WorkloadPodGroupDisruptionMode; +import io.kubernetes.client.openapi.models.V1alpha3WorkloadPodGroupResourceClaim; +import io.kubernetes.client.openapi.models.V1alpha3WorkloadPodGroupSchedulingConstraints; +import io.kubernetes.client.openapi.models.V1alpha3WorkloadPodGroupSchedulingPolicy; +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; + +/** + * JobSchedulingConfiguration composes the reusable workload-aware scheduling building blocks. + */ +@ApiModel(description = "JobSchedulingConfiguration composes the reusable workload-aware scheduling building blocks.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1JobSchedulingConfiguration { + public static final String SERIALIZED_NAME_DISRUPTION_MODE = "disruptionMode"; + @SerializedName(SERIALIZED_NAME_DISRUPTION_MODE) + @jakarta.annotation.Nullable + private V1alpha3WorkloadPodGroupDisruptionMode disruptionMode; + + 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_SCHEDULING_CONSTRAINTS = "schedulingConstraints"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_CONSTRAINTS) + @jakarta.annotation.Nullable + private V1alpha3WorkloadPodGroupSchedulingConstraints schedulingConstraints; + + public static final String SERIALIZED_NAME_SCHEDULING_POLICY = "schedulingPolicy"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_POLICY) + @jakarta.annotation.Nullable + private V1alpha3WorkloadPodGroupSchedulingPolicy schedulingPolicy; + + public V1JobSchedulingConfiguration() { + } + + public V1JobSchedulingConfiguration disruptionMode(@jakarta.annotation.Nullable V1alpha3WorkloadPodGroupDisruptionMode disruptionMode) { + this.disruptionMode = disruptionMode; + return this; + } + + /** + * Get disruptionMode + * @return disruptionMode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3WorkloadPodGroupDisruptionMode getDisruptionMode() { + return disruptionMode; + } + + public void setDisruptionMode(@jakarta.annotation.Nullable V1alpha3WorkloadPodGroupDisruptionMode disruptionMode) { + this.disruptionMode = disruptionMode; + } + + + public V1JobSchedulingConfiguration resourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; + return this; + } + + public V1JobSchedulingConfiguration addResourceClaimsItem(V1alpha3WorkloadPodGroupResourceClaim resourceClaimsItem) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + this.resourceClaims.add(resourceClaimsItem); + return this; + } + + /** + * ResourceClaims defines which ResourceClaims may be shared among Pods in the Job. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. At most 4 claims may be set, matching the limit on the resulting PodGroup. This list is immutable after creation: entries may neither be added, removed, nor modified. + * @return resourceClaims + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceClaims defines which ResourceClaims may be shared among Pods in the Job. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. At most 4 claims may be set, matching the limit on the resulting PodGroup. This list is immutable after creation: entries may neither be added, removed, nor modified.") + public List getResourceClaims() { + return resourceClaims; + } + + public void setResourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; + } + + + public V1JobSchedulingConfiguration schedulingConstraints(@jakarta.annotation.Nullable V1alpha3WorkloadPodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + return this; + } + + /** + * Get schedulingConstraints + * @return schedulingConstraints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3WorkloadPodGroupSchedulingConstraints getSchedulingConstraints() { + return schedulingConstraints; + } + + public void setSchedulingConstraints(@jakarta.annotation.Nullable V1alpha3WorkloadPodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + } + + + public V1JobSchedulingConfiguration schedulingPolicy(@jakarta.annotation.Nullable V1alpha3WorkloadPodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + return this; + } + + /** + * Get schedulingPolicy + * @return schedulingPolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3WorkloadPodGroupSchedulingPolicy getSchedulingPolicy() { + return schedulingPolicy; + } + + public void setSchedulingPolicy(@jakarta.annotation.Nullable V1alpha3WorkloadPodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1JobSchedulingConfiguration v1JobSchedulingConfiguration = (V1JobSchedulingConfiguration) o; + return Objects.equals(this.disruptionMode, v1JobSchedulingConfiguration.disruptionMode) && + Objects.equals(this.resourceClaims, v1JobSchedulingConfiguration.resourceClaims) && + Objects.equals(this.schedulingConstraints, v1JobSchedulingConfiguration.schedulingConstraints) && + Objects.equals(this.schedulingPolicy, v1JobSchedulingConfiguration.schedulingPolicy); + } + + @Override + public int hashCode() { + return Objects.hash(disruptionMode, resourceClaims, schedulingConstraints, schedulingPolicy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1JobSchedulingConfiguration {\n"); + sb.append(" disruptionMode: ").append(toIndentedString(disruptionMode)).append("\n"); + sb.append(" resourceClaims: ").append(toIndentedString(resourceClaims)).append("\n"); + sb.append(" schedulingConstraints: ").append(toIndentedString(schedulingConstraints)).append("\n"); + sb.append(" schedulingPolicy: ").append(toIndentedString(schedulingPolicy)).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(Arrays.asList("disruptionMode", "resourceClaims", "schedulingConstraints", "schedulingPolicy")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1JobSchedulingConfiguration + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1JobSchedulingConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1JobSchedulingConfiguration is not found in the empty JSON string", V1JobSchedulingConfiguration.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1JobSchedulingConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1JobSchedulingConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `disruptionMode` + if (jsonObj.get("disruptionMode") != null && !jsonObj.get("disruptionMode").isJsonNull()) { + V1alpha3WorkloadPodGroupDisruptionMode.validateJsonElement(jsonObj.get("disruptionMode")); + } + if (jsonObj.get("resourceClaims") != null && !jsonObj.get("resourceClaims").isJsonNull()) { + JsonArray jsonArrayresourceClaims = jsonObj.getAsJsonArray("resourceClaims"); + if (jsonArrayresourceClaims != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceClaims").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaims` to be an array in the JSON string but got `%s`", jsonObj.get("resourceClaims").toString())); + } + + // validate the optional field `resourceClaims` (array) + for (int i = 0; i < jsonArrayresourceClaims.size(); i++) { + V1alpha3WorkloadPodGroupResourceClaim.validateJsonElement(jsonArrayresourceClaims.get(i)); + }; + } + } + // validate the optional field `schedulingConstraints` + if (jsonObj.get("schedulingConstraints") != null && !jsonObj.get("schedulingConstraints").isJsonNull()) { + V1alpha3WorkloadPodGroupSchedulingConstraints.validateJsonElement(jsonObj.get("schedulingConstraints")); + } + // validate the optional field `schedulingPolicy` + if (jsonObj.get("schedulingPolicy") != null && !jsonObj.get("schedulingPolicy").isJsonNull()) { + V1alpha3WorkloadPodGroupSchedulingPolicy.validateJsonElement(jsonObj.get("schedulingPolicy")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1JobSchedulingConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1JobSchedulingConfiguration' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1JobSchedulingConfiguration.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1JobSchedulingConfiguration value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1JobSchedulingConfiguration read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1JobSchedulingConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JobSchedulingConfiguration + * @throws IOException if the JSON string is invalid with respect to V1JobSchedulingConfiguration + */ + public static V1JobSchedulingConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1JobSchedulingConfiguration.class); + } + + /** + * Convert an instance of V1JobSchedulingConfiguration to an JSON 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 33552f9675..d3b3af82ce 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 @@ -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.V1JobSchedulingConfiguration; import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1PodFailurePolicy; import io.kubernetes.client.openapi.models.V1PodTemplateSpec; @@ -54,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1JobSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) @@ -111,6 +112,11 @@ public class V1JobSpec { @jakarta.annotation.Nullable private String podReplacementPolicy; + public static final String SERIALIZED_NAME_SCHEDULING = "scheduling"; + @SerializedName(SERIALIZED_NAME_SCHEDULING) + @jakarta.annotation.Nullable + private V1JobSchedulingConfiguration scheduling; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) @jakarta.annotation.Nullable @@ -359,6 +365,26 @@ public void setPodReplacementPolicy(@jakarta.annotation.Nullable String podRepla } + public V1JobSpec scheduling(@jakarta.annotation.Nullable V1JobSchedulingConfiguration scheduling) { + this.scheduling = scheduling; + return this; + } + + /** + * Get scheduling + * @return scheduling + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1JobSchedulingConfiguration getScheduling() { + return scheduling; + } + + public void setScheduling(@jakarta.annotation.Nullable V1JobSchedulingConfiguration scheduling) { + this.scheduling = scheduling; + } + + public V1JobSpec selector(@jakarta.annotation.Nullable V1LabelSelector selector) { this.selector = selector; return this; @@ -480,6 +506,7 @@ public boolean equals(Object o) { Objects.equals(this.parallelism, v1JobSpec.parallelism) && Objects.equals(this.podFailurePolicy, v1JobSpec.podFailurePolicy) && Objects.equals(this.podReplacementPolicy, v1JobSpec.podReplacementPolicy) && + Objects.equals(this.scheduling, v1JobSpec.scheduling) && Objects.equals(this.selector, v1JobSpec.selector) && Objects.equals(this.successPolicy, v1JobSpec.successPolicy) && Objects.equals(this.suspend, v1JobSpec.suspend) && @@ -489,7 +516,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(activeDeadlineSeconds, backoffLimit, backoffLimitPerIndex, completionMode, completions, managedBy, manualSelector, maxFailedIndexes, parallelism, podFailurePolicy, podReplacementPolicy, selector, successPolicy, suspend, template, ttlSecondsAfterFinished); + return Objects.hash(activeDeadlineSeconds, backoffLimit, backoffLimitPerIndex, completionMode, completions, managedBy, manualSelector, maxFailedIndexes, parallelism, podFailurePolicy, podReplacementPolicy, scheduling, selector, successPolicy, suspend, template, ttlSecondsAfterFinished); } @Override @@ -507,6 +534,7 @@ public String toString() { sb.append(" parallelism: ").append(toIndentedString(parallelism)).append("\n"); sb.append(" podFailurePolicy: ").append(toIndentedString(podFailurePolicy)).append("\n"); sb.append(" podReplacementPolicy: ").append(toIndentedString(podReplacementPolicy)).append("\n"); + sb.append(" scheduling: ").append(toIndentedString(scheduling)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); sb.append(" successPolicy: ").append(toIndentedString(successPolicy)).append("\n"); sb.append(" suspend: ").append(toIndentedString(suspend)).append("\n"); @@ -533,7 +561,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("activeDeadlineSeconds", "backoffLimit", "backoffLimitPerIndex", "completionMode", "completions", "managedBy", "manualSelector", "maxFailedIndexes", "parallelism", "podFailurePolicy", "podReplacementPolicy", "selector", "successPolicy", "suspend", "template", "ttlSecondsAfterFinished")); + openapiFields = new HashSet(Arrays.asList("activeDeadlineSeconds", "backoffLimit", "backoffLimitPerIndex", "completionMode", "completions", "managedBy", "manualSelector", "maxFailedIndexes", "parallelism", "podFailurePolicy", "podReplacementPolicy", "scheduling", "selector", "successPolicy", "suspend", "template", "ttlSecondsAfterFinished")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("template")); @@ -580,6 +608,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("podReplacementPolicy") != null && !jsonObj.get("podReplacementPolicy").isJsonNull()) && !jsonObj.get("podReplacementPolicy").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podReplacementPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podReplacementPolicy").toString())); } + // validate the optional field `scheduling` + if (jsonObj.get("scheduling") != null && !jsonObj.get("scheduling").isJsonNull()) { + V1JobSchedulingConfiguration.validateJsonElement(jsonObj.get("scheduling")); + } // validate the optional field `selector` if (jsonObj.get("selector") != null && !jsonObj.get("selector").isJsonNull()) { V1LabelSelector.validateJsonElement(jsonObj.get("selector")); 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 50f85df9c1..c7ab90d364 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1JobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) @@ -309,11 +309,11 @@ public V1JobStatus terminating(@jakarta.annotation.Nullable Integer terminating) } /** - * 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). + * The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). * @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).") + @ApiModelProperty(value = "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).") public Integer getTerminating() { return terminating; } 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 abaa9fe71c..8fd98b182f 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1JobTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) 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 6899bc1c7e..698c1c4e2e 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1KeyToPath { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -67,6 +67,11 @@ public class V1KeyToPath { @jakarta.annotation.Nonnull private String path; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable + private Long user; + public V1KeyToPath() { } @@ -130,6 +135,26 @@ public void setPath(@jakarta.annotation.Nonnull String path) { } + public V1KeyToPath user(@jakarta.annotation.Nullable Long user) { + this.user = user; + return this; + } + + /** + * user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. + * @return user + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") + public Long getUser() { + return user; + } + + public void setUser(@jakarta.annotation.Nullable Long user) { + this.user = user; + } + + @Override public boolean equals(Object o) { @@ -142,12 +167,13 @@ public boolean equals(Object o) { V1KeyToPath v1KeyToPath = (V1KeyToPath) o; return Objects.equals(this.key, v1KeyToPath.key) && Objects.equals(this.mode, v1KeyToPath.mode) && - Objects.equals(this.path, v1KeyToPath.path); + Objects.equals(this.path, v1KeyToPath.path) && + Objects.equals(this.user, v1KeyToPath.user); } @Override public int hashCode() { - return Objects.hash(key, mode, path); + return Objects.hash(key, mode, path, user); } @Override @@ -157,6 +183,7 @@ public String toString() { sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); sb.append("}"); return sb.toString(); } @@ -178,7 +205,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("key", "mode", "path")); + openapiFields = new HashSet(Arrays.asList("key", "mode", "path", "user")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("key", "path")); 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 7f64b3d38a..7ee18b45d0 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LabelSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) 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 a0f4440366..268ad23566 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LabelSelectorAttributes { public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) 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 45c24ed002..8518af6245 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LabelSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) 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 44f9c79356..b5f52e4033 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 @@ -52,7 +52,7 @@ * Lease defines a lease concept. */ @ApiModel(description = "Lease defines a lease concept.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Lease implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 20f226a159..b6d68c6372 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LeaseList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b756324a7c..86a3ca766b 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LeaseSpec { public static final String SERIALIZED_NAME_ACQUIRE_TIME = "acquireTime"; @SerializedName(SERIALIZED_NAME_ACQUIRE_TIME) @@ -177,11 +177,11 @@ public V1LeaseSpec preferredHolder(@jakarta.annotation.Nullable String preferred } /** - * 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. + * 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.") + @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; } @@ -217,11 +217,11 @@ public V1LeaseSpec strategy(@jakarta.annotation.Nullable String strategy) { } /** - * 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. + * 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.") + @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; } 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 933ded2a56..f5852767a7 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Lifecycle { public static final String SERIALIZED_NAME_POST_START = "postStart"; @SerializedName(SERIALIZED_NAME_POST_START) 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 805ee979ba..35283e7c36 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LifecycleHandler { public static final String SERIALIZED_NAME_EXEC = "exec"; @SerializedName(SERIALIZED_NAME_EXEC) 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 f8a20ab7ad..cf73a1d53d 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LimitRange implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b80a23eb21..b21be589c4 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LimitRangeItem { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) 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 7dac582a16..abe5d5965d 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LimitRangeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 e7e89655f6..bb91ca789e 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LimitRangeSpec { public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) 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 2fbe9dbda7..d8ebbb8d62 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LimitResponse { public static final String SERIALIZED_NAME_QUEUING = "queuing"; @SerializedName(SERIALIZED_NAME_QUEUING) 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 e91289d3f6..80203b33a8 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LimitedPriorityLevelConfiguration { public static final String SERIALIZED_NAME_BORROWING_LIMIT_PERCENT = "borrowingLimitPercent"; @SerializedName(SERIALIZED_NAME_BORROWING_LIMIT_PERCENT) @@ -65,7 +65,7 @@ public class V1LimitedPriorityLevelConfiguration { public static final String SERIALIZED_NAME_LIMIT_RESPONSE = "limitResponse"; @SerializedName(SERIALIZED_NAME_LIMIT_RESPONSE) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1LimitResponse limitResponse; public static final String SERIALIZED_NAME_NOMINAL_CONCURRENCY_SHARES = "nominalConcurrencyShares"; @@ -116,7 +116,7 @@ public void setLendablePercent(@jakarta.annotation.Nullable Integer lendablePerc } - public V1LimitedPriorityLevelConfiguration limitResponse(@jakarta.annotation.Nullable V1LimitResponse limitResponse) { + public V1LimitedPriorityLevelConfiguration limitResponse(@jakarta.annotation.Nonnull V1LimitResponse limitResponse) { this.limitResponse = limitResponse; return this; } @@ -125,13 +125,13 @@ public V1LimitedPriorityLevelConfiguration limitResponse(@jakarta.annotation.Nul * Get limitResponse * @return limitResponse */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1LimitResponse getLimitResponse() { return limitResponse; } - public void setLimitResponse(@jakarta.annotation.Nullable V1LimitResponse limitResponse) { + public void setLimitResponse(@jakarta.annotation.Nonnull V1LimitResponse limitResponse) { this.limitResponse = limitResponse; } @@ -209,7 +209,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("borrowingLimitPercent", "lendablePercent", "limitResponse", "nominalConcurrencyShares")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("limitResponse")); } /** @@ -232,11 +232,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LimitedPriorityLevelConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `limitResponse` - if (jsonObj.get("limitResponse") != null && !jsonObj.get("limitResponse").isJsonNull()) { - V1LimitResponse.validateJsonElement(jsonObj.get("limitResponse")); + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1LimitedPriorityLevelConfiguration.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `limitResponse` + V1LimitResponse.validateJsonElement(jsonObj.get("limitResponse")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { 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 e853d00479..8558fcc99d 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LinuxContainerUser { public static final String SERIALIZED_NAME_GID = "gid"; @SerializedName(SERIALIZED_NAME_GID) 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 7fc609b7e5..60094925de 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ListMeta { public static final String SERIALIZED_NAME_CONTINUE = "continue"; @SerializedName(SERIALIZED_NAME_CONTINUE) 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 3546de621a..c2633dc07b 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) 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 4ea1f1e0cc..bc19177267 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) 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 68761fb62f..d9b8c17f8c 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LocalObjectReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 0195ede33d..be742278e0 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LocalSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 f64495cf0e..35b384eb10 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LocalVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 36c723635b..ee49303017 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ManagedFieldsEntry { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 a12b6df947..8fd1a65a83 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) 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 1f710f8b93..87e0350ba3 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) 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 78734f00a2..d22b02b1eb 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ModifyVolumeStatus { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicy.java index 8645cf8aee..e695f28715 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicy.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MutatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBinding.java index 7333aa7fa1..2c19c7f0d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBinding.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MutatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingList.java index 7ecae0e448..1449163054 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingList.java @@ -54,7 +54,7 @@ * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MutatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpec.java index e98299c1e7..a903a6859b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpec.java @@ -52,7 +52,7 @@ * MutatingAdmissionPolicyBindingSpec defines the specification of the MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingSpec defines the specification of the MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MutatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyList.java index 6084525cdd..42536bdbbb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyList.java @@ -54,7 +54,7 @@ * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. */ @ApiModel(description = "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MutatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpec.java index b63ca257dc..969931ce2e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpec.java @@ -57,7 +57,7 @@ * MutatingAdmissionPolicySpec defines the desired behavior of the admission policy. */ @ApiModel(description = "MutatingAdmissionPolicySpec defines the desired behavior of the admission policy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MutatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) 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 58febd21bd..35f544193c 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 @@ -56,7 +56,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MutatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) 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 8b4b6e3e73..5f4316e4e3 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MutatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b2ee345580..cfb3a55c05 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 @@ -54,7 +54,7 @@ * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. */ @ApiModel(description = "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MutatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Mutation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Mutation.java index ddf48b27f4..f5c58041b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Mutation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Mutation.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Mutation { public static final String SERIALIZED_NAME_APPLY_CONFIGURATION = "applyConfiguration"; @SerializedName(SERIALIZED_NAME_APPLY_CONFIGURATION) 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 340bd39cd2..c402313647 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NFSVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) 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 738dcb54ae..85ff9434e8 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) 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 6633a3220e..d28e869f6d 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Namespace implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2e0092f125..abe5a27c1b 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NamespaceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 4bd3920aae..1894aa8248 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 @@ -54,7 +54,7 @@ * NamespaceList is a list of Namespaces. */ @ApiModel(description = "NamespaceList is a list of Namespaces.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NamespaceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 88e042c2ee..0813ca6edb 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NamespaceSpec { public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; @SerializedName(SERIALIZED_NAME_FINALIZERS) 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 000275935c..3bf5504875 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NamespaceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java index 33f30f350c..e5407afae2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java @@ -52,7 +52,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkDeviceData { public static final String SERIALIZED_NAME_HARDWARE_ADDRESS = "hardwareAddress"; @SerializedName(SERIALIZED_NAME_HARDWARE_ADDRESS) 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 1ad6d44389..a39071f88c 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6b4b08bcff..ebc6a133a1 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicyEgressRule { public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) 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 600c8b16c5..1adb2955c8 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicyIngressRule { public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) 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 a036e44a51..994278274f 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 61e5cb49c6..454141a73e 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicyPeer { public static final String SERIALIZED_NAME_IP_BLOCK = "ipBlock"; @SerializedName(SERIALIZED_NAME_IP_BLOCK) 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 dbbe3cb68f..e57b2ab9fb 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicyPort { public static final String SERIALIZED_NAME_END_PORT = "endPort"; @SerializedName(SERIALIZED_NAME_END_PORT) 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 ad702d960c..246f8b76cf 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_EGRESS = "egress"; @SerializedName(SERIALIZED_NAME_EGRESS) 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 ef0ae5ed77..2387b3ed20 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Node implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 437fd500d5..b3e77cd121 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeAddress { public static final String SERIALIZED_NAME_ADDRESS = "address"; @SerializedName(SERIALIZED_NAME_ADDRESS) 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 e380cc60e2..2fe28298f7 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappedResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappedResources.java new file mode 100644 index 0000000000..23ccf75e9d --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMappedResources.java @@ -0,0 +1,245 @@ +/* +Copyright 2026 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; + +/** + * NodeAllocatableMappedResources describes mapped node allocatable resource allocations. + */ +@ApiModel(description = "NodeAllocatableMappedResources describes mapped node allocatable resource allocations.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1NodeAllocatableMappedResources { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_QUANTITY = "quantity"; + @SerializedName(SERIALIZED_NAME_QUANTITY) + @jakarta.annotation.Nonnull + private Quantity quantity; + + public V1NodeAllocatableMappedResources() { + } + + public V1NodeAllocatableMappedResources name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name is the name of the resource (e.g., cpu, memory). + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the name of the resource (e.g., cpu, memory).") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1NodeAllocatableMappedResources quantity(@jakarta.annotation.Nonnull Quantity quantity) { + this.quantity = quantity; + 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 quantity + */ + @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 getQuantity() { + return quantity; + } + + public void setQuantity(@jakarta.annotation.Nonnull Quantity quantity) { + this.quantity = quantity; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NodeAllocatableMappedResources v1NodeAllocatableMappedResources = (V1NodeAllocatableMappedResources) o; + return Objects.equals(this.name, v1NodeAllocatableMappedResources.name) && + Objects.equals(this.quantity, v1NodeAllocatableMappedResources.quantity); + } + + @Override + public int hashCode() { + return Objects.hash(name, quantity); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NodeAllocatableMappedResources {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" quantity: ").append(toIndentedString(quantity)).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(Arrays.asList("name", "quantity")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("name", "quantity")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeAllocatableMappedResources + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1NodeAllocatableMappedResources.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1NodeAllocatableMappedResources is not found in the empty JSON string", V1NodeAllocatableMappedResources.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1NodeAllocatableMappedResources.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeAllocatableMappedResources` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NodeAllocatableMappedResources.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("quantity").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `quantity` to be a primitive type in the JSON string but got `%s`", jsonObj.get("quantity").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeAllocatableMappedResources.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeAllocatableMappedResources' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeAllocatableMappedResources.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeAllocatableMappedResources value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeAllocatableMappedResources read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeAllocatableMappedResources given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeAllocatableMappedResources + * @throws IOException if the JSON string is invalid with respect to V1NodeAllocatableMappedResources + */ + public static V1NodeAllocatableMappedResources fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeAllocatableMappedResources.class); + } + + /** + * Convert an instance of V1NodeAllocatableMappedResources to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMapping.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMapping.java new file mode 100644 index 0000000000..a430437944 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableMapping.java @@ -0,0 +1,268 @@ +/* +Copyright 2026 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; + +/** + * NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. + */ +@ApiModel(description = "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1NodeAllocatableMapping { + public static final String SERIALIZED_NAME_CAPACITY_KEY = "capacityKey"; + @SerializedName(SERIALIZED_NAME_CAPACITY_KEY) + @jakarta.annotation.Nullable + private String capacityKey; + + public static final String SERIALIZED_NAME_CAPACITY_MULTIPLIER = "capacityMultiplier"; + @SerializedName(SERIALIZED_NAME_CAPACITY_MULTIPLIER) + @jakarta.annotation.Nullable + private Quantity capacityMultiplier; + + public static final String SERIALIZED_NAME_DEVICE_MULTIPLIER = "deviceMultiplier"; + @SerializedName(SERIALIZED_NAME_DEVICE_MULTIPLIER) + @jakarta.annotation.Nullable + private Quantity deviceMultiplier; + + public V1NodeAllocatableMapping() { + } + + public V1NodeAllocatableMapping capacityKey(@jakarta.annotation.Nullable String capacityKey) { + this.capacityKey = capacityKey; + return this; + } + + /** + * CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. + * @return capacityKey + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.") + public String getCapacityKey() { + return capacityKey; + } + + public void setCapacityKey(@jakarta.annotation.Nullable String capacityKey) { + this.capacityKey = capacityKey; + } + + + public V1NodeAllocatableMapping capacityMultiplier(@jakarta.annotation.Nullable Quantity capacityMultiplier) { + this.capacityMultiplier = capacityMultiplier; + 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 capacityMultiplier + */ + @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 getCapacityMultiplier() { + return capacityMultiplier; + } + + public void setCapacityMultiplier(@jakarta.annotation.Nullable Quantity capacityMultiplier) { + this.capacityMultiplier = capacityMultiplier; + } + + + public V1NodeAllocatableMapping deviceMultiplier(@jakarta.annotation.Nullable Quantity deviceMultiplier) { + this.deviceMultiplier = deviceMultiplier; + 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 deviceMultiplier + */ + @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 getDeviceMultiplier() { + return deviceMultiplier; + } + + public void setDeviceMultiplier(@jakarta.annotation.Nullable Quantity deviceMultiplier) { + this.deviceMultiplier = deviceMultiplier; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NodeAllocatableMapping v1NodeAllocatableMapping = (V1NodeAllocatableMapping) o; + return Objects.equals(this.capacityKey, v1NodeAllocatableMapping.capacityKey) && + Objects.equals(this.capacityMultiplier, v1NodeAllocatableMapping.capacityMultiplier) && + Objects.equals(this.deviceMultiplier, v1NodeAllocatableMapping.deviceMultiplier); + } + + @Override + public int hashCode() { + return Objects.hash(capacityKey, capacityMultiplier, deviceMultiplier); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NodeAllocatableMapping {\n"); + sb.append(" capacityKey: ").append(toIndentedString(capacityKey)).append("\n"); + sb.append(" capacityMultiplier: ").append(toIndentedString(capacityMultiplier)).append("\n"); + sb.append(" deviceMultiplier: ").append(toIndentedString(deviceMultiplier)).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(Arrays.asList("capacityKey", "capacityMultiplier", "deviceMultiplier")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeAllocatableMapping + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1NodeAllocatableMapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1NodeAllocatableMapping is not found in the empty JSON string", V1NodeAllocatableMapping.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1NodeAllocatableMapping.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeAllocatableMapping` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("capacityKey") != null && !jsonObj.get("capacityKey").isJsonNull()) && !jsonObj.get("capacityKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `capacityKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("capacityKey").toString())); + } + if ((jsonObj.get("capacityMultiplier") != null && !jsonObj.get("capacityMultiplier").isJsonNull()) && !jsonObj.get("capacityMultiplier").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `capacityMultiplier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("capacityMultiplier").toString())); + } + if ((jsonObj.get("deviceMultiplier") != null && !jsonObj.get("deviceMultiplier").isJsonNull()) && !jsonObj.get("deviceMultiplier").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `deviceMultiplier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceMultiplier").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeAllocatableMapping.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeAllocatableMapping' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeAllocatableMapping.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeAllocatableMapping value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeAllocatableMapping read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeAllocatableMapping given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeAllocatableMapping + * @throws IOException if the JSON string is invalid with respect to V1NodeAllocatableMapping + */ + public static V1NodeAllocatableMapping fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeAllocatableMapping.class); + } + + /** + * Convert an instance of V1NodeAllocatableMapping to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMapping.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverhead.java similarity index 52% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMapping.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverhead.java index e529662016..e48383445e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMapping.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverhead.java @@ -48,61 +48,61 @@ import io.kubernetes.client.openapi.JSON; /** - * NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. + * NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. */ -@ApiModel(description = "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1NodeAllocatableResourceMapping { - public static final String SERIALIZED_NAME_ALLOCATION_MULTIPLIER = "allocationMultiplier"; - @SerializedName(SERIALIZED_NAME_ALLOCATION_MULTIPLIER) +@ApiModel(description = "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1NodeAllocatableOverhead { + public static final String SERIALIZED_NAME_PER_CONTAINER = "perContainer"; + @SerializedName(SERIALIZED_NAME_PER_CONTAINER) @jakarta.annotation.Nullable - private Quantity allocationMultiplier; + private Quantity perContainer; - public static final String SERIALIZED_NAME_CAPACITY_KEY = "capacityKey"; - @SerializedName(SERIALIZED_NAME_CAPACITY_KEY) + public static final String SERIALIZED_NAME_PER_POD = "perPod"; + @SerializedName(SERIALIZED_NAME_PER_POD) @jakarta.annotation.Nullable - private String capacityKey; + private Quantity perPod; - public V1NodeAllocatableResourceMapping() { + public V1NodeAllocatableOverhead() { } - public V1NodeAllocatableResourceMapping allocationMultiplier(@jakarta.annotation.Nullable Quantity allocationMultiplier) { - this.allocationMultiplier = allocationMultiplier; + public V1NodeAllocatableOverhead perContainer(@jakarta.annotation.Nullable Quantity perContainer) { + this.perContainer = perContainer; 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 allocationMultiplier + * @return perContainer */ @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 getAllocationMultiplier() { - return allocationMultiplier; + public Quantity getPerContainer() { + return perContainer; } - public void setAllocationMultiplier(@jakarta.annotation.Nullable Quantity allocationMultiplier) { - this.allocationMultiplier = allocationMultiplier; + public void setPerContainer(@jakarta.annotation.Nullable Quantity perContainer) { + this.perContainer = perContainer; } - public V1NodeAllocatableResourceMapping capacityKey(@jakarta.annotation.Nullable String capacityKey) { - this.capacityKey = capacityKey; + public V1NodeAllocatableOverhead perPod(@jakarta.annotation.Nullable Quantity perPod) { + this.perPod = perPod; return this; } /** - * CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\". - * @return capacityKey + * 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 perPod */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\".") - public String getCapacityKey() { - return capacityKey; + @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 getPerPod() { + return perPod; } - public void setCapacityKey(@jakarta.annotation.Nullable String capacityKey) { - this.capacityKey = capacityKey; + public void setPerPod(@jakarta.annotation.Nullable Quantity perPod) { + this.perPod = perPod; } @@ -115,22 +115,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1NodeAllocatableResourceMapping v1NodeAllocatableResourceMapping = (V1NodeAllocatableResourceMapping) o; - return Objects.equals(this.allocationMultiplier, v1NodeAllocatableResourceMapping.allocationMultiplier) && - Objects.equals(this.capacityKey, v1NodeAllocatableResourceMapping.capacityKey); + V1NodeAllocatableOverhead v1NodeAllocatableOverhead = (V1NodeAllocatableOverhead) o; + return Objects.equals(this.perContainer, v1NodeAllocatableOverhead.perContainer) && + Objects.equals(this.perPod, v1NodeAllocatableOverhead.perPod); } @Override public int hashCode() { - return Objects.hash(allocationMultiplier, capacityKey); + return Objects.hash(perContainer, perPod); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1NodeAllocatableResourceMapping {\n"); - sb.append(" allocationMultiplier: ").append(toIndentedString(allocationMultiplier)).append("\n"); - sb.append(" capacityKey: ").append(toIndentedString(capacityKey)).append("\n"); + sb.append("class V1NodeAllocatableOverhead {\n"); + sb.append(" perContainer: ").append(toIndentedString(perContainer)).append("\n"); + sb.append(" perPod: ").append(toIndentedString(perPod)).append("\n"); sb.append("}"); return sb.toString(); } @@ -152,7 +152,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allocationMultiplier", "capacityKey")); + openapiFields = new HashSet(Arrays.asList("perContainer", "perPod")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -162,28 +162,28 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1NodeAllocatableResourceMapping + * @throws IOException if the JSON Element is invalid with respect to V1NodeAllocatableOverhead */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1NodeAllocatableResourceMapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1NodeAllocatableResourceMapping is not found in the empty JSON string", V1NodeAllocatableResourceMapping.openapiRequiredFields.toString())); + if (!V1NodeAllocatableOverhead.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1NodeAllocatableOverhead is not found in the empty JSON string", V1NodeAllocatableOverhead.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1NodeAllocatableResourceMapping.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeAllocatableResourceMapping` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1NodeAllocatableOverhead.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeAllocatableOverhead` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("allocationMultiplier") != null && !jsonObj.get("allocationMultiplier").isJsonNull()) && !jsonObj.get("allocationMultiplier").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `allocationMultiplier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMultiplier").toString())); + if ((jsonObj.get("perContainer") != null && !jsonObj.get("perContainer").isJsonNull()) && !jsonObj.get("perContainer").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `perContainer` to be a primitive type in the JSON string but got `%s`", jsonObj.get("perContainer").toString())); } - if ((jsonObj.get("capacityKey") != null && !jsonObj.get("capacityKey").isJsonNull()) && !jsonObj.get("capacityKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `capacityKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("capacityKey").toString())); + if ((jsonObj.get("perPod") != null && !jsonObj.get("perPod").isJsonNull()) && !jsonObj.get("perPod").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `perPod` to be a primitive type in the JSON string but got `%s`", jsonObj.get("perPod").toString())); } } @@ -191,22 +191,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1NodeAllocatableResourceMapping.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1NodeAllocatableResourceMapping' and its subtypes + if (!V1NodeAllocatableOverhead.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeAllocatableOverhead' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1NodeAllocatableResourceMapping.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeAllocatableOverhead.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1NodeAllocatableResourceMapping value) throws IOException { + public void write(JsonWriter out, V1NodeAllocatableOverhead value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1NodeAllocatableResourceMapping read(JsonReader in) throws IOException { + public V1NodeAllocatableOverhead read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -217,18 +217,18 @@ public V1NodeAllocatableResourceMapping read(JsonReader in) throws IOException { } /** - * Create an instance of V1NodeAllocatableResourceMapping given an JSON string + * Create an instance of V1NodeAllocatableOverhead given an JSON string * * @param jsonString JSON string - * @return An instance of V1NodeAllocatableResourceMapping - * @throws IOException if the JSON string is invalid with respect to V1NodeAllocatableResourceMapping + * @return An instance of V1NodeAllocatableOverhead + * @throws IOException if the JSON string is invalid with respect to V1NodeAllocatableOverhead */ - public static V1NodeAllocatableResourceMapping fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1NodeAllocatableResourceMapping.class); + public static V1NodeAllocatableOverhead fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeAllocatableOverhead.class); } /** - * Convert an instance of V1NodeAllocatableResourceMapping to an JSON string + * Convert an instance of V1NodeAllocatableOverhead to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadResources.java new file mode 100644 index 0000000000..1ea61c917b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableOverheadResources.java @@ -0,0 +1,275 @@ +/* +Copyright 2026 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; + +/** + * NodeAllocatableOverheadResources describes auxiliary overhead resource allocations. + */ +@ApiModel(description = "NodeAllocatableOverheadResources describes auxiliary overhead resource allocations.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1NodeAllocatableOverheadResources { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_PER_CONTAINER = "perContainer"; + @SerializedName(SERIALIZED_NAME_PER_CONTAINER) + @jakarta.annotation.Nullable + private Quantity perContainer; + + public static final String SERIALIZED_NAME_PER_POD = "perPod"; + @SerializedName(SERIALIZED_NAME_PER_POD) + @jakarta.annotation.Nullable + private Quantity perPod; + + public V1NodeAllocatableOverheadResources() { + } + + public V1NodeAllocatableOverheadResources name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name is the name of the resource (e.g., cpu, memory). + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the name of the resource (e.g., cpu, memory).") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1NodeAllocatableOverheadResources perContainer(@jakarta.annotation.Nullable Quantity perContainer) { + this.perContainer = perContainer; + 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 perContainer + */ + @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 getPerContainer() { + return perContainer; + } + + public void setPerContainer(@jakarta.annotation.Nullable Quantity perContainer) { + this.perContainer = perContainer; + } + + + public V1NodeAllocatableOverheadResources perPod(@jakarta.annotation.Nullable Quantity perPod) { + this.perPod = perPod; + 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 perPod + */ + @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 getPerPod() { + return perPod; + } + + public void setPerPod(@jakarta.annotation.Nullable Quantity perPod) { + this.perPod = perPod; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NodeAllocatableOverheadResources v1NodeAllocatableOverheadResources = (V1NodeAllocatableOverheadResources) o; + return Objects.equals(this.name, v1NodeAllocatableOverheadResources.name) && + Objects.equals(this.perContainer, v1NodeAllocatableOverheadResources.perContainer) && + Objects.equals(this.perPod, v1NodeAllocatableOverheadResources.perPod); + } + + @Override + public int hashCode() { + return Objects.hash(name, perContainer, perPod); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NodeAllocatableOverheadResources {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" perContainer: ").append(toIndentedString(perContainer)).append("\n"); + sb.append(" perPod: ").append(toIndentedString(perPod)).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(Arrays.asList("name", "perContainer", "perPod")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1NodeAllocatableOverheadResources + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1NodeAllocatableOverheadResources.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1NodeAllocatableOverheadResources is not found in the empty JSON string", V1NodeAllocatableOverheadResources.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1NodeAllocatableOverheadResources.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeAllocatableOverheadResources` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NodeAllocatableOverheadResources.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("perContainer") != null && !jsonObj.get("perContainer").isJsonNull()) && !jsonObj.get("perContainer").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `perContainer` to be a primitive type in the JSON string but got `%s`", jsonObj.get("perContainer").toString())); + } + if ((jsonObj.get("perPod") != null && !jsonObj.get("perPod").isJsonNull()) && !jsonObj.get("perPod").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `perPod` to be a primitive type in the JSON string but got `%s`", jsonObj.get("perPod").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeAllocatableOverheadResources.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeAllocatableOverheadResources' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeAllocatableOverheadResources.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeAllocatableOverheadResources value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeAllocatableOverheadResources read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeAllocatableOverheadResources given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeAllocatableOverheadResources + * @throws IOException if the JSON string is invalid with respect to V1NodeAllocatableOverheadResources + */ + public static V1NodeAllocatableOverheadResources fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeAllocatableOverheadResources.class); + } + + /** + * Convert an instance of V1NodeAllocatableOverheadResources to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResource.java new file mode 100644 index 0000000000..c76ccd8a23 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResource.java @@ -0,0 +1,241 @@ +/* +Copyright 2026 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.V1NodeAllocatableMapping; +import io.kubernetes.client.openapi.models.V1NodeAllocatableOverhead; +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; + +/** + * NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + */ +@ApiModel(description = "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1NodeAllocatableResource { + public static final String SERIALIZED_NAME_MAPPING = "mapping"; + @SerializedName(SERIALIZED_NAME_MAPPING) + @jakarta.annotation.Nullable + private V1NodeAllocatableMapping mapping; + + public static final String SERIALIZED_NAME_OVERHEAD = "overhead"; + @SerializedName(SERIALIZED_NAME_OVERHEAD) + @jakarta.annotation.Nullable + private V1NodeAllocatableOverhead overhead; + + public V1NodeAllocatableResource() { + } + + public V1NodeAllocatableResource mapping(@jakarta.annotation.Nullable V1NodeAllocatableMapping mapping) { + this.mapping = mapping; + return this; + } + + /** + * Get mapping + * @return mapping + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeAllocatableMapping getMapping() { + return mapping; + } + + public void setMapping(@jakarta.annotation.Nullable V1NodeAllocatableMapping mapping) { + this.mapping = mapping; + } + + + public V1NodeAllocatableResource overhead(@jakarta.annotation.Nullable V1NodeAllocatableOverhead overhead) { + this.overhead = overhead; + return this; + } + + /** + * Get overhead + * @return overhead + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeAllocatableOverhead getOverhead() { + return overhead; + } + + public void setOverhead(@jakarta.annotation.Nullable V1NodeAllocatableOverhead overhead) { + this.overhead = overhead; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NodeAllocatableResource v1NodeAllocatableResource = (V1NodeAllocatableResource) o; + return Objects.equals(this.mapping, v1NodeAllocatableResource.mapping) && + Objects.equals(this.overhead, v1NodeAllocatableResource.overhead); + } + + @Override + public int hashCode() { + return Objects.hash(mapping, overhead); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NodeAllocatableResource {\n"); + sb.append(" mapping: ").append(toIndentedString(mapping)).append("\n"); + sb.append(" overhead: ").append(toIndentedString(overhead)).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(Arrays.asList("mapping", "overhead")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeAllocatableResource + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1NodeAllocatableResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1NodeAllocatableResource is not found in the empty JSON string", V1NodeAllocatableResource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1NodeAllocatableResource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeAllocatableResource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `mapping` + if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { + V1NodeAllocatableMapping.validateJsonElement(jsonObj.get("mapping")); + } + // validate the optional field `overhead` + if (jsonObj.get("overhead") != null && !jsonObj.get("overhead").isJsonNull()) { + V1NodeAllocatableOverhead.validateJsonElement(jsonObj.get("overhead")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeAllocatableResource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeAllocatableResource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeAllocatableResource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeAllocatableResource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeAllocatableResource read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeAllocatableResource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeAllocatableResource + * @throws IOException if the JSON string is invalid with respect to V1NodeAllocatableResource + */ + public static V1NodeAllocatableResource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeAllocatableResource.class); + } + + /** + * Convert an instance of V1NodeAllocatableResource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatus.java index e63196e840..5600c078c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatus.java @@ -18,15 +18,14 @@ 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.kubernetes.client.openapi.models.V1NodeAllocatableMappedResources; +import io.kubernetes.client.openapi.models.V1NodeAllocatableOverheadResources; 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; import com.google.gson.GsonBuilder; @@ -55,23 +54,28 @@ * NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA. */ @ApiModel(description = "NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeAllocatableResourceClaimStatus { public static final String SERIALIZED_NAME_CONTAINERS = "containers"; @SerializedName(SERIALIZED_NAME_CONTAINERS) @jakarta.annotation.Nullable private List containers = new ArrayList<>(); + public static final String SERIALIZED_NAME_MAPPING = "mapping"; + @SerializedName(SERIALIZED_NAME_MAPPING) + @jakarta.annotation.Nullable + private List mapping = new ArrayList<>(); + + public static final String SERIALIZED_NAME_OVERHEAD = "overhead"; + @SerializedName(SERIALIZED_NAME_OVERHEAD) + @jakarta.annotation.Nullable + private List overhead = new ArrayList<>(); + public static final String SERIALIZED_NAME_RESOURCE_CLAIM_NAME = "resourceClaimName"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_NAME) @jakarta.annotation.Nonnull private String resourceClaimName; - public static final String SERIALIZED_NAME_RESOURCES = "resources"; - @SerializedName(SERIALIZED_NAME_RESOURCES) - @jakarta.annotation.Nonnull - private Map resources = new HashMap<>(); - public V1NodeAllocatableResourceClaimStatus() { } @@ -103,51 +107,79 @@ public void setContainers(@jakarta.annotation.Nullable List containers) } - public V1NodeAllocatableResourceClaimStatus resourceClaimName(@jakarta.annotation.Nonnull String resourceClaimName) { - this.resourceClaimName = resourceClaimName; + public V1NodeAllocatableResourceClaimStatus mapping(@jakarta.annotation.Nullable List mapping) { + this.mapping = mapping; + return this; + } + + public V1NodeAllocatableResourceClaimStatus addMappingItem(V1NodeAllocatableMappedResources mappingItem) { + if (this.mapping == null) { + this.mapping = new ArrayList<>(); + } + this.mapping.add(mappingItem); return this; } /** - * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation. - * @return resourceClaimName + * Mapping contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].mapping` field. This is used by kubelet for pod level and container-level cgroup enforcement. + * @return mapping */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.") - public String getResourceClaimName() { - return resourceClaimName; + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Mapping contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].mapping` field. This is used by kubelet for pod level and container-level cgroup enforcement.") + public List getMapping() { + return mapping; } - public void setResourceClaimName(@jakarta.annotation.Nonnull String resourceClaimName) { - this.resourceClaimName = resourceClaimName; + public void setMapping(@jakarta.annotation.Nullable List mapping) { + this.mapping = mapping; } - public V1NodeAllocatableResourceClaimStatus resources(@jakarta.annotation.Nonnull Map resources) { - this.resources = resources; + public V1NodeAllocatableResourceClaimStatus overhead(@jakarta.annotation.Nullable List overhead) { + this.overhead = overhead; return this; } - public V1NodeAllocatableResourceClaimStatus putResourcesItem(String key, Quantity resourcesItem) { - if (this.resources == null) { - this.resources = new HashMap<>(); + public V1NodeAllocatableResourceClaimStatus addOverheadItem(V1NodeAllocatableOverheadResources overheadItem) { + if (this.overhead == null) { + this.overhead = new ArrayList<>(); } - this.resources.put(key, resourcesItem); + this.overhead.add(overheadItem); return this; } /** - * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim. - * @return resources + * Overhead contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].overhead` field. This is used by kubelet for pod level and container-level cgroup enforcement. + * @return overhead + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Overhead contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].overhead` field. This is used by kubelet for pod level and container-level cgroup enforcement.") + public List getOverhead() { + return overhead; + } + + public void setOverhead(@jakarta.annotation.Nullable List overhead) { + this.overhead = overhead; + } + + + public V1NodeAllocatableResourceClaimStatus resourceClaimName(@jakarta.annotation.Nonnull String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return this; + } + + /** + * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation. + * @return resourceClaimName */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.") - public Map getResources() { - return resources; + @ApiModelProperty(required = true, value = "ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.") + public String getResourceClaimName() { + return resourceClaimName; } - public void setResources(@jakarta.annotation.Nonnull Map resources) { - this.resources = resources; + public void setResourceClaimName(@jakarta.annotation.Nonnull String resourceClaimName) { + this.resourceClaimName = resourceClaimName; } @@ -162,13 +194,14 @@ public boolean equals(Object o) { } V1NodeAllocatableResourceClaimStatus v1NodeAllocatableResourceClaimStatus = (V1NodeAllocatableResourceClaimStatus) o; return Objects.equals(this.containers, v1NodeAllocatableResourceClaimStatus.containers) && - Objects.equals(this.resourceClaimName, v1NodeAllocatableResourceClaimStatus.resourceClaimName) && - Objects.equals(this.resources, v1NodeAllocatableResourceClaimStatus.resources); + Objects.equals(this.mapping, v1NodeAllocatableResourceClaimStatus.mapping) && + Objects.equals(this.overhead, v1NodeAllocatableResourceClaimStatus.overhead) && + Objects.equals(this.resourceClaimName, v1NodeAllocatableResourceClaimStatus.resourceClaimName); } @Override public int hashCode() { - return Objects.hash(containers, resourceClaimName, resources); + return Objects.hash(containers, mapping, overhead, resourceClaimName); } @Override @@ -176,8 +209,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeAllocatableResourceClaimStatus {\n"); sb.append(" containers: ").append(toIndentedString(containers)).append("\n"); + sb.append(" mapping: ").append(toIndentedString(mapping)).append("\n"); + sb.append(" overhead: ").append(toIndentedString(overhead)).append("\n"); sb.append(" resourceClaimName: ").append(toIndentedString(resourceClaimName)).append("\n"); - sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); sb.append("}"); return sb.toString(); } @@ -199,10 +233,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("containers", "resourceClaimName", "resources")); + openapiFields = new HashSet(Arrays.asList("containers", "mapping", "overhead", "resourceClaimName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("resourceClaimName", "resources")); + openapiRequiredFields = new HashSet(Arrays.asList("resourceClaimName")); } /** @@ -237,6 +271,34 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("containers") != null && !jsonObj.get("containers").isJsonNull() && !jsonObj.get("containers").isJsonArray()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `containers` to be an array in the JSON string but got `%s`", jsonObj.get("containers").toString())); } + if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { + JsonArray jsonArraymapping = jsonObj.getAsJsonArray("mapping"); + if (jsonArraymapping != null) { + // ensure the json data is an array + if (!jsonObj.get("mapping").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `mapping` to be an array in the JSON string but got `%s`", jsonObj.get("mapping").toString())); + } + + // validate the optional field `mapping` (array) + for (int i = 0; i < jsonArraymapping.size(); i++) { + V1NodeAllocatableMappedResources.validateJsonElement(jsonArraymapping.get(i)); + }; + } + } + if (jsonObj.get("overhead") != null && !jsonObj.get("overhead").isJsonNull()) { + JsonArray jsonArrayoverhead = jsonObj.getAsJsonArray("overhead"); + if (jsonArrayoverhead != null) { + // ensure the json data is an array + if (!jsonObj.get("overhead").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `overhead` to be an array in the JSON string but got `%s`", jsonObj.get("overhead").toString())); + } + + // validate the optional field `overhead` (array) + for (int i = 0; i < jsonArrayoverhead.size(); i++) { + V1NodeAllocatableOverheadResources.validateJsonElement(jsonArrayoverhead.get(i)); + }; + } + } if (!jsonObj.get("resourceClaimName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaimName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimName").toString())); } 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 ed0be066f3..b7629f31b7 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeCondition { public static final String SERIALIZED_NAME_LAST_HEARTBEAT_TIME = "lastHeartbeatTime"; @SerializedName(SERIALIZED_NAME_LAST_HEARTBEAT_TIME) 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 5cf7c854fd..bd9ee7bc19 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeConfigSource { public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP) 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 25676e60e5..711823d202 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeConfigStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) 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 1fa4c26649..36ad5781db 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeDaemonEndpoints { public static final String SERIALIZED_NAME_KUBELET_ENDPOINT = "kubeletEndpoint"; @SerializedName(SERIALIZED_NAME_KUBELET_ENDPOINT) 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 f183246167..21c2c78dd9 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeFeatures { public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY = "supplementalGroupsPolicy"; @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY) 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 be79f728ca..f01fdaf5c0 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodePodPreemptionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodePodPreemptionPolicy.java new file mode 100644 index 0000000000..5c5103987e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodePodPreemptionPolicy.java @@ -0,0 +1,218 @@ +/* +Copyright 2026 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; + +/** + * NodePodPreemptionPolicy defines the node-level policies governing preemption for pods on this node. + */ +@ApiModel(description = "NodePodPreemptionPolicy defines the node-level policies governing preemption for pods on this node.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1NodePodPreemptionPolicy { + public static final String SERIALIZED_NAME_DISABLE_RESIZE_PREEMPTION = "disableResizePreemption"; + @SerializedName(SERIALIZED_NAME_DISABLE_RESIZE_PREEMPTION) + @jakarta.annotation.Nullable + private List disableResizePreemption = new ArrayList<>(); + + public V1NodePodPreemptionPolicy() { + } + + public V1NodePodPreemptionPolicy disableResizePreemption(@jakarta.annotation.Nullable List disableResizePreemption) { + this.disableResizePreemption = disableResizePreemption; + return this; + } + + public V1NodePodPreemptionPolicy addDisableResizePreemptionItem(String disableResizePreemptionItem) { + if (this.disableResizePreemption == null) { + this.disableResizePreemption = new ArrayList<>(); + } + this.disableResizePreemption.add(disableResizePreemptionItem); + return this; + } + + /** + * DisableResizePreemption lists the owners (e.g., autoscalers, operators, administrators) that have requested to disable scheduler and Kubelet preemption for in-place pod resize on this node. If this list is non-empty, resize-induced preemption is disabled on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate. + * @return disableResizePreemption + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DisableResizePreemption lists the owners (e.g., autoscalers, operators, administrators) that have requested to disable scheduler and Kubelet preemption for in-place pod resize on this node. If this list is non-empty, resize-induced preemption is disabled on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate.") + public List getDisableResizePreemption() { + return disableResizePreemption; + } + + public void setDisableResizePreemption(@jakarta.annotation.Nullable List disableResizePreemption) { + this.disableResizePreemption = disableResizePreemption; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NodePodPreemptionPolicy v1NodePodPreemptionPolicy = (V1NodePodPreemptionPolicy) o; + return Objects.equals(this.disableResizePreemption, v1NodePodPreemptionPolicy.disableResizePreemption); + } + + @Override + public int hashCode() { + return Objects.hash(disableResizePreemption); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NodePodPreemptionPolicy {\n"); + sb.append(" disableResizePreemption: ").append(toIndentedString(disableResizePreemption)).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(Arrays.asList("disableResizePreemption")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodePodPreemptionPolicy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1NodePodPreemptionPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1NodePodPreemptionPolicy is not found in the empty JSON string", V1NodePodPreemptionPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1NodePodPreemptionPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodePodPreemptionPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("disableResizePreemption") != null && !jsonObj.get("disableResizePreemption").isJsonNull() && !jsonObj.get("disableResizePreemption").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `disableResizePreemption` to be an array in the JSON string but got `%s`", jsonObj.get("disableResizePreemption").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodePodPreemptionPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodePodPreemptionPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodePodPreemptionPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodePodPreemptionPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodePodPreemptionPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodePodPreemptionPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodePodPreemptionPolicy + * @throws IOException if the JSON string is invalid with respect to V1NodePodPreemptionPolicy + */ + public static V1NodePodPreemptionPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodePodPreemptionPolicy.class); + } + + /** + * Convert an instance of V1NodePodPreemptionPolicy to an JSON 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 fb896b3a63..2782fc72ef 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeRuntimeHandler { public static final String SERIALIZED_NAME_FEATURES = "features"; @SerializedName(SERIALIZED_NAME_FEATURES) 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 5cbb581e2c..f9eeed908b 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeRuntimeHandlerFeatures { public static final String SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS = "recursiveReadOnlyMounts"; @SerializedName(SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS) 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 7f79aab43f..adec4bf779 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeSelector { public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS = "nodeSelectorTerms"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR_TERMS) 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 4979ea0096..5bba7f61cf 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) 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 70b08289d9..8ae70e2cd4 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeSelectorTerm { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) 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 3207a52fcb..d1cf30c021 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 @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeConfigSource; +import io.kubernetes.client.openapi.models.V1NodePodPreemptionPolicy; import io.kubernetes.client.openapi.models.V1Taint; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -54,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeSpec { public static final String SERIALIZED_NAME_CONFIG_SOURCE = "configSource"; @SerializedName(SERIALIZED_NAME_CONFIG_SOURCE) @@ -76,6 +77,11 @@ public class V1NodeSpec { @jakarta.annotation.Nullable private List podCIDRs = new ArrayList<>(); + public static final String SERIALIZED_NAME_POD_PREEMPTION_POLICY = "podPreemptionPolicy"; + @SerializedName(SERIALIZED_NAME_POD_PREEMPTION_POLICY) + @jakarta.annotation.Nullable + private V1NodePodPreemptionPolicy podPreemptionPolicy; + public static final String SERIALIZED_NAME_PROVIDER_I_D = "providerID"; @SerializedName(SERIALIZED_NAME_PROVIDER_I_D) @jakarta.annotation.Nullable @@ -182,6 +188,26 @@ public void setPodCIDRs(@jakarta.annotation.Nullable List podCIDRs) { } + public V1NodeSpec podPreemptionPolicy(@jakarta.annotation.Nullable V1NodePodPreemptionPolicy podPreemptionPolicy) { + this.podPreemptionPolicy = podPreemptionPolicy; + return this; + } + + /** + * Get podPreemptionPolicy + * @return podPreemptionPolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodePodPreemptionPolicy getPodPreemptionPolicy() { + return podPreemptionPolicy; + } + + public void setPodPreemptionPolicy(@jakarta.annotation.Nullable V1NodePodPreemptionPolicy podPreemptionPolicy) { + this.podPreemptionPolicy = podPreemptionPolicy; + } + + public V1NodeSpec providerID(@jakarta.annotation.Nullable String providerID) { this.providerID = providerID; return this; @@ -264,6 +290,7 @@ public boolean equals(Object o) { Objects.equals(this.externalID, v1NodeSpec.externalID) && Objects.equals(this.podCIDR, v1NodeSpec.podCIDR) && Objects.equals(this.podCIDRs, v1NodeSpec.podCIDRs) && + Objects.equals(this.podPreemptionPolicy, v1NodeSpec.podPreemptionPolicy) && Objects.equals(this.providerID, v1NodeSpec.providerID) && Objects.equals(this.taints, v1NodeSpec.taints) && Objects.equals(this.unschedulable, v1NodeSpec.unschedulable); @@ -271,7 +298,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(configSource, externalID, podCIDR, podCIDRs, providerID, taints, unschedulable); + return Objects.hash(configSource, externalID, podCIDR, podCIDRs, podPreemptionPolicy, providerID, taints, unschedulable); } @Override @@ -282,6 +309,7 @@ public String toString() { sb.append(" externalID: ").append(toIndentedString(externalID)).append("\n"); sb.append(" podCIDR: ").append(toIndentedString(podCIDR)).append("\n"); sb.append(" podCIDRs: ").append(toIndentedString(podCIDRs)).append("\n"); + sb.append(" podPreemptionPolicy: ").append(toIndentedString(podPreemptionPolicy)).append("\n"); sb.append(" providerID: ").append(toIndentedString(providerID)).append("\n"); sb.append(" taints: ").append(toIndentedString(taints)).append("\n"); sb.append(" unschedulable: ").append(toIndentedString(unschedulable)).append("\n"); @@ -306,7 +334,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("configSource", "externalID", "podCIDR", "podCIDRs", "providerID", "taints", "unschedulable")); + openapiFields = new HashSet(Arrays.asList("configSource", "externalID", "podCIDR", "podCIDRs", "podPreemptionPolicy", "providerID", "taints", "unschedulable")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -347,6 +375,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("podCIDRs") != null && !jsonObj.get("podCIDRs").isJsonNull() && !jsonObj.get("podCIDRs").isJsonArray()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podCIDRs` to be an array in the JSON string but got `%s`", jsonObj.get("podCIDRs").toString())); } + // validate the optional field `podPreemptionPolicy` + if (jsonObj.get("podPreemptionPolicy") != null && !jsonObj.get("podPreemptionPolicy").isJsonNull()) { + V1NodePodPreemptionPolicy.validateJsonElement(jsonObj.get("podPreemptionPolicy")); + } if ((jsonObj.get("providerID") != null && !jsonObj.get("providerID").isJsonNull()) && !jsonObj.get("providerID").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `providerID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("providerID").toString())); } 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 7c1c431f68..836539d771 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 @@ -64,7 +64,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeStatus { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) 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 index b0fce1cb10..212cecfb24 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java @@ -50,7 +50,7 @@ * NodeSwapStatus represents swap memory information. */ @ApiModel(description = "NodeSwapStatus represents swap memory information.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeSwapStatus { public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) 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 49194ee569..22df70bb06 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeSystemInfo { public static final String SERIALIZED_NAME_ARCHITECTURE = "architecture"; @SerializedName(SERIALIZED_NAME_ARCHITECTURE) @@ -98,6 +98,11 @@ public class V1NodeSystemInfo { @jakarta.annotation.Nonnull private String osImage; + public static final String SERIALIZED_NAME_RUNNING_IN_USER_NAMESPACE = "runningInUserNamespace"; + @SerializedName(SERIALIZED_NAME_RUNNING_IN_USER_NAMESPACE) + @jakarta.annotation.Nullable + private Boolean runningInUserNamespace; + public static final String SERIALIZED_NAME_SWAP = "swap"; @SerializedName(SERIALIZED_NAME_SWAP) @jakarta.annotation.Nullable @@ -291,6 +296,26 @@ public void setOsImage(@jakarta.annotation.Nonnull String osImage) { } + public V1NodeSystemInfo runningInUserNamespace(@jakarta.annotation.Nullable Boolean runningInUserNamespace) { + this.runningInUserNamespace = runningInUserNamespace; + return this; + } + + /** + * Whether the node is running in a user namespace. + * @return runningInUserNamespace + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Whether the node is running in a user namespace.") + public Boolean getRunningInUserNamespace() { + return runningInUserNamespace; + } + + public void setRunningInUserNamespace(@jakarta.annotation.Nullable Boolean runningInUserNamespace) { + this.runningInUserNamespace = runningInUserNamespace; + } + + public V1NodeSystemInfo swap(@jakarta.annotation.Nullable V1NodeSwapStatus swap) { this.swap = swap; return this; @@ -350,13 +375,14 @@ 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.runningInUserNamespace, v1NodeSystemInfo.runningInUserNamespace) && 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, swap, systemUUID); + return Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, runningInUserNamespace, swap, systemUUID); } @Override @@ -372,6 +398,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(" runningInUserNamespace: ").append(toIndentedString(runningInUserNamespace)).append("\n"); sb.append(" swap: ").append(toIndentedString(swap)).append("\n"); sb.append(" systemUUID: ").append(toIndentedString(systemUUID)).append("\n"); sb.append("}"); @@ -395,7 +422,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("architecture", "bootID", "containerRuntimeVersion", "kernelVersion", "kubeProxyVersion", "kubeletVersion", "machineID", "operatingSystem", "osImage", "swap", "systemUUID")); + openapiFields = new HashSet(Arrays.asList("architecture", "bootID", "containerRuntimeVersion", "kernelVersion", "kubeProxyVersion", "kubeletVersion", "machineID", "operatingSystem", "osImage", "runningInUserNamespace", "swap", "systemUUID")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("architecture", "bootID", "containerRuntimeVersion", "kernelVersion", "kubeProxyVersion", "kubeletVersion", "machineID", "operatingSystem", "osImage", "systemUUID")); 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 94b499f5c7..3d4300d37e 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NonResourceAttributes { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) 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 69d669e588..c90309d11d 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NonResourcePolicyRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) 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 cbd8424e65..f557a476c6 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NonResourceRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) 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 48485f4113..ee23974ec6 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ObjectFieldSelector { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b036a00033..2150071e71 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 @@ -57,7 +57,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ObjectMeta { public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations"; @SerializedName(SERIALIZED_NAME_ANNOTATIONS) 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 da7f547b94..54c174f12b 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java index b4b915d924..e33760db59 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java @@ -50,7 +50,7 @@ * OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. */ @ApiModel(description = "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1OpaqueDeviceConfiguration { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) 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 4b26f8d21e..25b04c4df2 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Overhead { public static final String SERIALIZED_NAME_POD_FIXED = "podFixed"; @SerializedName(SERIALIZED_NAME_POD_FIXED) 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 190802da17..a08e160f5c 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1OwnerReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 8fbe872683..86a4c968e9 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 cd33c5c02f..4e547be768 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 index 7eec2038d6..3efa840057 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ParentReference { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -81,11 +81,11 @@ public V1ParentReference group(@jakarta.annotation.Nullable String group) { } /** - * Group is the group of the object being referenced. + * 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.") + @ApiModelProperty(value = "group is the group of the object being referenced.") public String getGroup() { return group; } @@ -101,11 +101,11 @@ public V1ParentReference name(@jakarta.annotation.Nonnull String name) { } /** - * Name is the name of the object being referenced. + * 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.") + @ApiModelProperty(required = true, value = "name is the name of the object being referenced.") public String getName() { return name; } @@ -121,11 +121,11 @@ public V1ParentReference namespace(@jakarta.annotation.Nullable String namespace } /** - * Namespace is the namespace of the object being referenced. + * 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.") + @ApiModelProperty(value = "namespace is the namespace of the object being referenced.") public String getNamespace() { return namespace; } @@ -141,11 +141,11 @@ public V1ParentReference resource(@jakarta.annotation.Nonnull String resource) { } /** - * Resource is the resource of the object being referenced. + * 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.") + @ApiModelProperty(required = true, value = "resource is the resource of the object being referenced.") public String getResource() { return resource; } 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 1c25aef0d9..d122cc4794 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolume implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 cdf4b7318a..f4b548f79c 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 558d0397fc..a5f1df8f7e 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaimCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) 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 ef3f169b5e..36a2cb06d3 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 4f5128b22c..ff40c61474 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 @@ -56,7 +56,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaimSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) 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 e67f70f37b..07206fcffa 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 @@ -21,6 +21,7 @@ import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.openapi.models.V1ModifyVolumeStatus; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition; +import io.kubernetes.client.openapi.models.V1VolumeHealthStatus; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -57,7 +58,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaimStatus { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -89,6 +90,11 @@ public class V1PersistentVolumeClaimStatus { @jakarta.annotation.Nullable private String currentVolumeAttributesClassName; + public static final String SERIALIZED_NAME_HEALTH_STATUS = "healthStatus"; + @SerializedName(SERIALIZED_NAME_HEALTH_STATUS) + @jakarta.annotation.Nullable + private V1VolumeHealthStatus healthStatus; + public static final String SERIALIZED_NAME_MODIFY_VOLUME_STATUS = "modifyVolumeStatus"; @SerializedName(SERIALIZED_NAME_MODIFY_VOLUME_STATUS) @jakarta.annotation.Nullable @@ -262,6 +268,26 @@ public void setCurrentVolumeAttributesClassName(@jakarta.annotation.Nullable Str } + public V1PersistentVolumeClaimStatus healthStatus(@jakarta.annotation.Nullable V1VolumeHealthStatus healthStatus) { + this.healthStatus = healthStatus; + return this; + } + + /** + * Get healthStatus + * @return healthStatus + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1VolumeHealthStatus getHealthStatus() { + return healthStatus; + } + + public void setHealthStatus(@jakarta.annotation.Nullable V1VolumeHealthStatus healthStatus) { + this.healthStatus = healthStatus; + } + + public V1PersistentVolumeClaimStatus modifyVolumeStatus(@jakarta.annotation.Nullable V1ModifyVolumeStatus modifyVolumeStatus) { this.modifyVolumeStatus = modifyVolumeStatus; return this; @@ -318,13 +344,14 @@ public boolean equals(Object o) { Objects.equals(this.capacity, v1PersistentVolumeClaimStatus.capacity) && Objects.equals(this.conditions, v1PersistentVolumeClaimStatus.conditions) && Objects.equals(this.currentVolumeAttributesClassName, v1PersistentVolumeClaimStatus.currentVolumeAttributesClassName) && + Objects.equals(this.healthStatus, v1PersistentVolumeClaimStatus.healthStatus) && Objects.equals(this.modifyVolumeStatus, v1PersistentVolumeClaimStatus.modifyVolumeStatus) && Objects.equals(this.phase, v1PersistentVolumeClaimStatus.phase); } @Override public int hashCode() { - return Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, currentVolumeAttributesClassName, modifyVolumeStatus, phase); + return Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, currentVolumeAttributesClassName, healthStatus, modifyVolumeStatus, phase); } @Override @@ -337,6 +364,7 @@ public String toString() { sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" currentVolumeAttributesClassName: ").append(toIndentedString(currentVolumeAttributesClassName)).append("\n"); + sb.append(" healthStatus: ").append(toIndentedString(healthStatus)).append("\n"); sb.append(" modifyVolumeStatus: ").append(toIndentedString(modifyVolumeStatus)).append("\n"); sb.append(" phase: ").append(toIndentedString(phase)).append("\n"); sb.append("}"); @@ -360,7 +388,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("accessModes", "allocatedResourceStatuses", "allocatedResources", "capacity", "conditions", "currentVolumeAttributesClassName", "modifyVolumeStatus", "phase")); + openapiFields = new HashSet(Arrays.asList("accessModes", "allocatedResourceStatuses", "allocatedResources", "capacity", "conditions", "currentVolumeAttributesClassName", "healthStatus", "modifyVolumeStatus", "phase")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -408,6 +436,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("currentVolumeAttributesClassName") != null && !jsonObj.get("currentVolumeAttributesClassName").isJsonNull()) && !jsonObj.get("currentVolumeAttributesClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `currentVolumeAttributesClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currentVolumeAttributesClassName").toString())); } + // validate the optional field `healthStatus` + if (jsonObj.get("healthStatus") != null && !jsonObj.get("healthStatus").isJsonNull()) { + V1VolumeHealthStatus.validateJsonElement(jsonObj.get("healthStatus")); + } // validate the optional field `modifyVolumeStatus` if (jsonObj.get("modifyVolumeStatus") != null && !jsonObj.get("modifyVolumeStatus").isJsonNull()) { V1ModifyVolumeStatus.validateJsonElement(jsonObj.get("modifyVolumeStatus")); 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 6f278b61af..a5bbb9d932 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaimTemplate { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) 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 e7cff57db9..47351529e4 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaimVolumeSource { public static final String SERIALIZED_NAME_CLAIM_NAME = "claimName"; @SerializedName(SERIALIZED_NAME_CLAIM_NAME) 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 708f7c0e7c..7557557916 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 39976a5637..7b923d89af 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 @@ -79,7 +79,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) 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 75549df1b1..c6a2cc23a1 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeStatus { public static final String SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME = "lastPhaseTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME) 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 dc424de3e9..3aa7c1a6a3 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PhotonPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 2a41226264..db6ded77e5 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Pod implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 4a4949830e..daead9fa5b 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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) 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 ef45635041..701d489f60 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodAffinityTerm { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) 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 73a4179901..4b7365092d 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java index cc63b81d10..d635882912 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java @@ -52,7 +52,7 @@ * PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem. */ @ApiModel(description = "PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodCertificateProjection { public static final String SERIALIZED_NAME_CERTIFICATE_CHAIN_PATH = "certificateChainPath"; @SerializedName(SERIALIZED_NAME_CERTIFICATE_CHAIN_PATH) @@ -84,6 +84,11 @@ public class V1PodCertificateProjection { @jakarta.annotation.Nonnull private String signerName; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable + private Long user; + public static final String SERIALIZED_NAME_USER_ANNOTATIONS = "userAnnotations"; @SerializedName(SERIALIZED_NAME_USER_ANNOTATIONS) @jakarta.annotation.Nullable @@ -212,6 +217,26 @@ public void setSignerName(@jakarta.annotation.Nonnull String signerName) { } + public V1PodCertificateProjection user(@jakarta.annotation.Nullable Long user) { + this.user = user; + return this; + } + + /** + * user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. + * @return user + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") + public Long getUser() { + return user; + } + + public void setUser(@jakarta.annotation.Nullable Long user) { + this.user = user; + } + + public V1PodCertificateProjection userAnnotations(@jakarta.annotation.Nullable Map userAnnotations) { this.userAnnotations = userAnnotations; return this; @@ -256,12 +281,13 @@ public boolean equals(Object o) { Objects.equals(this.keyType, v1PodCertificateProjection.keyType) && Objects.equals(this.maxExpirationSeconds, v1PodCertificateProjection.maxExpirationSeconds) && Objects.equals(this.signerName, v1PodCertificateProjection.signerName) && + Objects.equals(this.user, v1PodCertificateProjection.user) && Objects.equals(this.userAnnotations, v1PodCertificateProjection.userAnnotations); } @Override public int hashCode() { - return Objects.hash(certificateChainPath, credentialBundlePath, keyPath, keyType, maxExpirationSeconds, signerName, userAnnotations); + return Objects.hash(certificateChainPath, credentialBundlePath, keyPath, keyType, maxExpirationSeconds, signerName, user, userAnnotations); } @Override @@ -274,6 +300,7 @@ public String toString() { sb.append(" keyType: ").append(toIndentedString(keyType)).append("\n"); sb.append(" maxExpirationSeconds: ").append(toIndentedString(maxExpirationSeconds)).append("\n"); sb.append(" signerName: ").append(toIndentedString(signerName)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); sb.append(" userAnnotations: ").append(toIndentedString(userAnnotations)).append("\n"); sb.append("}"); return sb.toString(); @@ -296,7 +323,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("certificateChainPath", "credentialBundlePath", "keyPath", "keyType", "maxExpirationSeconds", "signerName", "userAnnotations")); + openapiFields = new HashSet(Arrays.asList("certificateChainPath", "credentialBundlePath", "keyPath", "keyType", "maxExpirationSeconds", "signerName", "user", "userAnnotations")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("keyType", "signerName")); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequest.java new file mode 100644 index 0000000000..e965d67bb2 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequest.java @@ -0,0 +1,338 @@ +/* +Copyright 2026 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.V1PodCertificateRequestSpec; +import io.kubernetes.client.openapi.models.V1PodCertificateRequestStatus; +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; + +/** + * PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes + */ +@ApiModel(description = "PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1PodCertificateRequest 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 V1PodCertificateRequestSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable + private V1PodCertificateRequestStatus status; + + public V1PodCertificateRequest() { + } + + public V1PodCertificateRequest 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 V1PodCertificateRequest 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 V1PodCertificateRequest 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 V1PodCertificateRequest spec(@jakarta.annotation.Nonnull V1PodCertificateRequestSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1PodCertificateRequestSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nonnull V1PodCertificateRequestSpec spec) { + this.spec = spec; + } + + + public V1PodCertificateRequest status(@jakarta.annotation.Nullable V1PodCertificateRequestStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodCertificateRequestStatus getStatus() { + return status; + } + + public void setStatus(@jakarta.annotation.Nullable V1PodCertificateRequestStatus status) { + this.status = status; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PodCertificateRequest v1PodCertificateRequest = (V1PodCertificateRequest) o; + return Objects.equals(this.apiVersion, v1PodCertificateRequest.apiVersion) && + Objects.equals(this.kind, v1PodCertificateRequest.kind) && + Objects.equals(this.metadata, v1PodCertificateRequest.metadata) && + Objects.equals(this.spec, v1PodCertificateRequest.spec) && + Objects.equals(this.status, v1PodCertificateRequest.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PodCertificateRequest {\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(); + } + + /** + * 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(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1PodCertificateRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1PodCertificateRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1PodCertificateRequest is not found in the empty JSON string", V1PodCertificateRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1PodCertificateRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodCertificateRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodCertificateRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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` + V1PodCertificateRequestSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1PodCertificateRequestStatus.validateJsonElement(jsonObj.get("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodCertificateRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodCertificateRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodCertificateRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodCertificateRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodCertificateRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodCertificateRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodCertificateRequest + * @throws IOException if the JSON string is invalid with respect to V1PodCertificateRequest + */ + public static V1PodCertificateRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodCertificateRequest.class); + } + + /** + * Convert an instance of V1PodCertificateRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestList.java new file mode 100644 index 0000000000..488b31314a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestList.java @@ -0,0 +1,324 @@ +/* +Copyright 2026 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.V1PodCertificateRequest; +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; + +/** + * PodCertificateRequestList is a collection of PodCertificateRequest objects + */ +@ApiModel(description = "PodCertificateRequestList is a collection of PodCertificateRequest objects") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1PodCertificateRequestList 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 V1PodCertificateRequestList() { + } + + public V1PodCertificateRequestList 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 V1PodCertificateRequestList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1PodCertificateRequestList addItemsItem(V1PodCertificateRequest itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * items is a collection of PodCertificateRequest objects + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is a collection of PodCertificateRequest objects") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1PodCertificateRequestList 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 V1PodCertificateRequestList 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; + } + V1PodCertificateRequestList v1PodCertificateRequestList = (V1PodCertificateRequestList) o; + return Objects.equals(this.apiVersion, v1PodCertificateRequestList.apiVersion) && + Objects.equals(this.items, v1PodCertificateRequestList.items) && + Objects.equals(this.kind, v1PodCertificateRequestList.kind) && + Objects.equals(this.metadata, v1PodCertificateRequestList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PodCertificateRequestList {\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(Arrays.asList("apiVersion", "items", "kind", "metadata")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1PodCertificateRequestList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1PodCertificateRequestList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1PodCertificateRequestList is not found in the empty JSON string", V1PodCertificateRequestList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1PodCertificateRequestList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodCertificateRequestList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodCertificateRequestList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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++) { + V1PodCertificateRequest.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1PodCertificateRequestList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodCertificateRequestList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodCertificateRequestList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodCertificateRequestList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodCertificateRequestList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodCertificateRequestList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodCertificateRequestList + * @throws IOException if the JSON string is invalid with respect to V1PodCertificateRequestList + */ + public static V1PodCertificateRequestList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodCertificateRequestList.class); + } + + /** + * Convert an instance of V1PodCertificateRequestList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestSpec.java new file mode 100644 index 0000000000..f3386736a0 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestSpec.java @@ -0,0 +1,485 @@ +/* +Copyright 2026 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 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; + +/** + * PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation. + */ +@ApiModel(description = "PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1PodCertificateRequestSpec { + public static final String SERIALIZED_NAME_MAX_EXPIRATION_SECONDS = "maxExpirationSeconds"; + @SerializedName(SERIALIZED_NAME_MAX_EXPIRATION_SECONDS) + @jakarta.annotation.Nullable + private Integer maxExpirationSeconds; + + 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_NODE_U_I_D = "nodeUID"; + @SerializedName(SERIALIZED_NAME_NODE_U_I_D) + @jakarta.annotation.Nonnull + private String nodeUID; + + public static final String SERIALIZED_NAME_POD_NAME = "podName"; + @SerializedName(SERIALIZED_NAME_POD_NAME) + @jakarta.annotation.Nonnull + private String podName; + + public static final String SERIALIZED_NAME_POD_U_I_D = "podUID"; + @SerializedName(SERIALIZED_NAME_POD_U_I_D) + @jakarta.annotation.Nonnull + private String podUID; + + public static final String SERIALIZED_NAME_SERVICE_ACCOUNT_NAME = "serviceAccountName"; + @SerializedName(SERIALIZED_NAME_SERVICE_ACCOUNT_NAME) + @jakarta.annotation.Nonnull + private String serviceAccountName; + + public static final String SERIALIZED_NAME_SERVICE_ACCOUNT_U_I_D = "serviceAccountUID"; + @SerializedName(SERIALIZED_NAME_SERVICE_ACCOUNT_U_I_D) + @jakarta.annotation.Nonnull + private String serviceAccountUID; + + 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_STUB_P_K_C_S10_REQUEST = "stubPKCS10Request"; + @SerializedName(SERIALIZED_NAME_STUB_P_K_C_S10_REQUEST) + @jakarta.annotation.Nonnull + private byte[] stubPKCS10Request; + + public static final String SERIALIZED_NAME_UNVERIFIED_USER_ANNOTATIONS = "unverifiedUserAnnotations"; + @SerializedName(SERIALIZED_NAME_UNVERIFIED_USER_ANNOTATIONS) + @jakarta.annotation.Nullable + private Map unverifiedUserAnnotations = new HashMap<>(); + + public V1PodCertificateRequestSpec() { + } + + public V1PodCertificateRequestSpec maxExpirationSeconds(@jakarta.annotation.Nullable Integer maxExpirationSeconds) { + this.maxExpirationSeconds = maxExpirationSeconds; + return this; + } + + /** + * maxExpirationSeconds is the maximum lifetime permitted for the certificate. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. + * @return maxExpirationSeconds + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "maxExpirationSeconds is the maximum lifetime permitted for the certificate. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours.") + public Integer getMaxExpirationSeconds() { + return maxExpirationSeconds; + } + + public void setMaxExpirationSeconds(@jakarta.annotation.Nullable Integer maxExpirationSeconds) { + this.maxExpirationSeconds = maxExpirationSeconds; + } + + + public V1PodCertificateRequestSpec nodeName(@jakarta.annotation.Nonnull String nodeName) { + this.nodeName = nodeName; + return this; + } + + /** + * nodeName is the name of the node the pod is assigned to. + * @return nodeName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "nodeName is the name of the node the pod is assigned to.") + public String getNodeName() { + return nodeName; + } + + public void setNodeName(@jakarta.annotation.Nonnull String nodeName) { + this.nodeName = nodeName; + } + + + public V1PodCertificateRequestSpec nodeUID(@jakarta.annotation.Nonnull String nodeUID) { + this.nodeUID = nodeUID; + return this; + } + + /** + * nodeUID is the UID of the node the pod is assigned to. + * @return nodeUID + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "nodeUID is the UID of the node the pod is assigned to.") + public String getNodeUID() { + return nodeUID; + } + + public void setNodeUID(@jakarta.annotation.Nonnull String nodeUID) { + this.nodeUID = nodeUID; + } + + + public V1PodCertificateRequestSpec podName(@jakarta.annotation.Nonnull String podName) { + this.podName = podName; + return this; + } + + /** + * podName is the name of the pod into which the certificate will be mounted. + * @return podName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "podName is the name of the pod into which the certificate will be mounted.") + public String getPodName() { + return podName; + } + + public void setPodName(@jakarta.annotation.Nonnull String podName) { + this.podName = podName; + } + + + public V1PodCertificateRequestSpec podUID(@jakarta.annotation.Nonnull String podUID) { + this.podUID = podUID; + return this; + } + + /** + * podUID is the UID of the pod into which the certificate will be mounted. + * @return podUID + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "podUID is the UID of the pod into which the certificate will be mounted.") + public String getPodUID() { + return podUID; + } + + public void setPodUID(@jakarta.annotation.Nonnull String podUID) { + this.podUID = podUID; + } + + + public V1PodCertificateRequestSpec serviceAccountName(@jakarta.annotation.Nonnull String serviceAccountName) { + this.serviceAccountName = serviceAccountName; + return this; + } + + /** + * serviceAccountName is the name of the service account the pod is running as. + * @return serviceAccountName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "serviceAccountName is the name of the service account the pod is running as.") + public String getServiceAccountName() { + return serviceAccountName; + } + + public void setServiceAccountName(@jakarta.annotation.Nonnull String serviceAccountName) { + this.serviceAccountName = serviceAccountName; + } + + + public V1PodCertificateRequestSpec serviceAccountUID(@jakarta.annotation.Nonnull String serviceAccountUID) { + this.serviceAccountUID = serviceAccountUID; + return this; + } + + /** + * serviceAccountUID is the UID of the service account the pod is running as. + * @return serviceAccountUID + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "serviceAccountUID is the UID of the service account the pod is running as.") + public String getServiceAccountUID() { + return serviceAccountUID; + } + + public void setServiceAccountUID(@jakarta.annotation.Nonnull String serviceAccountUID) { + this.serviceAccountUID = serviceAccountUID; + } + + + public V1PodCertificateRequestSpec signerName(@jakarta.annotation.Nonnull String signerName) { + this.signerName = signerName; + return this; + } + + /** + * signerName indicates the requested signer. All signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented. + * @return signerName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "signerName indicates the requested signer. All signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented.") + public String getSignerName() { + return signerName; + } + + public void setSignerName(@jakarta.annotation.Nonnull String signerName) { + this.signerName = signerName; + } + + + public V1PodCertificateRequestSpec stubPKCS10Request(@jakarta.annotation.Nonnull byte[] stubPKCS10Request) { + this.stubPKCS10Request = stubPKCS10Request; + return this; + } + + /** + * A PKCS#10 certificate signing request (DER-serialized) generated by Kubelet using the subject private key. Most signer implementations will ignore the contents of the CSR except to extract the subject public key. The API server automatically verifies the CSR signature during admission, so the signer does not need to repeat the verification. CSRs generated by kubelet are completely empty. The subject public key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field. + * @return stubPKCS10Request + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "A PKCS#10 certificate signing request (DER-serialized) generated by Kubelet using the subject private key. Most signer implementations will ignore the contents of the CSR except to extract the subject public key. The API server automatically verifies the CSR signature during admission, so the signer does not need to repeat the verification. CSRs generated by kubelet are completely empty. The subject public key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field.") + public byte[] getStubPKCS10Request() { + return stubPKCS10Request; + } + + public void setStubPKCS10Request(@jakarta.annotation.Nonnull byte[] stubPKCS10Request) { + this.stubPKCS10Request = stubPKCS10Request; + } + + + public V1PodCertificateRequestSpec unverifiedUserAnnotations(@jakarta.annotation.Nullable Map unverifiedUserAnnotations) { + this.unverifiedUserAnnotations = unverifiedUserAnnotations; + return this; + } + + public V1PodCertificateRequestSpec putUnverifiedUserAnnotationsItem(String key, String unverifiedUserAnnotationsItem) { + if (this.unverifiedUserAnnotations == null) { + this.unverifiedUserAnnotations = new HashMap<>(); + } + this.unverifiedUserAnnotations.put(key, unverifiedUserAnnotationsItem); + return this; + } + + /** + * unverifiedUserAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field. Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize. + * @return unverifiedUserAnnotations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "unverifiedUserAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field. Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize.") + public Map getUnverifiedUserAnnotations() { + return unverifiedUserAnnotations; + } + + public void setUnverifiedUserAnnotations(@jakarta.annotation.Nullable Map unverifiedUserAnnotations) { + this.unverifiedUserAnnotations = unverifiedUserAnnotations; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PodCertificateRequestSpec v1PodCertificateRequestSpec = (V1PodCertificateRequestSpec) o; + return Objects.equals(this.maxExpirationSeconds, v1PodCertificateRequestSpec.maxExpirationSeconds) && + Objects.equals(this.nodeName, v1PodCertificateRequestSpec.nodeName) && + Objects.equals(this.nodeUID, v1PodCertificateRequestSpec.nodeUID) && + Objects.equals(this.podName, v1PodCertificateRequestSpec.podName) && + Objects.equals(this.podUID, v1PodCertificateRequestSpec.podUID) && + Objects.equals(this.serviceAccountName, v1PodCertificateRequestSpec.serviceAccountName) && + Objects.equals(this.serviceAccountUID, v1PodCertificateRequestSpec.serviceAccountUID) && + Objects.equals(this.signerName, v1PodCertificateRequestSpec.signerName) && + Arrays.equals(this.stubPKCS10Request, v1PodCertificateRequestSpec.stubPKCS10Request) && + Objects.equals(this.unverifiedUserAnnotations, v1PodCertificateRequestSpec.unverifiedUserAnnotations); + } + + @Override + public int hashCode() { + return Objects.hash(maxExpirationSeconds, nodeName, nodeUID, podName, podUID, serviceAccountName, serviceAccountUID, signerName, Arrays.hashCode(stubPKCS10Request), unverifiedUserAnnotations); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PodCertificateRequestSpec {\n"); + sb.append(" maxExpirationSeconds: ").append(toIndentedString(maxExpirationSeconds)).append("\n"); + sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); + sb.append(" nodeUID: ").append(toIndentedString(nodeUID)).append("\n"); + sb.append(" podName: ").append(toIndentedString(podName)).append("\n"); + sb.append(" podUID: ").append(toIndentedString(podUID)).append("\n"); + sb.append(" serviceAccountName: ").append(toIndentedString(serviceAccountName)).append("\n"); + sb.append(" serviceAccountUID: ").append(toIndentedString(serviceAccountUID)).append("\n"); + sb.append(" signerName: ").append(toIndentedString(signerName)).append("\n"); + sb.append(" stubPKCS10Request: ").append(toIndentedString(stubPKCS10Request)).append("\n"); + sb.append(" unverifiedUserAnnotations: ").append(toIndentedString(unverifiedUserAnnotations)).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(Arrays.asList("maxExpirationSeconds", "nodeName", "nodeUID", "podName", "podUID", "serviceAccountName", "serviceAccountUID", "signerName", "stubPKCS10Request", "unverifiedUserAnnotations")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("nodeName", "nodeUID", "podName", "podUID", "serviceAccountName", "serviceAccountUID", "signerName", "stubPKCS10Request")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodCertificateRequestSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1PodCertificateRequestSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1PodCertificateRequestSpec is not found in the empty JSON string", V1PodCertificateRequestSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1PodCertificateRequestSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodCertificateRequestSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodCertificateRequestSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("nodeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); + } + if (!jsonObj.get("nodeUID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `nodeUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeUID").toString())); + } + if (!jsonObj.get("podName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podName").toString())); + } + if (!jsonObj.get("podUID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podUID").toString())); + } + if (!jsonObj.get("serviceAccountName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `serviceAccountName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceAccountName").toString())); + } + if (!jsonObj.get("serviceAccountUID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `serviceAccountUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceAccountUID").toString())); + } + if (!jsonObj.get("signerName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `signerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signerName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodCertificateRequestSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodCertificateRequestSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodCertificateRequestSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodCertificateRequestSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodCertificateRequestSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodCertificateRequestSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodCertificateRequestSpec + * @throws IOException if the JSON string is invalid with respect to V1PodCertificateRequestSpec + */ + public static V1PodCertificateRequestSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodCertificateRequestSpec.class); + } + + /** + * Convert an instance of V1PodCertificateRequestSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestStatus.java new file mode 100644 index 0000000000..6193c38e09 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateRequestStatus.java @@ -0,0 +1,341 @@ +/* +Copyright 2026 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.time.OffsetDateTime; +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; + +/** + * PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued. + */ +@ApiModel(description = "PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1PodCertificateRequestStatus { + public static final String SERIALIZED_NAME_BEGIN_REFRESH_AT = "beginRefreshAt"; + @SerializedName(SERIALIZED_NAME_BEGIN_REFRESH_AT) + @jakarta.annotation.Nullable + private OffsetDateTime beginRefreshAt; + + public static final String SERIALIZED_NAME_CERTIFICATE_CHAIN = "certificateChain"; + @SerializedName(SERIALIZED_NAME_CERTIFICATE_CHAIN) + @jakarta.annotation.Nullable + private String certificateChain; + + 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_NOT_AFTER = "notAfter"; + @SerializedName(SERIALIZED_NAME_NOT_AFTER) + @jakarta.annotation.Nullable + private OffsetDateTime notAfter; + + public static final String SERIALIZED_NAME_NOT_BEFORE = "notBefore"; + @SerializedName(SERIALIZED_NAME_NOT_BEFORE) + @jakarta.annotation.Nullable + private OffsetDateTime notBefore; + + public V1PodCertificateRequestStatus() { + } + + public V1PodCertificateRequestStatus beginRefreshAt(@jakarta.annotation.Nullable OffsetDateTime beginRefreshAt) { + this.beginRefreshAt = beginRefreshAt; + return this; + } + + /** + * beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable. This field is only a hint. Kubelet may start refreshing before or after this time if necessary. + * @return beginRefreshAt + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable. This field is only a hint. Kubelet may start refreshing before or after this time if necessary.") + public OffsetDateTime getBeginRefreshAt() { + return beginRefreshAt; + } + + public void setBeginRefreshAt(@jakarta.annotation.Nullable OffsetDateTime beginRefreshAt) { + this.beginRefreshAt = beginRefreshAt; + } + + + public V1PodCertificateRequestStatus certificateChain(@jakarta.annotation.Nullable String certificateChain) { + this.certificateChain = certificateChain; + return this; + } + + /** + * certificateChain is populated with an issued certificate by the signer. 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. certificateChain must consist of one or more PEM-formatted certificates. 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as described in section 4 of RFC5280. If more than one 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. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers. + * @return certificateChain + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "certificateChain is populated with an issued certificate by the signer. 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. certificateChain must consist of one or more PEM-formatted certificates. 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as described in section 4 of RFC5280. If more than one 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. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers.") + public String getCertificateChain() { + return certificateChain; + } + + public void setCertificateChain(@jakarta.annotation.Nullable String certificateChain) { + this.certificateChain = certificateChain; + } + + + public V1PodCertificateRequestStatus conditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + return this; + } + + public V1PodCertificateRequestStatus addConditionsItem(V1Condition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * conditions applied to the request. The types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\". If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field. + * @return conditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "conditions applied to the request. The types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\". If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field.") + public List getConditions() { + return conditions; + } + + public void setConditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + } + + + public V1PodCertificateRequestStatus notAfter(@jakarta.annotation.Nullable OffsetDateTime notAfter) { + this.notAfter = notAfter; + return this; + } + + /** + * notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. + * @return notAfter + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.") + public OffsetDateTime getNotAfter() { + return notAfter; + } + + public void setNotAfter(@jakarta.annotation.Nullable OffsetDateTime notAfter) { + this.notAfter = notAfter; + } + + + public V1PodCertificateRequestStatus notBefore(@jakarta.annotation.Nullable OffsetDateTime notBefore) { + this.notBefore = notBefore; + return this; + } + + /** + * notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. + * @return notBefore + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.") + public OffsetDateTime getNotBefore() { + return notBefore; + } + + public void setNotBefore(@jakarta.annotation.Nullable OffsetDateTime notBefore) { + this.notBefore = notBefore; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PodCertificateRequestStatus v1PodCertificateRequestStatus = (V1PodCertificateRequestStatus) o; + return Objects.equals(this.beginRefreshAt, v1PodCertificateRequestStatus.beginRefreshAt) && + Objects.equals(this.certificateChain, v1PodCertificateRequestStatus.certificateChain) && + Objects.equals(this.conditions, v1PodCertificateRequestStatus.conditions) && + Objects.equals(this.notAfter, v1PodCertificateRequestStatus.notAfter) && + Objects.equals(this.notBefore, v1PodCertificateRequestStatus.notBefore); + } + + @Override + public int hashCode() { + return Objects.hash(beginRefreshAt, certificateChain, conditions, notAfter, notBefore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PodCertificateRequestStatus {\n"); + sb.append(" beginRefreshAt: ").append(toIndentedString(beginRefreshAt)).append("\n"); + sb.append(" certificateChain: ").append(toIndentedString(certificateChain)).append("\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" notAfter: ").append(toIndentedString(notAfter)).append("\n"); + sb.append(" notBefore: ").append(toIndentedString(notBefore)).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(Arrays.asList("beginRefreshAt", "certificateChain", "conditions", "notAfter", "notBefore")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodCertificateRequestStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1PodCertificateRequestStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1PodCertificateRequestStatus is not found in the empty JSON string", V1PodCertificateRequestStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1PodCertificateRequestStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodCertificateRequestStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("certificateChain") != null && !jsonObj.get("certificateChain").isJsonNull()) && !jsonObj.get("certificateChain").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `certificateChain` to be a primitive type in the JSON string but got `%s`", jsonObj.get("certificateChain").toString())); + } + 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(java.util.Locale.ROOT, "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 (!V1PodCertificateRequestStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodCertificateRequestStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodCertificateRequestStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodCertificateRequestStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodCertificateRequestStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodCertificateRequestStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodCertificateRequestStatus + * @throws IOException if the JSON string is invalid with respect to V1PodCertificateRequestStatus + */ + public static V1PodCertificateRequestStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodCertificateRequestStatus.class); + } + + /** + * Convert an instance of V1PodCertificateRequestStatus to an JSON 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 e4312ed273..77ff139244 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) 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 d0064667b2..9deb8eef66 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodDNSConfig { public static final String SERIALIZED_NAME_NAMESERVERS = "nameservers"; @SerializedName(SERIALIZED_NAME_NAMESERVERS) 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 c203f1a919..2339a95575 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodDNSConfigOption { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 7668e640cf..ca410fe909 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodDisruptionBudget implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d496245e4f..9ed27ee5b7 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 @@ -54,7 +54,7 @@ * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. */ @ApiModel(description = "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodDisruptionBudgetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b1439fe1ec..1a8fb0b97a 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodDisruptionBudgetSpec { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) @@ -143,11 +143,11 @@ public V1PodDisruptionBudgetSpec unhealthyPodEvictionPolicy(@jakarta.annotation. } /** - * 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. + * 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.") + @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; } 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 0e529d433a..a563455d92 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 @@ -56,7 +56,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java index c2b43439fa..8a5ab0b608 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java @@ -53,7 +53,7 @@ * PodExtendedResourceClaimStatus is stored in the PodStatus for the extended resource requests backed by DRA. It stores the generated name for the corresponding special ResourceClaim created by the scheduler. */ @ApiModel(description = "PodExtendedResourceClaimStatus is stored in the PodStatus for the extended resource requests backed by DRA. It stores the generated name for the corresponding special ResourceClaim created by the scheduler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodExtendedResourceClaimStatus { public static final String SERIALIZED_NAME_REQUEST_MAPPINGS = "requestMappings"; @SerializedName(SERIALIZED_NAME_REQUEST_MAPPINGS) 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 ac984a4159..e6af46b783 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodFailurePolicy { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) 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 eeb1af4b9d..2415de15b1 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodFailurePolicyOnExitCodesRequirement { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) 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 c891f39a0f..afca7cc497 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodFailurePolicyOnPodConditionsPattern { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) 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 d05400ce2f..36a16884d8 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodFailurePolicyRule { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) 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 0d1ca3988d..5745950ebe 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodIP { public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) 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 96244fb000..40c947769a 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 @@ -54,7 +54,7 @@ * PodList is a list of Pods. */ @ApiModel(description = "PodList is a list of Pods.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 c1c7028d94..2feb469e4a 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodOS { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 01b4e80290..cef7523d8c 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodReadinessGate { public static final String SERIALIZED_NAME_CONDITION_TYPE = "conditionType"; @SerializedName(SERIALIZED_NAME_CONDITION_TYPE) 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 17a439341c..15304b7db2 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 @@ -50,7 +50,7 @@ * 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. When the DRAWorkloadResourceClaims feature gate is enabled and this Pod belongs to a PodGroup, a PodResourceClaim is matched to a PodGroupResourceClaim if all of their fields are equal (Name, ResourceClaimName, and ResourceClaimTemplateName). A matched claim references a single ResourceClaim shared across all Pods in the PodGroup, reserved for the PodGroup in ResourceClaimStatus.ReservedFor rather than for individual Pods. */ @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. When the DRAWorkloadResourceClaims feature gate is enabled and this Pod belongs to a PodGroup, a PodResourceClaim is matched to a PodGroupResourceClaim if all of their fields are equal (Name, ResourceClaimName, and ResourceClaimTemplateName). A matched claim references a single ResourceClaim shared across all Pods in the PodGroup, reserved for the PodGroup in ResourceClaimStatus.ReservedFor rather than for individual Pods.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 f8b1660b31..d3240781cc 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodResourceClaimStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 1311ab5f74..12043c938e 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodSchedulingGate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroup.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroup.java index 9272200165..68eb8411c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroup.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroup.java @@ -50,7 +50,7 @@ * PodSchedulingGroup identifies the runtime scheduling group instance that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics. Exactly one field must be specified. */ @ApiModel(description = "PodSchedulingGroup identifies the runtime scheduling group instance that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics. Exactly one field must be specified.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodSchedulingGroup { public static final String SERIALIZED_NAME_POD_GROUP_NAME = "podGroupName"; @SerializedName(SERIALIZED_NAME_POD_GROUP_NAME) 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 8a4a45767b..d72e8e26af 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 @@ -57,7 +57,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodSecurityContext { public static final String SERIALIZED_NAME_APP_ARMOR_PROFILE = "appArmorProfile"; @SerializedName(SERIALIZED_NAME_APP_ARMOR_PROFILE) @@ -253,11 +253,11 @@ public V1PodSecurityContext seLinuxChangePolicy(@jakarta.annotation.Nullable Str } /** - * 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. + * 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. If not specified, \"MountOption\" is used. 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.") + @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. If not specified, \"MountOption\" is used. 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; } 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 fb46cc193e..003c4ab75a 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 @@ -22,6 +22,7 @@ import io.kubernetes.client.openapi.models.V1Affinity; import io.kubernetes.client.openapi.models.V1Container; import io.kubernetes.client.openapi.models.V1EphemeralContainer; +import io.kubernetes.client.openapi.models.V1EvictionResponder; import io.kubernetes.client.openapi.models.V1HostAlias; import io.kubernetes.client.openapi.models.V1LocalObjectReference; import io.kubernetes.client.openapi.models.V1PodDNSConfig; @@ -71,7 +72,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) @@ -113,6 +114,11 @@ public class V1PodSpec { @jakarta.annotation.Nullable private List ephemeralContainers = new ArrayList<>(); + public static final String SERIALIZED_NAME_EVICTION_RESPONDERS = "evictionResponders"; + @SerializedName(SERIALIZED_NAME_EVICTION_RESPONDERS) + @jakarta.annotation.Nullable + private List evictionResponders = new ArrayList<>(); + public static final String SERIALIZED_NAME_HOST_ALIASES = "hostAliases"; @SerializedName(SERIALIZED_NAME_HOST_ALIASES) @jakarta.annotation.Nullable @@ -462,6 +468,34 @@ public void setEphemeralContainers(@jakarta.annotation.Nullable List evictionResponders) { + this.evictionResponders = evictionResponders; + return this; + } + + public V1PodSpec addEvictionRespondersItem(V1EvictionResponder evictionRespondersItem) { + if (this.evictionResponders == null) { + this.evictionResponders = new ArrayList<>(); + } + this.evictionResponders.add(evictionRespondersItem); + return this; + } + + /** + * evictionResponders reference responders that react to Evictions based on EvictionRequests. Responders should observe and communicate through the Eviction Resource API to help with the graceful termination of a pod. The responders are selected sequentially, according to their specified priority. Responders should periodically report on an eviction progress by updating the .status.responders[].heartbeatTime field of the Eviction object. If this field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there is no other responder, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods/<name>/eviction subresource). The maximum length of the responders list is 10. Responders are not supported when the pod is part of a PodGroup (.spec.schedulingGroup is set). This field can only be set on creation and is immutable afterwards. + * @return evictionResponders + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "evictionResponders reference responders that react to Evictions based on EvictionRequests. Responders should observe and communicate through the Eviction Resource API to help with the graceful termination of a pod. The responders are selected sequentially, according to their specified priority. Responders should periodically report on an eviction progress by updating the .status.responders[].heartbeatTime field of the Eviction object. If this field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there is no other responder, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource). The maximum length of the responders list is 10. Responders are not supported when the pod is part of a PodGroup (.spec.schedulingGroup is set). This field can only be set on creation and is immutable afterwards.") + public List getEvictionResponders() { + return evictionResponders; + } + + public void setEvictionResponders(@jakarta.annotation.Nullable List evictionResponders) { + this.evictionResponders = evictionResponders; + } + + public V1PodSpec hostAliases(@jakarta.annotation.Nullable List hostAliases) { this.hostAliases = hostAliases; return this; @@ -596,11 +630,11 @@ public V1PodSpec hostnameOverride(@jakarta.annotation.Nullable String hostnameOv } /** - * HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled. + * HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. * @return hostnameOverride */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled.") + @ApiModelProperty(value = "HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters.") public String getHostnameOverride() { return hostnameOverride; } @@ -768,11 +802,11 @@ public V1PodSpec preemptionPolicy(@jakarta.annotation.Nullable String preemption } /** - * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. + * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. 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.") + @ApiModelProperty(value = "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. Defaults to PreemptLowerPriority if unset.") public String getPreemptionPolicy() { return preemptionPolicy; } @@ -1248,6 +1282,7 @@ public boolean equals(Object o) { Objects.equals(this.dnsPolicy, v1PodSpec.dnsPolicy) && Objects.equals(this.enableServiceLinks, v1PodSpec.enableServiceLinks) && Objects.equals(this.ephemeralContainers, v1PodSpec.ephemeralContainers) && + Objects.equals(this.evictionResponders, v1PodSpec.evictionResponders) && Objects.equals(this.hostAliases, v1PodSpec.hostAliases) && Objects.equals(this.hostIPC, v1PodSpec.hostIPC) && Objects.equals(this.hostNetwork, v1PodSpec.hostNetwork) && @@ -1286,7 +1321,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, hostnameOverride, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, schedulingGroup, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes); + return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, evictionResponders, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, hostnameOverride, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, schedulingGroup, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes); } @Override @@ -1301,6 +1336,7 @@ public String toString() { sb.append(" dnsPolicy: ").append(toIndentedString(dnsPolicy)).append("\n"); sb.append(" enableServiceLinks: ").append(toIndentedString(enableServiceLinks)).append("\n"); sb.append(" ephemeralContainers: ").append(toIndentedString(ephemeralContainers)).append("\n"); + sb.append(" evictionResponders: ").append(toIndentedString(evictionResponders)).append("\n"); sb.append(" hostAliases: ").append(toIndentedString(hostAliases)).append("\n"); sb.append(" hostIPC: ").append(toIndentedString(hostIPC)).append("\n"); sb.append(" hostNetwork: ").append(toIndentedString(hostNetwork)).append("\n"); @@ -1356,7 +1392,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("activeDeadlineSeconds", "affinity", "automountServiceAccountToken", "containers", "dnsConfig", "dnsPolicy", "enableServiceLinks", "ephemeralContainers", "hostAliases", "hostIPC", "hostNetwork", "hostPID", "hostUsers", "hostname", "hostnameOverride", "imagePullSecrets", "initContainers", "nodeName", "nodeSelector", "os", "overhead", "preemptionPolicy", "priority", "priorityClassName", "readinessGates", "resourceClaims", "resources", "restartPolicy", "runtimeClassName", "schedulerName", "schedulingGates", "schedulingGroup", "securityContext", "serviceAccount", "serviceAccountName", "setHostnameAsFQDN", "shareProcessNamespace", "subdomain", "terminationGracePeriodSeconds", "tolerations", "topologySpreadConstraints", "volumes")); + openapiFields = new HashSet(Arrays.asList("activeDeadlineSeconds", "affinity", "automountServiceAccountToken", "containers", "dnsConfig", "dnsPolicy", "enableServiceLinks", "ephemeralContainers", "evictionResponders", "hostAliases", "hostIPC", "hostNetwork", "hostPID", "hostUsers", "hostname", "hostnameOverride", "imagePullSecrets", "initContainers", "nodeName", "nodeSelector", "os", "overhead", "preemptionPolicy", "priority", "priorityClassName", "readinessGates", "resourceClaims", "resources", "restartPolicy", "runtimeClassName", "schedulerName", "schedulingGates", "schedulingGroup", "securityContext", "serviceAccount", "serviceAccountName", "setHostnameAsFQDN", "shareProcessNamespace", "subdomain", "terminationGracePeriodSeconds", "tolerations", "topologySpreadConstraints", "volumes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("containers")); @@ -1425,6 +1461,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + if (jsonObj.get("evictionResponders") != null && !jsonObj.get("evictionResponders").isJsonNull()) { + JsonArray jsonArrayevictionResponders = jsonObj.getAsJsonArray("evictionResponders"); + if (jsonArrayevictionResponders != null) { + // ensure the json data is an array + if (!jsonObj.get("evictionResponders").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `evictionResponders` to be an array in the JSON string but got `%s`", jsonObj.get("evictionResponders").toString())); + } + + // validate the optional field `evictionResponders` (array) + for (int i = 0; i < jsonArrayevictionResponders.size(); i++) { + V1EvictionResponder.validateJsonElement(jsonArrayevictionResponders.get(i)); + }; + } + } if (jsonObj.get("hostAliases") != null && !jsonObj.get("hostAliases").isJsonNull()) { JsonArray jsonArrayhostAliases = jsonObj.getAsJsonArray("hostAliases"); if (jsonArrayhostAliases != null) { 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 c332ccc663..04f758011f 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 @@ -26,6 +26,7 @@ import io.kubernetes.client.openapi.models.V1PodExtendedResourceClaimStatus; import io.kubernetes.client.openapi.models.V1PodIP; import io.kubernetes.client.openapi.models.V1PodResourceClaimStatus; +import io.kubernetes.client.openapi.models.V1PodVolumeHealth; import io.kubernetes.client.openapi.models.V1ResourceRequirements; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -64,7 +65,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodStatus { public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES = "allocatedResources"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES) @@ -171,6 +172,11 @@ public class V1PodStatus { @jakarta.annotation.Nullable private OffsetDateTime startTime; + public static final String SERIALIZED_NAME_VOLUME_HEALTH = "volumeHealth"; + @SerializedName(SERIALIZED_NAME_VOLUME_HEALTH) + @jakarta.annotation.Nullable + private List volumeHealth = new ArrayList<>(); + public V1PodStatus() { } @@ -666,6 +672,34 @@ public void setStartTime(@jakarta.annotation.Nullable OffsetDateTime startTime) } + public V1PodStatus volumeHealth(@jakarta.annotation.Nullable List volumeHealth) { + this.volumeHealth = volumeHealth; + return this; + } + + public V1PodStatus addVolumeHealthItem(V1PodVolumeHealth volumeHealthItem) { + if (this.volumeHealth == null) { + this.volumeHealth = new ArrayList<>(); + } + this.volumeHealth.add(volumeHealthItem); + return this; + } + + /** + * volumeHealth contains node-reported health for each volume the pod is using. Populated by the kubelet on the pod's node. + * @return volumeHealth + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeHealth contains node-reported health for each volume the pod is using. Populated by the kubelet on the pod's node.") + public List getVolumeHealth() { + return volumeHealth; + } + + public void setVolumeHealth(@jakarta.annotation.Nullable List volumeHealth) { + this.volumeHealth = volumeHealth; + } + + @Override public boolean equals(Object o) { @@ -696,12 +730,13 @@ public boolean equals(Object o) { Objects.equals(this.resize, v1PodStatus.resize) && Objects.equals(this.resourceClaimStatuses, v1PodStatus.resourceClaimStatuses) && Objects.equals(this.resources, v1PodStatus.resources) && - Objects.equals(this.startTime, v1PodStatus.startTime); + Objects.equals(this.startTime, v1PodStatus.startTime) && + Objects.equals(this.volumeHealth, v1PodStatus.volumeHealth); } @Override public int hashCode() { - return Objects.hash(allocatedResources, conditions, containerStatuses, ephemeralContainerStatuses, extendedResourceClaimStatus, hostIP, hostIPs, initContainerStatuses, message, nodeAllocatableResourceClaimStatuses, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, resources, startTime); + return Objects.hash(allocatedResources, conditions, containerStatuses, ephemeralContainerStatuses, extendedResourceClaimStatus, hostIP, hostIPs, initContainerStatuses, message, nodeAllocatableResourceClaimStatuses, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, resources, startTime, volumeHealth); } @Override @@ -729,6 +764,7 @@ public String toString() { sb.append(" resourceClaimStatuses: ").append(toIndentedString(resourceClaimStatuses)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" volumeHealth: ").append(toIndentedString(volumeHealth)).append("\n"); sb.append("}"); return sb.toString(); } @@ -750,7 +786,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allocatedResources", "conditions", "containerStatuses", "ephemeralContainerStatuses", "extendedResourceClaimStatus", "hostIP", "hostIPs", "initContainerStatuses", "message", "nodeAllocatableResourceClaimStatuses", "nominatedNodeName", "observedGeneration", "phase", "podIP", "podIPs", "qosClass", "reason", "resize", "resourceClaimStatuses", "resources", "startTime")); + openapiFields = new HashSet(Arrays.asList("allocatedResources", "conditions", "containerStatuses", "ephemeralContainerStatuses", "extendedResourceClaimStatus", "hostIP", "hostIPs", "initContainerStatuses", "message", "nodeAllocatableResourceClaimStatuses", "nominatedNodeName", "observedGeneration", "phase", "podIP", "podIPs", "qosClass", "reason", "resize", "resourceClaimStatuses", "resources", "startTime", "volumeHealth")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -921,6 +957,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonNull()) { V1ResourceRequirements.validateJsonElement(jsonObj.get("resources")); } + if (jsonObj.get("volumeHealth") != null && !jsonObj.get("volumeHealth").isJsonNull()) { + JsonArray jsonArrayvolumeHealth = jsonObj.getAsJsonArray("volumeHealth"); + if (jsonArrayvolumeHealth != null) { + // ensure the json data is an array + if (!jsonObj.get("volumeHealth").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `volumeHealth` to be an array in the JSON string but got `%s`", jsonObj.get("volumeHealth").toString())); + } + + // validate the optional field `volumeHealth` (array) + for (int i = 0; i < jsonArrayvolumeHealth.size(); i++) { + V1PodVolumeHealth.validateJsonElement(jsonArrayvolumeHealth.get(i)); + }; + } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { 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 57eddc0f5a..1c8f883cc8 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 dfbcc1da3f..f39de0bde1 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 @@ -54,7 +54,7 @@ * PodTemplateList is a list of PodTemplates. */ @ApiModel(description = "PodTemplateList is a list of PodTemplates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 c2342645c4..c9e8b5083e 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodVolumeHealth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodVolumeHealth.java new file mode 100644 index 0000000000..7228368a04 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodVolumeHealth.java @@ -0,0 +1,294 @@ +/* +Copyright 2026 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.V1VolumeHealthCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +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; + +/** + * PodVolumeHealth contains health information for a volume used by a pod, reported by the CSI node plugin via the kubelet. + */ +@ApiModel(description = "PodVolumeHealth contains health information for a volume used by a pod, reported by the CSI node plugin via the kubelet.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1PodVolumeHealth { + public static final String SERIALIZED_NAME_HEALTH_CONDITIONS = "healthConditions"; + @SerializedName(SERIALIZED_NAME_HEALTH_CONDITIONS) + @jakarta.annotation.Nullable + private List healthConditions = new ArrayList<>(); + + 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_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public V1PodVolumeHealth() { + } + + public V1PodVolumeHealth healthConditions(@jakarta.annotation.Nullable List healthConditions) { + this.healthConditions = healthConditions; + return this; + } + + public V1PodVolumeHealth addHealthConditionsItem(V1VolumeHealthCondition healthConditionsItem) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + this.healthConditions.add(healthConditionsItem); + return this; + } + + /** + * conditions is the set of adverse conditions reported by the CSI node plugin for this volume on this node. At most 16 conditions may be reported. + * @return healthConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "conditions is the set of adverse conditions reported by the CSI node plugin for this volume on this node. At most 16 conditions may be reported.") + public List getHealthConditions() { + return healthConditions; + } + + public void setHealthConditions(@jakarta.annotation.Nullable List healthConditions) { + this.healthConditions = healthConditions; + } + + + public V1PodVolumeHealth lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return this; + } + + /** + * lastTransitionTime is when the current set of conditions first appeared. + * @return lastTransitionTime + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "lastTransitionTime is when the current set of conditions first appeared.") + public OffsetDateTime getLastTransitionTime() { + return lastTransitionTime; + } + + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + } + + + public V1PodVolumeHealth name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name matches an entry in pod.spec.volumes. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name matches an entry in pod.spec.volumes.") + 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; + } + V1PodVolumeHealth v1PodVolumeHealth = (V1PodVolumeHealth) o; + return Objects.equals(this.healthConditions, v1PodVolumeHealth.healthConditions) && + Objects.equals(this.lastTransitionTime, v1PodVolumeHealth.lastTransitionTime) && + Objects.equals(this.name, v1PodVolumeHealth.name); + } + + @Override + public int hashCode() { + return Objects.hash(healthConditions, lastTransitionTime, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PodVolumeHealth {\n"); + sb.append(" healthConditions: ").append(toIndentedString(healthConditions)).append("\n"); + sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).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(Arrays.asList("healthConditions", "lastTransitionTime", "name")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1PodVolumeHealth + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1PodVolumeHealth.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1PodVolumeHealth is not found in the empty JSON string", V1PodVolumeHealth.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1PodVolumeHealth.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodVolumeHealth` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodVolumeHealth.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("healthConditions") != null && !jsonObj.get("healthConditions").isJsonNull()) { + JsonArray jsonArrayhealthConditions = jsonObj.getAsJsonArray("healthConditions"); + if (jsonArrayhealthConditions != null) { + // ensure the json data is an array + if (!jsonObj.get("healthConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `healthConditions` to be an array in the JSON string but got `%s`", jsonObj.get("healthConditions").toString())); + } + + // validate the optional field `healthConditions` (array) + for (int i = 0; i < jsonArrayhealthConditions.size(); i++) { + V1VolumeHealthCondition.validateJsonElement(jsonArrayhealthConditions.get(i)); + }; + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1PodVolumeHealth.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodVolumeHealth' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodVolumeHealth.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodVolumeHealth value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodVolumeHealth read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodVolumeHealth given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodVolumeHealth + * @throws IOException if the JSON string is invalid with respect to V1PodVolumeHealth + */ + public static V1PodVolumeHealth fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodVolumeHealth.class); + } + + /** + * Convert an instance of V1PodVolumeHealth to an JSON 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 e77c007e30..242c797b99 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -96,11 +96,11 @@ public V1PolicyRule addApiGroupsItem(String apiGroupsItem) { } /** - * 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. + * 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.") + @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; } @@ -124,11 +124,11 @@ public V1PolicyRule addNonResourceURLsItem(String nonResourceURLsItem) { } /** - * 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. + * 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.") + @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; } @@ -152,11 +152,11 @@ public V1PolicyRule addResourceNamesItem(String resourceNamesItem) { } /** - * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * 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.") + @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; } @@ -180,11 +180,11 @@ public V1PolicyRule addResourcesItem(String resourcesItem) { } /** - * Resources is a list of resources this rule applies to. '*' represents all resources. + * 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.") + @ApiModelProperty(value = "resources is a list of resources this rule applies to. '*' represents all resources.") public List getResources() { return resources; } @@ -208,11 +208,11 @@ public V1PolicyRule addVerbsItem(String verbsItem) { } /** - * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. + * 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.") + @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; } 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 957974d66c..b804b44a56 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) 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 37d0eb5afd..404d332361 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) 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 4ccf5d0b9e..46712d5cca 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 @@ -50,7 +50,7 @@ * PortworxVolumeSource represents a Portworx volume resource. */ @ApiModel(description = "PortworxVolumeSource represents a Portworx volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PortworxVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 d10e9806a6..524b214813 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Preconditions { public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) 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 5d7e37d5ac..fe235824a3 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PreferredSchedulingTerm { public static final String SERIALIZED_NAME_PREFERENCE = "preference"; @SerializedName(SERIALIZED_NAME_PREFERENCE) 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 7353bbc1ca..01ac665836 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 58ccf09de7..20a271470f 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 21ae86d154..854d59c3ad 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityLevelConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -72,7 +72,7 @@ public class V1PriorityLevelConfiguration implements io.kubernetes.client.common public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1PriorityLevelConfigurationSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1PriorityLevelConfiguration spec(@jakarta.annotation.Nullable V1PriorityLevelConfigurationSpec spec) { + public V1PriorityLevelConfiguration spec(@jakarta.annotation.Nonnull V1PriorityLevelConfigurationSpec spec) { this.spec = spec; return this; } @@ -152,13 +152,13 @@ public V1PriorityLevelConfiguration spec(@jakarta.annotation.Nullable V1Priority * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1PriorityLevelConfigurationSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1PriorityLevelConfigurationSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1PriorityLevelConfigurationSpec spec) { this.spec = spec; } @@ -238,7 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -261,6 +261,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PriorityLevelConfiguration.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -272,10 +279,8 @@ 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()) { - V1PriorityLevelConfigurationSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1PriorityLevelConfigurationSpec.validateJsonElement(jsonObj.get("spec")); // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { V1PriorityLevelConfigurationStatus.validateJsonElement(jsonObj.get("status")); 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 4c232f6b97..55d6e30cb5 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityLevelConfigurationCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -75,7 +75,7 @@ public class V1PriorityLevelConfigurationCondition { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private String type; public V1PriorityLevelConfigurationCondition() { @@ -147,11 +147,11 @@ public V1PriorityLevelConfigurationCondition status(@jakarta.annotation.Nullable } /** - * `status` is the status of the condition. Can be True, False, Unknown. Required. + * `status` is the status of the condition. Should be specified and set to one of True, False, Unknown. * @return status */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") + @ApiModelProperty(value = "`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.") public String getStatus() { return status; } @@ -161,7 +161,7 @@ public void setStatus(@jakarta.annotation.Nullable String status) { } - public V1PriorityLevelConfigurationCondition type(@jakarta.annotation.Nullable String type) { + public V1PriorityLevelConfigurationCondition type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -170,13 +170,13 @@ public V1PriorityLevelConfigurationCondition type(@jakarta.annotation.Nullable S * `type` is the type of the condition. Required. * @return type */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "`type` is the type of the condition. Required.") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`type` is the type of the condition. Required.") public String getType() { return type; } - public void setType(@jakarta.annotation.Nullable String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } @@ -236,7 +236,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -259,6 +259,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfigurationCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PriorityLevelConfigurationCondition.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); @@ -269,7 +276,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } 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 1926134082..5db9829449 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityLevelConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 7f265e3fa5..21b54d91ee 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityLevelConfigurationReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 87c4cc6650..7a7935e5d7 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityLevelConfigurationSpec { public static final String SERIALIZED_NAME_EXEMPT = "exempt"; @SerializedName(SERIALIZED_NAME_EXEMPT) 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 ab172f9433..5819a2e3c2 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) 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 497e7b0adf..5bf5e2a8a3 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Probe { public static final String SERIALIZED_NAME_EXEC = "exec"; @SerializedName(SERIALIZED_NAME_EXEC) 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 77955f86bd..4f97756244 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 @@ -53,13 +53,18 @@ * Represents a projected volume source */ @ApiModel(description = "Represents a projected volume source") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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_DEFAULT_USER = "defaultUser"; + @SerializedName(SERIALIZED_NAME_DEFAULT_USER) + @jakarta.annotation.Nullable + private Long defaultUser; + public static final String SERIALIZED_NAME_SOURCES = "sources"; @SerializedName(SERIALIZED_NAME_SOURCES) @jakarta.annotation.Nullable @@ -88,6 +93,26 @@ public void setDefaultMode(@jakarta.annotation.Nullable Integer defaultMode) { } + public V1ProjectedVolumeSource defaultUser(@jakarta.annotation.Nullable Long defaultUser) { + this.defaultUser = defaultUser; + return this; + } + + /** + * defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. + * @return defaultUser + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") + public Long getDefaultUser() { + return defaultUser; + } + + public void setDefaultUser(@jakarta.annotation.Nullable Long defaultUser) { + this.defaultUser = defaultUser; + } + + public V1ProjectedVolumeSource sources(@jakarta.annotation.Nullable List sources) { this.sources = sources; return this; @@ -127,12 +152,13 @@ public boolean equals(Object o) { } V1ProjectedVolumeSource v1ProjectedVolumeSource = (V1ProjectedVolumeSource) o; return Objects.equals(this.defaultMode, v1ProjectedVolumeSource.defaultMode) && + Objects.equals(this.defaultUser, v1ProjectedVolumeSource.defaultUser) && Objects.equals(this.sources, v1ProjectedVolumeSource.sources); } @Override public int hashCode() { - return Objects.hash(defaultMode, sources); + return Objects.hash(defaultMode, defaultUser, sources); } @Override @@ -140,6 +166,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ProjectedVolumeSource {\n"); sb.append(" defaultMode: ").append(toIndentedString(defaultMode)).append("\n"); + sb.append(" defaultUser: ").append(toIndentedString(defaultUser)).append("\n"); sb.append(" sources: ").append(toIndentedString(sources)).append("\n"); sb.append("}"); return sb.toString(); @@ -162,7 +189,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("defaultMode", "sources")); + openapiFields = new HashSet(Arrays.asList("defaultMode", "defaultUser", "sources")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); 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 dc8da18bc4..3ff1ea4bc8 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1QueuingConfiguration { public static final String SERIALIZED_NAME_HAND_SIZE = "handSize"; @SerializedName(SERIALIZED_NAME_HAND_SIZE) 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 4d7159defb..933dad8f33 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1QuobyteVolumeSource { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) 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 4c16978f4e..a1277de94c 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RBDPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 917a12226d..b65560d86c 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RBDVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 6679488c47..b648d12201 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicaSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -72,7 +72,7 @@ public class V1ReplicaSet implements io.kubernetes.client.common.KubernetesObjec public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1ReplicaSetSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1ReplicaSet spec(@jakarta.annotation.Nullable V1ReplicaSetSpec spec) { + public V1ReplicaSet spec(@jakarta.annotation.Nonnull V1ReplicaSetSpec spec) { this.spec = spec; return this; } @@ -152,13 +152,13 @@ public V1ReplicaSet spec(@jakarta.annotation.Nullable V1ReplicaSetSpec spec) { * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1ReplicaSetSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1ReplicaSetSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1ReplicaSetSpec spec) { this.spec = spec; } @@ -238,7 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -261,6 +261,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ReplicaSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ReplicaSet.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -272,10 +279,8 @@ 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()) { - V1ReplicaSetSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1ReplicaSetSpec.validateJsonElement(jsonObj.get("spec")); // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { V1ReplicaSetStatus.validateJsonElement(jsonObj.get("status")); 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 7bd052d937..9dd2f9b5b6 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicaSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -70,12 +70,12 @@ public class V1ReplicaSetCondition { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private String type; public V1ReplicaSetCondition() { @@ -141,7 +141,7 @@ public void setReason(@jakarta.annotation.Nullable String reason) { } - public V1ReplicaSetCondition status(@jakarta.annotation.Nonnull String status) { + public V1ReplicaSetCondition status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } @@ -150,18 +150,18 @@ public V1ReplicaSetCondition status(@jakarta.annotation.Nonnull String status) { * 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.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(@jakarta.annotation.Nonnull String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } - public V1ReplicaSetCondition type(@jakarta.annotation.Nonnull String type) { + public V1ReplicaSetCondition type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -170,13 +170,13 @@ public V1ReplicaSetCondition type(@jakarta.annotation.Nonnull String type) { * Type of replica set condition. * @return type */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Type of replica set condition.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Type of replica set condition.") public String getType() { return type; } - public void setType(@jakarta.annotation.Nonnull String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -236,7 +236,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); + openapiRequiredFields = new HashSet(0); } /** @@ -259,13 +259,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ReplicaSetCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1ReplicaSetCondition.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); @@ -273,10 +266,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); } - if (!jsonObj.get("status").isJsonPrimitive()) { + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } - if (!jsonObj.get("type").isJsonPrimitive()) { + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } 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 4df3b15a7e..b006ee7fac 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 @@ -54,7 +54,7 @@ * ReplicaSetList is a collection of ReplicaSets. */ @ApiModel(description = "ReplicaSetList is a collection of ReplicaSets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicaSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 c1e1159e3f..0ef0ede5a7 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicaSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) 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 96be7c4d83..06866bf967 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicaSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) 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 4e9d254a70..0f6da87909 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicationController implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 eb91c88ce0..5fafb59c62 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicationControllerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 17d266d707..bca5e13647 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicationControllerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 bc96a6425a..86497503a1 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicationControllerSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) 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 44e1d17af1..e8ac2de8a0 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicationControllerStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) 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 fa5fca1e0e..8ea8869e83 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceAttributes { public static final String SERIALIZED_NAME_FIELD_SELECTOR = "fieldSelector"; @SerializedName(SERIALIZED_NAME_FIELD_SELECTOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java index 6ae6c4d174..ce0fed0b2b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java @@ -50,7 +50,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimConsumerReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java index 33de18cf6a..a1640ec965 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java @@ -54,7 +54,7 @@ * ResourceClaimList is a collection of claims. */ @ApiModel(description = "ResourceClaimList is a collection of claims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java index e124ea52e3..232f598606 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java @@ -51,7 +51,7 @@ * ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. */ @ApiModel(description = "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimSpec { public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java index 9ab9715475..b42cccad82 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java @@ -55,7 +55,7 @@ * ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. */ @ApiModel(description = "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimStatus { public static final String SERIALIZED_NAME_ALLOCATION = "allocation"; @SerializedName(SERIALIZED_NAME_ALLOCATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java index 37b06d9cb6..5ed7e9e9e4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java @@ -52,7 +52,7 @@ * ResourceClaimTemplate is used to produce ResourceClaim objects. */ @ApiModel(description = "ResourceClaimTemplate is used to produce ResourceClaim objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,7 +71,7 @@ public class V1ResourceClaimTemplate implements io.kubernetes.client.common.Kube public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1ResourceClaimTemplateSpec spec; public V1ResourceClaimTemplate() { @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1ResourceClaimTemplate spec(@jakarta.annotation.Nonnull V1ResourceClaimTemplateSpec spec) { + public V1ResourceClaimTemplate spec(@jakarta.annotation.Nullable V1ResourceClaimTemplateSpec spec) { this.spec = spec; return this; } @@ -146,13 +146,13 @@ public V1ResourceClaimTemplate spec(@jakarta.annotation.Nonnull V1ResourceClaimT * Get spec * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ResourceClaimTemplateSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1ResourceClaimTemplateSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1ResourceClaimTemplateSpec spec) { this.spec = spec; } @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec")); + openapiRequiredFields = new HashSet(0); } /** @@ -233,13 +233,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceClaimTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1ResourceClaimTemplate.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -251,8 +244,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the required field `spec` - V1ResourceClaimTemplateSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1ResourceClaimTemplateSpec.validateJsonElement(jsonObj.get("spec")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java index c89564bc6d..77c06fa0d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java @@ -54,7 +54,7 @@ * ResourceClaimTemplateList is a collection of claim templates. */ @ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java index 1c117d2bd8..78fd967e94 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java @@ -52,7 +52,7 @@ * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ @ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @@ -61,7 +61,7 @@ public class V1ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1ResourceClaimSpec spec; public V1ResourceClaimTemplateSpec() { @@ -87,7 +87,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1ResourceClaimTemplateSpec spec(@jakarta.annotation.Nonnull V1ResourceClaimSpec spec) { + public V1ResourceClaimTemplateSpec spec(@jakarta.annotation.Nullable V1ResourceClaimSpec spec) { this.spec = spec; return this; } @@ -96,13 +96,13 @@ public V1ResourceClaimTemplateSpec spec(@jakarta.annotation.Nonnull V1ResourceCl * Get spec * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ResourceClaimSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1ResourceClaimSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1ResourceClaimSpec spec) { this.spec = spec; } @@ -156,7 +156,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec")); + openapiRequiredFields = new HashSet(0); } /** @@ -179,20 +179,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceClaimTemplateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1ResourceClaimTemplateSpec.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `metadata` if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the required field `spec` - V1ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { 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 43a972858e..c8f3d3e461 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceFieldSelector { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) 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 86bc1bf3c1..79552a0b04 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceHealth { public static final String SERIALIZED_NAME_HEALTH = "health"; @SerializedName(SERIALIZED_NAME_HEALTH) 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 391c658952..a951c99a82 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourcePolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java index 9f07c8edc3..2342293a68 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java @@ -50,7 +50,7 @@ * ResourcePool describes the pool that ResourceSlices belong to. */ @ApiModel(description = "ResourcePool describes the pool that ResourceSlices belong to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) @@ -96,11 +96,11 @@ public V1ResourcePool name(@jakarta.annotation.Nonnull String name) { } /** - * 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. + * Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "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.") + @ApiModelProperty(required = true, value = "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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.") public String getName() { return name; } 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 922fe19c7c..1a066ea771 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceQuota implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6021946071..91d62c19bb 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceQuotaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 50473ac6c1..356fa78832 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 @@ -56,7 +56,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceQuotaSpec { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) 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 65831268c0..79721a46c6 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceQuotaStatus { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) 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 9e815b7ee1..9dd0185d6a 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 @@ -56,7 +56,7 @@ * ResourceRequirements describes the compute resource requirements. */ @ApiModel(description = "ResourceRequirements describes the compute resource requirements.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceRequirements { public static final String SERIALIZED_NAME_CLAIMS = "claims"; @SerializedName(SERIALIZED_NAME_CLAIMS) 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 21d79271f3..90509b2a25 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java index dc5232cbd7..8948ebf60e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java @@ -52,7 +52,7 @@ * 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 <driver name>, <pool name>, <device name>. 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java index 645dbb822e..b0d0e8d84e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java @@ -54,7 +54,7 @@ * ResourceSliceList is a collection of ResourceSlices. */ @ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java index 81e335eae2..54d7fb2d57 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java @@ -56,7 +56,7 @@ * ResourceSliceSpec contains the information published by the driver in one ResourceSlice. */ @ApiModel(description = "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -83,6 +83,11 @@ public class V1ResourceSliceSpec { @jakarta.annotation.Nullable private V1NodeSelector nodeSelector; + public static final String SERIALIZED_NAME_PARTITION_TYPE_ATTRIBUTE = "partitionTypeAttribute"; + @SerializedName(SERIALIZED_NAME_PARTITION_TYPE_ATTRIBUTE) + @jakarta.annotation.Nullable + private String partitionTypeAttribute; + public static final String SERIALIZED_NAME_PER_DEVICE_NODE_SELECTION = "perDeviceNodeSelection"; @SerializedName(SERIALIZED_NAME_PER_DEVICE_NODE_SELECTION) @jakarta.annotation.Nullable @@ -98,6 +103,11 @@ public class V1ResourceSliceSpec { @jakarta.annotation.Nullable private List sharedCounters = new ArrayList<>(); + public static final String SERIALIZED_NAME_SKIP_NODE_OPERATIONS = "skipNodeOperations"; + @SerializedName(SERIALIZED_NAME_SKIP_NODE_OPERATIONS) + @jakarta.annotation.Nullable + private List skipNodeOperations = new ArrayList<>(); + public V1ResourceSliceSpec() { } @@ -209,6 +219,26 @@ public void setNodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSele } + public V1ResourceSliceSpec partitionTypeAttribute(@jakarta.annotation.Nullable String partitionTypeAttribute) { + this.partitionTypeAttribute = partitionTypeAttribute; + return this; + } + + /** + * PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost. + * @return partitionTypeAttribute + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.") + public String getPartitionTypeAttribute() { + return partitionTypeAttribute; + } + + public void setPartitionTypeAttribute(@jakarta.annotation.Nullable String partitionTypeAttribute) { + this.partitionTypeAttribute = partitionTypeAttribute; + } + + public V1ResourceSliceSpec perDeviceNodeSelection(@jakarta.annotation.Nullable Boolean perDeviceNodeSelection) { this.perDeviceNodeSelection = perDeviceNodeSelection; return this; @@ -277,6 +307,34 @@ public void setSharedCounters(@jakarta.annotation.Nullable List sh } + public V1ResourceSliceSpec skipNodeOperations(@jakarta.annotation.Nullable List skipNodeOperations) { + this.skipNodeOperations = skipNodeOperations; + return this; + } + + public V1ResourceSliceSpec addSkipNodeOperationsItem(String skipNodeOperationsItem) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.add(skipNodeOperationsItem); + return this; + } + + /** + * SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values. + * @return skipNodeOperations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values.") + public List getSkipNodeOperations() { + return skipNodeOperations; + } + + public void setSkipNodeOperations(@jakarta.annotation.Nullable List skipNodeOperations) { + this.skipNodeOperations = skipNodeOperations; + } + + @Override public boolean equals(Object o) { @@ -292,14 +350,16 @@ public boolean equals(Object o) { Objects.equals(this.driver, v1ResourceSliceSpec.driver) && Objects.equals(this.nodeName, v1ResourceSliceSpec.nodeName) && Objects.equals(this.nodeSelector, v1ResourceSliceSpec.nodeSelector) && + Objects.equals(this.partitionTypeAttribute, v1ResourceSliceSpec.partitionTypeAttribute) && Objects.equals(this.perDeviceNodeSelection, v1ResourceSliceSpec.perDeviceNodeSelection) && Objects.equals(this.pool, v1ResourceSliceSpec.pool) && - Objects.equals(this.sharedCounters, v1ResourceSliceSpec.sharedCounters); + Objects.equals(this.sharedCounters, v1ResourceSliceSpec.sharedCounters) && + Objects.equals(this.skipNodeOperations, v1ResourceSliceSpec.skipNodeOperations); } @Override public int hashCode() { - return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); + return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, partitionTypeAttribute, perDeviceNodeSelection, pool, sharedCounters, skipNodeOperations); } @Override @@ -311,9 +371,11 @@ public String toString() { sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); + sb.append(" partitionTypeAttribute: ").append(toIndentedString(partitionTypeAttribute)).append("\n"); sb.append(" perDeviceNodeSelection: ").append(toIndentedString(perDeviceNodeSelection)).append("\n"); sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); sb.append(" sharedCounters: ").append(toIndentedString(sharedCounters)).append("\n"); + sb.append(" skipNodeOperations: ").append(toIndentedString(skipNodeOperations)).append("\n"); sb.append("}"); return sb.toString(); } @@ -335,7 +397,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allNodes", "devices", "driver", "nodeName", "nodeSelector", "perDeviceNodeSelection", "pool", "sharedCounters")); + openapiFields = new HashSet(Arrays.asList("allNodes", "devices", "driver", "nodeName", "nodeSelector", "partitionTypeAttribute", "perDeviceNodeSelection", "pool", "sharedCounters", "skipNodeOperations")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("driver", "pool")); @@ -393,6 +455,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { V1NodeSelector.validateJsonElement(jsonObj.get("nodeSelector")); } + if ((jsonObj.get("partitionTypeAttribute") != null && !jsonObj.get("partitionTypeAttribute").isJsonNull()) && !jsonObj.get("partitionTypeAttribute").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `partitionTypeAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("partitionTypeAttribute").toString())); + } // validate the required field `pool` V1ResourcePool.validateJsonElement(jsonObj.get("pool")); if (jsonObj.get("sharedCounters") != null && !jsonObj.get("sharedCounters").isJsonNull()) { @@ -409,6 +474,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + // ensure the optional json data is an array if present + if (jsonObj.get("skipNodeOperations") != null && !jsonObj.get("skipNodeOperations").isJsonNull() && !jsonObj.get("skipNodeOperations").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `skipNodeOperations` to be an array in the JSON string but got `%s`", jsonObj.get("skipNodeOperations").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { 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 fc64edf110..a7b41de4be 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -74,11 +74,11 @@ public V1ResourceStatus name(@jakarta.annotation.Nonnull String name) { } /** - * 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. + * 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 container.resources.claims[*].request is set or \"claim:<claim_name>\" when container.resources.claims[*].request is empty. For DRA-backed extended resources, \"claim:<claim_name>/<request>\" is used when the claim name and request name are recorded in pod.status.extendedResourceClaimStatus. 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.") + @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 container.resources.claims[*].request is set or \"claim:\" when container.resources.claims[*].request is empty. For DRA-backed extended resources, \"claim:/\" is used when the claim name and request name are recorded in pod.status.extendedResourceClaimStatus. 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; } 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 2bc70ac611..0b008b064d 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Role implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -153,11 +153,11 @@ public V1Role addRulesItem(V1PolicyRule rulesItem) { } /** - * Rules holds all the PolicyRules for this Role + * rules holds all the PolicyRules for this Role * @return rules */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Rules holds all the PolicyRules for this Role") + @ApiModelProperty(value = "rules holds all the PolicyRules for this Role") public List getRules() { return rules; } 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 5e722b0e8e..4d32cbfcc7 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -179,11 +179,11 @@ public V1RoleBinding addSubjectsItem(RbacV1Subject subjectsItem) { } /** - * Subjects holds references to the objects the role applies to. + * 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.") + @ApiModelProperty(value = "subjects holds references to the objects the role applies to.") public List getSubjects() { return subjects; } 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 adf8bc9f6a..51e65a9bd4 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 @@ -54,7 +54,7 @@ * RoleBindingList is a collection of RoleBindings */ @ApiModel(description = "RoleBindingList is a collection of RoleBindings") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 e034895fdd..bd09f74d97 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 @@ -54,7 +54,7 @@ * RoleList is a collection of Roles */ @ApiModel(description = "RoleList is a collection of Roles") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 5374705236..dc0f106794 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RoleRef { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -76,11 +76,11 @@ public V1RoleRef apiGroup(@jakarta.annotation.Nullable String apiGroup) { } /** - * APIGroup is the group for the resource being referenced + * apiGroup is the group for the resource being referenced * @return apiGroup */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIGroup is the group for the resource being referenced") + @ApiModelProperty(value = "apiGroup is the group for the resource being referenced") public String getApiGroup() { return apiGroup; } @@ -96,11 +96,11 @@ public V1RoleRef kind(@jakarta.annotation.Nonnull String kind) { } /** - * Kind is the type of resource being referenced + * 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") + @ApiModelProperty(required = true, value = "kind is the type of resource being referenced") public String getKind() { return kind; } @@ -116,11 +116,11 @@ public V1RoleRef name(@jakarta.annotation.Nonnull String name) { } /** - * Name is the name of resource being referenced + * 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") + @ApiModelProperty(required = true, value = "name is the name of resource being referenced") public String getName() { return name; } 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 9121e28b5b..d6f1dd51f0 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RollingUpdateDaemonSet { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) 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 0c59000f2b..8aa6de38cb 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RollingUpdateDeployment { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) 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 33ea3c1add..f9fe3dd98f 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RollingUpdateStatefulSetStrategy { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) 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 e671b3eaab..53797f55d4 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) 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 99da8f6b62..3f82e7df23 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RuntimeClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 04d491d340..38548f56a0 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RuntimeClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2eba3f169d..a0b80f7937 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SELinuxOptions { public static final String SERIALIZED_NAME_LEVEL = "level"; @SerializedName(SERIALIZED_NAME_LEVEL) 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 ae0c6b6e66..bfa19aa8bc 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Scale implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d9bb242a53..63a18b8231 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 @@ -51,7 +51,7 @@ * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ScaleIOPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 74dd3c04f4..e8d662ce85 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 @@ -51,7 +51,7 @@ * ScaleIOVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOVolumeSource represents a persistent ScaleIO volume") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ScaleIOVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 319673a8a9..0574ea2263 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ScaleSpec { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) 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 16c80984bb..622db7b6d9 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ScaleStatus { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) 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 8aaf83ad29..2842d9d717 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Scheduling { public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) 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 cecf816275..6ed0ab0fda 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ScopeSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) 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 c3918a9254..029d6d1f06 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ScopedResourceSelectorRequirement { public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) 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 ab46ce1476..0b7774f321 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SeccompProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) 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 2c379425ea..fdc6fb8375 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Secret implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 269c30d6ea..71d4f98a94 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SecretEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 aa0ca8abb2..b4729e0cec 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SecretKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) 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 49ac91ceab..9b2fe2d780 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 @@ -54,7 +54,7 @@ * SecretList is a list of Secret. */ @ApiModel(description = "SecretList is a list of Secret.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SecretList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 60faa21a59..eccc5ba0bd 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SecretProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) 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 b4ca7ec988..e12b7ff903 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SecretReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 a6f9ae6b22..33a137d8b9 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 @@ -53,13 +53,18 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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_DEFAULT_USER = "defaultUser"; + @SerializedName(SERIALIZED_NAME_DEFAULT_USER) + @jakarta.annotation.Nullable + private Long defaultUser; + public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @jakarta.annotation.Nullable @@ -98,6 +103,26 @@ public void setDefaultMode(@jakarta.annotation.Nullable Integer defaultMode) { } + public V1SecretVolumeSource defaultUser(@jakarta.annotation.Nullable Long defaultUser) { + this.defaultUser = defaultUser; + return this; + } + + /** + * defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. + * @return defaultUser + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") + public Long getDefaultUser() { + return defaultUser; + } + + public void setDefaultUser(@jakarta.annotation.Nullable Long defaultUser) { + this.defaultUser = defaultUser; + } + + public V1SecretVolumeSource items(@jakarta.annotation.Nullable List items) { this.items = items; return this; @@ -177,6 +202,7 @@ public boolean equals(Object o) { } V1SecretVolumeSource v1SecretVolumeSource = (V1SecretVolumeSource) o; return Objects.equals(this.defaultMode, v1SecretVolumeSource.defaultMode) && + Objects.equals(this.defaultUser, v1SecretVolumeSource.defaultUser) && Objects.equals(this.items, v1SecretVolumeSource.items) && Objects.equals(this.optional, v1SecretVolumeSource.optional) && Objects.equals(this.secretName, v1SecretVolumeSource.secretName); @@ -184,7 +210,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(defaultMode, items, optional, secretName); + return Objects.hash(defaultMode, defaultUser, items, optional, secretName); } @Override @@ -192,6 +218,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SecretVolumeSource {\n"); sb.append(" defaultMode: ").append(toIndentedString(defaultMode)).append("\n"); + sb.append(" defaultUser: ").append(toIndentedString(defaultUser)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); sb.append(" secretName: ").append(toIndentedString(secretName)).append("\n"); @@ -216,7 +243,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("defaultMode", "items", "optional", "secretName")); + openapiFields = new HashSet(Arrays.asList("defaultMode", "defaultUser", "items", "optional", "secretName")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); 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 480e9a6013..5d931a822c 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SecurityContext { public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; @SerializedName(SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION) 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 4feae46adb..a84eac081f 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelectableField { public static final String SERIALIZED_NAME_JSON_PATH = "jsonPath"; @SerializedName(SERIALIZED_NAME_JSON_PATH) 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 833d5e22af..e6e3fddc2c 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelfSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 e657b790ed..e2f83f4614 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 @@ -52,7 +52,7 @@ * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set */ @ApiModel(description = "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelfSubjectAccessReviewSpec { public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES) 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 56a0f2275c..c74ae89349 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelfSubjectReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 5b8c750d12..ab19952fb0 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelfSubjectReviewStatus { public static final String SERIALIZED_NAME_USER_INFO = "userInfo"; @SerializedName(SERIALIZED_NAME_USER_INFO) 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 cb4e679dad..ae68c1e7c1 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelfSubjectRulesReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b150fc4ad6..f7e9825b37 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 @@ -50,7 +50,7 @@ * SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. */ @ApiModel(description = "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelfSubjectRulesReviewSpec { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) 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 36d904fc70..d18e8fe5be 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServerAddressByClientCIDR { public static final String SERIALIZED_NAME_CLIENT_C_I_D_R = "clientCIDR"; @SerializedName(SERIALIZED_NAME_CLIENT_C_I_D_R) 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 413cddc34d..3c43a1a232 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Service implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 11b361a7b4..ac08406d5b 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 @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceAccount implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 625da860b8..c03eba38ac 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceAccountList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 a371efc605..50dd0ae565 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceAccountSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 9c0ba1b21e..4b70bb9362 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceAccountTokenProjection { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; @SerializedName(SERIALIZED_NAME_AUDIENCE) @@ -67,6 +67,11 @@ public class V1ServiceAccountTokenProjection { @jakarta.annotation.Nonnull private String path; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + @jakarta.annotation.Nullable + private Long user; + public V1ServiceAccountTokenProjection() { } @@ -130,6 +135,26 @@ public void setPath(@jakarta.annotation.Nonnull String path) { } + public V1ServiceAccountTokenProjection user(@jakarta.annotation.Nullable Long user) { + this.user = user; + return this; + } + + /** + * user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. + * @return user + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") + public Long getUser() { + return user; + } + + public void setUser(@jakarta.annotation.Nullable Long user) { + this.user = user; + } + + @Override public boolean equals(Object o) { @@ -142,12 +167,13 @@ public boolean equals(Object o) { V1ServiceAccountTokenProjection v1ServiceAccountTokenProjection = (V1ServiceAccountTokenProjection) o; return Objects.equals(this.audience, v1ServiceAccountTokenProjection.audience) && Objects.equals(this.expirationSeconds, v1ServiceAccountTokenProjection.expirationSeconds) && - Objects.equals(this.path, v1ServiceAccountTokenProjection.path); + Objects.equals(this.path, v1ServiceAccountTokenProjection.path) && + Objects.equals(this.user, v1ServiceAccountTokenProjection.user); } @Override public int hashCode() { - return Objects.hash(audience, expirationSeconds, path); + return Objects.hash(audience, expirationSeconds, path, user); } @Override @@ -157,6 +183,7 @@ public String toString() { sb.append(" audience: ").append(toIndentedString(audience)).append("\n"); sb.append(" expirationSeconds: ").append(toIndentedString(expirationSeconds)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); sb.append("}"); return sb.toString(); } @@ -178,7 +205,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("audience", "expirationSeconds", "path")); + openapiFields = new HashSet(Arrays.asList("audience", "expirationSeconds", "path", "user")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("path")); 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 2c7568c3ee..24422c4428 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceBackendPort { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java index 046e31896f..fce5c365c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java @@ -53,7 +53,7 @@ * 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 = "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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceCIDR implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 index 319ada61ac..1ce9c170fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceCIDRList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 index 627f0dcfd1..38d1818aa7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceCIDRSpec { public static final String SERIALIZED_NAME_CIDRS = "cidrs"; @SerializedName(SERIALIZED_NAME_CIDRS) @@ -76,11 +76,11 @@ public V1ServiceCIDRSpec addCidrsItem(String cidrsItem) { } /** - * 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. + * 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.") + @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; } 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 index c83918eca3..63ab99ca55 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceCIDRStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) 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 e36085b1c5..13b7947484 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 @@ -54,7 +54,7 @@ * ServiceList holds a list of services. */ @ApiModel(description = "ServiceList holds a list of services.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 e80aa08c01..bfc399dcb3 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServicePort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) 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 8e7533c8aa..31b12193b6 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 @@ -56,7 +56,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceSpec { public static final String SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS = "allocateLoadBalancerNodePorts"; @SerializedName(SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS) 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 b6d07a4936..e657f4ceed 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) 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 6a5d8a7533..b931fd5fbe 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SessionAffinityConfig { public static final String SERIALIZED_NAME_CLIENT_I_P = "clientIP"; @SerializedName(SERIALIZED_NAME_CLIENT_I_P) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfo.java index e5726549b3..93eb38b871 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfo.java @@ -50,7 +50,7 @@ * ShardInfo describes the shard selector that was applied to produce a list response. Its presence on a list response indicates the list is a filtered subset. */ @ApiModel(description = "ShardInfo describes the shard selector that was applied to produce a list response. Its presence on a list response indicates the list is a filtered subset.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ShardInfo { public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) 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 85963e3a30..f35d2acbae 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 @@ -50,7 +50,7 @@ * SleepAction describes a \"sleep\" action. */ @ApiModel(description = "SleepAction describes a \"sleep\" action.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SleepAction { public static final String SERIALIZED_NAME_SECONDS = "seconds"; @SerializedName(SERIALIZED_NAME_SECONDS) 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 48af212d9c..4b7bbb0c7b 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -72,7 +72,7 @@ public class V1StatefulSet implements io.kubernetes.client.common.KubernetesObje public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1StatefulSetSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1StatefulSet spec(@jakarta.annotation.Nullable V1StatefulSetSpec spec) { + public V1StatefulSet spec(@jakarta.annotation.Nonnull V1StatefulSetSpec spec) { this.spec = spec; return this; } @@ -152,13 +152,13 @@ public V1StatefulSet spec(@jakarta.annotation.Nullable V1StatefulSetSpec spec) { * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1StatefulSetSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1StatefulSetSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1StatefulSetSpec spec) { this.spec = spec; } @@ -238,7 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -261,6 +261,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StatefulSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1StatefulSet.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -272,10 +279,8 @@ 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()) { - V1StatefulSetSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1StatefulSetSpec.validateJsonElement(jsonObj.get("spec")); // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { V1StatefulSetStatus.validateJsonElement(jsonObj.get("status")); 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 585a991f38..138d60f1d1 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -70,12 +70,12 @@ public class V1StatefulSetCondition { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private String status; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private String type; public V1StatefulSetCondition() { @@ -141,7 +141,7 @@ public void setReason(@jakarta.annotation.Nullable String reason) { } - public V1StatefulSetCondition status(@jakarta.annotation.Nonnull String status) { + public V1StatefulSetCondition status(@jakarta.annotation.Nullable String status) { this.status = status; return this; } @@ -150,18 +150,18 @@ public V1StatefulSetCondition status(@jakarta.annotation.Nonnull String status) * 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.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } - public void setStatus(@jakarta.annotation.Nonnull String status) { + public void setStatus(@jakarta.annotation.Nullable String status) { this.status = status; } - public V1StatefulSetCondition type(@jakarta.annotation.Nonnull String type) { + public V1StatefulSetCondition type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -170,13 +170,13 @@ public V1StatefulSetCondition type(@jakarta.annotation.Nonnull String type) { * Type of statefulset condition. * @return type */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Type of statefulset condition.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Type of statefulset condition.") public String getType() { return type; } - public void setType(@jakarta.annotation.Nonnull String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } @@ -236,7 +236,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); + openapiRequiredFields = new HashSet(0); } /** @@ -259,13 +259,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StatefulSetCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1StatefulSetCondition.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); @@ -273,10 +266,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); } - if (!jsonObj.get("status").isJsonPrimitive()) { + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } - if (!jsonObj.get("type").isJsonPrimitive()) { + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } 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 a5310bcef8..d3cf2c0906 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 @@ -54,7 +54,7 @@ * StatefulSetList is a collection of StatefulSets. */ @ApiModel(description = "StatefulSetList is a collection of StatefulSets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 9dbc06b6ae..4dfbee4b01 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetOrdinals { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) 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 38ee3d5fea..72c6e34338 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetPersistentVolumeClaimRetentionPolicy { public static final String SERIALIZED_NAME_WHEN_DELETED = "whenDeleted"; @SerializedName(SERIALIZED_NAME_WHEN_DELETED) 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 283a111a72..518a86580a 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 @@ -58,7 +58,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) 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 a384ec0172..20635f5faa 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) 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 e0c2694156..3ff888e041 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) 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 66f32bdd11..549777606e 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Status { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 e3e27e9ebc..95abb61ae7 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatusCause { public static final String SERIALIZED_NAME_FIELD = "field"; @SerializedName(SERIALIZED_NAME_FIELD) 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 a44d9f45ad..054e6696cf 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatusDetails { public static final String SERIALIZED_NAME_CAUSES = "causes"; @SerializedName(SERIALIZED_NAME_CAUSES) 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 8d325cf7a9..4dbf3f6b34 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 @@ -56,7 +56,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.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) 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 2f1cead903..708f557d45 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StorageClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealth.java new file mode 100644 index 0000000000..50db4b3e96 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealth.java @@ -0,0 +1,266 @@ +/* +Copyright 2026 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.V1StorageHealthCondition; +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; + +/** + * StorageHealth contains storage backend health reported by a CSI driver on a node. + */ +@ApiModel(description = "StorageHealth contains storage backend health reported by a CSI driver on a node.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1StorageHealth { + public static final String SERIALIZED_NAME_HEALTH_CONDITIONS = "healthConditions"; + @SerializedName(SERIALIZED_NAME_HEALTH_CONDITIONS) + @jakarta.annotation.Nullable + private List healthConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public V1StorageHealth() { + } + + public V1StorageHealth healthConditions(@jakarta.annotation.Nullable List healthConditions) { + this.healthConditions = healthConditions; + return this; + } + + public V1StorageHealth addHealthConditionsItem(V1StorageHealthCondition healthConditionsItem) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + this.healthConditions.add(healthConditionsItem); + return this; + } + + /** + * healthConditions are the adverse storage backend conditions reported by the CSI driver. At most 16 conditions may be reported. + * @return healthConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "healthConditions are the adverse storage backend conditions reported by the CSI driver. At most 16 conditions may be reported.") + public List getHealthConditions() { + return healthConditions; + } + + public void setHealthConditions(@jakarta.annotation.Nullable List healthConditions) { + this.healthConditions = healthConditions; + } + + + public V1StorageHealth name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name is the CSI driver name, matching CSINodeDriver.name. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the CSI driver name, matching CSINodeDriver.name.") + 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; + } + V1StorageHealth v1StorageHealth = (V1StorageHealth) o; + return Objects.equals(this.healthConditions, v1StorageHealth.healthConditions) && + Objects.equals(this.name, v1StorageHealth.name); + } + + @Override + public int hashCode() { + return Objects.hash(healthConditions, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1StorageHealth {\n"); + sb.append(" healthConditions: ").append(toIndentedString(healthConditions)).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(Arrays.asList("healthConditions", "name")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1StorageHealth + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1StorageHealth.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1StorageHealth is not found in the empty JSON string", V1StorageHealth.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1StorageHealth.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StorageHealth` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1StorageHealth.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("healthConditions") != null && !jsonObj.get("healthConditions").isJsonNull()) { + JsonArray jsonArrayhealthConditions = jsonObj.getAsJsonArray("healthConditions"); + if (jsonArrayhealthConditions != null) { + // ensure the json data is an array + if (!jsonObj.get("healthConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `healthConditions` to be an array in the JSON string but got `%s`", jsonObj.get("healthConditions").toString())); + } + + // validate the optional field `healthConditions` (array) + for (int i = 0; i < jsonArrayhealthConditions.size(); i++) { + V1StorageHealthCondition.validateJsonElement(jsonArrayhealthConditions.get(i)); + }; + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1StorageHealth.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StorageHealth' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StorageHealth.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StorageHealth value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StorageHealth read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StorageHealth given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StorageHealth + * @throws IOException if the JSON string is invalid with respect to V1StorageHealth + */ + public static V1StorageHealth fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StorageHealth.class); + } + + /** + * Convert an instance of V1StorageHealth to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthCondition.java new file mode 100644 index 0000000000..1dc61e09b6 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageHealthCondition.java @@ -0,0 +1,362 @@ +/* +Copyright 2026 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; + +/** + * StorageHealthCondition represents an adverse health condition reported by a CSI driver for its storage backend on a node. + */ +@ApiModel(description = "StorageHealthCondition represents an adverse health condition reported by a CSI driver for its storage backend on a node.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1StorageHealthCondition { + public static final String SERIALIZED_NAME_ACCESS_MODE = "accessMode"; + @SerializedName(SERIALIZED_NAME_ACCESS_MODE) + @jakarta.annotation.Nullable + private String accessMode; + + 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.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_VOLUME_MODE = "volumeMode"; + @SerializedName(SERIALIZED_NAME_VOLUME_MODE) + @jakarta.annotation.Nullable + private String volumeMode; + + public V1StorageHealthCondition() { + } + + public V1StorageHealthCondition accessMode(@jakarta.annotation.Nullable String accessMode) { + this.accessMode = accessMode; + return this; + } + + /** + * accessMode is the access mode affected. Nil means all access modes are affected. + * @return accessMode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "accessMode is the access mode affected. Nil means all access modes are affected.") + public String getAccessMode() { + return accessMode; + } + + public void setAccessMode(@jakarta.annotation.Nullable String accessMode) { + this.accessMode = accessMode; + } + + + public V1StorageHealthCondition lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return this; + } + + /** + * lastTransitionTime is when this condition first appeared at its current state. + * @return lastTransitionTime + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "lastTransitionTime is when this condition first appeared at its current state.") + public OffsetDateTime getLastTransitionTime() { + return lastTransitionTime; + } + + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + } + + + public V1StorageHealthCondition message(@jakarta.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * message is a human-readable description. Maximum permitted length of a message is 1024 characters. + * @return message + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "message is a human-readable description. Maximum permitted length of a message is 1024 characters.") + public String getMessage() { + return message; + } + + public void setMessage(@jakarta.annotation.Nullable String message) { + this.message = message; + } + + + public V1StorageHealthCondition reason(@jakarta.annotation.Nonnull String reason) { + this.reason = reason; + return this; + } + + /** + * reason is a brief CamelCase machine-parseable reason. Maximum permitted length of a reason is 256 characters. + * @return reason + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "reason is a brief CamelCase machine-parseable reason. Maximum permitted length of a reason is 256 characters.") + public String getReason() { + return reason; + } + + public void setReason(@jakarta.annotation.Nonnull String reason) { + this.reason = reason; + } + + + public V1StorageHealthCondition status(@jakarta.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * status is the health status category. One of \"StorageUnreachable\", \"StorageDegraded\". + * @return status + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "status is the health status category. One of \"StorageUnreachable\", \"StorageDegraded\".") + public String getStatus() { + return status; + } + + public void setStatus(@jakarta.annotation.Nonnull String status) { + this.status = status; + } + + + public V1StorageHealthCondition volumeMode(@jakarta.annotation.Nullable String volumeMode) { + this.volumeMode = volumeMode; + return this; + } + + /** + * volumeMode is the volume mode affected. Nil means both are affected. + * @return volumeMode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeMode is the volume mode affected. Nil means both are affected.") + public String getVolumeMode() { + return volumeMode; + } + + public void setVolumeMode(@jakarta.annotation.Nullable String volumeMode) { + this.volumeMode = volumeMode; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1StorageHealthCondition v1StorageHealthCondition = (V1StorageHealthCondition) o; + return Objects.equals(this.accessMode, v1StorageHealthCondition.accessMode) && + Objects.equals(this.lastTransitionTime, v1StorageHealthCondition.lastTransitionTime) && + Objects.equals(this.message, v1StorageHealthCondition.message) && + Objects.equals(this.reason, v1StorageHealthCondition.reason) && + Objects.equals(this.status, v1StorageHealthCondition.status) && + Objects.equals(this.volumeMode, v1StorageHealthCondition.volumeMode); + } + + @Override + public int hashCode() { + return Objects.hash(accessMode, lastTransitionTime, message, reason, status, volumeMode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1StorageHealthCondition {\n"); + sb.append(" accessMode: ").append(toIndentedString(accessMode)).append("\n"); + sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" volumeMode: ").append(toIndentedString(volumeMode)).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(Arrays.asList("accessMode", "lastTransitionTime", "message", "reason", "status", "volumeMode")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("reason", "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 V1StorageHealthCondition + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1StorageHealthCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1StorageHealthCondition is not found in the empty JSON string", V1StorageHealthCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1StorageHealthCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StorageHealthCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1StorageHealthCondition.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("accessMode") != null && !jsonObj.get("accessMode").isJsonNull()) && !jsonObj.get("accessMode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `accessMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accessMode").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if (!jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + if ((jsonObj.get("volumeMode") != null && !jsonObj.get("volumeMode").isJsonNull()) && !jsonObj.get("volumeMode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `volumeMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeMode").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StorageHealthCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StorageHealthCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StorageHealthCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StorageHealthCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StorageHealthCondition read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StorageHealthCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StorageHealthCondition + * @throws IOException if the JSON string is invalid with respect to V1StorageHealthCondition + */ + public static V1StorageHealthCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StorageHealthCondition.class); + } + + /** + * Convert an instance of V1StorageHealthCondition to an JSON 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 6857359233..780f07730c 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 @@ -51,7 +51,7 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StorageOSPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 9952823717..faa8ac4b01 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 @@ -51,7 +51,7 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StorageOSVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigration.java similarity index 72% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigration.java index e85e310e80..d78eaab13e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigration.java @@ -19,8 +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.V1beta1ServiceCIDRSpec; -import io.kubernetes.client.openapi.models.V1beta1ServiceCIDRStatus; +import io.kubernetes.client.openapi.models.V1StorageVersionMigrationSpec; +import io.kubernetes.client.openapi.models.V1StorageVersionMigrationStatus; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -50,11 +50,11 @@ import io.kubernetes.client.openapi.JSON; /** - * 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. + * StorageVersionMigration represents a migration of stored data to the latest storage version. */ -@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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1beta1ServiceCIDR implements io.kubernetes.client.common.KubernetesObject { +@ApiModel(description = "StorageVersionMigration represents a migration of stored data to the latest storage version.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1StorageVersionMigration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @jakarta.annotation.Nullable @@ -73,17 +73,17 @@ public class V1beta1ServiceCIDR implements io.kubernetes.client.common.Kubernete public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) @jakarta.annotation.Nullable - private V1beta1ServiceCIDRSpec spec; + private V1StorageVersionMigrationSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @jakarta.annotation.Nullable - private V1beta1ServiceCIDRStatus status; + private V1StorageVersionMigrationStatus status; - public V1beta1ServiceCIDR() { + public V1StorageVersionMigration() { } - public V1beta1ServiceCIDR apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1StorageVersionMigration apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -103,7 +103,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1beta1ServiceCIDR kind(@jakarta.annotation.Nullable String kind) { + public V1StorageVersionMigration kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -123,7 +123,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1beta1ServiceCIDR metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public V1StorageVersionMigration metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta1ServiceCIDR spec(@jakarta.annotation.Nullable V1beta1ServiceCIDRSpec spec) { + public V1StorageVersionMigration spec(@jakarta.annotation.Nullable V1StorageVersionMigrationSpec spec) { this.spec = spec; return this; } @@ -154,16 +154,16 @@ public V1beta1ServiceCIDR spec(@jakarta.annotation.Nullable V1beta1ServiceCIDRSp */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1beta1ServiceCIDRSpec getSpec() { + public V1StorageVersionMigrationSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1beta1ServiceCIDRSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1StorageVersionMigrationSpec spec) { this.spec = spec; } - public V1beta1ServiceCIDR status(@jakarta.annotation.Nullable V1beta1ServiceCIDRStatus status) { + public V1StorageVersionMigration status(@jakarta.annotation.Nullable V1StorageVersionMigrationStatus status) { this.status = status; return this; } @@ -174,11 +174,11 @@ public V1beta1ServiceCIDR status(@jakarta.annotation.Nullable V1beta1ServiceCIDR */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1beta1ServiceCIDRStatus getStatus() { + public V1StorageVersionMigrationStatus getStatus() { return status; } - public void setStatus(@jakarta.annotation.Nullable V1beta1ServiceCIDRStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1StorageVersionMigrationStatus status) { this.status = status; } @@ -192,12 +192,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1ServiceCIDR v1beta1ServiceCIDR = (V1beta1ServiceCIDR) o; - return Objects.equals(this.apiVersion, v1beta1ServiceCIDR.apiVersion) && - Objects.equals(this.kind, v1beta1ServiceCIDR.kind) && - Objects.equals(this.metadata, v1beta1ServiceCIDR.metadata) && - Objects.equals(this.spec, v1beta1ServiceCIDR.spec) && - Objects.equals(this.status, v1beta1ServiceCIDR.status); + V1StorageVersionMigration v1StorageVersionMigration = (V1StorageVersionMigration) o; + return Objects.equals(this.apiVersion, v1StorageVersionMigration.apiVersion) && + Objects.equals(this.kind, v1StorageVersionMigration.kind) && + Objects.equals(this.metadata, v1StorageVersionMigration.metadata) && + Objects.equals(this.spec, v1StorageVersionMigration.spec) && + Objects.equals(this.status, v1StorageVersionMigration.status); } @Override @@ -208,7 +208,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ServiceCIDR {\n"); + sb.append("class V1StorageVersionMigration {\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"); @@ -245,20 +245,20 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1ServiceCIDR + * @throws IOException if the JSON Element is invalid with respect to V1StorageVersionMigration */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1ServiceCIDR.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1ServiceCIDR is not found in the empty JSON string", V1beta1ServiceCIDR.openapiRequiredFields.toString())); + if (!V1StorageVersionMigration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1StorageVersionMigration is not found in the empty JSON string", V1StorageVersionMigration.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1ServiceCIDR.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ServiceCIDR` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1StorageVersionMigration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StorageVersionMigration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -274,11 +274,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // validate the optional field `spec` if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { - V1beta1ServiceCIDRSpec.validateJsonElement(jsonObj.get("spec")); + V1StorageVersionMigrationSpec.validateJsonElement(jsonObj.get("spec")); } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - V1beta1ServiceCIDRStatus.validateJsonElement(jsonObj.get("status")); + V1StorageVersionMigrationStatus.validateJsonElement(jsonObj.get("status")); } } @@ -286,22 +286,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1ServiceCIDR.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1ServiceCIDR' and its subtypes + if (!V1StorageVersionMigration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StorageVersionMigration' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ServiceCIDR.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StorageVersionMigration.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1ServiceCIDR value) throws IOException { + public void write(JsonWriter out, V1StorageVersionMigration value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1ServiceCIDR read(JsonReader in) throws IOException { + public V1StorageVersionMigration read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -312,18 +312,18 @@ public V1beta1ServiceCIDR read(JsonReader in) throws IOException { } /** - * Create an instance of V1beta1ServiceCIDR given an JSON string + * Create an instance of V1StorageVersionMigration given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1ServiceCIDR - * @throws IOException if the JSON string is invalid with respect to V1beta1ServiceCIDR + * @return An instance of V1StorageVersionMigration + * @throws IOException if the JSON string is invalid with respect to V1StorageVersionMigration */ - public static V1beta1ServiceCIDR fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1ServiceCIDR.class); + public static V1StorageVersionMigration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StorageVersionMigration.class); } /** - * Convert an instance of V1beta1ServiceCIDR to an JSON string + * Convert an instance of V1StorageVersionMigration to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationList.java new file mode 100644 index 0000000000..0974fa55d2 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationList.java @@ -0,0 +1,324 @@ +/* +Copyright 2026 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.V1StorageVersionMigration; +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; + +/** + * 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 = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1StorageVersionMigrationList 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 V1StorageVersionMigrationList() { + } + + public V1StorageVersionMigrationList 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 V1StorageVersionMigrationList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1StorageVersionMigrationList addItemsItem(V1StorageVersionMigration itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + 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(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1StorageVersionMigrationList 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 V1StorageVersionMigrationList 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; + } + V1StorageVersionMigrationList v1StorageVersionMigrationList = (V1StorageVersionMigrationList) o; + return Objects.equals(this.apiVersion, v1StorageVersionMigrationList.apiVersion) && + Objects.equals(this.items, v1StorageVersionMigrationList.items) && + Objects.equals(this.kind, v1StorageVersionMigrationList.kind) && + Objects.equals(this.metadata, v1StorageVersionMigrationList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1StorageVersionMigrationList {\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(Arrays.asList("apiVersion", "items", "kind", "metadata")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1StorageVersionMigrationList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1StorageVersionMigrationList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1StorageVersionMigrationList is not found in the empty JSON string", V1StorageVersionMigrationList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1StorageVersionMigrationList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StorageVersionMigrationList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1StorageVersionMigrationList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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++) { + V1StorageVersionMigration.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1StorageVersionMigrationList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StorageVersionMigrationList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StorageVersionMigrationList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StorageVersionMigrationList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StorageVersionMigrationList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StorageVersionMigrationList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StorageVersionMigrationList + * @throws IOException if the JSON string is invalid with respect to V1StorageVersionMigrationList + */ + public static V1StorageVersionMigrationList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StorageVersionMigrationList.class); + } + + /** + * Convert an instance of V1StorageVersionMigrationList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationSpec.java new file mode 100644 index 0000000000..9d2d40f803 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationSpec.java @@ -0,0 +1,214 @@ +/* +Copyright 2026 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.V1GroupResource; +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; + +/** + * Spec of the storage version migration. + */ +@ApiModel(description = "Spec of the storage version migration.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1StorageVersionMigrationSpec { + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + @jakarta.annotation.Nonnull + private V1GroupResource resource; + + public V1StorageVersionMigrationSpec() { + } + + public V1StorageVersionMigrationSpec resource(@jakarta.annotation.Nonnull V1GroupResource resource) { + this.resource = resource; + return this; + } + + /** + * Get resource + * @return resource + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1GroupResource getResource() { + return resource; + } + + public void setResource(@jakarta.annotation.Nonnull V1GroupResource resource) { + this.resource = resource; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1StorageVersionMigrationSpec v1StorageVersionMigrationSpec = (V1StorageVersionMigrationSpec) o; + return Objects.equals(this.resource, v1StorageVersionMigrationSpec.resource); + } + + @Override + public int hashCode() { + return Objects.hash(resource); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1StorageVersionMigrationSpec {\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(Arrays.asList("resource")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1StorageVersionMigrationSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1StorageVersionMigrationSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1StorageVersionMigrationSpec is not found in the empty JSON string", V1StorageVersionMigrationSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1StorageVersionMigrationSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StorageVersionMigrationSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1StorageVersionMigrationSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `resource` + V1GroupResource.validateJsonElement(jsonObj.get("resource")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StorageVersionMigrationSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StorageVersionMigrationSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StorageVersionMigrationSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StorageVersionMigrationSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StorageVersionMigrationSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StorageVersionMigrationSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StorageVersionMigrationSpec + * @throws IOException if the JSON string is invalid with respect to V1StorageVersionMigrationSpec + */ + public static V1StorageVersionMigrationSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StorageVersionMigrationSpec.class); + } + + /** + * Convert an instance of V1StorageVersionMigrationSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationStatus.java new file mode 100644 index 0000000000..b2109264be --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageVersionMigrationStatus.java @@ -0,0 +1,259 @@ +/* +Copyright 2026 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; + +/** + * Status of the storage version migration. + */ +@ApiModel(description = "Status of the storage version migration.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1StorageVersionMigrationStatus { + 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 V1StorageVersionMigrationStatus() { + } + + public V1StorageVersionMigrationStatus conditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + return this; + } + + public V1StorageVersionMigrationStatus addConditionsItem(V1Condition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + 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(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + } + + + public V1StorageVersionMigrationStatus 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(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1StorageVersionMigrationStatus v1StorageVersionMigrationStatus = (V1StorageVersionMigrationStatus) o; + return Objects.equals(this.conditions, v1StorageVersionMigrationStatus.conditions) && + Objects.equals(this.resourceVersion, v1StorageVersionMigrationStatus.resourceVersion); + } + + @Override + public int hashCode() { + return Objects.hash(conditions, resourceVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1StorageVersionMigrationStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" resourceVersion: ").append(toIndentedString(resourceVersion)).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(Arrays.asList("conditions", "resourceVersion")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1StorageVersionMigrationStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1StorageVersionMigrationStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1StorageVersionMigrationStatus is not found in the empty JSON string", V1StorageVersionMigrationStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1StorageVersionMigrationStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StorageVersionMigrationStatus` 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(java.util.Locale.ROOT, "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)); + }; + } + } + if ((jsonObj.get("resourceVersion") != null && !jsonObj.get("resourceVersion").isJsonNull()) && !jsonObj.get("resourceVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceVersion").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1StorageVersionMigrationStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1StorageVersionMigrationStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1StorageVersionMigrationStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1StorageVersionMigrationStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1StorageVersionMigrationStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1StorageVersionMigrationStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1StorageVersionMigrationStatus + * @throws IOException if the JSON string is invalid with respect to V1StorageVersionMigrationStatus + */ + public static V1StorageVersionMigrationStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1StorageVersionMigrationStatus.class); + } + + /** + * Convert an instance of V1StorageVersionMigrationStatus to an JSON 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 ebe0fb98e6..32d719c165 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 bf85acec96..2cda059eab 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 @@ -56,7 +56,7 @@ * SubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set */ @ApiModel(description = "SubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SubjectAccessReviewSpec { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) 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 d56c0eb891..41311323b5 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 @@ -50,7 +50,7 @@ * SubjectAccessReviewStatus */ @ApiModel(description = "SubjectAccessReviewStatus") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SubjectAccessReviewStatus { public static final String SERIALIZED_NAME_ALLOWED = "allowed"; @SerializedName(SERIALIZED_NAME_ALLOWED) 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 2fb0400011..13128c2570 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SubjectRulesReviewStatus { public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; @SerializedName(SERIALIZED_NAME_EVALUATION_ERROR) 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 fb1c3e2144..87df11fac4 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SuccessPolicy { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) 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 48a52b7a93..35ea1b0878 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SuccessPolicyRule { public static final String SERIALIZED_NAME_SUCCEEDED_COUNT = "succeededCount"; @SerializedName(SERIALIZED_NAME_SUCCEEDED_COUNT) 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 13accf2fdc..74e66935a1 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Sysctl { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 97d446cfa7..084934e9e5 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TCPSocketAction { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) 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 43a7f1a95a..f98698233f 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Taint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) 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 a0e079bfa4..6731a109e4 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 @@ -24,7 +24,9 @@ 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; import com.google.gson.GsonBuilder; @@ -53,8 +55,13 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TokenRequestSpec { + public static final String SERIALIZED_NAME_ATTESTATIONS = "attestations"; + @SerializedName(SERIALIZED_NAME_ATTESTATIONS) + @jakarta.annotation.Nullable + private Map> attestations = new HashMap<>(); + public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) @jakarta.annotation.Nullable @@ -73,6 +80,34 @@ public class V1TokenRequestSpec { public V1TokenRequestSpec() { } + public V1TokenRequestSpec attestations(@jakarta.annotation.Nullable Map> attestations) { + this.attestations = attestations; + return this; + } + + public V1TokenRequestSpec putAttestationsItem(String key, List attestationsItem) { + if (this.attestations == null) { + this.attestations = new HashMap<>(); + } + this.attestations.put(key, attestationsItem); + return this; + } + + /** + * attestations is a map of well-known keys to string-slice values. The values for each key have a specific semantic meaning, which is documented on the key definition. Requesters of tokens may ask the Kubernetes API Server to attest to certain claims. The API Server may perform authorization checks depending on the key of this map. + * @return attestations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "attestations is a map of well-known keys to string-slice values. The values for each key have a specific semantic meaning, which is documented on the key definition. Requesters of tokens may ask the Kubernetes API Server to attest to certain claims. The API Server may perform authorization checks depending on the key of this map.") + public Map> getAttestations() { + return attestations; + } + + public void setAttestations(@jakarta.annotation.Nullable Map> attestations) { + this.attestations = attestations; + } + + public V1TokenRequestSpec audiences(@jakarta.annotation.Nullable List audiences) { this.audiences = audiences; return this; @@ -151,20 +186,22 @@ public boolean equals(Object o) { return false; } V1TokenRequestSpec v1TokenRequestSpec = (V1TokenRequestSpec) o; - return Objects.equals(this.audiences, v1TokenRequestSpec.audiences) && + return Objects.equals(this.attestations, v1TokenRequestSpec.attestations) && + Objects.equals(this.audiences, v1TokenRequestSpec.audiences) && Objects.equals(this.boundObjectRef, v1TokenRequestSpec.boundObjectRef) && Objects.equals(this.expirationSeconds, v1TokenRequestSpec.expirationSeconds); } @Override public int hashCode() { - return Objects.hash(audiences, boundObjectRef, expirationSeconds); + return Objects.hash(attestations, audiences, boundObjectRef, expirationSeconds); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1TokenRequestSpec {\n"); + sb.append(" attestations: ").append(toIndentedString(attestations)).append("\n"); sb.append(" audiences: ").append(toIndentedString(audiences)).append("\n"); sb.append(" boundObjectRef: ").append(toIndentedString(boundObjectRef)).append("\n"); sb.append(" expirationSeconds: ").append(toIndentedString(expirationSeconds)).append("\n"); @@ -189,7 +226,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("audiences", "boundObjectRef", "expirationSeconds")); + openapiFields = new HashSet(Arrays.asList("attestations", "audiences", "boundObjectRef", "expirationSeconds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); 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 1186d648ec..fa86d06fa8 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TokenRequestStatus { public static final String SERIALIZED_NAME_EXPIRATION_TIMESTAMP = "expirationTimestamp"; @SerializedName(SERIALIZED_NAME_EXPIRATION_TIMESTAMP) 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 10c9d430a1..37780dbdad 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TokenReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 db4937919e..26105a70eb 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TokenReviewSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) 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 f324944f41..01ed27a416 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TokenReviewStatus { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) 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 d840e8af8b..8d8e81fd3f 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Toleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) 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 290cb3903b..2d84f1b4c6 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TopologySelectorLabelRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) 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 d8c3308595..c8463f11eb 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TopologySelectorTerm { public static final String SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS = "matchLabelExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS) 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 a2cef3a37a..23ad681aa3 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TopologySpreadConstraint { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) 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 cc7f0f9eae..b87941e230 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TypeChecking { public static final String SERIALIZED_NAME_EXPRESSION_WARNINGS = "expressionWarnings"; @SerializedName(SERIALIZED_NAME_EXPRESSION_WARNINGS) 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 ea2ff36cd7..6f3e068d67 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TypedLocalObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) 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 4345b2fa74..8abbed0f9b 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TypedObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) 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 fa32c41c35..427bf05250 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1UncountedTerminatedPods { public static final String SERIALIZED_NAME_FAILED = "failed"; @SerializedName(SERIALIZED_NAME_FAILED) 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 92b62fb5c5..a9ad6e5f82 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1UserInfo { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) 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 0e5ec4aca2..f5d33db0d5 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1UserSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 fefd887da8..62e2f98abc 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 30e8d96d65..ff5eb315e8 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 8c18f43443..31707d7b06 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 @@ -54,7 +54,7 @@ * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. */ @ApiModel(description = "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 8056e2f2ce..042d6a8e34 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) 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 f0ff87ad8c..7e8f3debc6 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 @@ -54,7 +54,7 @@ * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. */ @ApiModel(description = "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 0894eb790d..7b3b42fe09 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 @@ -58,7 +58,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_AUDIT_ANNOTATIONS = "auditAnnotations"; @SerializedName(SERIALIZED_NAME_AUDIT_ANNOTATIONS) 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 35c3a08519..be4ef9a744 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicyStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) 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 2fc4d82f6a..4a3ded33eb 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 @@ -56,7 +56,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) 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 bd137e8532..990bbbaeba 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 f248faf775..2850fb1963 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 @@ -54,7 +54,7 @@ * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. */ @ApiModel(description = "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 9dea05f2f1..a33a8a53b5 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Validation { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) 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 c665d7225d..31a9cd1660 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidationRule { public static final String SERIALIZED_NAME_FIELD_PATH = "fieldPath"; @SerializedName(SERIALIZED_NAME_FIELD_PATH) 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 9b105bf180..59ac2cb191 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) 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 b48e37c77b..ce5af62921 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 @@ -80,7 +80,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Volume { public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; @SerializedName(SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE) 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 3bc4f018e8..259b0b51a8 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttachment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 a5ff72e944..47b86fcfe3 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttachmentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 9bb432257a..1ac2049d38 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttachmentSource { public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; @SerializedName(SERIALIZED_NAME_INLINE_VOLUME_SPEC) 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 960f196ef6..4cd47e3600 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttachmentSpec { public static final String SERIALIZED_NAME_ATTACHER = "attacher"; @SerializedName(SERIALIZED_NAME_ATTACHER) 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 b94c79a5cc..58e8a9b2a9 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttachmentStatus { public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; @SerializedName(SERIALIZED_NAME_ATTACH_ERROR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java index 1c8d9673ee..6938ae40c8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttributesClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -109,11 +109,11 @@ public V1VolumeAttributesClass driverName(@jakarta.annotation.Nonnull String dri } /** - * Name of the CSI driver This field is immutable. + * driverName is the 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.") + @ApiModelProperty(required = true, value = "driverName is the name of the CSI driver This field is immutable.") public String getDriverName() { return driverName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java index d039347e8e..9eb902e76f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttributesClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6fa88d2cbf..5ac1ee20d7 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeDevice { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) 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 7a6561c602..97d294fb0a 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeError { public static final String SERIALIZED_NAME_ERROR_CODE = "errorCode"; @SerializedName(SERIALIZED_NAME_ERROR_CODE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthCondition.java new file mode 100644 index 0000000000..303d175fbc --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthCondition.java @@ -0,0 +1,274 @@ +/* +Copyright 2026 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; + +/** + * VolumeHealthCondition represents an adverse health condition reported for a volume. + */ +@ApiModel(description = "VolumeHealthCondition represents an adverse health condition reported for a volume.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1VolumeHealthCondition { + 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.Nonnull + private String reason; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nonnull + private String status; + + public V1VolumeHealthCondition() { + } + + public V1VolumeHealthCondition message(@jakarta.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * message is a human-readable description. Maximum permitted length of a message is 1024 bytes. + * @return message + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "message is a human-readable description. Maximum permitted length of a message is 1024 bytes.") + public String getMessage() { + return message; + } + + public void setMessage(@jakarta.annotation.Nullable String message) { + this.message = message; + } + + + public V1VolumeHealthCondition reason(@jakarta.annotation.Nonnull String reason) { + this.reason = reason; + return this; + } + + /** + * reason is a brief CamelCase machine-parseable reason. Together with status it forms the unique identity of a condition entry. Maximum permitted length of a reason is 256 bytes. + * @return reason + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "reason is a brief CamelCase machine-parseable reason. Together with status it forms the unique identity of a condition entry. Maximum permitted length of a reason is 256 bytes.") + public String getReason() { + return reason; + } + + public void setReason(@jakarta.annotation.Nonnull String reason) { + this.reason = reason; + } + + + public V1VolumeHealthCondition status(@jakarta.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * status is the machine-parseable health category. Possible values: - \"Inaccessible\": the volume cannot be accessed. - \"DataLoss\": data loss has been detected on the volume. - \"Degraded\": the volume is functioning with reduced capability. + * @return status + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "status is the machine-parseable health category. Possible values: - \"Inaccessible\": the volume cannot be accessed. - \"DataLoss\": data loss has been detected on the volume. - \"Degraded\": the volume is functioning with reduced capability.") + public String getStatus() { + return status; + } + + public void setStatus(@jakarta.annotation.Nonnull String status) { + this.status = status; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1VolumeHealthCondition v1VolumeHealthCondition = (V1VolumeHealthCondition) o; + return Objects.equals(this.message, v1VolumeHealthCondition.message) && + Objects.equals(this.reason, v1VolumeHealthCondition.reason) && + Objects.equals(this.status, v1VolumeHealthCondition.status); + } + + @Override + public int hashCode() { + return Objects.hash(message, reason, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1VolumeHealthCondition {\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).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(Arrays.asList("message", "reason", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("reason", "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 V1VolumeHealthCondition + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1VolumeHealthCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1VolumeHealthCondition is not found in the empty JSON string", V1VolumeHealthCondition.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1VolumeHealthCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeHealthCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1VolumeHealthCondition.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if (!jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if (!jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeHealthCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeHealthCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeHealthCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeHealthCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeHealthCondition read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeHealthCondition given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeHealthCondition + * @throws IOException if the JSON string is invalid with respect to V1VolumeHealthCondition + */ + public static V1VolumeHealthCondition fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeHealthCondition.class); + } + + /** + * Convert an instance of V1VolumeHealthCondition to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthStatus.java new file mode 100644 index 0000000000..e031de8ff4 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeHealthStatus.java @@ -0,0 +1,257 @@ +/* +Copyright 2026 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.V1VolumeHealthCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +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; + +/** + * VolumeHealthStatus contains health information for a volume reported by the CSI controller plugin. + */ +@ApiModel(description = "VolumeHealthStatus contains health information for a volume reported by the CSI controller plugin.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1VolumeHealthStatus { + public static final String SERIALIZED_NAME_HEALTH_CONDITIONS = "healthConditions"; + @SerializedName(SERIALIZED_NAME_HEALTH_CONDITIONS) + @jakarta.annotation.Nullable + private List healthConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + @jakarta.annotation.Nullable + private OffsetDateTime lastTransitionTime; + + public V1VolumeHealthStatus() { + } + + public V1VolumeHealthStatus healthConditions(@jakarta.annotation.Nullable List healthConditions) { + this.healthConditions = healthConditions; + return this; + } + + public V1VolumeHealthStatus addHealthConditionsItem(V1VolumeHealthCondition healthConditionsItem) { + if (this.healthConditions == null) { + this.healthConditions = new ArrayList<>(); + } + this.healthConditions.add(healthConditionsItem); + return this; + } + + /** + * conditions is the set of adverse conditions reported by the CSI controller plugin. An empty list means no adverse condition. At most 16 conditions may be reported. + * @return healthConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "conditions is the set of adverse conditions reported by the CSI controller plugin. An empty list means no adverse condition. At most 16 conditions may be reported.") + public List getHealthConditions() { + return healthConditions; + } + + public void setHealthConditions(@jakarta.annotation.Nullable List healthConditions) { + this.healthConditions = healthConditions; + } + + + public V1VolumeHealthStatus lastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return this; + } + + /** + * lastTransitionTime is when the current set of conditions first appeared. + * @return lastTransitionTime + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "lastTransitionTime is when the current set of conditions first appeared.") + public OffsetDateTime getLastTransitionTime() { + return lastTransitionTime; + } + + public void setLastTransitionTime(@jakarta.annotation.Nullable OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1VolumeHealthStatus v1VolumeHealthStatus = (V1VolumeHealthStatus) o; + return Objects.equals(this.healthConditions, v1VolumeHealthStatus.healthConditions) && + Objects.equals(this.lastTransitionTime, v1VolumeHealthStatus.lastTransitionTime); + } + + @Override + public int hashCode() { + return Objects.hash(healthConditions, lastTransitionTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1VolumeHealthStatus {\n"); + sb.append(" healthConditions: ").append(toIndentedString(healthConditions)).append("\n"); + sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).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(Arrays.asList("healthConditions", "lastTransitionTime")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeHealthStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1VolumeHealthStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1VolumeHealthStatus is not found in the empty JSON string", V1VolumeHealthStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1VolumeHealthStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeHealthStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("healthConditions") != null && !jsonObj.get("healthConditions").isJsonNull()) { + JsonArray jsonArrayhealthConditions = jsonObj.getAsJsonArray("healthConditions"); + if (jsonArrayhealthConditions != null) { + // ensure the json data is an array + if (!jsonObj.get("healthConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `healthConditions` to be an array in the JSON string but got `%s`", jsonObj.get("healthConditions").toString())); + } + + // validate the optional field `healthConditions` (array) + for (int i = 0; i < jsonArrayhealthConditions.size(); i++) { + V1VolumeHealthCondition.validateJsonElement(jsonArrayhealthConditions.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeHealthStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeHealthStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeHealthStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeHealthStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeHealthStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeHealthStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeHealthStatus + * @throws IOException if the JSON string is invalid with respect to V1VolumeHealthStatus + */ + public static V1VolumeHealthStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeHealthStatus.class); + } + + /** + * Convert an instance of V1VolumeHealthStatus to an JSON 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 f6d25a79a8..5fea8db7f5 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 @@ -21,7 +21,9 @@ 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; @@ -50,8 +52,13 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeMount { + public static final String SERIALIZED_NAME_BIND_MOUNT_OPTIONS = "bindMountOptions"; + @SerializedName(SERIALIZED_NAME_BIND_MOUNT_OPTIONS) + @jakarta.annotation.Nullable + private List bindMountOptions = new ArrayList<>(); + public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; @SerializedName(SERIALIZED_NAME_MOUNT_PATH) @jakarta.annotation.Nonnull @@ -90,17 +97,45 @@ public class V1VolumeMount { public V1VolumeMount() { } + public V1VolumeMount bindMountOptions(@jakarta.annotation.Nullable List bindMountOptions) { + this.bindMountOptions = bindMountOptions; + return this; + } + + public V1VolumeMount addBindMountOptionsItem(String bindMountOptionsItem) { + if (this.bindMountOptions == null) { + this.bindMountOptions = new ArrayList<>(); + } + this.bindMountOptions.add(bindMountOptionsItem); + return this; + } + + /** + * bindMountOptions is the list of additional bind mount options to apply when mounting this volume into the container. Allowed values are noexec, nodev, and nosuid. These are Linux mount options and have no effect on Windows nodes. This field is not supported with image volumes. This is an alpha field and requires enabling the VolumeBindMountOptions feature gate. + * @return bindMountOptions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "bindMountOptions is the list of additional bind mount options to apply when mounting this volume into the container. Allowed values are noexec, nodev, and nosuid. These are Linux mount options and have no effect on Windows nodes. This field is not supported with image volumes. This is an alpha field and requires enabling the VolumeBindMountOptions feature gate.") + public List getBindMountOptions() { + return bindMountOptions; + } + + public void setBindMountOptions(@jakarta.annotation.Nullable List bindMountOptions) { + this.bindMountOptions = bindMountOptions; + } + + 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 ':'. + * Path within the container at which the volume should be mounted. * @return mountPath */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Path within the container at which the volume should be mounted. Must not contain ':'.") + @ApiModelProperty(required = true, value = "Path within the container at which the volume should be mounted.") public String getMountPath() { return mountPath; } @@ -240,7 +275,8 @@ public boolean equals(Object o) { return false; } V1VolumeMount v1VolumeMount = (V1VolumeMount) o; - return Objects.equals(this.mountPath, v1VolumeMount.mountPath) && + return Objects.equals(this.bindMountOptions, v1VolumeMount.bindMountOptions) && + Objects.equals(this.mountPath, v1VolumeMount.mountPath) && Objects.equals(this.mountPropagation, v1VolumeMount.mountPropagation) && Objects.equals(this.name, v1VolumeMount.name) && Objects.equals(this.readOnly, v1VolumeMount.readOnly) && @@ -251,13 +287,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(mountPath, mountPropagation, name, readOnly, recursiveReadOnly, subPath, subPathExpr); + return Objects.hash(bindMountOptions, mountPath, mountPropagation, name, readOnly, recursiveReadOnly, subPath, subPathExpr); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeMount {\n"); + sb.append(" bindMountOptions: ").append(toIndentedString(bindMountOptions)).append("\n"); sb.append(" mountPath: ").append(toIndentedString(mountPath)).append("\n"); sb.append(" mountPropagation: ").append(toIndentedString(mountPropagation)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -286,7 +323,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("mountPath", "mountPropagation", "name", "readOnly", "recursiveReadOnly", "subPath", "subPathExpr")); + openapiFields = new HashSet(Arrays.asList("bindMountOptions", "mountPath", "mountPropagation", "name", "readOnly", "recursiveReadOnly", "subPath", "subPathExpr")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("mountPath", "name")); @@ -320,6 +357,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("bindMountOptions") != null && !jsonObj.get("bindMountOptions").isJsonNull() && !jsonObj.get("bindMountOptions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `bindMountOptions` to be an array in the JSON string but got `%s`", jsonObj.get("bindMountOptions").toString())); + } if (!jsonObj.get("mountPath").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `mountPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mountPath").toString())); } 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 8a7031ddf3..a0ca5b5a39 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 @@ -51,7 +51,7 @@ * VolumeMountStatus shows status of volume mounts. */ @ApiModel(description = "VolumeMountStatus shows status of volume mounts.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeMountStatus { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; @SerializedName(SERIALIZED_NAME_MOUNT_PATH) 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 867172db63..bb549d0c80 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeNodeAffinity { public static final String SERIALIZED_NAME_REQUIRED = "required"; @SerializedName(SERIALIZED_NAME_REQUIRED) 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 85ae7760cf..bb5cea4d16 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeNodeResources { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) 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 85899b2e73..2ab99ce5ce 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 @@ -56,7 +56,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeProjection { public static final String SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE = "clusterTrustBundle"; @SerializedName(SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE) 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 edc88e477c..05206a63fd 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeResourceRequirements { public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatus.java index 912e529d4e..2402fe29a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatus.java @@ -51,7 +51,7 @@ * VolumeStatus represents the status of a mounted volume. At most one of its members must be specified. */ @ApiModel(description = "VolumeStatus represents the status of a mounted volume. At most one of its members must be specified.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeStatus { public static final String SERIALIZED_NAME_IMAGE = "image"; @SerializedName(SERIALIZED_NAME_IMAGE) 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 4c5b48c737..caeffbfad4 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 @@ -50,7 +50,7 @@ * Represents a vSphere volume resource. */ @ApiModel(description = "Represents a vSphere volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VsphereVirtualDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 42890448d5..63b8cf7f98 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1WatchEvent { public static final String SERIALIZED_NAME_OBJECT = "object"; @SerializedName(SERIALIZED_NAME_OBJECT) 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 7d2c1390c6..7547f34610 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 @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1WebhookConversion { public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; @SerializedName(SERIALIZED_NAME_CLIENT_CONFIG) 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 c1c592278a..0bf7e371ab 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1WeightedPodAffinityTerm { public static final String SERIALIZED_NAME_POD_AFFINITY_TERM = "podAffinityTerm"; @SerializedName(SERIALIZED_NAME_POD_AFFINITY_TERM) 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 ba084a34f9..919562929d 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1WindowsSecurityContextOptions { public static final String SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC = "gmsaCredentialSpec"; @SerializedName(SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC) 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 4aacb89d51..36166c0872 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1ApplyConfiguration { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Eviction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Eviction.java new file mode 100644 index 0000000000..40aea3fd71 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Eviction.java @@ -0,0 +1,338 @@ +/* +Copyright 2026 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.V1alpha1EvictionSpec; +import io.kubernetes.client.openapi.models.V1alpha1EvictionStatus; +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; + +/** + * Eviction initiates an eviction process, which should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. It manages the Eviction lifecycle. Requesters are preserved in .status.requesters even after they have withdrawn their request. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Once all EvictionRequest corresponding to this Eviction .spec.target have been removed, this Eviction object will eventually be garbage collected. If the target is a pod, the .status.targetResponders is populated from Pod's .spec.evictionResponders. Responders should observe and communicate through the .status to help with the eviction of the target when they see their state == Active in .status.targetResponders. ResponderStatus struct should then be periodically updated to indicate the progress or completion of the eviction process by each responder in .status.responders. If .status.responders[].heartbeatTime is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there are no other responders and the target is a pod, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods/<name>/eviction subresource). + */ +@ApiModel(description = "Eviction initiates an eviction process, which should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. It manages the Eviction lifecycle. Requesters are preserved in .status.requesters even after they have withdrawn their request. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Once all EvictionRequest corresponding to this Eviction .spec.target have been removed, this Eviction object will eventually be garbage collected. If the target is a pod, the .status.targetResponders is populated from Pod's .spec.evictionResponders. Responders should observe and communicate through the .status to help with the eviction of the target when they see their state == Active in .status.targetResponders. ResponderStatus struct should then be periodically updated to indicate the progress or completion of the eviction process by each responder in .status.responders. If .status.responders[].heartbeatTime is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there are no other responders and the target is a pod, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1Eviction 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 V1alpha1EvictionSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable + private V1alpha1EvictionStatus status; + + public V1alpha1Eviction() { + } + + public V1alpha1Eviction 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 V1alpha1Eviction 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 V1alpha1Eviction 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 V1alpha1Eviction spec(@jakarta.annotation.Nonnull V1alpha1EvictionSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha1EvictionSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nonnull V1alpha1EvictionSpec spec) { + this.spec = spec; + } + + + public V1alpha1Eviction status(@jakarta.annotation.Nullable V1alpha1EvictionStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha1EvictionStatus getStatus() { + return status; + } + + public void setStatus(@jakarta.annotation.Nullable V1alpha1EvictionStatus status) { + this.status = status; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1Eviction v1alpha1Eviction = (V1alpha1Eviction) o; + return Objects.equals(this.apiVersion, v1alpha1Eviction.apiVersion) && + Objects.equals(this.kind, v1alpha1Eviction.kind) && + Objects.equals(this.metadata, v1alpha1Eviction.metadata) && + Objects.equals(this.spec, v1alpha1Eviction.spec) && + Objects.equals(this.status, v1alpha1Eviction.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1Eviction {\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(); + } + + /** + * 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(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1alpha1Eviction + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1Eviction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1Eviction is not found in the empty JSON string", V1alpha1Eviction.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1Eviction.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1Eviction` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1Eviction.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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` + V1alpha1EvictionSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1alpha1EvictionStatus.validateJsonElement(jsonObj.get("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1Eviction.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1Eviction' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1Eviction.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1Eviction value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1Eviction read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1Eviction given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1Eviction + * @throws IOException if the JSON string is invalid with respect to V1alpha1Eviction + */ + public static V1alpha1Eviction fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1Eviction.class); + } + + /** + * Convert an instance of V1alpha1Eviction to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionList.java similarity index 80% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionList.java index cc4621a294..3e1ba36d42 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionList.java @@ -19,7 +19,7 @@ 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.V1beta1IPAddress; +import io.kubernetes.client.openapi.models.V1alpha1Eviction; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -51,11 +51,11 @@ import io.kubernetes.client.openapi.JSON; /** - * IPAddressList contains a list of IPAddress. + * EvictionList contains a list of Eviction resources. */ -@ApiModel(description = "IPAddressList contains a list of IPAddress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1beta1IPAddressList implements io.kubernetes.client.common.KubernetesListObject { +@ApiModel(description = "EvictionList contains a list of Eviction resources.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1EvictionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @jakarta.annotation.Nullable @@ -64,7 +64,7 @@ public class V1beta1IPAddressList implements io.kubernetes.client.common.Kuberne public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @jakarta.annotation.Nonnull - private List items = new ArrayList<>(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -76,10 +76,10 @@ public class V1beta1IPAddressList implements io.kubernetes.client.common.Kuberne @jakarta.annotation.Nullable private V1ListMeta metadata; - public V1beta1IPAddressList() { + public V1alpha1EvictionList() { } - public V1beta1IPAddressList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1alpha1EvictionList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -99,12 +99,12 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1beta1IPAddressList items(@jakarta.annotation.Nonnull List items) { + public V1alpha1EvictionList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } - public V1beta1IPAddressList addItemsItem(V1beta1IPAddress itemsItem) { + public V1alpha1EvictionList addItemsItem(V1alpha1Eviction itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -113,21 +113,21 @@ public V1beta1IPAddressList addItemsItem(V1beta1IPAddress itemsItem) { } /** - * items is the list of IPAddresses. + * items is the list of Evictions. * @return items */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "items is the list of IPAddresses.") - public List getItems() { + @ApiModelProperty(required = true, value = "items is the list of Evictions.") + public List getItems() { return items; } - public void setItems(@jakarta.annotation.Nonnull List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1beta1IPAddressList kind(@jakarta.annotation.Nullable String kind) { + public V1alpha1EvictionList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -147,7 +147,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1beta1IPAddressList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + public V1alpha1EvictionList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } @@ -176,11 +176,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1IPAddressList v1beta1IPAddressList = (V1beta1IPAddressList) o; - return Objects.equals(this.apiVersion, v1beta1IPAddressList.apiVersion) && - Objects.equals(this.items, v1beta1IPAddressList.items) && - Objects.equals(this.kind, v1beta1IPAddressList.kind) && - Objects.equals(this.metadata, v1beta1IPAddressList.metadata); + V1alpha1EvictionList v1alpha1EvictionList = (V1alpha1EvictionList) o; + return Objects.equals(this.apiVersion, v1alpha1EvictionList.apiVersion) && + Objects.equals(this.items, v1alpha1EvictionList.items) && + Objects.equals(this.kind, v1alpha1EvictionList.kind) && + Objects.equals(this.metadata, v1alpha1EvictionList.metadata); } @Override @@ -191,7 +191,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1IPAddressList {\n"); + sb.append("class V1alpha1EvictionList {\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"); @@ -227,25 +227,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1IPAddressList + * @throws IOException if the JSON Element is invalid with respect to V1alpha1EvictionList */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1IPAddressList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1IPAddressList is not found in the empty JSON string", V1beta1IPAddressList.openapiRequiredFields.toString())); + if (!V1alpha1EvictionList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1EvictionList is not found in the empty JSON string", V1alpha1EvictionList.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1IPAddressList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1IPAddressList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha1EvictionList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1EvictionList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1IPAddressList.openapiRequiredFields) { + for (String requiredField : V1alpha1EvictionList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -262,7 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); // validate the required field `items` (array) for (int i = 0; i < jsonArrayitems.size(); i++) { - V1beta1IPAddress.validateJsonElement(jsonArrayitems.get(i)); + V1alpha1Eviction.validateJsonElement(jsonArrayitems.get(i)); }; if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); @@ -277,22 +277,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1IPAddressList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1IPAddressList' and its subtypes + if (!V1alpha1EvictionList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1EvictionList' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1IPAddressList.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1EvictionList.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1IPAddressList value) throws IOException { + public void write(JsonWriter out, V1alpha1EvictionList value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1IPAddressList read(JsonReader in) throws IOException { + public V1alpha1EvictionList read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -303,18 +303,18 @@ public V1beta1IPAddressList read(JsonReader in) throws IOException { } /** - * Create an instance of V1beta1IPAddressList given an JSON string + * Create an instance of V1alpha1EvictionList given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1IPAddressList - * @throws IOException if the JSON string is invalid with respect to V1beta1IPAddressList + * @return An instance of V1alpha1EvictionList + * @throws IOException if the JSON string is invalid with respect to V1alpha1EvictionList */ - public static V1beta1IPAddressList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1IPAddressList.class); + public static V1alpha1EvictionList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1EvictionList.class); } /** - * Convert an instance of V1beta1IPAddressList to an JSON string + * Convert an instance of V1alpha1EvictionList to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionPodReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionPodReference.java new file mode 100644 index 0000000000..94f52bd36f --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionPodReference.java @@ -0,0 +1,244 @@ +/* +Copyright 2026 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; + +/** + * EvictionPodReference contains enough information to locate the referenced pod inside the same namespace. + */ +@ApiModel(description = "EvictionPodReference contains enough information to locate the referenced pod inside the same namespace.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1EvictionPodReference { + 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 V1alpha1EvictionPodReference() { + } + + public V1alpha1EvictionPodReference name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name of the target. This field is required. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name of the target. This field is required.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1alpha1EvictionPodReference uid(@jakarta.annotation.Nonnull String uid) { + this.uid = uid; + return this; + } + + /** + * uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required. + * @return uid + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.") + public String getUid() { + return uid; + } + + public void setUid(@jakarta.annotation.Nonnull String uid) { + this.uid = uid; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1EvictionPodReference v1alpha1EvictionPodReference = (V1alpha1EvictionPodReference) o; + return Objects.equals(this.name, v1alpha1EvictionPodReference.name) && + Objects.equals(this.uid, v1alpha1EvictionPodReference.uid); + } + + @Override + public int hashCode() { + return Objects.hash(name, uid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1EvictionPodReference {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" uid: ").append(toIndentedString(uid)).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(Arrays.asList("name", "uid")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("name", "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 V1alpha1EvictionPodReference + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1EvictionPodReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1EvictionPodReference is not found in the empty JSON string", V1alpha1EvictionPodReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1EvictionPodReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1EvictionPodReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1EvictionPodReference.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1EvictionPodReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1EvictionPodReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1EvictionPodReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1EvictionPodReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1EvictionPodReference read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1EvictionPodReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1EvictionPodReference + * @throws IOException if the JSON string is invalid with respect to V1alpha1EvictionPodReference + */ + public static V1alpha1EvictionPodReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1EvictionPodReference.class); + } + + /** + * Convert an instance of V1alpha1EvictionPodReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequest.java new file mode 100644 index 0000000000..4949e7f241 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequest.java @@ -0,0 +1,338 @@ +/* +Copyright 2026 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.V1alpha1EvictionRequestSpec; +import io.kubernetes.client.openapi.models.V1alpha1EvictionRequestStatus; +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; + +/** + * EvictionRequest defines a request that should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. - .spec.requester is set as a label on the Eviction for easier lookup. - Each target can have a set of responders assigned to it. Eviction objects are observed by these responders, who implement the eviction logic and update the Eviction's status with progress. There is many-to-many relationship between EvictionRequests and Evictions in general. And many-to-one if the target is a pod. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Deleting an EvictionRequest also counts as a withdrawal. Once all EvictionRequest of a target are removed, the corresponding Evictions are eventually garbage collected. + */ +@ApiModel(description = "EvictionRequest defines a request that should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. - .spec.requester is set as a label on the Eviction for easier lookup. - Each target can have a set of responders assigned to it. Eviction objects are observed by these responders, who implement the eviction logic and update the Eviction's status with progress. There is many-to-many relationship between EvictionRequests and Evictions in general. And many-to-one if the target is a pod. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Deleting an EvictionRequest also counts as a withdrawal. Once all EvictionRequest of a target are removed, the corresponding Evictions are eventually garbage collected.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1EvictionRequest 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 V1alpha1EvictionRequestSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable + private V1alpha1EvictionRequestStatus status; + + public V1alpha1EvictionRequest() { + } + + public V1alpha1EvictionRequest 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 V1alpha1EvictionRequest 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 V1alpha1EvictionRequest 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 V1alpha1EvictionRequest spec(@jakarta.annotation.Nonnull V1alpha1EvictionRequestSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha1EvictionRequestSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nonnull V1alpha1EvictionRequestSpec spec) { + this.spec = spec; + } + + + public V1alpha1EvictionRequest status(@jakarta.annotation.Nullable V1alpha1EvictionRequestStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha1EvictionRequestStatus getStatus() { + return status; + } + + public void setStatus(@jakarta.annotation.Nullable V1alpha1EvictionRequestStatus status) { + this.status = status; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1EvictionRequest v1alpha1EvictionRequest = (V1alpha1EvictionRequest) o; + return Objects.equals(this.apiVersion, v1alpha1EvictionRequest.apiVersion) && + Objects.equals(this.kind, v1alpha1EvictionRequest.kind) && + Objects.equals(this.metadata, v1alpha1EvictionRequest.metadata) && + Objects.equals(this.spec, v1alpha1EvictionRequest.spec) && + Objects.equals(this.status, v1alpha1EvictionRequest.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1EvictionRequest {\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(); + } + + /** + * 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(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1alpha1EvictionRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1EvictionRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1EvictionRequest is not found in the empty JSON string", V1alpha1EvictionRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1EvictionRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1EvictionRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1EvictionRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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` + V1alpha1EvictionRequestSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1alpha1EvictionRequestStatus.validateJsonElement(jsonObj.get("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1EvictionRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1EvictionRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1EvictionRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1EvictionRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1EvictionRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1EvictionRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1EvictionRequest + * @throws IOException if the JSON string is invalid with respect to V1alpha1EvictionRequest + */ + public static V1alpha1EvictionRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1EvictionRequest.class); + } + + /** + * Convert an instance of V1alpha1EvictionRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestList.java new file mode 100644 index 0000000000..0764703697 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestList.java @@ -0,0 +1,324 @@ +/* +Copyright 2026 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.V1alpha1EvictionRequest; +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; + +/** + * EvictionRequestList contains a list of EvictionRequests resources. + */ +@ApiModel(description = "EvictionRequestList contains a list of EvictionRequests resources.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1EvictionRequestList 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 V1alpha1EvictionRequestList() { + } + + public V1alpha1EvictionRequestList 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 V1alpha1EvictionRequestList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1alpha1EvictionRequestList addItemsItem(V1alpha1EvictionRequest itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * items is the list of EvictionRequests. + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of EvictionRequests.") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1alpha1EvictionRequestList 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 V1alpha1EvictionRequestList 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; + } + V1alpha1EvictionRequestList v1alpha1EvictionRequestList = (V1alpha1EvictionRequestList) o; + return Objects.equals(this.apiVersion, v1alpha1EvictionRequestList.apiVersion) && + Objects.equals(this.items, v1alpha1EvictionRequestList.items) && + Objects.equals(this.kind, v1alpha1EvictionRequestList.kind) && + Objects.equals(this.metadata, v1alpha1EvictionRequestList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1EvictionRequestList {\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(Arrays.asList("apiVersion", "items", "kind", "metadata")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1alpha1EvictionRequestList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1EvictionRequestList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1EvictionRequestList is not found in the empty JSON string", V1alpha1EvictionRequestList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1EvictionRequestList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1EvictionRequestList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1EvictionRequestList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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++) { + V1alpha1EvictionRequest.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1alpha1EvictionRequestList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1EvictionRequestList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1EvictionRequestList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1EvictionRequestList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1EvictionRequestList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1EvictionRequestList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1EvictionRequestList + * @throws IOException if the JSON string is invalid with respect to V1alpha1EvictionRequestList + */ + public static V1alpha1EvictionRequestList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1EvictionRequestList.class); + } + + /** + * Convert an instance of V1alpha1EvictionRequestList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestPodReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestPodReference.java new file mode 100644 index 0000000000..000346ce25 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestPodReference.java @@ -0,0 +1,244 @@ +/* +Copyright 2026 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; + +/** + * EvictionRequestPodReference contains enough information to locate the referenced pod inside the same namespace. + */ +@ApiModel(description = "EvictionRequestPodReference contains enough information to locate the referenced pod inside the same namespace.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1EvictionRequestPodReference { + 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 V1alpha1EvictionRequestPodReference() { + } + + public V1alpha1EvictionRequestPodReference name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name of the target. This field is required. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name of the target. This field is required.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1alpha1EvictionRequestPodReference uid(@jakarta.annotation.Nonnull String uid) { + this.uid = uid; + return this; + } + + /** + * uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required. + * @return uid + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.") + public String getUid() { + return uid; + } + + public void setUid(@jakarta.annotation.Nonnull String uid) { + this.uid = uid; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1EvictionRequestPodReference v1alpha1EvictionRequestPodReference = (V1alpha1EvictionRequestPodReference) o; + return Objects.equals(this.name, v1alpha1EvictionRequestPodReference.name) && + Objects.equals(this.uid, v1alpha1EvictionRequestPodReference.uid); + } + + @Override + public int hashCode() { + return Objects.hash(name, uid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1EvictionRequestPodReference {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" uid: ").append(toIndentedString(uid)).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(Arrays.asList("name", "uid")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("name", "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 V1alpha1EvictionRequestPodReference + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1EvictionRequestPodReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1EvictionRequestPodReference is not found in the empty JSON string", V1alpha1EvictionRequestPodReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1EvictionRequestPodReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1EvictionRequestPodReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1EvictionRequestPodReference.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1EvictionRequestPodReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1EvictionRequestPodReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1EvictionRequestPodReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1EvictionRequestPodReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1EvictionRequestPodReference read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1EvictionRequestPodReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1EvictionRequestPodReference + * @throws IOException if the JSON string is invalid with respect to V1alpha1EvictionRequestPodReference + */ + public static V1alpha1EvictionRequestPodReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1EvictionRequestPodReference.class); + } + + /** + * Convert an instance of V1alpha1EvictionRequestPodReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestSpec.java new file mode 100644 index 0000000000..26227cf4da --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestSpec.java @@ -0,0 +1,274 @@ +/* +Copyright 2026 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.V1alpha1EvictionRequestTarget; +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; + +/** + * EvictionRequestSpec is a specification of an EvictionRequest. + */ +@ApiModel(description = "EvictionRequestSpec is a specification of an EvictionRequest.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1EvictionRequestSpec { + public static final String SERIALIZED_NAME_INTENT = "intent"; + @SerializedName(SERIALIZED_NAME_INTENT) + @jakarta.annotation.Nonnull + private String intent; + + public static final String SERIALIZED_NAME_REQUESTER = "requester"; + @SerializedName(SERIALIZED_NAME_REQUESTER) + @jakarta.annotation.Nonnull + private String requester; + + public static final String SERIALIZED_NAME_TARGET = "target"; + @SerializedName(SERIALIZED_NAME_TARGET) + @jakarta.annotation.Nonnull + private V1alpha1EvictionRequestTarget target; + + public V1alpha1EvictionRequestSpec() { + } + + public V1alpha1EvictionRequestSpec intent(@jakarta.annotation.Nonnull String intent) { + this.intent = intent; + return this; + } + + /** + * intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn for a common target, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action. + * @return intent + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn for a common target, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action.") + public String getIntent() { + return intent; + } + + public void setIntent(@jakarta.annotation.Nonnull String intent) { + this.intent = intent; + } + + + public V1alpha1EvictionRequestSpec requester(@jakarta.annotation.Nonnull String requester) { + this.requester = requester; + return this; + } + + /** + * requester allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field is required and immutable. + * @return requester + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "requester allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field is required and immutable.") + public String getRequester() { + return requester; + } + + public void setRequester(@jakarta.annotation.Nonnull String requester) { + this.requester = requester; + } + + + public V1alpha1EvictionRequestSpec target(@jakarta.annotation.Nonnull V1alpha1EvictionRequestTarget target) { + this.target = target; + return this; + } + + /** + * Get target + * @return target + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha1EvictionRequestTarget getTarget() { + return target; + } + + public void setTarget(@jakarta.annotation.Nonnull V1alpha1EvictionRequestTarget target) { + this.target = target; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1EvictionRequestSpec v1alpha1EvictionRequestSpec = (V1alpha1EvictionRequestSpec) o; + return Objects.equals(this.intent, v1alpha1EvictionRequestSpec.intent) && + Objects.equals(this.requester, v1alpha1EvictionRequestSpec.requester) && + Objects.equals(this.target, v1alpha1EvictionRequestSpec.target); + } + + @Override + public int hashCode() { + return Objects.hash(intent, requester, target); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1EvictionRequestSpec {\n"); + sb.append(" intent: ").append(toIndentedString(intent)).append("\n"); + sb.append(" requester: ").append(toIndentedString(requester)).append("\n"); + sb.append(" target: ").append(toIndentedString(target)).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(Arrays.asList("intent", "requester", "target")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("intent", "requester", "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 V1alpha1EvictionRequestSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1EvictionRequestSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1EvictionRequestSpec is not found in the empty JSON string", V1alpha1EvictionRequestSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1EvictionRequestSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1EvictionRequestSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1EvictionRequestSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("intent").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `intent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("intent").toString())); + } + if (!jsonObj.get("requester").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `requester` to be a primitive type in the JSON string but got `%s`", jsonObj.get("requester").toString())); + } + // validate the required field `target` + V1alpha1EvictionRequestTarget.validateJsonElement(jsonObj.get("target")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1EvictionRequestSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1EvictionRequestSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1EvictionRequestSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1EvictionRequestSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1EvictionRequestSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1EvictionRequestSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1EvictionRequestSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha1EvictionRequestSpec + */ + public static V1alpha1EvictionRequestSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1EvictionRequestSpec.class); + } + + /** + * Convert an instance of V1alpha1EvictionRequestSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestStatus.java new file mode 100644 index 0000000000..0312874569 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestStatus.java @@ -0,0 +1,256 @@ +/* +Copyright 2026 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; + +/** + * EvictionRequestStatus represents the last observed status of the eviction request. + */ +@ApiModel(description = "EvictionRequestStatus represents the last observed status of the eviction request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1EvictionRequestStatus { + 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 V1alpha1EvictionRequestStatus() { + } + + public V1alpha1EvictionRequestStatus conditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + return this; + } + + public V1alpha1EvictionRequestStatus addConditionsItem(V1Condition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * conditions contain information about the eviction request. EvictionRequest specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). These conditions can be reset if the eviction was unsuccessful and a new Eviction intent has been submitted. The maximum length of the conditions list is 100. + * @return conditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "conditions contain information about the eviction request. EvictionRequest specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). These conditions can be reset if the eviction was unsuccessful and a new Eviction intent has been submitted. The maximum length of the conditions list is 100.") + public List getConditions() { + return conditions; + } + + public void setConditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + } + + + public V1alpha1EvictionRequestStatus observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { + this.observedGeneration = observedGeneration; + return this; + } + + /** + * observedGeneration is EvictionRequest's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller. + * @return observedGeneration + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "observedGeneration is EvictionRequest's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.") + public Long getObservedGeneration() { + return observedGeneration; + } + + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { + this.observedGeneration = observedGeneration; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1EvictionRequestStatus v1alpha1EvictionRequestStatus = (V1alpha1EvictionRequestStatus) o; + return Objects.equals(this.conditions, v1alpha1EvictionRequestStatus.conditions) && + Objects.equals(this.observedGeneration, v1alpha1EvictionRequestStatus.observedGeneration); + } + + @Override + public int hashCode() { + return Objects.hash(conditions, observedGeneration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1EvictionRequestStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).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(Arrays.asList("conditions", "observedGeneration")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1EvictionRequestStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1EvictionRequestStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1EvictionRequestStatus is not found in the empty JSON string", V1alpha1EvictionRequestStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1EvictionRequestStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1EvictionRequestStatus` 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(java.util.Locale.ROOT, "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 (!V1alpha1EvictionRequestStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1EvictionRequestStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1EvictionRequestStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1EvictionRequestStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1EvictionRequestStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1EvictionRequestStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1EvictionRequestStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha1EvictionRequestStatus + */ + public static V1alpha1EvictionRequestStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1EvictionRequestStatus.class); + } + + /** + * Convert an instance of V1alpha1EvictionRequestStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestTarget.java similarity index 57% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReference.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestTarget.java index 9805670474..89b0d82a15 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionRequestTarget.java @@ -18,7 +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.V1alpha2WorkloadPodGroupTemplateReference; +import io.kubernetes.client.openapi.models.V1alpha1EvictionRequestPodReference; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -48,36 +48,36 @@ import io.kubernetes.client.openapi.JSON; /** - * PodGroupTemplateReference references a PodGroup template defined in some object (e.g. Workload). Exactly one reference must be set. + * EvictionRequestTarget contains a reference to an object that should be evicted. */ -@ApiModel(description = "PodGroupTemplateReference references a PodGroup template defined in some object (e.g. Workload). Exactly one reference must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2PodGroupTemplateReference { - public static final String SERIALIZED_NAME_WORKLOAD = "workload"; - @SerializedName(SERIALIZED_NAME_WORKLOAD) +@ApiModel(description = "EvictionRequestTarget contains a reference to an object that should be evicted.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1EvictionRequestTarget { + public static final String SERIALIZED_NAME_POD = "pod"; + @SerializedName(SERIALIZED_NAME_POD) @jakarta.annotation.Nullable - private V1alpha2WorkloadPodGroupTemplateReference workload; + private V1alpha1EvictionRequestPodReference pod; - public V1alpha2PodGroupTemplateReference() { + public V1alpha1EvictionRequestTarget() { } - public V1alpha2PodGroupTemplateReference workload(@jakarta.annotation.Nullable V1alpha2WorkloadPodGroupTemplateReference workload) { - this.workload = workload; + public V1alpha1EvictionRequestTarget pod(@jakarta.annotation.Nullable V1alpha1EvictionRequestPodReference pod) { + this.pod = pod; return this; } /** - * Get workload - * @return workload + * Get pod + * @return pod */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha2WorkloadPodGroupTemplateReference getWorkload() { - return workload; + public V1alpha1EvictionRequestPodReference getPod() { + return pod; } - public void setWorkload(@jakarta.annotation.Nullable V1alpha2WorkloadPodGroupTemplateReference workload) { - this.workload = workload; + public void setPod(@jakarta.annotation.Nullable V1alpha1EvictionRequestPodReference pod) { + this.pod = pod; } @@ -90,20 +90,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2PodGroupTemplateReference v1alpha2PodGroupTemplateReference = (V1alpha2PodGroupTemplateReference) o; - return Objects.equals(this.workload, v1alpha2PodGroupTemplateReference.workload); + V1alpha1EvictionRequestTarget v1alpha1EvictionRequestTarget = (V1alpha1EvictionRequestTarget) o; + return Objects.equals(this.pod, v1alpha1EvictionRequestTarget.pod); } @Override public int hashCode() { - return Objects.hash(workload); + return Objects.hash(pod); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodGroupTemplateReference {\n"); - sb.append(" workload: ").append(toIndentedString(workload)).append("\n"); + sb.append("class V1alpha1EvictionRequestTarget {\n"); + sb.append(" pod: ").append(toIndentedString(pod)).append("\n"); sb.append("}"); return sb.toString(); } @@ -125,7 +125,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("workload")); + openapiFields = new HashSet(Arrays.asList("pod")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -135,26 +135,26 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupTemplateReference + * @throws IOException if the JSON Element is invalid with respect to V1alpha1EvictionRequestTarget */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2PodGroupTemplateReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupTemplateReference is not found in the empty JSON string", V1alpha2PodGroupTemplateReference.openapiRequiredFields.toString())); + if (!V1alpha1EvictionRequestTarget.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1EvictionRequestTarget is not found in the empty JSON string", V1alpha1EvictionRequestTarget.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2PodGroupTemplateReference.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupTemplateReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha1EvictionRequestTarget.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1EvictionRequestTarget` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `workload` - if (jsonObj.get("workload") != null && !jsonObj.get("workload").isJsonNull()) { - V1alpha2WorkloadPodGroupTemplateReference.validateJsonElement(jsonObj.get("workload")); + // validate the optional field `pod` + if (jsonObj.get("pod") != null && !jsonObj.get("pod").isJsonNull()) { + V1alpha1EvictionRequestPodReference.validateJsonElement(jsonObj.get("pod")); } } @@ -162,22 +162,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2PodGroupTemplateReference.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2PodGroupTemplateReference' and its subtypes + if (!V1alpha1EvictionRequestTarget.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1EvictionRequestTarget' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupTemplateReference.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1EvictionRequestTarget.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2PodGroupTemplateReference value) throws IOException { + public void write(JsonWriter out, V1alpha1EvictionRequestTarget value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2PodGroupTemplateReference read(JsonReader in) throws IOException { + public V1alpha1EvictionRequestTarget read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -188,18 +188,18 @@ public V1alpha2PodGroupTemplateReference read(JsonReader in) throws IOException } /** - * Create an instance of V1alpha2PodGroupTemplateReference given an JSON string + * Create an instance of V1alpha1EvictionRequestTarget given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2PodGroupTemplateReference - * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupTemplateReference + * @return An instance of V1alpha1EvictionRequestTarget + * @throws IOException if the JSON string is invalid with respect to V1alpha1EvictionRequestTarget */ - public static V1alpha2PodGroupTemplateReference fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupTemplateReference.class); + public static V1alpha1EvictionRequestTarget fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1EvictionRequestTarget.class); } /** - * Convert an instance of V1alpha2PodGroupTemplateReference to an JSON string + * Convert an instance of V1alpha1EvictionRequestTarget to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionSpec.java similarity index 66% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionSpec.java index 01db6c5d4f..d5d7346128 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionSpec.java @@ -18,7 +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.V1beta1ParentReference; +import io.kubernetes.client.openapi.models.V1alpha1EvictionTarget; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -48,36 +48,36 @@ import io.kubernetes.client.openapi.JSON; /** - * IPAddressSpec describe the attributes in an IP Address. + * EvictionSpec is a specification of an Eviction. */ -@ApiModel(description = "IPAddressSpec describe the attributes in an IP Address.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1beta1IPAddressSpec { - public static final String SERIALIZED_NAME_PARENT_REF = "parentRef"; - @SerializedName(SERIALIZED_NAME_PARENT_REF) +@ApiModel(description = "EvictionSpec is a specification of an Eviction.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1EvictionSpec { + public static final String SERIALIZED_NAME_TARGET = "target"; + @SerializedName(SERIALIZED_NAME_TARGET) @jakarta.annotation.Nonnull - private V1beta1ParentReference parentRef; + private V1alpha1EvictionTarget target; - public V1beta1IPAddressSpec() { + public V1alpha1EvictionSpec() { } - public V1beta1IPAddressSpec parentRef(@jakarta.annotation.Nonnull V1beta1ParentReference parentRef) { - this.parentRef = parentRef; + public V1alpha1EvictionSpec target(@jakarta.annotation.Nonnull V1alpha1EvictionTarget target) { + this.target = target; return this; } /** - * Get parentRef - * @return parentRef + * Get target + * @return target */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1beta1ParentReference getParentRef() { - return parentRef; + public V1alpha1EvictionTarget getTarget() { + return target; } - public void setParentRef(@jakarta.annotation.Nonnull V1beta1ParentReference parentRef) { - this.parentRef = parentRef; + public void setTarget(@jakarta.annotation.Nonnull V1alpha1EvictionTarget target) { + this.target = target; } @@ -90,20 +90,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1IPAddressSpec v1beta1IPAddressSpec = (V1beta1IPAddressSpec) o; - return Objects.equals(this.parentRef, v1beta1IPAddressSpec.parentRef); + V1alpha1EvictionSpec v1alpha1EvictionSpec = (V1alpha1EvictionSpec) o; + return Objects.equals(this.target, v1alpha1EvictionSpec.target); } @Override public int hashCode() { - return Objects.hash(parentRef); + return Objects.hash(target); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1IPAddressSpec {\n"); - sb.append(" parentRef: ").append(toIndentedString(parentRef)).append("\n"); + sb.append("class V1alpha1EvictionSpec {\n"); + sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append("}"); return sb.toString(); } @@ -125,64 +125,64 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("parentRef")); + openapiFields = new HashSet(Arrays.asList("target")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("parentRef")); + openapiRequiredFields = new HashSet(Arrays.asList("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 V1beta1IPAddressSpec + * @throws IOException if the JSON Element is invalid with respect to V1alpha1EvictionSpec */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1IPAddressSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1IPAddressSpec is not found in the empty JSON string", V1beta1IPAddressSpec.openapiRequiredFields.toString())); + if (!V1alpha1EvictionSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1EvictionSpec is not found in the empty JSON string", V1alpha1EvictionSpec.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1IPAddressSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1IPAddressSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha1EvictionSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1EvictionSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1IPAddressSpec.openapiRequiredFields) { + for (String requiredField : V1alpha1EvictionSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `parentRef` - V1beta1ParentReference.validateJsonElement(jsonObj.get("parentRef")); + // validate the required field `target` + V1alpha1EvictionTarget.validateJsonElement(jsonObj.get("target")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1IPAddressSpec.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1IPAddressSpec' and its subtypes + if (!V1alpha1EvictionSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1EvictionSpec' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1IPAddressSpec.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1EvictionSpec.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1IPAddressSpec value) throws IOException { + public void write(JsonWriter out, V1alpha1EvictionSpec value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1IPAddressSpec read(JsonReader in) throws IOException { + public V1alpha1EvictionSpec read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -193,18 +193,18 @@ public V1beta1IPAddressSpec read(JsonReader in) throws IOException { } /** - * Create an instance of V1beta1IPAddressSpec given an JSON string + * Create an instance of V1alpha1EvictionSpec given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1IPAddressSpec - * @throws IOException if the JSON string is invalid with respect to V1beta1IPAddressSpec + * @return An instance of V1alpha1EvictionSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha1EvictionSpec */ - public static V1beta1IPAddressSpec fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1IPAddressSpec.class); + public static V1alpha1EvictionSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1EvictionSpec.class); } /** - * Convert an instance of V1beta1IPAddressSpec to an JSON string + * Convert an instance of V1alpha1EvictionSpec to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionStatus.java new file mode 100644 index 0000000000..85ea6f6907 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionStatus.java @@ -0,0 +1,406 @@ +/* +Copyright 2026 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.kubernetes.client.openapi.models.V1alpha1Requester; +import io.kubernetes.client.openapi.models.V1alpha1ResponderStatus; +import io.kubernetes.client.openapi.models.V1alpha1TargetResponder; +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; + +/** + * EvictionStatus represents the last observed status of the eviction request. + */ +@ApiModel(description = "EvictionStatus represents the last observed status of the eviction request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1EvictionStatus { + 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_REQUESTERS = "requesters"; + @SerializedName(SERIALIZED_NAME_REQUESTERS) + @jakarta.annotation.Nullable + private List requesters = new ArrayList<>(); + + public static final String SERIALIZED_NAME_RESPONDERS = "responders"; + @SerializedName(SERIALIZED_NAME_RESPONDERS) + @jakarta.annotation.Nullable + private List responders = new ArrayList<>(); + + public static final String SERIALIZED_NAME_TARGET_RESPONDERS = "targetResponders"; + @SerializedName(SERIALIZED_NAME_TARGET_RESPONDERS) + @jakarta.annotation.Nullable + private List targetResponders = new ArrayList<>(); + + public V1alpha1EvictionStatus() { + } + + public V1alpha1EvictionStatus conditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + return this; + } + + public V1alpha1EvictionStatus addConditionsItem(V1Condition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * conditions contain information about the eviction request. Eviction specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). The maximum length of the conditions list is 100. + * @return conditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "conditions contain information about the eviction request. Eviction specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). The maximum length of the conditions list is 100.") + public List getConditions() { + return conditions; + } + + public void setConditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + } + + + public V1alpha1EvictionStatus observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { + this.observedGeneration = observedGeneration; + return this; + } + + /** + * observedGeneration is Eviction's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller. + * @return observedGeneration + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "observedGeneration is Eviction's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.") + public Long getObservedGeneration() { + return observedGeneration; + } + + public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { + this.observedGeneration = observedGeneration; + } + + + public V1alpha1EvictionStatus requesters(@jakarta.annotation.Nullable List requesters) { + this.requesters = requesters; + return this; + } + + public V1alpha1EvictionStatus addRequestersItem(V1alpha1Requester requestersItem) { + if (this.requesters == null) { + this.requesters = new ArrayList<>(); + } + this.requesters.add(requestersItem); + return this; + } + + /** + * requesters allow you to identify the entities, that requested the eviction of the target. If all the requesters withdraw their eviction intent, the eviction will be canceled. The maximum length of the requesters list is 100. If this limit is exceeded, requesters with Withdrawn intent should be dropped first. + * @return requesters + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "requesters allow you to identify the entities, that requested the eviction of the target. If all the requesters withdraw their eviction intent, the eviction will be canceled. The maximum length of the requesters list is 100. If this limit is exceeded, requesters with Withdrawn intent should be dropped first.") + public List getRequesters() { + return requesters; + } + + public void setRequesters(@jakarta.annotation.Nullable List requesters) { + this.requesters = requesters; + } + + + public V1alpha1EvictionStatus responders(@jakarta.annotation.Nullable List responders) { + this.responders = responders; + return this; + } + + public V1alpha1EvictionStatus addRespondersItem(V1alpha1ResponderStatus respondersItem) { + if (this.responders == null) { + this.responders = new ArrayList<>(); + } + this.responders.add(respondersItem); + return this; + } + + /** + * responders represents the eviction process status of each declared responder. The responder list should be the same length and have the same .name fields as .status.targetResponders. Only responders with .name that have Active state in .targetResponders[].state should be updated and can be mutated. First initialization of the list is allowed. Each ResponderStatus is initialized by evictionrequest-controller and then managed by the designated responder. + * @return responders + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "responders represents the eviction process status of each declared responder. The responder list should be the same length and have the same .name fields as .status.targetResponders. Only responders with .name that have Active state in .targetResponders[].state should be updated and can be mutated. First initialization of the list is allowed. Each ResponderStatus is initialized by evictionrequest-controller and then managed by the designated responder.") + public List getResponders() { + return responders; + } + + public void setResponders(@jakarta.annotation.Nullable List responders) { + this.responders = responders; + } + + + public V1alpha1EvictionStatus targetResponders(@jakarta.annotation.Nullable List targetResponders) { + this.targetResponders = targetResponders; + return this; + } + + public V1alpha1EvictionStatus addTargetRespondersItem(V1alpha1TargetResponder targetRespondersItem) { + if (this.targetResponders == null) { + this.targetResponders = new ArrayList<>(); + } + this.targetResponders.add(targetRespondersItem); + return this; + } + + /** + * targetResponders reference responders that should eventually respond to this eviction to help with the graceful eviction of a target. These responders are selected sequentially, according to their specified priority by setting the Active state to the TargetResponder .state field. The maximum number of active responders allowed is 1. Eventually each responder can end up in an Interrupted, Canceled or, Completed state. Responders should observe these states in order to navigate their lifecycle. If the target is a pod, the field is populated from Pod's .spec.evictionResponders. Default responders may be added to the list according to the target. Default responders: - imperative-eviction.k8s.io/evictor responder with a priority of 100 is added to the list if the target is a pod. It will call the imperative Eviction API (pods/<name>/eviction subresource). This call may not succeed due to PodDisruptionBudgets, which may block the pod termination. It will update the responder message and try again with a backoff. The maximum length of the responders list is 11. The length and keys of the list cannot change once set. This field is managed by evictionrequest-controller. + * @return targetResponders + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "targetResponders reference responders that should eventually respond to this eviction to help with the graceful eviction of a target. These responders are selected sequentially, according to their specified priority by setting the Active state to the TargetResponder .state field. The maximum number of active responders allowed is 1. Eventually each responder can end up in an Interrupted, Canceled or, Completed state. Responders should observe these states in order to navigate their lifecycle. If the target is a pod, the field is populated from Pod's .spec.evictionResponders. Default responders may be added to the list according to the target. Default responders: - imperative-eviction.k8s.io/evictor responder with a priority of 100 is added to the list if the target is a pod. It will call the imperative Eviction API (pods//eviction subresource). This call may not succeed due to PodDisruptionBudgets, which may block the pod termination. It will update the responder message and try again with a backoff. The maximum length of the responders list is 11. The length and keys of the list cannot change once set. This field is managed by evictionrequest-controller.") + public List getTargetResponders() { + return targetResponders; + } + + public void setTargetResponders(@jakarta.annotation.Nullable List targetResponders) { + this.targetResponders = targetResponders; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1EvictionStatus v1alpha1EvictionStatus = (V1alpha1EvictionStatus) o; + return Objects.equals(this.conditions, v1alpha1EvictionStatus.conditions) && + Objects.equals(this.observedGeneration, v1alpha1EvictionStatus.observedGeneration) && + Objects.equals(this.requesters, v1alpha1EvictionStatus.requesters) && + Objects.equals(this.responders, v1alpha1EvictionStatus.responders) && + Objects.equals(this.targetResponders, v1alpha1EvictionStatus.targetResponders); + } + + @Override + public int hashCode() { + return Objects.hash(conditions, observedGeneration, requesters, responders, targetResponders); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1EvictionStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); + sb.append(" requesters: ").append(toIndentedString(requesters)).append("\n"); + sb.append(" responders: ").append(toIndentedString(responders)).append("\n"); + sb.append(" targetResponders: ").append(toIndentedString(targetResponders)).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(Arrays.asList("conditions", "observedGeneration", "requesters", "responders", "targetResponders")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1EvictionStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1EvictionStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1EvictionStatus is not found in the empty JSON string", V1alpha1EvictionStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1EvictionStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1EvictionStatus` 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(java.util.Locale.ROOT, "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)); + }; + } + } + if (jsonObj.get("requesters") != null && !jsonObj.get("requesters").isJsonNull()) { + JsonArray jsonArrayrequesters = jsonObj.getAsJsonArray("requesters"); + if (jsonArrayrequesters != null) { + // ensure the json data is an array + if (!jsonObj.get("requesters").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `requesters` to be an array in the JSON string but got `%s`", jsonObj.get("requesters").toString())); + } + + // validate the optional field `requesters` (array) + for (int i = 0; i < jsonArrayrequesters.size(); i++) { + V1alpha1Requester.validateJsonElement(jsonArrayrequesters.get(i)); + }; + } + } + if (jsonObj.get("responders") != null && !jsonObj.get("responders").isJsonNull()) { + JsonArray jsonArrayresponders = jsonObj.getAsJsonArray("responders"); + if (jsonArrayresponders != null) { + // ensure the json data is an array + if (!jsonObj.get("responders").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `responders` to be an array in the JSON string but got `%s`", jsonObj.get("responders").toString())); + } + + // validate the optional field `responders` (array) + for (int i = 0; i < jsonArrayresponders.size(); i++) { + V1alpha1ResponderStatus.validateJsonElement(jsonArrayresponders.get(i)); + }; + } + } + if (jsonObj.get("targetResponders") != null && !jsonObj.get("targetResponders").isJsonNull()) { + JsonArray jsonArraytargetResponders = jsonObj.getAsJsonArray("targetResponders"); + if (jsonArraytargetResponders != null) { + // ensure the json data is an array + if (!jsonObj.get("targetResponders").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `targetResponders` to be an array in the JSON string but got `%s`", jsonObj.get("targetResponders").toString())); + } + + // validate the optional field `targetResponders` (array) + for (int i = 0; i < jsonArraytargetResponders.size(); i++) { + V1alpha1TargetResponder.validateJsonElement(jsonArraytargetResponders.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1EvictionStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1EvictionStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1EvictionStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1EvictionStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1EvictionStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1EvictionStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1EvictionStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha1EvictionStatus + */ + public static V1alpha1EvictionStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1EvictionStatus.class); + } + + /** + * Convert an instance of V1alpha1EvictionStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionTarget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionTarget.java new file mode 100644 index 0000000000..7a44cc2d95 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1EvictionTarget.java @@ -0,0 +1,209 @@ +/* +Copyright 2026 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.V1alpha1EvictionPodReference; +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; + +/** + * EvictionTarget contains a reference to an object that should be evicted. + */ +@ApiModel(description = "EvictionTarget contains a reference to an object that should be evicted.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1EvictionTarget { + public static final String SERIALIZED_NAME_POD = "pod"; + @SerializedName(SERIALIZED_NAME_POD) + @jakarta.annotation.Nullable + private V1alpha1EvictionPodReference pod; + + public V1alpha1EvictionTarget() { + } + + public V1alpha1EvictionTarget pod(@jakarta.annotation.Nullable V1alpha1EvictionPodReference pod) { + this.pod = pod; + return this; + } + + /** + * Get pod + * @return pod + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha1EvictionPodReference getPod() { + return pod; + } + + public void setPod(@jakarta.annotation.Nullable V1alpha1EvictionPodReference pod) { + this.pod = pod; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1EvictionTarget v1alpha1EvictionTarget = (V1alpha1EvictionTarget) o; + return Objects.equals(this.pod, v1alpha1EvictionTarget.pod); + } + + @Override + public int hashCode() { + return Objects.hash(pod); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1EvictionTarget {\n"); + sb.append(" pod: ").append(toIndentedString(pod)).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(Arrays.asList("pod")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1EvictionTarget + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1EvictionTarget.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1EvictionTarget is not found in the empty JSON string", V1alpha1EvictionTarget.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1EvictionTarget.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1EvictionTarget` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `pod` + if (jsonObj.get("pod") != null && !jsonObj.get("pod").isJsonNull()) { + V1alpha1EvictionPodReference.validateJsonElement(jsonObj.get("pod")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1EvictionTarget.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1EvictionTarget' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1EvictionTarget.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1EvictionTarget value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1EvictionTarget read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1EvictionTarget given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1EvictionTarget + * @throws IOException if the JSON string is invalid with respect to V1alpha1EvictionTarget + */ + public static V1alpha1EvictionTarget fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1EvictionTarget.class); + } + + /** + * Convert an instance of V1alpha1EvictionTarget to an JSON 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 4cff291f85..494a415262 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 @@ -50,7 +50,7 @@ * JSONPatch defines a JSON Patch. */ @ApiModel(description = "JSONPatch defines a JSON Patch.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1JSONPatch { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) 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 9149092db5..60f505d5db 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 @@ -49,7 +49,7 @@ /** * V1alpha1MatchCondition */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) 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 2d7ff991e6..ae565ce4e4 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) 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 160f2080a6..423afc7ba7 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MutatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 55a247c636..e33249c918 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MutatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 0caaabfdb9..cc4a41ac23 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 @@ -54,7 +54,7 @@ * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MutatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 e4f433ed79..9231b48a82 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MutatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) 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 8fadd7665a..ac08f2da80 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 @@ -54,7 +54,7 @@ * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. */ @ApiModel(description = "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MutatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ac72d609f5..c89b0e470d 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 @@ -57,7 +57,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MutatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) 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 55f84f568f..d5f86250e7 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1Mutation { public static final String SERIALIZED_NAME_APPLY_CONFIGURATION = "applyConfiguration"; @SerializedName(SERIALIZED_NAME_APPLY_CONFIGURATION) 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 cf76560e59..2fb9c208e7 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) 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 42b9bc152d..cb307637dc 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 561a540205..584b068cb0 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Requester.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Requester.java new file mode 100644 index 0000000000..ca130a8a9e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Requester.java @@ -0,0 +1,244 @@ +/* +Copyright 2026 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; + +/** + * Requester allows you to identify the entity, that requested the eviction of the target. + */ +@ApiModel(description = "Requester allows you to identify the entity, that requested the eviction of the target.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1Requester { + public static final String SERIALIZED_NAME_INTENT = "intent"; + @SerializedName(SERIALIZED_NAME_INTENT) + @jakarta.annotation.Nonnull + private String intent; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public V1alpha1Requester() { + } + + public V1alpha1Requester intent(@jakarta.annotation.Nonnull String intent) { + this.intent = intent; + return this; + } + + /** + * intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action. + * @return intent + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action.") + public String getIntent() { + return intent; + } + + public void setIntent(@jakarta.annotation.Nonnull String intent) { + this.intent = intent; + } + + + public V1alpha1Requester name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each requester. This field is required. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each requester. This field is required.") + 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; + } + V1alpha1Requester v1alpha1Requester = (V1alpha1Requester) o; + return Objects.equals(this.intent, v1alpha1Requester.intent) && + Objects.equals(this.name, v1alpha1Requester.name); + } + + @Override + public int hashCode() { + return Objects.hash(intent, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1Requester {\n"); + sb.append(" intent: ").append(toIndentedString(intent)).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(Arrays.asList("intent", "name")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("intent", "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 V1alpha1Requester + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1Requester.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1Requester is not found in the empty JSON string", V1alpha1Requester.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1Requester.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1Requester` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1Requester.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("intent").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `intent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("intent").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1alpha1Requester.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1Requester' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1Requester.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1Requester value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1Requester read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1Requester given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1Requester + * @throws IOException if the JSON string is invalid with respect to V1alpha1Requester + */ + public static V1alpha1Requester fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1Requester.class); + } + + /** + * Convert an instance of V1alpha1Requester to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResponderStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResponderStatus.java new file mode 100644 index 0000000000..209eb32aa2 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResponderStatus.java @@ -0,0 +1,353 @@ +/* +Copyright 2026 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; + +/** + * ResponderStatus represents the last observed status of the eviction process of the responder. It should be only updated by the designated responder whose name is .name field. + */ +@ApiModel(description = "ResponderStatus represents the last observed status of the eviction process of the responder. It should be only updated by the designated responder whose name is .name field.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1ResponderStatus { + 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_EXPECTED_COMPLETION_TIME = "expectedCompletionTime"; + @SerializedName(SERIALIZED_NAME_EXPECTED_COMPLETION_TIME) + @jakarta.annotation.Nullable + private OffsetDateTime expectedCompletionTime; + + public static final String SERIALIZED_NAME_HEARTBEAT_TIME = "heartbeatTime"; + @SerializedName(SERIALIZED_NAME_HEARTBEAT_TIME) + @jakarta.annotation.Nullable + private OffsetDateTime heartbeatTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable + private String message; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_START_TIME = "startTime"; + @SerializedName(SERIALIZED_NAME_START_TIME) + @jakarta.annotation.Nullable + private OffsetDateTime startTime; + + public V1alpha1ResponderStatus() { + } + + public V1alpha1ResponderStatus completionTime(@jakarta.annotation.Nullable OffsetDateTime completionTime) { + this.completionTime = completionTime; + return this; + } + + /** + * completionTime tracks the time at which the Responder stopped processing the eviction request. Completion means that the responders has either fully or partially completed the eviction process, which may have resulted in target eviction (e.g. pod termination). It should reflect the present time when set. This field becomes immutable once set. + * @return completionTime + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "completionTime tracks the time at which the Responder stopped processing the eviction request. Completion means that the responders has either fully or partially completed the eviction process, which may have resulted in target eviction (e.g. pod termination). It should reflect the present time when set. This field becomes immutable once set.") + public OffsetDateTime getCompletionTime() { + return completionTime; + } + + public void setCompletionTime(@jakarta.annotation.Nullable OffsetDateTime completionTime) { + this.completionTime = completionTime; + } + + + public V1alpha1ResponderStatus expectedCompletionTime(@jakarta.annotation.Nullable OffsetDateTime expectedCompletionTime) { + this.expectedCompletionTime = expectedCompletionTime; + return this; + } + + /** + * expectedCompletionTime is the time at which the eviction process step is expected to end for the responder. The time cannot be set to the past. May be omitted if no estimate can be made. + * @return expectedCompletionTime + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "expectedCompletionTime is the time at which the eviction process step is expected to end for the responder. The time cannot be set to the past. May be omitted if no estimate can be made.") + public OffsetDateTime getExpectedCompletionTime() { + return expectedCompletionTime; + } + + public void setExpectedCompletionTime(@jakarta.annotation.Nullable OffsetDateTime expectedCompletionTime) { + this.expectedCompletionTime = expectedCompletionTime; + } + + + public V1alpha1ResponderStatus heartbeatTime(@jakarta.annotation.Nullable OffsetDateTime heartbeatTime) { + this.heartbeatTime = heartbeatTime; + return this; + } + + /** + * heartbeatTime is the last time at which the eviction process was reported to be in progress by the responder. It should reflect the present time when set. Responders should avoid heartbeats more frequent than 20 seconds to avoid overloading the control-plane. + * @return heartbeatTime + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "heartbeatTime is the last time at which the eviction process was reported to be in progress by the responder. It should reflect the present time when set. Responders should avoid heartbeats more frequent than 20 seconds to avoid overloading the control-plane.") + public OffsetDateTime getHeartbeatTime() { + return heartbeatTime; + } + + public void setHeartbeatTime(@jakarta.annotation.Nullable OffsetDateTime heartbeatTime) { + this.heartbeatTime = heartbeatTime; + } + + + public V1alpha1ResponderStatus message(@jakarta.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * message provides human-readable details about the state of the responder and the eviction process. Maximum length is 4000 characters. + * @return message + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "message provides human-readable details about the state of the responder and the eviction process. Maximum length is 4000 characters.") + public String getMessage() { + return message; + } + + public void setMessage(@jakarta.annotation.Nullable String message) { + this.message = message; + } + + + public V1alpha1ResponderStatus name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field is initialized by Kubernetes and must be unique for each responder. This field is required. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field is initialized by Kubernetes and must be unique for each responder. This field is required.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1alpha1ResponderStatus startTime(@jakarta.annotation.Nullable OffsetDateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * startTime tracks the time at which this responder was designated as active and should start processing the eviction request. It should reflect the present time when set. This field is initialized by Kubernetes when this responder becomes active. This field becomes immutable once set. + * @return startTime + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "startTime tracks the time at which this responder was designated as active and should start processing the eviction request. It should reflect the present time when set. This field is initialized by Kubernetes when this responder becomes active. This field becomes immutable once set.") + public OffsetDateTime getStartTime() { + return startTime; + } + + public void setStartTime(@jakarta.annotation.Nullable OffsetDateTime startTime) { + this.startTime = startTime; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ResponderStatus v1alpha1ResponderStatus = (V1alpha1ResponderStatus) o; + return Objects.equals(this.completionTime, v1alpha1ResponderStatus.completionTime) && + Objects.equals(this.expectedCompletionTime, v1alpha1ResponderStatus.expectedCompletionTime) && + Objects.equals(this.heartbeatTime, v1alpha1ResponderStatus.heartbeatTime) && + Objects.equals(this.message, v1alpha1ResponderStatus.message) && + Objects.equals(this.name, v1alpha1ResponderStatus.name) && + Objects.equals(this.startTime, v1alpha1ResponderStatus.startTime); + } + + @Override + public int hashCode() { + return Objects.hash(completionTime, expectedCompletionTime, heartbeatTime, message, name, startTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ResponderStatus {\n"); + sb.append(" completionTime: ").append(toIndentedString(completionTime)).append("\n"); + sb.append(" expectedCompletionTime: ").append(toIndentedString(expectedCompletionTime)).append("\n"); + sb.append(" heartbeatTime: ").append(toIndentedString(heartbeatTime)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).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(Arrays.asList("completionTime", "expectedCompletionTime", "heartbeatTime", "message", "name", "startTime")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1alpha1ResponderStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1ResponderStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1ResponderStatus is not found in the empty JSON string", V1alpha1ResponderStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1ResponderStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1ResponderStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1ResponderStatus.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1alpha1ResponderStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1ResponderStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1ResponderStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1ResponderStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1ResponderStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1ResponderStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1ResponderStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha1ResponderStatus + */ + public static V1alpha1ResponderStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1ResponderStatus.class); + } + + /** + * Convert an instance of V1alpha1ResponderStatus to an JSON 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 76f53f29f4..3eb3842abf 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1ServerStorageVersion { public static final String SERIALIZED_NAME_API_SERVER_I_D = "apiServerID"; @SerializedName(SERIALIZED_NAME_API_SERVER_I_D) 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 d2340a8318..090d3df3f6 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 @@ -52,7 +52,7 @@ * Storage version of a specific resource. */ @ApiModel(description = "Storage version of a specific resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1StorageVersion implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 508f7bef04..49a676cee6 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1StorageVersionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 e738a04b9f..c239e4964c 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 @@ -54,7 +54,7 @@ * A list of StorageVersions. */ @ApiModel(description = "A list of StorageVersions.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1StorageVersionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 44744b3c87..b5e7441d8e 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1StorageVersionStatus { public static final String SERIALIZED_NAME_COMMON_ENCODING_VERSION = "commonEncodingVersion"; @SerializedName(SERIALIZED_NAME_COMMON_ENCODING_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TargetResponder.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TargetResponder.java new file mode 100644 index 0000000000..fe9df413e1 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TargetResponder.java @@ -0,0 +1,271 @@ +/* +Copyright 2026 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; + +/** + * TargetResponder allows you to specify the responder reacting to the Eviction. Responders should observe and communicate through the Eviction API (see .state) to help with the graceful eviction of a target (e.g. termination of a pod). + */ +@ApiModel(description = "TargetResponder allows you to specify the responder reacting to the Eviction. Responders should observe and communicate through the Eviction API (see .state) to help with the graceful eviction of a target (e.g. termination of a pod).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha1TargetResponder { + 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.Nonnull + private Integer priority; + + public static final String SERIALIZED_NAME_STATE = "state"; + @SerializedName(SERIALIZED_NAME_STATE) + @jakarta.annotation.Nonnull + private String state; + + public V1alpha1TargetResponder() { + } + + public V1alpha1TargetResponder name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each responder. This field is required. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each responder. This field is required.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1alpha1TargetResponder priority(@jakarta.annotation.Nonnull Integer priority) { + this.priority = priority; + return this; + } + + /** + * priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required and immutable. + * @return priority + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required and immutable.") + public Integer getPriority() { + return priority; + } + + public void setPriority(@jakarta.annotation.Nonnull Integer priority) { + this.priority = priority; + } + + + public V1alpha1TargetResponder state(@jakarta.annotation.Nonnull String state) { + this.state = state; + return this; + } + + /** + * state specifies a state that is assigned by the evictionrequest-controller. Responders should observe this state in order to navigate their lifecycle. - Inactive means that the responder should not yet process this eviction request. - Active means that the responder is either running or expected to start soon. Also, startTime has been set in the ResponderStatus by the evictionrequest-controller. An active responder should currently interact with the eviction process by updating .status.responders, where .name is the active responder name. ResponderStatus fields should be periodically updated to indicate the progress or completion of the eviction process. If .status.responders[].heartbeatTime field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. Only one responder can be active at a time. - Interrupted means that the responder has failed to start or failed to update heartbeatTime in ResponderStatus in a timely manner. - Canceled means that the responder has been canceled. In other words, there is no EvictionRequest with the same target and Eviction intent in .spec.intent. - Completed means that the responder has successfully completed and set completionTime in ResponderStatus. Please refer to the ResponderStatus in .status.responders for more details on each responder. + * @return state + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "state specifies a state that is assigned by the evictionrequest-controller. Responders should observe this state in order to navigate their lifecycle. - Inactive means that the responder should not yet process this eviction request. - Active means that the responder is either running or expected to start soon. Also, startTime has been set in the ResponderStatus by the evictionrequest-controller. An active responder should currently interact with the eviction process by updating .status.responders, where .name is the active responder name. ResponderStatus fields should be periodically updated to indicate the progress or completion of the eviction process. If .status.responders[].heartbeatTime field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. Only one responder can be active at a time. - Interrupted means that the responder has failed to start or failed to update heartbeatTime in ResponderStatus in a timely manner. - Canceled means that the responder has been canceled. In other words, there is no EvictionRequest with the same target and Eviction intent in .spec.intent. - Completed means that the responder has successfully completed and set completionTime in ResponderStatus. Please refer to the ResponderStatus in .status.responders for more details on each responder.") + public String getState() { + return state; + } + + public void setState(@jakarta.annotation.Nonnull String state) { + this.state = state; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1TargetResponder v1alpha1TargetResponder = (V1alpha1TargetResponder) o; + return Objects.equals(this.name, v1alpha1TargetResponder.name) && + Objects.equals(this.priority, v1alpha1TargetResponder.priority) && + Objects.equals(this.state, v1alpha1TargetResponder.state); + } + + @Override + public int hashCode() { + return Objects.hash(name, priority, state); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1TargetResponder {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).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(Arrays.asList("name", "priority", "state")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("name", "priority", "state")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1TargetResponder + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1TargetResponder.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1TargetResponder is not found in the empty JSON string", V1alpha1TargetResponder.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1TargetResponder.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1TargetResponder` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1TargetResponder.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("state").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha1TargetResponder.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1TargetResponder' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1TargetResponder.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1TargetResponder value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1TargetResponder read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1TargetResponder given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1TargetResponder + * @throws IOException if the JSON string is invalid with respect to V1alpha1TargetResponder + */ + public static V1alpha1TargetResponder fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1TargetResponder.class); + } + + /** + * Convert an instance of V1alpha1TargetResponder to an JSON 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 d0062cab58..4c5091eae9 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 @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) 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 45145021e7..0c3436b530 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 @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha2LeaseCandidate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 539ec55727..71fce9c248 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 @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha2LeaseCandidateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 5e79dbba5d..8e8220ade0 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 @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha2LeaseCandidateSpec { public static final String SERIALIZED_NAME_BINARY_VERSION = "binaryVersion"; @SerializedName(SERIALIZED_NAME_BINARY_VERSION) @@ -92,11 +92,11 @@ public V1alpha2LeaseCandidateSpec binaryVersion(@jakarta.annotation.Nonnull Stri } /** - * BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. + * 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.") + @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; } @@ -112,11 +112,11 @@ public V1alpha2LeaseCandidateSpec emulationVersion(@jakarta.annotation.Nullable } /** - * 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\" + * 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\"") + @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; } @@ -132,11 +132,11 @@ public V1alpha2LeaseCandidateSpec leaseName(@jakarta.annotation.Nonnull String l } /** - * LeaseName is the name of the lease for which this candidate is contending. This field is immutable. + * 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.") + @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; } @@ -152,11 +152,11 @@ public V1alpha2LeaseCandidateSpec pingTime(@jakarta.annotation.Nullable OffsetDa } /** - * 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. + * 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.") + @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; } @@ -172,11 +172,11 @@ public V1alpha2LeaseCandidateSpec renewTime(@jakarta.annotation.Nullable OffsetD } /** - * 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. + * 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.") + @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; } @@ -192,11 +192,11 @@ public V1alpha2LeaseCandidateSpec strategy(@jakarta.annotation.Nonnull String st } /** - * 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. + * 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.") + @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; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpec.java deleted file mode 100644 index 7c1d3a6cf8..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpec.java +++ /dev/null @@ -1,264 +0,0 @@ -/* -Copyright 2026 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.V1alpha2PodGroupTemplate; -import io.kubernetes.client.openapi.models.V1alpha2TypedLocalObjectReference; -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; - -/** - * WorkloadSpec defines the desired state of a Workload. - */ -@ApiModel(description = "WorkloadSpec defines the desired state of a Workload.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2WorkloadSpec { - public static final String SERIALIZED_NAME_CONTROLLER_REF = "controllerRef"; - @SerializedName(SERIALIZED_NAME_CONTROLLER_REF) - @jakarta.annotation.Nullable - private V1alpha2TypedLocalObjectReference controllerRef; - - public static final String SERIALIZED_NAME_POD_GROUP_TEMPLATES = "podGroupTemplates"; - @SerializedName(SERIALIZED_NAME_POD_GROUP_TEMPLATES) - @jakarta.annotation.Nonnull - private List podGroupTemplates = new ArrayList<>(); - - public V1alpha2WorkloadSpec() { - } - - public V1alpha2WorkloadSpec controllerRef(@jakarta.annotation.Nullable V1alpha2TypedLocalObjectReference controllerRef) { - this.controllerRef = controllerRef; - return this; - } - - /** - * Get controllerRef - * @return controllerRef - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") - public V1alpha2TypedLocalObjectReference getControllerRef() { - return controllerRef; - } - - public void setControllerRef(@jakarta.annotation.Nullable V1alpha2TypedLocalObjectReference controllerRef) { - this.controllerRef = controllerRef; - } - - - public V1alpha2WorkloadSpec podGroupTemplates(@jakarta.annotation.Nonnull List podGroupTemplates) { - this.podGroupTemplates = podGroupTemplates; - return this; - } - - public V1alpha2WorkloadSpec addPodGroupTemplatesItem(V1alpha2PodGroupTemplate podGroupTemplatesItem) { - if (this.podGroupTemplates == null) { - this.podGroupTemplates = new ArrayList<>(); - } - this.podGroupTemplates.add(podGroupTemplatesItem); - return this; - } - - /** - * PodGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. This field is immutable. - * @return podGroupTemplates - */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "PodGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. This field is immutable.") - public List getPodGroupTemplates() { - return podGroupTemplates; - } - - public void setPodGroupTemplates(@jakarta.annotation.Nonnull List podGroupTemplates) { - this.podGroupTemplates = podGroupTemplates; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha2WorkloadSpec v1alpha2WorkloadSpec = (V1alpha2WorkloadSpec) o; - return Objects.equals(this.controllerRef, v1alpha2WorkloadSpec.controllerRef) && - Objects.equals(this.podGroupTemplates, v1alpha2WorkloadSpec.podGroupTemplates); - } - - @Override - public int hashCode() { - return Objects.hash(controllerRef, podGroupTemplates); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2WorkloadSpec {\n"); - sb.append(" controllerRef: ").append(toIndentedString(controllerRef)).append("\n"); - sb.append(" podGroupTemplates: ").append(toIndentedString(podGroupTemplates)).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(Arrays.asList("controllerRef", "podGroupTemplates")); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("podGroupTemplates")); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2WorkloadSpec - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!V1alpha2WorkloadSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2WorkloadSpec is not found in the empty JSON string", V1alpha2WorkloadSpec.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!V1alpha2WorkloadSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2WorkloadSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha2WorkloadSpec.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `controllerRef` - if (jsonObj.get("controllerRef") != null && !jsonObj.get("controllerRef").isJsonNull()) { - V1alpha2TypedLocalObjectReference.validateJsonElement(jsonObj.get("controllerRef")); - } - // ensure the json data is an array - if (!jsonObj.get("podGroupTemplates").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podGroupTemplates` to be an array in the JSON string but got `%s`", jsonObj.get("podGroupTemplates").toString())); - } - - JsonArray jsonArraypodGroupTemplates = jsonObj.getAsJsonArray("podGroupTemplates"); - // validate the required field `podGroupTemplates` (array) - for (int i = 0; i < jsonArraypodGroupTemplates.size(); i++) { - V1alpha2PodGroupTemplate.validateJsonElement(jsonArraypodGroupTemplates.get(i)); - }; - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2WorkloadSpec.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2WorkloadSpec' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2WorkloadSpec.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, V1alpha2WorkloadSpec value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public V1alpha2WorkloadSpec read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of V1alpha2WorkloadSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha2WorkloadSpec - * @throws IOException if the JSON string is invalid with respect to V1alpha2WorkloadSpec - */ - public static V1alpha2WorkloadSpec fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2WorkloadSpec.class); - } - - /** - * Convert an instance of V1alpha2WorkloadSpec to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeDisruptionMode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeDisruptionMode.java new file mode 100644 index 0000000000..4392e3a745 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeDisruptionMode.java @@ -0,0 +1,231 @@ +/* +Copyright 2026 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; + +/** + * CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set. + */ +@ApiModel(description = "CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3CompositeDisruptionMode { + public static final String SERIALIZED_NAME_ALL = "all"; + @SerializedName(SERIALIZED_NAME_ALL) + @jakarta.annotation.Nullable + private Object all; + + public static final String SERIALIZED_NAME_SINGLE = "single"; + @SerializedName(SERIALIZED_NAME_SINGLE) + @jakarta.annotation.Nullable + private Object single; + + public V1alpha3CompositeDisruptionMode() { + } + + public V1alpha3CompositeDisruptionMode all(@jakarta.annotation.Nullable Object all) { + this.all = all; + return this; + } + + /** + * all specifies that all children groups can only be disrupted together. + * @return all + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "all specifies that all children groups can only be disrupted together.") + public Object getAll() { + return all; + } + + public void setAll(@jakarta.annotation.Nullable Object all) { + this.all = all; + } + + + public V1alpha3CompositeDisruptionMode single(@jakarta.annotation.Nullable Object single) { + this.single = single; + return this; + } + + /** + * single specifies that children groups can be disrupted independently from each other. + * @return single + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "single specifies that children groups can be disrupted independently from each other.") + public Object getSingle() { + return single; + } + + public void setSingle(@jakarta.annotation.Nullable Object single) { + this.single = single; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3CompositeDisruptionMode v1alpha3CompositeDisruptionMode = (V1alpha3CompositeDisruptionMode) o; + return Objects.equals(this.all, v1alpha3CompositeDisruptionMode.all) && + Objects.equals(this.single, v1alpha3CompositeDisruptionMode.single); + } + + @Override + public int hashCode() { + return Objects.hash(all, single); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3CompositeDisruptionMode {\n"); + sb.append(" all: ").append(toIndentedString(all)).append("\n"); + sb.append(" single: ").append(toIndentedString(single)).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(Arrays.asList("all", "single")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3CompositeDisruptionMode + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3CompositeDisruptionMode.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3CompositeDisruptionMode is not found in the empty JSON string", V1alpha3CompositeDisruptionMode.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3CompositeDisruptionMode.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3CompositeDisruptionMode` 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 (!V1alpha3CompositeDisruptionMode.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3CompositeDisruptionMode' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3CompositeDisruptionMode.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3CompositeDisruptionMode value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3CompositeDisruptionMode read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3CompositeDisruptionMode given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3CompositeDisruptionMode + * @throws IOException if the JSON string is invalid with respect to V1alpha3CompositeDisruptionMode + */ + public static V1alpha3CompositeDisruptionMode fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3CompositeDisruptionMode.class); + } + + /** + * Convert an instance of V1alpha3CompositeDisruptionMode to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeGangSchedulingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeGangSchedulingPolicy.java new file mode 100644 index 0000000000..17bd9bc1ad --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositeGangSchedulingPolicy.java @@ -0,0 +1,211 @@ +/* +Copyright 2026 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; + +/** + * CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics. + */ +@ApiModel(description = "CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3CompositeGangSchedulingPolicy { + public static final String SERIALIZED_NAME_MIN_GROUP_COUNT = "minGroupCount"; + @SerializedName(SERIALIZED_NAME_MIN_GROUP_COUNT) + @jakarta.annotation.Nonnull + private Integer minGroupCount; + + public V1alpha3CompositeGangSchedulingPolicy() { + } + + public V1alpha3CompositeGangSchedulingPolicy minGroupCount(@jakarta.annotation.Nonnull Integer minGroupCount) { + this.minGroupCount = minGroupCount; + return this; + } + + /** + * minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. + * @return minGroupCount + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.") + public Integer getMinGroupCount() { + return minGroupCount; + } + + public void setMinGroupCount(@jakarta.annotation.Nonnull Integer minGroupCount) { + this.minGroupCount = minGroupCount; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3CompositeGangSchedulingPolicy v1alpha3CompositeGangSchedulingPolicy = (V1alpha3CompositeGangSchedulingPolicy) o; + return Objects.equals(this.minGroupCount, v1alpha3CompositeGangSchedulingPolicy.minGroupCount); + } + + @Override + public int hashCode() { + return Objects.hash(minGroupCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3CompositeGangSchedulingPolicy {\n"); + sb.append(" minGroupCount: ").append(toIndentedString(minGroupCount)).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(Arrays.asList("minGroupCount")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("minGroupCount")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3CompositeGangSchedulingPolicy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3CompositeGangSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3CompositeGangSchedulingPolicy is not found in the empty JSON string", V1alpha3CompositeGangSchedulingPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3CompositeGangSchedulingPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3CompositeGangSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3CompositeGangSchedulingPolicy.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3CompositeGangSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3CompositeGangSchedulingPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3CompositeGangSchedulingPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3CompositeGangSchedulingPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3CompositeGangSchedulingPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3CompositeGangSchedulingPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3CompositeGangSchedulingPolicy + * @throws IOException if the JSON string is invalid with respect to V1alpha3CompositeGangSchedulingPolicy + */ + public static V1alpha3CompositeGangSchedulingPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3CompositeGangSchedulingPolicy.class); + } + + /** + * Convert an instance of V1alpha3CompositeGangSchedulingPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroup.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroup.java new file mode 100644 index 0000000000..f8d9614b21 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroup.java @@ -0,0 +1,338 @@ +/* +Copyright 2026 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.V1alpha3CompositePodGroupSpec; +import io.kubernetes.client.openapi.models.V1alpha3CompositePodGroupStatus; +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; + +/** + * CompositePodGroup represents a runtime instance of pod groups grouped together. CompositePodGroups are created by workload controllers (LWS, JobSet, etc...) from Workload.compositePodGroupTemplates. CompositePodGroup API enablement is toggled by the CompositePodGroup feature gate. + */ +@ApiModel(description = "CompositePodGroup represents a runtime instance of pod groups grouped together. CompositePodGroups are created by workload controllers (LWS, JobSet, etc...) from Workload.compositePodGroupTemplates. CompositePodGroup API enablement is toggled by the CompositePodGroup feature gate.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3CompositePodGroup 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 V1alpha3CompositePodGroupSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable + private V1alpha3CompositePodGroupStatus status; + + public V1alpha3CompositePodGroup() { + } + + public V1alpha3CompositePodGroup 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 V1alpha3CompositePodGroup 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 V1alpha3CompositePodGroup 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 V1alpha3CompositePodGroup spec(@jakarta.annotation.Nonnull V1alpha3CompositePodGroupSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha3CompositePodGroupSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nonnull V1alpha3CompositePodGroupSpec spec) { + this.spec = spec; + } + + + public V1alpha3CompositePodGroup status(@jakarta.annotation.Nullable V1alpha3CompositePodGroupStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3CompositePodGroupStatus getStatus() { + return status; + } + + public void setStatus(@jakarta.annotation.Nullable V1alpha3CompositePodGroupStatus status) { + this.status = status; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3CompositePodGroup v1alpha3CompositePodGroup = (V1alpha3CompositePodGroup) o; + return Objects.equals(this.apiVersion, v1alpha3CompositePodGroup.apiVersion) && + Objects.equals(this.kind, v1alpha3CompositePodGroup.kind) && + Objects.equals(this.metadata, v1alpha3CompositePodGroup.metadata) && + Objects.equals(this.spec, v1alpha3CompositePodGroup.spec) && + Objects.equals(this.status, v1alpha3CompositePodGroup.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3CompositePodGroup {\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(); + } + + /** + * 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(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1alpha3CompositePodGroup + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3CompositePodGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3CompositePodGroup is not found in the empty JSON string", V1alpha3CompositePodGroup.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3CompositePodGroup.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3CompositePodGroup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3CompositePodGroup.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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` + V1alpha3CompositePodGroupSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1alpha3CompositePodGroupStatus.validateJsonElement(jsonObj.get("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3CompositePodGroup.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3CompositePodGroup' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3CompositePodGroup.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3CompositePodGroup value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3CompositePodGroup read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3CompositePodGroup given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3CompositePodGroup + * @throws IOException if the JSON string is invalid with respect to V1alpha3CompositePodGroup + */ + public static V1alpha3CompositePodGroup fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3CompositePodGroup.class); + } + + /** + * Convert an instance of V1alpha3CompositePodGroup to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupList.java new file mode 100644 index 0000000000..c22f72b0a0 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupList.java @@ -0,0 +1,324 @@ +/* +Copyright 2026 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.V1alpha3CompositePodGroup; +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; + +/** + * CompositePodGroupList contains a list of CompositePodGroup resources. + */ +@ApiModel(description = "CompositePodGroupList contains a list of CompositePodGroup resources.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3CompositePodGroupList 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 V1alpha3CompositePodGroupList() { + } + + public V1alpha3CompositePodGroupList 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 V1alpha3CompositePodGroupList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1alpha3CompositePodGroupList addItemsItem(V1alpha3CompositePodGroup itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * Items is the list of CompositePodGroups. + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of CompositePodGroups.") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1alpha3CompositePodGroupList 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 V1alpha3CompositePodGroupList 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; + } + V1alpha3CompositePodGroupList v1alpha3CompositePodGroupList = (V1alpha3CompositePodGroupList) o; + return Objects.equals(this.apiVersion, v1alpha3CompositePodGroupList.apiVersion) && + Objects.equals(this.items, v1alpha3CompositePodGroupList.items) && + Objects.equals(this.kind, v1alpha3CompositePodGroupList.kind) && + Objects.equals(this.metadata, v1alpha3CompositePodGroupList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3CompositePodGroupList {\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(Arrays.asList("apiVersion", "items", "kind", "metadata")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1alpha3CompositePodGroupList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3CompositePodGroupList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3CompositePodGroupList is not found in the empty JSON string", V1alpha3CompositePodGroupList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3CompositePodGroupList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3CompositePodGroupList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3CompositePodGroupList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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++) { + V1alpha3CompositePodGroup.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1alpha3CompositePodGroupList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3CompositePodGroupList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3CompositePodGroupList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3CompositePodGroupList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3CompositePodGroupList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3CompositePodGroupList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3CompositePodGroupList + * @throws IOException if the JSON string is invalid with respect to V1alpha3CompositePodGroupList + */ + public static V1alpha3CompositePodGroupList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3CompositePodGroupList.class); + } + + /** + * Convert an instance of V1alpha3CompositePodGroupList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingConstraints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingConstraints.java new file mode 100644 index 0000000000..1be8303f84 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingConstraints.java @@ -0,0 +1,229 @@ +/* +Copyright 2026 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.V1alpha3TopologyConstraint; +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; + +/** + * CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup. + */ +@ApiModel(description = "CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3CompositePodGroupSchedulingConstraints { + public static final String SERIALIZED_NAME_TOPOLOGY = "topology"; + @SerializedName(SERIALIZED_NAME_TOPOLOGY) + @jakarta.annotation.Nullable + private List topology = new ArrayList<>(); + + public V1alpha3CompositePodGroupSchedulingConstraints() { + } + + public V1alpha3CompositePodGroupSchedulingConstraints topology(@jakarta.annotation.Nullable List topology) { + this.topology = topology; + return this; + } + + public V1alpha3CompositePodGroupSchedulingConstraints addTopologyItem(V1alpha3TopologyConstraint topologyItem) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + this.topology.add(topologyItem); + return this; + } + + /** + * topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future. + * @return topology + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.") + public List getTopology() { + return topology; + } + + public void setTopology(@jakarta.annotation.Nullable List topology) { + this.topology = topology; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3CompositePodGroupSchedulingConstraints v1alpha3CompositePodGroupSchedulingConstraints = (V1alpha3CompositePodGroupSchedulingConstraints) o; + return Objects.equals(this.topology, v1alpha3CompositePodGroupSchedulingConstraints.topology); + } + + @Override + public int hashCode() { + return Objects.hash(topology); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3CompositePodGroupSchedulingConstraints {\n"); + sb.append(" topology: ").append(toIndentedString(topology)).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(Arrays.asList("topology")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3CompositePodGroupSchedulingConstraints + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3CompositePodGroupSchedulingConstraints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3CompositePodGroupSchedulingConstraints is not found in the empty JSON string", V1alpha3CompositePodGroupSchedulingConstraints.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3CompositePodGroupSchedulingConstraints.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3CompositePodGroupSchedulingConstraints` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("topology") != null && !jsonObj.get("topology").isJsonNull()) { + JsonArray jsonArraytopology = jsonObj.getAsJsonArray("topology"); + if (jsonArraytopology != null) { + // ensure the json data is an array + if (!jsonObj.get("topology").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `topology` to be an array in the JSON string but got `%s`", jsonObj.get("topology").toString())); + } + + // validate the optional field `topology` (array) + for (int i = 0; i < jsonArraytopology.size(); i++) { + V1alpha3TopologyConstraint.validateJsonElement(jsonArraytopology.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3CompositePodGroupSchedulingConstraints.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3CompositePodGroupSchedulingConstraints' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3CompositePodGroupSchedulingConstraints.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3CompositePodGroupSchedulingConstraints value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3CompositePodGroupSchedulingConstraints read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3CompositePodGroupSchedulingConstraints given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3CompositePodGroupSchedulingConstraints + * @throws IOException if the JSON string is invalid with respect to V1alpha3CompositePodGroupSchedulingConstraints + */ + public static V1alpha3CompositePodGroupSchedulingConstraints fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3CompositePodGroupSchedulingConstraints.class); + } + + /** + * Convert an instance of V1alpha3CompositePodGroupSchedulingConstraints to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingPolicy.java new file mode 100644 index 0000000000..164ff2a2bb --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSchedulingPolicy.java @@ -0,0 +1,236 @@ +/* +Copyright 2026 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.V1alpha3CompositeGangSchedulingPolicy; +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; + +/** + * CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set. + */ +@ApiModel(description = "CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3CompositePodGroupSchedulingPolicy { + public static final String SERIALIZED_NAME_BASIC = "basic"; + @SerializedName(SERIALIZED_NAME_BASIC) + @jakarta.annotation.Nullable + private Object basic; + + public static final String SERIALIZED_NAME_GANG = "gang"; + @SerializedName(SERIALIZED_NAME_GANG) + @jakarta.annotation.Nullable + private V1alpha3CompositeGangSchedulingPolicy gang; + + public V1alpha3CompositePodGroupSchedulingPolicy() { + } + + public V1alpha3CompositePodGroupSchedulingPolicy basic(@jakarta.annotation.Nullable Object basic) { + this.basic = basic; + return this; + } + + /** + * basic specifies that the groups of this composite group should be scheduled independently. This field is immutable. + * @return basic + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "basic specifies that the groups of this composite group should be scheduled independently. This field is immutable.") + public Object getBasic() { + return basic; + } + + public void setBasic(@jakarta.annotation.Nullable Object basic) { + this.basic = basic; + } + + + public V1alpha3CompositePodGroupSchedulingPolicy gang(@jakarta.annotation.Nullable V1alpha3CompositeGangSchedulingPolicy gang) { + this.gang = gang; + return this; + } + + /** + * Get gang + * @return gang + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3CompositeGangSchedulingPolicy getGang() { + return gang; + } + + public void setGang(@jakarta.annotation.Nullable V1alpha3CompositeGangSchedulingPolicy gang) { + this.gang = gang; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3CompositePodGroupSchedulingPolicy v1alpha3CompositePodGroupSchedulingPolicy = (V1alpha3CompositePodGroupSchedulingPolicy) o; + return Objects.equals(this.basic, v1alpha3CompositePodGroupSchedulingPolicy.basic) && + Objects.equals(this.gang, v1alpha3CompositePodGroupSchedulingPolicy.gang); + } + + @Override + public int hashCode() { + return Objects.hash(basic, gang); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3CompositePodGroupSchedulingPolicy {\n"); + sb.append(" basic: ").append(toIndentedString(basic)).append("\n"); + sb.append(" gang: ").append(toIndentedString(gang)).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(Arrays.asList("basic", "gang")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3CompositePodGroupSchedulingPolicy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3CompositePodGroupSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3CompositePodGroupSchedulingPolicy is not found in the empty JSON string", V1alpha3CompositePodGroupSchedulingPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3CompositePodGroupSchedulingPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3CompositePodGroupSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `gang` + if (jsonObj.get("gang") != null && !jsonObj.get("gang").isJsonNull()) { + V1alpha3CompositeGangSchedulingPolicy.validateJsonElement(jsonObj.get("gang")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3CompositePodGroupSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3CompositePodGroupSchedulingPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3CompositePodGroupSchedulingPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3CompositePodGroupSchedulingPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3CompositePodGroupSchedulingPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3CompositePodGroupSchedulingPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3CompositePodGroupSchedulingPolicy + * @throws IOException if the JSON string is invalid with respect to V1alpha3CompositePodGroupSchedulingPolicy + */ + public static V1alpha3CompositePodGroupSchedulingPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3CompositePodGroupSchedulingPolicy.class); + } + + /** + * Convert an instance of V1alpha3CompositePodGroupSchedulingPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSpec.java new file mode 100644 index 0000000000..4f64fe7a7f --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupSpec.java @@ -0,0 +1,425 @@ +/* +Copyright 2026 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.V1alpha3CompositeDisruptionMode; +import io.kubernetes.client.openapi.models.V1alpha3CompositePodGroupSchedulingConstraints; +import io.kubernetes.client.openapi.models.V1alpha3CompositePodGroupSchedulingPolicy; +import io.kubernetes.client.openapi.models.V1alpha3WorkloadReference; +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; + +/** + * CompositePodGroupSpec defines the desired state of CompositePodGroup. + */ +@ApiModel(description = "CompositePodGroupSpec defines the desired state of CompositePodGroup.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3CompositePodGroupSpec { + public static final String SERIALIZED_NAME_DISRUPTION_MODE = "disruptionMode"; + @SerializedName(SERIALIZED_NAME_DISRUPTION_MODE) + @jakarta.annotation.Nullable + private V1alpha3CompositeDisruptionMode disruptionMode; + + public static final String SERIALIZED_NAME_PARENT_COMPOSITE_POD_GROUP_NAME = "parentCompositePodGroupName"; + @SerializedName(SERIALIZED_NAME_PARENT_COMPOSITE_POD_GROUP_NAME) + @jakarta.annotation.Nullable + private String parentCompositePodGroupName; + + 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_SCHEDULING_CONSTRAINTS = "schedulingConstraints"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_CONSTRAINTS) + @jakarta.annotation.Nullable + private V1alpha3CompositePodGroupSchedulingConstraints schedulingConstraints; + + public static final String SERIALIZED_NAME_SCHEDULING_POLICY = "schedulingPolicy"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_POLICY) + @jakarta.annotation.Nonnull + private V1alpha3CompositePodGroupSchedulingPolicy schedulingPolicy; + + public static final String SERIALIZED_NAME_WORKLOAD_REF = "workloadRef"; + @SerializedName(SERIALIZED_NAME_WORKLOAD_REF) + @jakarta.annotation.Nonnull + private V1alpha3WorkloadReference workloadRef; + + public V1alpha3CompositePodGroupSpec() { + } + + public V1alpha3CompositePodGroupSpec disruptionMode(@jakarta.annotation.Nullable V1alpha3CompositeDisruptionMode disruptionMode) { + this.disruptionMode = disruptionMode; + return this; + } + + /** + * Get disruptionMode + * @return disruptionMode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3CompositeDisruptionMode getDisruptionMode() { + return disruptionMode; + } + + public void setDisruptionMode(@jakarta.annotation.Nullable V1alpha3CompositeDisruptionMode disruptionMode) { + this.disruptionMode = disruptionMode; + } + + + public V1alpha3CompositePodGroupSpec parentCompositePodGroupName(@jakarta.annotation.Nullable String parentCompositePodGroupName) { + this.parentCompositePodGroupName = parentCompositePodGroupName; + return this; + } + + /** + * parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite pod group. It must be a DNS name. If it's nil, then this composite pod group is a root of a workload's hierarchy. This field is immutable. + * @return parentCompositePodGroupName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite pod group. It must be a DNS name. If it's nil, then this composite pod group is a root of a workload's hierarchy. This field is immutable.") + public String getParentCompositePodGroupName() { + return parentCompositePodGroupName; + } + + public void setParentCompositePodGroupName(@jakarta.annotation.Nullable String parentCompositePodGroupName) { + this.parentCompositePodGroupName = parentCompositePodGroupName; + } + + + public V1alpha3CompositePodGroupSpec preemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return this; + } + + /** + * preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. + * @return preemptionPolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + public String getPreemptionPolicy() { + return preemptionPolicy; + } + + public void setPreemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + } + + + public V1alpha3CompositePodGroupSpec priority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + return this; + } + + /** + * priority is the value of priority of this composite pod group. Various system components use this field to find the priority of the composite pod group. 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. This field is immutable. + * @return priority + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "priority is the value of priority of this composite pod group. Various system components use this field to find the priority of the composite pod group. 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. This field is immutable.") + public Integer getPriority() { + return priority; + } + + public void setPriority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + } + + + public V1alpha3CompositePodGroupSpec priorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + return this; + } + + /** + * priorityClassName defines the priority that should be considered when scheduling this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. If left unspecified, it is validated and resolved similarly to the PriorityClassName field in Pods (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the composite pod group's priority will be zero). This field is immutable. + * @return priorityClassName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "priorityClassName defines the priority that should be considered when scheduling this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. If left unspecified, it is validated and resolved similarly to the PriorityClassName field in Pods (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the composite pod group's priority will be zero). This field is immutable.") + public String getPriorityClassName() { + return priorityClassName; + } + + public void setPriorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + } + + + public V1alpha3CompositePodGroupSpec schedulingConstraints(@jakarta.annotation.Nullable V1alpha3CompositePodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + return this; + } + + /** + * Get schedulingConstraints + * @return schedulingConstraints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3CompositePodGroupSchedulingConstraints getSchedulingConstraints() { + return schedulingConstraints; + } + + public void setSchedulingConstraints(@jakarta.annotation.Nullable V1alpha3CompositePodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + } + + + public V1alpha3CompositePodGroupSpec schedulingPolicy(@jakarta.annotation.Nonnull V1alpha3CompositePodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + return this; + } + + /** + * Get schedulingPolicy + * @return schedulingPolicy + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha3CompositePodGroupSchedulingPolicy getSchedulingPolicy() { + return schedulingPolicy; + } + + public void setSchedulingPolicy(@jakarta.annotation.Nonnull V1alpha3CompositePodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + } + + + public V1alpha3CompositePodGroupSpec workloadRef(@jakarta.annotation.Nonnull V1alpha3WorkloadReference workloadRef) { + this.workloadRef = workloadRef; + return this; + } + + /** + * Get workloadRef + * @return workloadRef + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha3WorkloadReference getWorkloadRef() { + return workloadRef; + } + + public void setWorkloadRef(@jakarta.annotation.Nonnull V1alpha3WorkloadReference workloadRef) { + this.workloadRef = workloadRef; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3CompositePodGroupSpec v1alpha3CompositePodGroupSpec = (V1alpha3CompositePodGroupSpec) o; + return Objects.equals(this.disruptionMode, v1alpha3CompositePodGroupSpec.disruptionMode) && + Objects.equals(this.parentCompositePodGroupName, v1alpha3CompositePodGroupSpec.parentCompositePodGroupName) && + Objects.equals(this.preemptionPolicy, v1alpha3CompositePodGroupSpec.preemptionPolicy) && + Objects.equals(this.priority, v1alpha3CompositePodGroupSpec.priority) && + Objects.equals(this.priorityClassName, v1alpha3CompositePodGroupSpec.priorityClassName) && + Objects.equals(this.schedulingConstraints, v1alpha3CompositePodGroupSpec.schedulingConstraints) && + Objects.equals(this.schedulingPolicy, v1alpha3CompositePodGroupSpec.schedulingPolicy) && + Objects.equals(this.workloadRef, v1alpha3CompositePodGroupSpec.workloadRef); + } + + @Override + public int hashCode() { + return Objects.hash(disruptionMode, parentCompositePodGroupName, preemptionPolicy, priority, priorityClassName, schedulingConstraints, schedulingPolicy, workloadRef); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3CompositePodGroupSpec {\n"); + sb.append(" disruptionMode: ").append(toIndentedString(disruptionMode)).append("\n"); + sb.append(" parentCompositePodGroupName: ").append(toIndentedString(parentCompositePodGroupName)).append("\n"); + sb.append(" preemptionPolicy: ").append(toIndentedString(preemptionPolicy)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" priorityClassName: ").append(toIndentedString(priorityClassName)).append("\n"); + sb.append(" schedulingConstraints: ").append(toIndentedString(schedulingConstraints)).append("\n"); + sb.append(" schedulingPolicy: ").append(toIndentedString(schedulingPolicy)).append("\n"); + sb.append(" workloadRef: ").append(toIndentedString(workloadRef)).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(Arrays.asList("disruptionMode", "parentCompositePodGroupName", "preemptionPolicy", "priority", "priorityClassName", "schedulingConstraints", "schedulingPolicy", "workloadRef")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("schedulingPolicy", "workloadRef")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3CompositePodGroupSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3CompositePodGroupSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3CompositePodGroupSpec is not found in the empty JSON string", V1alpha3CompositePodGroupSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3CompositePodGroupSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3CompositePodGroupSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3CompositePodGroupSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `disruptionMode` + if (jsonObj.get("disruptionMode") != null && !jsonObj.get("disruptionMode").isJsonNull()) { + V1alpha3CompositeDisruptionMode.validateJsonElement(jsonObj.get("disruptionMode")); + } + if ((jsonObj.get("parentCompositePodGroupName") != null && !jsonObj.get("parentCompositePodGroupName").isJsonNull()) && !jsonObj.get("parentCompositePodGroupName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `parentCompositePodGroupName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parentCompositePodGroupName").toString())); + } + if ((jsonObj.get("preemptionPolicy") != null && !jsonObj.get("preemptionPolicy").isJsonNull()) && !jsonObj.get("preemptionPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `preemptionPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preemptionPolicy").toString())); + } + if ((jsonObj.get("priorityClassName") != null && !jsonObj.get("priorityClassName").isJsonNull()) && !jsonObj.get("priorityClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `priorityClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priorityClassName").toString())); + } + // validate the optional field `schedulingConstraints` + if (jsonObj.get("schedulingConstraints") != null && !jsonObj.get("schedulingConstraints").isJsonNull()) { + V1alpha3CompositePodGroupSchedulingConstraints.validateJsonElement(jsonObj.get("schedulingConstraints")); + } + // validate the required field `schedulingPolicy` + V1alpha3CompositePodGroupSchedulingPolicy.validateJsonElement(jsonObj.get("schedulingPolicy")); + // validate the required field `workloadRef` + V1alpha3WorkloadReference.validateJsonElement(jsonObj.get("workloadRef")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3CompositePodGroupSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3CompositePodGroupSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3CompositePodGroupSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3CompositePodGroupSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3CompositePodGroupSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3CompositePodGroupSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3CompositePodGroupSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha3CompositePodGroupSpec + */ + public static V1alpha3CompositePodGroupSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3CompositePodGroupSpec.class); + } + + /** + * Convert an instance of V1alpha3CompositePodGroupSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupStatus.java new file mode 100644 index 0000000000..22ddb21da4 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupStatus.java @@ -0,0 +1,229 @@ +/* +Copyright 2026 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; + +/** + * CompositePodGroupStatus represents information about the status of a composite pod group. + */ +@ApiModel(description = "CompositePodGroupStatus represents information about the status of a composite pod group.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3CompositePodGroupStatus { + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable + private List conditions = new ArrayList<>(); + + public V1alpha3CompositePodGroupStatus() { + } + + public V1alpha3CompositePodGroupStatus conditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + return this; + } + + public V1alpha3CompositePodGroupStatus addConditionsItem(V1Condition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * conditions represent the latest observations of the CompositePodGroup's state. Known condition types: - \"CompositePodGroupInitiallyScheduled\": Indicates whether the overall scheduling requirement for the subtree under this CompositePodGroup has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently deleted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the CompositePodGroup is about to be terminated due to disruption such as preemption. Known reasons for the CompositePodGroupInitiallyScheduled condition: - \"Unschedulable\": The CompositePodGroup's subtree could not be placed due to resource constraints, affinity/anti-affinity, or topological constraints. - \"SchedulerError\": The CompositePodGroup cannot be scheduled due to some internal error that occurred during scheduling. - \"Invalid\": Set to True when kube-scheduler detects an invalid group layout during runtime validation. The `message` field details the specific layout violation (such as a detected cycle, exceeding the maximum depth of 4, or referencing multiple distinct Workloads). Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The CompositePodGroup was targeted by the scheduler's preemption loop to free up capacity for higher-priority preemptors. + * @return conditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "conditions represent the latest observations of the CompositePodGroup's state. Known condition types: - \"CompositePodGroupInitiallyScheduled\": Indicates whether the overall scheduling requirement for the subtree under this CompositePodGroup has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently deleted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the CompositePodGroup is about to be terminated due to disruption such as preemption. Known reasons for the CompositePodGroupInitiallyScheduled condition: - \"Unschedulable\": The CompositePodGroup's subtree could not be placed due to resource constraints, affinity/anti-affinity, or topological constraints. - \"SchedulerError\": The CompositePodGroup cannot be scheduled due to some internal error that occurred during scheduling. - \"Invalid\": Set to True when kube-scheduler detects an invalid group layout during runtime validation. The `message` field details the specific layout violation (such as a detected cycle, exceeding the maximum depth of 4, or referencing multiple distinct Workloads). Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The CompositePodGroup was targeted by the scheduler's preemption loop to free up capacity for higher-priority preemptors.") + 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; + } + V1alpha3CompositePodGroupStatus v1alpha3CompositePodGroupStatus = (V1alpha3CompositePodGroupStatus) o; + return Objects.equals(this.conditions, v1alpha3CompositePodGroupStatus.conditions); + } + + @Override + public int hashCode() { + return Objects.hash(conditions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3CompositePodGroupStatus {\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(Arrays.asList("conditions")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3CompositePodGroupStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3CompositePodGroupStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3CompositePodGroupStatus is not found in the empty JSON string", V1alpha3CompositePodGroupStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3CompositePodGroupStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3CompositePodGroupStatus` 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(java.util.Locale.ROOT, "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 (!V1alpha3CompositePodGroupStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3CompositePodGroupStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3CompositePodGroupStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3CompositePodGroupStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3CompositePodGroupStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3CompositePodGroupStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3CompositePodGroupStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha3CompositePodGroupStatus + */ + public static V1alpha3CompositePodGroupStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3CompositePodGroupStatus.class); + } + + /** + * Convert an instance of V1alpha3CompositePodGroupStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupTemplate.java new file mode 100644 index 0000000000..027ccccc4b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CompositePodGroupTemplate.java @@ -0,0 +1,496 @@ +/* +Copyright 2026 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.V1alpha3CompositeDisruptionMode; +import io.kubernetes.client.openapi.models.V1alpha3CompositePodGroupSchedulingConstraints; +import io.kubernetes.client.openapi.models.V1alpha3CompositePodGroupSchedulingPolicy; +import io.kubernetes.client.openapi.models.V1alpha3PodGroupTemplate; +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; + +/** + * CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy. + */ +@ApiModel(description = "CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3CompositePodGroupTemplate { + public static final String SERIALIZED_NAME_COMPOSITE_POD_GROUP_TEMPLATES = "compositePodGroupTemplates"; + @SerializedName(SERIALIZED_NAME_COMPOSITE_POD_GROUP_TEMPLATES) + @jakarta.annotation.Nullable + private List compositePodGroupTemplates = new ArrayList<>(); + + public static final String SERIALIZED_NAME_DISRUPTION_MODE = "disruptionMode"; + @SerializedName(SERIALIZED_NAME_DISRUPTION_MODE) + @jakarta.annotation.Nullable + private V1alpha3CompositeDisruptionMode disruptionMode; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_POD_GROUP_TEMPLATES = "podGroupTemplates"; + @SerializedName(SERIALIZED_NAME_POD_GROUP_TEMPLATES) + @jakarta.annotation.Nullable + private List podGroupTemplates = new ArrayList<>(); + + 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_SCHEDULING_CONSTRAINTS = "schedulingConstraints"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_CONSTRAINTS) + @jakarta.annotation.Nullable + private V1alpha3CompositePodGroupSchedulingConstraints schedulingConstraints; + + public static final String SERIALIZED_NAME_SCHEDULING_POLICY = "schedulingPolicy"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_POLICY) + @jakarta.annotation.Nonnull + private V1alpha3CompositePodGroupSchedulingPolicy schedulingPolicy; + + public V1alpha3CompositePodGroupTemplate() { + } + + public V1alpha3CompositePodGroupTemplate compositePodGroupTemplates(@jakarta.annotation.Nullable List compositePodGroupTemplates) { + this.compositePodGroupTemplates = compositePodGroupTemplates; + return this; + } + + public V1alpha3CompositePodGroupTemplate addCompositePodGroupTemplatesItem(V1alpha3CompositePodGroupTemplate compositePodGroupTemplatesItem) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + this.compositePodGroupTemplates.add(compositePodGroupTemplatesItem); + return this; + } + + /** + * compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. + * @return compositePodGroupTemplates + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.") + public List getCompositePodGroupTemplates() { + return compositePodGroupTemplates; + } + + public void setCompositePodGroupTemplates(@jakarta.annotation.Nullable List compositePodGroupTemplates) { + this.compositePodGroupTemplates = compositePodGroupTemplates; + } + + + public V1alpha3CompositePodGroupTemplate disruptionMode(@jakarta.annotation.Nullable V1alpha3CompositeDisruptionMode disruptionMode) { + this.disruptionMode = disruptionMode; + return this; + } + + /** + * Get disruptionMode + * @return disruptionMode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3CompositeDisruptionMode getDisruptionMode() { + return disruptionMode; + } + + public void setDisruptionMode(@jakarta.annotation.Nullable V1alpha3CompositeDisruptionMode disruptionMode) { + this.disruptionMode = disruptionMode; + } + + + public V1alpha3CompositePodGroupTemplate name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1alpha3CompositePodGroupTemplate podGroupTemplates(@jakarta.annotation.Nullable List podGroupTemplates) { + this.podGroupTemplates = podGroupTemplates; + return this; + } + + public V1alpha3CompositePodGroupTemplate addPodGroupTemplatesItem(V1alpha3PodGroupTemplate podGroupTemplatesItem) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + this.podGroupTemplates.add(podGroupTemplatesItem); + return this; + } + + /** + * podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. + * @return podGroupTemplates + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.") + public List getPodGroupTemplates() { + return podGroupTemplates; + } + + public void setPodGroupTemplates(@jakarta.annotation.Nullable List podGroupTemplates) { + this.podGroupTemplates = podGroupTemplates; + } + + + public V1alpha3CompositePodGroupTemplate preemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return this; + } + + /** + * preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. + * @return preemptionPolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + public String getPreemptionPolicy() { + return preemptionPolicy; + } + + public void setPreemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + } + + + public V1alpha3CompositePodGroupTemplate priority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + return this; + } + + /** + * priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite pod group. 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. This field is immutable. + * @return priority + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite pod group. 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. This field is immutable.") + public Integer getPriority() { + return priority; + } + + public void setPriority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + } + + + public V1alpha3CompositePodGroupTemplate priorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + return this; + } + + /** + * priorityClassName indicates the priority that should be considered when scheduling a composite pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, composite pod groups created from this template will have the priority set to zero. This field is immutable. + * @return priorityClassName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "priorityClassName indicates the priority that should be considered when scheduling a composite pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, composite pod groups created from this template will have the priority set to zero. This field is immutable.") + public String getPriorityClassName() { + return priorityClassName; + } + + public void setPriorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + } + + + public V1alpha3CompositePodGroupTemplate schedulingConstraints(@jakarta.annotation.Nullable V1alpha3CompositePodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + return this; + } + + /** + * Get schedulingConstraints + * @return schedulingConstraints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3CompositePodGroupSchedulingConstraints getSchedulingConstraints() { + return schedulingConstraints; + } + + public void setSchedulingConstraints(@jakarta.annotation.Nullable V1alpha3CompositePodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + } + + + public V1alpha3CompositePodGroupTemplate schedulingPolicy(@jakarta.annotation.Nonnull V1alpha3CompositePodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + return this; + } + + /** + * Get schedulingPolicy + * @return schedulingPolicy + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha3CompositePodGroupSchedulingPolicy getSchedulingPolicy() { + return schedulingPolicy; + } + + public void setSchedulingPolicy(@jakarta.annotation.Nonnull V1alpha3CompositePodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3CompositePodGroupTemplate v1alpha3CompositePodGroupTemplate = (V1alpha3CompositePodGroupTemplate) o; + return Objects.equals(this.compositePodGroupTemplates, v1alpha3CompositePodGroupTemplate.compositePodGroupTemplates) && + Objects.equals(this.disruptionMode, v1alpha3CompositePodGroupTemplate.disruptionMode) && + Objects.equals(this.name, v1alpha3CompositePodGroupTemplate.name) && + Objects.equals(this.podGroupTemplates, v1alpha3CompositePodGroupTemplate.podGroupTemplates) && + Objects.equals(this.preemptionPolicy, v1alpha3CompositePodGroupTemplate.preemptionPolicy) && + Objects.equals(this.priority, v1alpha3CompositePodGroupTemplate.priority) && + Objects.equals(this.priorityClassName, v1alpha3CompositePodGroupTemplate.priorityClassName) && + Objects.equals(this.schedulingConstraints, v1alpha3CompositePodGroupTemplate.schedulingConstraints) && + Objects.equals(this.schedulingPolicy, v1alpha3CompositePodGroupTemplate.schedulingPolicy); + } + + @Override + public int hashCode() { + return Objects.hash(compositePodGroupTemplates, disruptionMode, name, podGroupTemplates, preemptionPolicy, priority, priorityClassName, schedulingConstraints, schedulingPolicy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3CompositePodGroupTemplate {\n"); + sb.append(" compositePodGroupTemplates: ").append(toIndentedString(compositePodGroupTemplates)).append("\n"); + sb.append(" disruptionMode: ").append(toIndentedString(disruptionMode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" podGroupTemplates: ").append(toIndentedString(podGroupTemplates)).append("\n"); + sb.append(" preemptionPolicy: ").append(toIndentedString(preemptionPolicy)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" priorityClassName: ").append(toIndentedString(priorityClassName)).append("\n"); + sb.append(" schedulingConstraints: ").append(toIndentedString(schedulingConstraints)).append("\n"); + sb.append(" schedulingPolicy: ").append(toIndentedString(schedulingPolicy)).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(Arrays.asList("compositePodGroupTemplates", "disruptionMode", "name", "podGroupTemplates", "preemptionPolicy", "priority", "priorityClassName", "schedulingConstraints", "schedulingPolicy")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("name", "schedulingPolicy")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3CompositePodGroupTemplate + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3CompositePodGroupTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3CompositePodGroupTemplate is not found in the empty JSON string", V1alpha3CompositePodGroupTemplate.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3CompositePodGroupTemplate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3CompositePodGroupTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3CompositePodGroupTemplate.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("compositePodGroupTemplates") != null && !jsonObj.get("compositePodGroupTemplates").isJsonNull()) { + JsonArray jsonArraycompositePodGroupTemplates = jsonObj.getAsJsonArray("compositePodGroupTemplates"); + if (jsonArraycompositePodGroupTemplates != null) { + // ensure the json data is an array + if (!jsonObj.get("compositePodGroupTemplates").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `compositePodGroupTemplates` to be an array in the JSON string but got `%s`", jsonObj.get("compositePodGroupTemplates").toString())); + } + + // validate the optional field `compositePodGroupTemplates` (array) + for (int i = 0; i < jsonArraycompositePodGroupTemplates.size(); i++) { + V1alpha3CompositePodGroupTemplate.validateJsonElement(jsonArraycompositePodGroupTemplates.get(i)); + }; + } + } + // validate the optional field `disruptionMode` + if (jsonObj.get("disruptionMode") != null && !jsonObj.get("disruptionMode").isJsonNull()) { + V1alpha3CompositeDisruptionMode.validateJsonElement(jsonObj.get("disruptionMode")); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (jsonObj.get("podGroupTemplates") != null && !jsonObj.get("podGroupTemplates").isJsonNull()) { + JsonArray jsonArraypodGroupTemplates = jsonObj.getAsJsonArray("podGroupTemplates"); + if (jsonArraypodGroupTemplates != null) { + // ensure the json data is an array + if (!jsonObj.get("podGroupTemplates").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podGroupTemplates` to be an array in the JSON string but got `%s`", jsonObj.get("podGroupTemplates").toString())); + } + + // validate the optional field `podGroupTemplates` (array) + for (int i = 0; i < jsonArraypodGroupTemplates.size(); i++) { + V1alpha3PodGroupTemplate.validateJsonElement(jsonArraypodGroupTemplates.get(i)); + }; + } + } + if ((jsonObj.get("preemptionPolicy") != null && !jsonObj.get("preemptionPolicy").isJsonNull()) && !jsonObj.get("preemptionPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `preemptionPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preemptionPolicy").toString())); + } + if ((jsonObj.get("priorityClassName") != null && !jsonObj.get("priorityClassName").isJsonNull()) && !jsonObj.get("priorityClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `priorityClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priorityClassName").toString())); + } + // validate the optional field `schedulingConstraints` + if (jsonObj.get("schedulingConstraints") != null && !jsonObj.get("schedulingConstraints").isJsonNull()) { + V1alpha3CompositePodGroupSchedulingConstraints.validateJsonElement(jsonObj.get("schedulingConstraints")); + } + // validate the required field `schedulingPolicy` + V1alpha3CompositePodGroupSchedulingPolicy.validateJsonElement(jsonObj.get("schedulingPolicy")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3CompositePodGroupTemplate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3CompositePodGroupTemplate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3CompositePodGroupTemplate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3CompositePodGroupTemplate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3CompositePodGroupTemplate read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3CompositePodGroupTemplate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3CompositePodGroupTemplate + * @throws IOException if the JSON string is invalid with respect to V1alpha3CompositePodGroupTemplate + */ + public static V1alpha3CompositePodGroupTemplate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3CompositePodGroupTemplate.class); + } + + /** + * Convert an instance of V1alpha3CompositePodGroupTemplate to an JSON 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 index 4289f56746..6dd2009970 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3DeviceTaint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) 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 index d756640545..99471c39d3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3DeviceTaintRule implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 index dba2c40db0..c21f33bb38 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java @@ -54,7 +54,7 @@ * DeviceTaintRuleList is a collection of DeviceTaintRules. */ @ApiModel(description = "DeviceTaintRuleList is a collection of DeviceTaintRules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3DeviceTaintRuleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 index fd80c43f45..61c3ab75cb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3DeviceTaintRuleSpec { public static final String SERIALIZED_NAME_DEVICE_SELECTOR = "deviceSelector"; @SerializedName(SERIALIZED_NAME_DEVICE_SELECTOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatus.java index a179027e8a..3db2150ad3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatus.java @@ -53,7 +53,7 @@ * DeviceTaintRuleStatus provides information about an on-going pod eviction. */ @ApiModel(description = "DeviceTaintRuleStatus provides information about an on-going pod eviction.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3DeviceTaintRuleStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) 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 index f65618ebf8..4c31b71e6a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3DeviceTaintSelector { public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DisruptionMode.java similarity index 58% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DisruptionMode.java index ba1d80e966..6c4c0b0974 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DisruptionMode.java @@ -21,9 +21,7 @@ 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; @@ -49,44 +47,61 @@ import io.kubernetes.client.openapi.JSON; /** - * ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. + * DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set. */ -@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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1beta1ServiceCIDRSpec { - public static final String SERIALIZED_NAME_CIDRS = "cidrs"; - @SerializedName(SERIALIZED_NAME_CIDRS) +@ApiModel(description = "DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3DisruptionMode { + public static final String SERIALIZED_NAME_ALL = "all"; + @SerializedName(SERIALIZED_NAME_ALL) + @jakarta.annotation.Nullable + private Object all; + + public static final String SERIALIZED_NAME_SINGLE = "single"; + @SerializedName(SERIALIZED_NAME_SINGLE) @jakarta.annotation.Nullable - private List cidrs = new ArrayList<>(); + private Object single; - public V1beta1ServiceCIDRSpec() { + public V1alpha3DisruptionMode() { } - public V1beta1ServiceCIDRSpec cidrs(@jakarta.annotation.Nullable List cidrs) { - this.cidrs = cidrs; + public V1alpha3DisruptionMode all(@jakarta.annotation.Nullable Object all) { + this.all = all; return this; } - public V1beta1ServiceCIDRSpec addCidrsItem(String cidrsItem) { - if (this.cidrs == null) { - this.cidrs = new ArrayList<>(); - } - this.cidrs.add(cidrsItem); + /** + * all specifies that all children can only be disrupted together. + * @return all + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "all specifies that all children can only be disrupted together.") + public Object getAll() { + return all; + } + + public void setAll(@jakarta.annotation.Nullable Object all) { + this.all = all; + } + + + public V1alpha3DisruptionMode single(@jakarta.annotation.Nullable Object single) { + this.single = single; 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 + * single specifies that children can be disrupted independently from each other. + * @return single */ @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; + @ApiModelProperty(value = "single specifies that children can be disrupted independently from each other.") + public Object getSingle() { + return single; } - public void setCidrs(@jakarta.annotation.Nullable List cidrs) { - this.cidrs = cidrs; + public void setSingle(@jakarta.annotation.Nullable Object single) { + this.single = single; } @@ -99,20 +114,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1ServiceCIDRSpec v1beta1ServiceCIDRSpec = (V1beta1ServiceCIDRSpec) o; - return Objects.equals(this.cidrs, v1beta1ServiceCIDRSpec.cidrs); + V1alpha3DisruptionMode v1alpha3DisruptionMode = (V1alpha3DisruptionMode) o; + return Objects.equals(this.all, v1alpha3DisruptionMode.all) && + Objects.equals(this.single, v1alpha3DisruptionMode.single); } @Override public int hashCode() { - return Objects.hash(cidrs); + return Objects.hash(all, single); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ServiceCIDRSpec {\n"); - sb.append(" cidrs: ").append(toIndentedString(cidrs)).append("\n"); + sb.append("class V1alpha3DisruptionMode {\n"); + sb.append(" all: ").append(toIndentedString(all)).append("\n"); + sb.append(" single: ").append(toIndentedString(single)).append("\n"); sb.append("}"); return sb.toString(); } @@ -134,7 +151,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("cidrs")); + openapiFields = new HashSet(Arrays.asList("all", "single")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -144,49 +161,45 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1ServiceCIDRSpec + * @throws IOException if the JSON Element is invalid with respect to V1alpha3DisruptionMode */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1ServiceCIDRSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1ServiceCIDRSpec is not found in the empty JSON string", V1beta1ServiceCIDRSpec.openapiRequiredFields.toString())); + if (!V1alpha3DisruptionMode.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3DisruptionMode is not found in the empty JSON string", V1alpha3DisruptionMode.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1ServiceCIDRSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ServiceCIDRSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3DisruptionMode.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3DisruptionMode` 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(java.util.Locale.ROOT, "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 (!V1beta1ServiceCIDRSpec.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1ServiceCIDRSpec' and its subtypes + if (!V1alpha3DisruptionMode.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3DisruptionMode' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ServiceCIDRSpec.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DisruptionMode.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1ServiceCIDRSpec value) throws IOException { + public void write(JsonWriter out, V1alpha3DisruptionMode value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1ServiceCIDRSpec read(JsonReader in) throws IOException { + public V1alpha3DisruptionMode read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -197,18 +210,18 @@ public V1beta1ServiceCIDRSpec read(JsonReader in) throws IOException { } /** - * Create an instance of V1beta1ServiceCIDRSpec given an JSON string + * Create an instance of V1alpha3DisruptionMode given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1ServiceCIDRSpec - * @throws IOException if the JSON string is invalid with respect to V1beta1ServiceCIDRSpec + * @return An instance of V1alpha3DisruptionMode + * @throws IOException if the JSON string is invalid with respect to V1alpha3DisruptionMode */ - public static V1beta1ServiceCIDRSpec fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1ServiceCIDRSpec.class); + public static V1alpha3DisruptionMode fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3DisruptionMode.class); } /** - * Convert an instance of V1beta1ServiceCIDRSpec to an JSON string + * Convert an instance of V1alpha3DisruptionMode to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3GangSchedulingPolicy.java similarity index 68% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicy.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3GangSchedulingPolicy.java index 4b0a26a0eb..16834cff94 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3GangSchedulingPolicy.java @@ -50,27 +50,27 @@ * GangSchedulingPolicy defines the parameters for gang scheduling. */ @ApiModel(description = "GangSchedulingPolicy defines the parameters for gang scheduling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2GangSchedulingPolicy { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3GangSchedulingPolicy { public static final String SERIALIZED_NAME_MIN_COUNT = "minCount"; @SerializedName(SERIALIZED_NAME_MIN_COUNT) @jakarta.annotation.Nonnull private Integer minCount; - public V1alpha2GangSchedulingPolicy() { + public V1alpha3GangSchedulingPolicy() { } - public V1alpha2GangSchedulingPolicy minCount(@jakarta.annotation.Nonnull Integer minCount) { + public V1alpha3GangSchedulingPolicy minCount(@jakarta.annotation.Nonnull Integer minCount) { this.minCount = minCount; return this; } /** - * MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. + * minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles. * @return minCount */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.") + @ApiModelProperty(required = true, value = "minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.") public Integer getMinCount() { return minCount; } @@ -89,8 +89,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2GangSchedulingPolicy v1alpha2GangSchedulingPolicy = (V1alpha2GangSchedulingPolicy) o; - return Objects.equals(this.minCount, v1alpha2GangSchedulingPolicy.minCount); + V1alpha3GangSchedulingPolicy v1alpha3GangSchedulingPolicy = (V1alpha3GangSchedulingPolicy) o; + return Objects.equals(this.minCount, v1alpha3GangSchedulingPolicy.minCount); } @Override @@ -101,7 +101,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2GangSchedulingPolicy {\n"); + sb.append("class V1alpha3GangSchedulingPolicy {\n"); sb.append(" minCount: ").append(toIndentedString(minCount)).append("\n"); sb.append("}"); return sb.toString(); @@ -134,25 +134,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2GangSchedulingPolicy + * @throws IOException if the JSON Element is invalid with respect to V1alpha3GangSchedulingPolicy */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2GangSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2GangSchedulingPolicy is not found in the empty JSON string", V1alpha2GangSchedulingPolicy.openapiRequiredFields.toString())); + if (!V1alpha3GangSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3GangSchedulingPolicy is not found in the empty JSON string", V1alpha3GangSchedulingPolicy.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2GangSchedulingPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2GangSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3GangSchedulingPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3GangSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha2GangSchedulingPolicy.openapiRequiredFields) { + for (String requiredField : V1alpha3GangSchedulingPolicy.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -164,22 +164,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2GangSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2GangSchedulingPolicy' and its subtypes + if (!V1alpha3GangSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3GangSchedulingPolicy' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2GangSchedulingPolicy.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3GangSchedulingPolicy.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2GangSchedulingPolicy value) throws IOException { + public void write(JsonWriter out, V1alpha3GangSchedulingPolicy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2GangSchedulingPolicy read(JsonReader in) throws IOException { + public V1alpha3GangSchedulingPolicy read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -190,18 +190,18 @@ public V1alpha2GangSchedulingPolicy read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha2GangSchedulingPolicy given an JSON string + * Create an instance of V1alpha3GangSchedulingPolicy given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2GangSchedulingPolicy - * @throws IOException if the JSON string is invalid with respect to V1alpha2GangSchedulingPolicy + * @return An instance of V1alpha3GangSchedulingPolicy + * @throws IOException if the JSON string is invalid with respect to V1alpha3GangSchedulingPolicy */ - public static V1alpha2GangSchedulingPolicy fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2GangSchedulingPolicy.class); + public static V1alpha3GangSchedulingPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3GangSchedulingPolicy.class); } /** - * Convert an instance of V1alpha2GangSchedulingPolicy to an JSON string + * Convert an instance of V1alpha3GangSchedulingPolicy to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PartitionTypeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PartitionTypeStatus.java new file mode 100644 index 0000000000..41a246b125 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PartitionTypeStatus.java @@ -0,0 +1,298 @@ +/* +Copyright 2026 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; + +/** + * PartitionTypeStatus reports allocatability for a single partition type, identified by the value of a grouping attribute. + */ +@ApiModel(description = "PartitionTypeStatus reports allocatability for a single partition type, identified by the value of a grouping attribute.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3PartitionTypeStatus { + public static final String SERIALIZED_NAME_ALLOCATABLE = "allocatable"; + @SerializedName(SERIALIZED_NAME_ALLOCATABLE) + @jakarta.annotation.Nonnull + private Integer allocatable; + + public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTE) + @jakarta.annotation.Nonnull + private String attribute; + + public static final String SERIALIZED_NAME_TOTAL = "total"; + @SerializedName(SERIALIZED_NAME_TOTAL) + @jakarta.annotation.Nonnull + private Integer total; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + @jakarta.annotation.Nonnull + private String type; + + public V1alpha3PartitionTypeStatus() { + } + + public V1alpha3PartitionTypeStatus allocatable(@jakarta.annotation.Nonnull Integer allocatable) { + this.allocatable = allocatable; + return this; + } + + /** + * Allocatable is the number of additional devices of this partition type that could still be allocated given current shared-counter consumption. + * @return allocatable + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Allocatable is the number of additional devices of this partition type that could still be allocated given current shared-counter consumption.") + public Integer getAllocatable() { + return allocatable; + } + + public void setAllocatable(@jakarta.annotation.Nonnull Integer allocatable) { + this.allocatable = allocatable; + } + + + public V1alpha3PartitionTypeStatus attribute(@jakarta.annotation.Nonnull String attribute) { + this.attribute = attribute; + return this; + } + + /** + * Attribute is the fully qualified name of the device attribute whose value groups this entry. It is the PartitionTypeAttribute declared by the devices' own slice, or the default named in the request when their slice declares none. + * @return attribute + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Attribute is the fully qualified name of the device attribute whose value groups this entry. It is the PartitionTypeAttribute declared by the devices' own slice, or the default named in the request when their slice declares none.") + public String getAttribute() { + return attribute; + } + + public void setAttribute(@jakarta.annotation.Nonnull String attribute) { + this.attribute = attribute; + } + + + public V1alpha3PartitionTypeStatus total(@jakarta.annotation.Nonnull Integer total) { + this.total = total; + return this; + } + + /** + * Total is the number of devices of this partition type in the pool. + * @return total + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Total is the number of devices of this partition type in the pool.") + public Integer getTotal() { + return total; + } + + public void setTotal(@jakarta.annotation.Nonnull Integer total) { + this.total = total; + } + + + public V1alpha3PartitionTypeStatus type(@jakarta.annotation.Nonnull String type) { + this.type = type; + return this; + } + + /** + * Type is the partition type value (e.g. \"Full\" or \"Half\"). + * @return type + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type is the partition type value (e.g. \"Full\" or \"Half\").") + public String getType() { + return type; + } + + public void setType(@jakarta.annotation.Nonnull String type) { + this.type = type; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3PartitionTypeStatus v1alpha3PartitionTypeStatus = (V1alpha3PartitionTypeStatus) o; + return Objects.equals(this.allocatable, v1alpha3PartitionTypeStatus.allocatable) && + Objects.equals(this.attribute, v1alpha3PartitionTypeStatus.attribute) && + Objects.equals(this.total, v1alpha3PartitionTypeStatus.total) && + Objects.equals(this.type, v1alpha3PartitionTypeStatus.type); + } + + @Override + public int hashCode() { + return Objects.hash(allocatable, attribute, total, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3PartitionTypeStatus {\n"); + sb.append(" allocatable: ").append(toIndentedString(allocatable)).append("\n"); + sb.append(" attribute: ").append(toIndentedString(attribute)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).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(Arrays.asList("allocatable", "attribute", "total", "type")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("allocatable", "attribute", "total", "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 V1alpha3PartitionTypeStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3PartitionTypeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3PartitionTypeStatus is not found in the empty JSON string", V1alpha3PartitionTypeStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3PartitionTypeStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3PartitionTypeStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3PartitionTypeStatus.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("attribute").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `attribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attribute").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3PartitionTypeStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3PartitionTypeStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3PartitionTypeStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3PartitionTypeStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3PartitionTypeStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3PartitionTypeStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3PartitionTypeStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha3PartitionTypeStatus + */ + public static V1alpha3PartitionTypeStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3PartitionTypeStatus.class); + } + + /** + * Convert an instance of V1alpha3PartitionTypeStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroup.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroup.java similarity index 80% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroup.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroup.java index e717ff4981..e22228e580 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroup.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroup.java @@ -19,8 +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.V1alpha2PodGroupSpec; -import io.kubernetes.client.openapi.models.V1alpha2PodGroupStatus; +import io.kubernetes.client.openapi.models.V1alpha3PodGroupSpec; +import io.kubernetes.client.openapi.models.V1alpha3PodGroupStatus; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -53,8 +53,8 @@ * PodGroup represents a runtime instance of pods grouped together. PodGroups are created by workload controllers (Job, LWS, JobSet, etc...) from Workload.podGroupTemplates. PodGroup API enablement is toggled by the GenericWorkload feature gate. */ @ApiModel(description = "PodGroup represents a runtime instance of pods grouped together. PodGroups are created by workload controllers (Job, LWS, JobSet, etc...) from Workload.podGroupTemplates. PodGroup API enablement is toggled by the GenericWorkload feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2PodGroup implements io.kubernetes.client.common.KubernetesObject { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3PodGroup implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @jakarta.annotation.Nullable @@ -73,17 +73,17 @@ public class V1alpha2PodGroup implements io.kubernetes.client.common.KubernetesO public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) @jakarta.annotation.Nonnull - private V1alpha2PodGroupSpec spec; + private V1alpha3PodGroupSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @jakarta.annotation.Nullable - private V1alpha2PodGroupStatus status; + private V1alpha3PodGroupStatus status; - public V1alpha2PodGroup() { + public V1alpha3PodGroup() { } - public V1alpha2PodGroup apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1alpha3PodGroup apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -103,7 +103,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha2PodGroup kind(@jakarta.annotation.Nullable String kind) { + public V1alpha3PodGroup kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -123,7 +123,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha2PodGroup metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public V1alpha3PodGroup metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1alpha2PodGroup spec(@jakarta.annotation.Nonnull V1alpha2PodGroupSpec spec) { + public V1alpha3PodGroup spec(@jakarta.annotation.Nonnull V1alpha3PodGroupSpec spec) { this.spec = spec; return this; } @@ -154,16 +154,16 @@ public V1alpha2PodGroup spec(@jakarta.annotation.Nonnull V1alpha2PodGroupSpec sp */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1alpha2PodGroupSpec getSpec() { + public V1alpha3PodGroupSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1alpha2PodGroupSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1alpha3PodGroupSpec spec) { this.spec = spec; } - public V1alpha2PodGroup status(@jakarta.annotation.Nullable V1alpha2PodGroupStatus status) { + public V1alpha3PodGroup status(@jakarta.annotation.Nullable V1alpha3PodGroupStatus status) { this.status = status; return this; } @@ -174,11 +174,11 @@ public V1alpha2PodGroup status(@jakarta.annotation.Nullable V1alpha2PodGroupStat */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha2PodGroupStatus getStatus() { + public V1alpha3PodGroupStatus getStatus() { return status; } - public void setStatus(@jakarta.annotation.Nullable V1alpha2PodGroupStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1alpha3PodGroupStatus status) { this.status = status; } @@ -192,12 +192,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2PodGroup v1alpha2PodGroup = (V1alpha2PodGroup) o; - return Objects.equals(this.apiVersion, v1alpha2PodGroup.apiVersion) && - Objects.equals(this.kind, v1alpha2PodGroup.kind) && - Objects.equals(this.metadata, v1alpha2PodGroup.metadata) && - Objects.equals(this.spec, v1alpha2PodGroup.spec) && - Objects.equals(this.status, v1alpha2PodGroup.status); + V1alpha3PodGroup v1alpha3PodGroup = (V1alpha3PodGroup) o; + return Objects.equals(this.apiVersion, v1alpha3PodGroup.apiVersion) && + Objects.equals(this.kind, v1alpha3PodGroup.kind) && + Objects.equals(this.metadata, v1alpha3PodGroup.metadata) && + Objects.equals(this.spec, v1alpha3PodGroup.spec) && + Objects.equals(this.status, v1alpha3PodGroup.status); } @Override @@ -208,7 +208,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodGroup {\n"); + sb.append("class V1alpha3PodGroup {\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"); @@ -245,25 +245,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroup + * @throws IOException if the JSON Element is invalid with respect to V1alpha3PodGroup */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2PodGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroup is not found in the empty JSON string", V1alpha2PodGroup.openapiRequiredFields.toString())); + if (!V1alpha3PodGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3PodGroup is not found in the empty JSON string", V1alpha3PodGroup.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2PodGroup.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3PodGroup.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3PodGroup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha2PodGroup.openapiRequiredFields) { + for (String requiredField : V1alpha3PodGroup.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -280,10 +280,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } // validate the required field `spec` - V1alpha2PodGroupSpec.validateJsonElement(jsonObj.get("spec")); + V1alpha3PodGroupSpec.validateJsonElement(jsonObj.get("spec")); // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - V1alpha2PodGroupStatus.validateJsonElement(jsonObj.get("status")); + V1alpha3PodGroupStatus.validateJsonElement(jsonObj.get("status")); } } @@ -291,22 +291,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2PodGroup.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2PodGroup' and its subtypes + if (!V1alpha3PodGroup.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3PodGroup' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroup.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3PodGroup.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2PodGroup value) throws IOException { + public void write(JsonWriter out, V1alpha3PodGroup value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2PodGroup read(JsonReader in) throws IOException { + public V1alpha3PodGroup read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -317,18 +317,18 @@ public V1alpha2PodGroup read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha2PodGroup given an JSON string + * Create an instance of V1alpha3PodGroup given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2PodGroup - * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroup + * @return An instance of V1alpha3PodGroup + * @throws IOException if the JSON string is invalid with respect to V1alpha3PodGroup */ - public static V1alpha2PodGroup fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2PodGroup.class); + public static V1alpha3PodGroup fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3PodGroup.class); } /** - * Convert an instance of V1alpha2PodGroup to an JSON string + * Convert an instance of V1alpha3PodGroup to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupList.java similarity index 82% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupList.java index 10bee27ad0..93ddf8c756 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupList.java @@ -19,7 +19,7 @@ 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.V1alpha2PodGroup; +import io.kubernetes.client.openapi.models.V1alpha3PodGroup; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -54,8 +54,8 @@ * PodGroupList contains a list of PodGroup resources. */ @ApiModel(description = "PodGroupList contains a list of PodGroup resources.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2PodGroupList implements io.kubernetes.client.common.KubernetesListObject { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3PodGroupList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @jakarta.annotation.Nullable @@ -64,7 +64,7 @@ public class V1alpha2PodGroupList implements io.kubernetes.client.common.Kuberne public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @jakarta.annotation.Nonnull - private List items = new ArrayList<>(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -76,10 +76,10 @@ public class V1alpha2PodGroupList implements io.kubernetes.client.common.Kuberne @jakarta.annotation.Nullable private V1ListMeta metadata; - public V1alpha2PodGroupList() { + public V1alpha3PodGroupList() { } - public V1alpha2PodGroupList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1alpha3PodGroupList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -99,12 +99,12 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha2PodGroupList items(@jakarta.annotation.Nonnull List items) { + public V1alpha3PodGroupList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } - public V1alpha2PodGroupList addItemsItem(V1alpha2PodGroup itemsItem) { + public V1alpha3PodGroupList addItemsItem(V1alpha3PodGroup itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -118,16 +118,16 @@ public V1alpha2PodGroupList addItemsItem(V1alpha2PodGroup itemsItem) { */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of PodGroups.") - public List getItems() { + public List getItems() { return items; } - public void setItems(@jakarta.annotation.Nonnull List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1alpha2PodGroupList kind(@jakarta.annotation.Nullable String kind) { + public V1alpha3PodGroupList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -147,7 +147,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha2PodGroupList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + public V1alpha3PodGroupList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } @@ -176,11 +176,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2PodGroupList v1alpha2PodGroupList = (V1alpha2PodGroupList) o; - return Objects.equals(this.apiVersion, v1alpha2PodGroupList.apiVersion) && - Objects.equals(this.items, v1alpha2PodGroupList.items) && - Objects.equals(this.kind, v1alpha2PodGroupList.kind) && - Objects.equals(this.metadata, v1alpha2PodGroupList.metadata); + V1alpha3PodGroupList v1alpha3PodGroupList = (V1alpha3PodGroupList) o; + return Objects.equals(this.apiVersion, v1alpha3PodGroupList.apiVersion) && + Objects.equals(this.items, v1alpha3PodGroupList.items) && + Objects.equals(this.kind, v1alpha3PodGroupList.kind) && + Objects.equals(this.metadata, v1alpha3PodGroupList.metadata); } @Override @@ -191,7 +191,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodGroupList {\n"); + sb.append("class V1alpha3PodGroupList {\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"); @@ -227,25 +227,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupList + * @throws IOException if the JSON Element is invalid with respect to V1alpha3PodGroupList */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2PodGroupList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupList is not found in the empty JSON string", V1alpha2PodGroupList.openapiRequiredFields.toString())); + if (!V1alpha3PodGroupList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3PodGroupList is not found in the empty JSON string", V1alpha3PodGroupList.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2PodGroupList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3PodGroupList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3PodGroupList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha2PodGroupList.openapiRequiredFields) { + for (String requiredField : V1alpha3PodGroupList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -262,7 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); // validate the required field `items` (array) for (int i = 0; i < jsonArrayitems.size(); i++) { - V1alpha2PodGroup.validateJsonElement(jsonArrayitems.get(i)); + V1alpha3PodGroup.validateJsonElement(jsonArrayitems.get(i)); }; if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); @@ -277,22 +277,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2PodGroupList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2PodGroupList' and its subtypes + if (!V1alpha3PodGroupList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3PodGroupList' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupList.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3PodGroupList.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2PodGroupList value) throws IOException { + public void write(JsonWriter out, V1alpha3PodGroupList value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2PodGroupList read(JsonReader in) throws IOException { + public V1alpha3PodGroupList read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -303,18 +303,18 @@ public V1alpha2PodGroupList read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha2PodGroupList given an JSON string + * Create an instance of V1alpha3PodGroupList given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2PodGroupList - * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupList + * @return An instance of V1alpha3PodGroupList + * @throws IOException if the JSON string is invalid with respect to V1alpha3PodGroupList */ - public static V1alpha2PodGroupList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupList.class); + public static V1alpha3PodGroupList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3PodGroupList.class); } /** - * Convert an instance of V1alpha2PodGroupList to an JSON string + * Convert an instance of V1alpha3PodGroupList to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaim.java similarity index 83% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaim.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaim.java index 7c4a72d9c5..d7eb4a6af3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaim.java @@ -50,8 +50,8 @@ * PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup. It adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly. */ @ApiModel(description = "PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup. It adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2PodGroupResourceClaim { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3PodGroupResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @jakarta.annotation.Nonnull @@ -67,20 +67,20 @@ public class V1alpha2PodGroupResourceClaim { @jakarta.annotation.Nullable private String resourceClaimTemplateName; - public V1alpha2PodGroupResourceClaim() { + public V1alpha3PodGroupResourceClaim() { } - public V1alpha2PodGroupResourceClaim name(@jakarta.annotation.Nonnull String name) { + public V1alpha3PodGroupResourceClaim name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } /** - * Name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. + * name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.") + @ApiModelProperty(required = true, value = "name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.") public String getName() { return name; } @@ -90,17 +90,17 @@ public void setName(@jakarta.annotation.Nonnull String name) { } - public V1alpha2PodGroupResourceClaim resourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { + public V1alpha3PodGroupResourceClaim 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 PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + * resourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods. 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 PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.") + @ApiModelProperty(value = "resourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.") public String getResourceClaimName() { return resourceClaimName; } @@ -110,17 +110,17 @@ public void setResourceClaimName(@jakarta.annotation.Nullable String resourceCla } - public V1alpha2PodGroupResourceClaim resourceClaimTemplateName(@jakarta.annotation.Nullable String resourceClaimTemplateName) { + public V1alpha3PodGroupResourceClaim 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 PodGroup. The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup 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 podgroup.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. + * resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this PodGroup. The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup 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 podgroup.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 PodGroup. The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup 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 podgroup.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.") + @ApiModelProperty(value = "resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this PodGroup. The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup 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 podgroup.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; } @@ -139,10 +139,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2PodGroupResourceClaim v1alpha2PodGroupResourceClaim = (V1alpha2PodGroupResourceClaim) o; - return Objects.equals(this.name, v1alpha2PodGroupResourceClaim.name) && - Objects.equals(this.resourceClaimName, v1alpha2PodGroupResourceClaim.resourceClaimName) && - Objects.equals(this.resourceClaimTemplateName, v1alpha2PodGroupResourceClaim.resourceClaimTemplateName); + V1alpha3PodGroupResourceClaim v1alpha3PodGroupResourceClaim = (V1alpha3PodGroupResourceClaim) o; + return Objects.equals(this.name, v1alpha3PodGroupResourceClaim.name) && + Objects.equals(this.resourceClaimName, v1alpha3PodGroupResourceClaim.resourceClaimName) && + Objects.equals(this.resourceClaimTemplateName, v1alpha3PodGroupResourceClaim.resourceClaimTemplateName); } @Override @@ -153,7 +153,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodGroupResourceClaim {\n"); + sb.append("class V1alpha3PodGroupResourceClaim {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" resourceClaimName: ").append(toIndentedString(resourceClaimName)).append("\n"); sb.append(" resourceClaimTemplateName: ").append(toIndentedString(resourceClaimTemplateName)).append("\n"); @@ -188,25 +188,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupResourceClaim + * @throws IOException if the JSON Element is invalid with respect to V1alpha3PodGroupResourceClaim */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2PodGroupResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupResourceClaim is not found in the empty JSON string", V1alpha2PodGroupResourceClaim.openapiRequiredFields.toString())); + if (!V1alpha3PodGroupResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3PodGroupResourceClaim is not found in the empty JSON string", V1alpha3PodGroupResourceClaim.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2PodGroupResourceClaim.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3PodGroupResourceClaim.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3PodGroupResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha2PodGroupResourceClaim.openapiRequiredFields) { + for (String requiredField : V1alpha3PodGroupResourceClaim.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -227,22 +227,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2PodGroupResourceClaim.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2PodGroupResourceClaim' and its subtypes + if (!V1alpha3PodGroupResourceClaim.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3PodGroupResourceClaim' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupResourceClaim.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3PodGroupResourceClaim.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2PodGroupResourceClaim value) throws IOException { + public void write(JsonWriter out, V1alpha3PodGroupResourceClaim value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2PodGroupResourceClaim read(JsonReader in) throws IOException { + public V1alpha3PodGroupResourceClaim read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -253,18 +253,18 @@ public V1alpha2PodGroupResourceClaim read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha2PodGroupResourceClaim given an JSON string + * Create an instance of V1alpha3PodGroupResourceClaim given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2PodGroupResourceClaim - * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupResourceClaim + * @return An instance of V1alpha3PodGroupResourceClaim + * @throws IOException if the JSON string is invalid with respect to V1alpha3PodGroupResourceClaim */ - public static V1alpha2PodGroupResourceClaim fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupResourceClaim.class); + public static V1alpha3PodGroupResourceClaim fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3PodGroupResourceClaim.class); } /** - * Convert an instance of V1alpha2PodGroupResourceClaim to an JSON string + * Convert an instance of V1alpha3PodGroupResourceClaim to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimStatus.java similarity index 80% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatus.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimStatus.java index 3b11831f18..aa5dd819f7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupResourceClaimStatus.java @@ -50,8 +50,8 @@ * PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. */ @ApiModel(description = "PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2PodGroupResourceClaimStatus { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3PodGroupResourceClaimStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @jakarta.annotation.Nonnull @@ -62,20 +62,20 @@ public class V1alpha2PodGroupResourceClaimStatus { @jakarta.annotation.Nullable private String resourceClaimName; - public V1alpha2PodGroupResourceClaimStatus() { + public V1alpha3PodGroupResourceClaimStatus() { } - public V1alpha2PodGroupResourceClaimStatus name(@jakarta.annotation.Nonnull String name) { + public V1alpha3PodGroupResourceClaimStatus name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } /** - * Name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.spec.resourceClaims, which implies that the string must be a DNS_LABEL. + * name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.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 PodGroup. This must match the name of an entry in podgroup.spec.resourceClaims, which implies that the string must be a DNS_LABEL.") + @ApiModelProperty(required = true, value = "name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.spec.resourceClaims, which implies that the string must be a DNS_LABEL.") public String getName() { return name; } @@ -85,17 +85,17 @@ public void setName(@jakarta.annotation.Nonnull String name) { } - public V1alpha2PodGroupResourceClaimStatus resourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { + public V1alpha3PodGroupResourceClaimStatus resourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { this.resourceClaimName = resourceClaimName; return this; } /** - * ResourceClaimName is the name of the ResourceClaim that was generated for the PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case. + * resourceClaimName is the name of the ResourceClaim that was generated for the PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.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 PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case.") + @ApiModelProperty(value = "resourceClaimName is the name of the ResourceClaim that was generated for the PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case.") public String getResourceClaimName() { return resourceClaimName; } @@ -114,9 +114,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2PodGroupResourceClaimStatus v1alpha2PodGroupResourceClaimStatus = (V1alpha2PodGroupResourceClaimStatus) o; - return Objects.equals(this.name, v1alpha2PodGroupResourceClaimStatus.name) && - Objects.equals(this.resourceClaimName, v1alpha2PodGroupResourceClaimStatus.resourceClaimName); + V1alpha3PodGroupResourceClaimStatus v1alpha3PodGroupResourceClaimStatus = (V1alpha3PodGroupResourceClaimStatus) o; + return Objects.equals(this.name, v1alpha3PodGroupResourceClaimStatus.name) && + Objects.equals(this.resourceClaimName, v1alpha3PodGroupResourceClaimStatus.resourceClaimName); } @Override @@ -127,7 +127,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodGroupResourceClaimStatus {\n"); + sb.append("class V1alpha3PodGroupResourceClaimStatus {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" resourceClaimName: ").append(toIndentedString(resourceClaimName)).append("\n"); sb.append("}"); @@ -161,25 +161,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupResourceClaimStatus + * @throws IOException if the JSON Element is invalid with respect to V1alpha3PodGroupResourceClaimStatus */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2PodGroupResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupResourceClaimStatus is not found in the empty JSON string", V1alpha2PodGroupResourceClaimStatus.openapiRequiredFields.toString())); + if (!V1alpha3PodGroupResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3PodGroupResourceClaimStatus is not found in the empty JSON string", V1alpha3PodGroupResourceClaimStatus.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2PodGroupResourceClaimStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3PodGroupResourceClaimStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3PodGroupResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha2PodGroupResourceClaimStatus.openapiRequiredFields) { + for (String requiredField : V1alpha3PodGroupResourceClaimStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -197,22 +197,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2PodGroupResourceClaimStatus.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2PodGroupResourceClaimStatus' and its subtypes + if (!V1alpha3PodGroupResourceClaimStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3PodGroupResourceClaimStatus' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupResourceClaimStatus.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3PodGroupResourceClaimStatus.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2PodGroupResourceClaimStatus value) throws IOException { + public void write(JsonWriter out, V1alpha3PodGroupResourceClaimStatus value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2PodGroupResourceClaimStatus read(JsonReader in) throws IOException { + public V1alpha3PodGroupResourceClaimStatus read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -223,18 +223,18 @@ public V1alpha2PodGroupResourceClaimStatus read(JsonReader in) throws IOExceptio } /** - * Create an instance of V1alpha2PodGroupResourceClaimStatus given an JSON string + * Create an instance of V1alpha3PodGroupResourceClaimStatus given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2PodGroupResourceClaimStatus - * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupResourceClaimStatus + * @return An instance of V1alpha3PodGroupResourceClaimStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha3PodGroupResourceClaimStatus */ - public static V1alpha2PodGroupResourceClaimStatus fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupResourceClaimStatus.class); + public static V1alpha3PodGroupResourceClaimStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3PodGroupResourceClaimStatus.class); } /** - * Convert an instance of V1alpha2PodGroupResourceClaimStatus to an JSON string + * Convert an instance of V1alpha3PodGroupResourceClaimStatus to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingConstraints.java similarity index 75% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraints.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingConstraints.java index c628204d4f..2348767c85 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingConstraints.java @@ -18,7 +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.V1alpha2TopologyConstraint; +import io.kubernetes.client.openapi.models.V1alpha3TopologyConstraint; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -53,22 +53,22 @@ * PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. */ @ApiModel(description = "PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2PodGroupSchedulingConstraints { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3PodGroupSchedulingConstraints { public static final String SERIALIZED_NAME_TOPOLOGY = "topology"; @SerializedName(SERIALIZED_NAME_TOPOLOGY) @jakarta.annotation.Nullable - private List topology = new ArrayList<>(); + private List topology = new ArrayList<>(); - public V1alpha2PodGroupSchedulingConstraints() { + public V1alpha3PodGroupSchedulingConstraints() { } - public V1alpha2PodGroupSchedulingConstraints topology(@jakarta.annotation.Nullable List topology) { + public V1alpha3PodGroupSchedulingConstraints topology(@jakarta.annotation.Nullable List topology) { this.topology = topology; return this; } - public V1alpha2PodGroupSchedulingConstraints addTopologyItem(V1alpha2TopologyConstraint topologyItem) { + public V1alpha3PodGroupSchedulingConstraints addTopologyItem(V1alpha3TopologyConstraint topologyItem) { if (this.topology == null) { this.topology = new ArrayList<>(); } @@ -77,16 +77,16 @@ public V1alpha2PodGroupSchedulingConstraints addTopologyItem(V1alpha2TopologyCon } /** - * Topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future. + * topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future. * @return topology */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future.") - public List getTopology() { + @ApiModelProperty(value = "topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future.") + public List getTopology() { return topology; } - public void setTopology(@jakarta.annotation.Nullable List topology) { + public void setTopology(@jakarta.annotation.Nullable List topology) { this.topology = topology; } @@ -100,8 +100,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2PodGroupSchedulingConstraints v1alpha2PodGroupSchedulingConstraints = (V1alpha2PodGroupSchedulingConstraints) o; - return Objects.equals(this.topology, v1alpha2PodGroupSchedulingConstraints.topology); + V1alpha3PodGroupSchedulingConstraints v1alpha3PodGroupSchedulingConstraints = (V1alpha3PodGroupSchedulingConstraints) o; + return Objects.equals(this.topology, v1alpha3PodGroupSchedulingConstraints.topology); } @Override @@ -112,7 +112,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodGroupSchedulingConstraints {\n"); + sb.append("class V1alpha3PodGroupSchedulingConstraints {\n"); sb.append(" topology: ").append(toIndentedString(topology)).append("\n"); sb.append("}"); return sb.toString(); @@ -145,20 +145,20 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupSchedulingConstraints + * @throws IOException if the JSON Element is invalid with respect to V1alpha3PodGroupSchedulingConstraints */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2PodGroupSchedulingConstraints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupSchedulingConstraints is not found in the empty JSON string", V1alpha2PodGroupSchedulingConstraints.openapiRequiredFields.toString())); + if (!V1alpha3PodGroupSchedulingConstraints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3PodGroupSchedulingConstraints is not found in the empty JSON string", V1alpha3PodGroupSchedulingConstraints.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2PodGroupSchedulingConstraints.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupSchedulingConstraints` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3PodGroupSchedulingConstraints.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3PodGroupSchedulingConstraints` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -172,7 +172,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `topology` (array) for (int i = 0; i < jsonArraytopology.size(); i++) { - V1alpha2TopologyConstraint.validateJsonElement(jsonArraytopology.get(i)); + V1alpha3TopologyConstraint.validateJsonElement(jsonArraytopology.get(i)); }; } } @@ -182,22 +182,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2PodGroupSchedulingConstraints.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2PodGroupSchedulingConstraints' and its subtypes + if (!V1alpha3PodGroupSchedulingConstraints.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3PodGroupSchedulingConstraints' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupSchedulingConstraints.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3PodGroupSchedulingConstraints.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2PodGroupSchedulingConstraints value) throws IOException { + public void write(JsonWriter out, V1alpha3PodGroupSchedulingConstraints value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2PodGroupSchedulingConstraints read(JsonReader in) throws IOException { + public V1alpha3PodGroupSchedulingConstraints read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -208,18 +208,18 @@ public V1alpha2PodGroupSchedulingConstraints read(JsonReader in) throws IOExcept } /** - * Create an instance of V1alpha2PodGroupSchedulingConstraints given an JSON string + * Create an instance of V1alpha3PodGroupSchedulingConstraints given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2PodGroupSchedulingConstraints - * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupSchedulingConstraints + * @return An instance of V1alpha3PodGroupSchedulingConstraints + * @throws IOException if the JSON string is invalid with respect to V1alpha3PodGroupSchedulingConstraints */ - public static V1alpha2PodGroupSchedulingConstraints fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupSchedulingConstraints.class); + public static V1alpha3PodGroupSchedulingConstraints fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3PodGroupSchedulingConstraints.class); } /** - * Convert an instance of V1alpha2PodGroupSchedulingConstraints to an JSON string + * Convert an instance of V1alpha3PodGroupSchedulingConstraints to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingPolicy.java similarity index 68% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicy.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingPolicy.java index b71c9a3581..45d7db40a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSchedulingPolicy.java @@ -18,7 +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.V1alpha2GangSchedulingPolicy; +import io.kubernetes.client.openapi.models.V1alpha3GangSchedulingPolicy; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -48,11 +48,11 @@ import io.kubernetes.client.openapi.JSON; /** - * PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. + * PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it. */ -@ApiModel(description = "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2PodGroupSchedulingPolicy { +@ApiModel(description = "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3PodGroupSchedulingPolicy { public static final String SERIALIZED_NAME_BASIC = "basic"; @SerializedName(SERIALIZED_NAME_BASIC) @jakarta.annotation.Nullable @@ -61,22 +61,22 @@ public class V1alpha2PodGroupSchedulingPolicy { public static final String SERIALIZED_NAME_GANG = "gang"; @SerializedName(SERIALIZED_NAME_GANG) @jakarta.annotation.Nullable - private V1alpha2GangSchedulingPolicy gang; + private V1alpha3GangSchedulingPolicy gang; - public V1alpha2PodGroupSchedulingPolicy() { + public V1alpha3PodGroupSchedulingPolicy() { } - public V1alpha2PodGroupSchedulingPolicy basic(@jakarta.annotation.Nullable Object basic) { + public V1alpha3PodGroupSchedulingPolicy basic(@jakarta.annotation.Nullable Object basic) { this.basic = basic; return this; } /** - * Basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. + * basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward. * @return basic */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior.") + @ApiModelProperty(value = "basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward.") public Object getBasic() { return basic; } @@ -86,7 +86,7 @@ public void setBasic(@jakarta.annotation.Nullable Object basic) { } - public V1alpha2PodGroupSchedulingPolicy gang(@jakarta.annotation.Nullable V1alpha2GangSchedulingPolicy gang) { + public V1alpha3PodGroupSchedulingPolicy gang(@jakarta.annotation.Nullable V1alpha3GangSchedulingPolicy gang) { this.gang = gang; return this; } @@ -97,11 +97,11 @@ public V1alpha2PodGroupSchedulingPolicy gang(@jakarta.annotation.Nullable V1alph */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha2GangSchedulingPolicy getGang() { + public V1alpha3GangSchedulingPolicy getGang() { return gang; } - public void setGang(@jakarta.annotation.Nullable V1alpha2GangSchedulingPolicy gang) { + public void setGang(@jakarta.annotation.Nullable V1alpha3GangSchedulingPolicy gang) { this.gang = gang; } @@ -115,9 +115,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2PodGroupSchedulingPolicy v1alpha2PodGroupSchedulingPolicy = (V1alpha2PodGroupSchedulingPolicy) o; - return Objects.equals(this.basic, v1alpha2PodGroupSchedulingPolicy.basic) && - Objects.equals(this.gang, v1alpha2PodGroupSchedulingPolicy.gang); + V1alpha3PodGroupSchedulingPolicy v1alpha3PodGroupSchedulingPolicy = (V1alpha3PodGroupSchedulingPolicy) o; + return Objects.equals(this.basic, v1alpha3PodGroupSchedulingPolicy.basic) && + Objects.equals(this.gang, v1alpha3PodGroupSchedulingPolicy.gang); } @Override @@ -128,7 +128,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodGroupSchedulingPolicy {\n"); + sb.append("class V1alpha3PodGroupSchedulingPolicy {\n"); sb.append(" basic: ").append(toIndentedString(basic)).append("\n"); sb.append(" gang: ").append(toIndentedString(gang)).append("\n"); sb.append("}"); @@ -162,26 +162,26 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupSchedulingPolicy + * @throws IOException if the JSON Element is invalid with respect to V1alpha3PodGroupSchedulingPolicy */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2PodGroupSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupSchedulingPolicy is not found in the empty JSON string", V1alpha2PodGroupSchedulingPolicy.openapiRequiredFields.toString())); + if (!V1alpha3PodGroupSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3PodGroupSchedulingPolicy is not found in the empty JSON string", V1alpha3PodGroupSchedulingPolicy.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2PodGroupSchedulingPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3PodGroupSchedulingPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3PodGroupSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `gang` if (jsonObj.get("gang") != null && !jsonObj.get("gang").isJsonNull()) { - V1alpha2GangSchedulingPolicy.validateJsonElement(jsonObj.get("gang")); + V1alpha3GangSchedulingPolicy.validateJsonElement(jsonObj.get("gang")); } } @@ -189,22 +189,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2PodGroupSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2PodGroupSchedulingPolicy' and its subtypes + if (!V1alpha3PodGroupSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3PodGroupSchedulingPolicy' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupSchedulingPolicy.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3PodGroupSchedulingPolicy.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2PodGroupSchedulingPolicy value) throws IOException { + public void write(JsonWriter out, V1alpha3PodGroupSchedulingPolicy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2PodGroupSchedulingPolicy read(JsonReader in) throws IOException { + public V1alpha3PodGroupSchedulingPolicy read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -215,18 +215,18 @@ public V1alpha2PodGroupSchedulingPolicy read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha2PodGroupSchedulingPolicy given an JSON string + * Create an instance of V1alpha3PodGroupSchedulingPolicy given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2PodGroupSchedulingPolicy - * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupSchedulingPolicy + * @return An instance of V1alpha3PodGroupSchedulingPolicy + * @throws IOException if the JSON string is invalid with respect to V1alpha3PodGroupSchedulingPolicy */ - public static V1alpha2PodGroupSchedulingPolicy fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupSchedulingPolicy.class); + public static V1alpha3PodGroupSchedulingPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3PodGroupSchedulingPolicy.class); } /** - * Convert an instance of V1alpha2PodGroupSchedulingPolicy to an JSON string + * Convert an instance of V1alpha3PodGroupSchedulingPolicy to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSpec.java similarity index 55% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpec.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSpec.java index cfe78c072e..71a57f3654 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupSpec.java @@ -18,10 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha2PodGroupResourceClaim; -import io.kubernetes.client.openapi.models.V1alpha2PodGroupSchedulingConstraints; -import io.kubernetes.client.openapi.models.V1alpha2PodGroupSchedulingPolicy; -import io.kubernetes.client.openapi.models.V1alpha2PodGroupTemplateReference; +import io.kubernetes.client.openapi.models.V1alpha3DisruptionMode; +import io.kubernetes.client.openapi.models.V1alpha3PodGroupResourceClaim; +import io.kubernetes.client.openapi.models.V1alpha3PodGroupSchedulingConstraints; +import io.kubernetes.client.openapi.models.V1alpha3PodGroupSchedulingPolicy; +import io.kubernetes.client.openapi.models.V1alpha3WorkloadReference; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -56,17 +57,22 @@ * PodGroupSpec defines the desired state of a PodGroup. */ @ApiModel(description = "PodGroupSpec defines the desired state of a PodGroup.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2PodGroupSpec { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3PodGroupSpec { public static final String SERIALIZED_NAME_DISRUPTION_MODE = "disruptionMode"; @SerializedName(SERIALIZED_NAME_DISRUPTION_MODE) @jakarta.annotation.Nullable - private String disruptionMode; + private V1alpha3DisruptionMode disruptionMode; - public static final String SERIALIZED_NAME_POD_GROUP_TEMPLATE_REF = "podGroupTemplateRef"; - @SerializedName(SERIALIZED_NAME_POD_GROUP_TEMPLATE_REF) + public static final String SERIALIZED_NAME_PARENT_COMPOSITE_POD_GROUP_NAME = "parentCompositePodGroupName"; + @SerializedName(SERIALIZED_NAME_PARENT_COMPOSITE_POD_GROUP_NAME) @jakarta.annotation.Nullable - private V1alpha2PodGroupTemplateReference podGroupTemplateRef; + private String parentCompositePodGroupName; + + 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) @@ -81,72 +87,97 @@ public class V1alpha2PodGroupSpec { public static final String SERIALIZED_NAME_RESOURCE_CLAIMS = "resourceClaims"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIMS) @jakarta.annotation.Nullable - private List resourceClaims = new ArrayList<>(); + private List resourceClaims = new ArrayList<>(); public static final String SERIALIZED_NAME_SCHEDULING_CONSTRAINTS = "schedulingConstraints"; @SerializedName(SERIALIZED_NAME_SCHEDULING_CONSTRAINTS) @jakarta.annotation.Nullable - private V1alpha2PodGroupSchedulingConstraints schedulingConstraints; + private V1alpha3PodGroupSchedulingConstraints schedulingConstraints; public static final String SERIALIZED_NAME_SCHEDULING_POLICY = "schedulingPolicy"; @SerializedName(SERIALIZED_NAME_SCHEDULING_POLICY) @jakarta.annotation.Nonnull - private V1alpha2PodGroupSchedulingPolicy schedulingPolicy; + private V1alpha3PodGroupSchedulingPolicy schedulingPolicy; + + public static final String SERIALIZED_NAME_WORKLOAD_REF = "workloadRef"; + @SerializedName(SERIALIZED_NAME_WORKLOAD_REF) + @jakarta.annotation.Nullable + private V1alpha3WorkloadReference workloadRef; - public V1alpha2PodGroupSpec() { + public V1alpha3PodGroupSpec() { } - public V1alpha2PodGroupSpec disruptionMode(@jakarta.annotation.Nullable String disruptionMode) { + public V1alpha3PodGroupSpec disruptionMode(@jakarta.annotation.Nullable V1alpha3DisruptionMode disruptionMode) { this.disruptionMode = disruptionMode; return this; } /** - * DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. + * Get disruptionMode * @return disruptionMode */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.") - public String getDisruptionMode() { + @ApiModelProperty(value = "") + public V1alpha3DisruptionMode getDisruptionMode() { return disruptionMode; } - public void setDisruptionMode(@jakarta.annotation.Nullable String disruptionMode) { + public void setDisruptionMode(@jakarta.annotation.Nullable V1alpha3DisruptionMode disruptionMode) { this.disruptionMode = disruptionMode; } - public V1alpha2PodGroupSpec podGroupTemplateRef(@jakarta.annotation.Nullable V1alpha2PodGroupTemplateReference podGroupTemplateRef) { - this.podGroupTemplateRef = podGroupTemplateRef; + public V1alpha3PodGroupSpec parentCompositePodGroupName(@jakarta.annotation.Nullable String parentCompositePodGroupName) { + this.parentCompositePodGroupName = parentCompositePodGroupName; return this; } /** - * Get podGroupTemplateRef - * @return podGroupTemplateRef + * parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable. + * @return parentCompositePodGroupName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "") - public V1alpha2PodGroupTemplateReference getPodGroupTemplateRef() { - return podGroupTemplateRef; + @ApiModelProperty(value = "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.") + public String getParentCompositePodGroupName() { + return parentCompositePodGroupName; + } + + public void setParentCompositePodGroupName(@jakarta.annotation.Nullable String parentCompositePodGroupName) { + this.parentCompositePodGroupName = parentCompositePodGroupName; } - public void setPodGroupTemplateRef(@jakarta.annotation.Nullable V1alpha2PodGroupTemplateReference podGroupTemplateRef) { - this.podGroupTemplateRef = podGroupTemplateRef; + + public V1alpha3PodGroupSpec preemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return this; + } + + /** + * preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. + * @return preemptionPolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + public String getPreemptionPolicy() { + return preemptionPolicy; } + public void setPreemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + } - public V1alpha2PodGroupSpec priority(@jakarta.annotation.Nullable Integer priority) { + + public V1alpha3PodGroupSpec priority(@jakarta.annotation.Nullable Integer priority) { this.priority = priority; return this; } /** - * Priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. 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. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. + * priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. 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. This field is immutable. * @return priority */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. 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. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.") + @ApiModelProperty(value = "priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. 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. This field is immutable.") public Integer getPriority() { return priority; } @@ -156,17 +187,17 @@ public void setPriority(@jakarta.annotation.Nullable Integer priority) { } - public V1alpha2PodGroupSpec priorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + public V1alpha3PodGroupSpec priorityClassName(@jakarta.annotation.Nullable String priorityClassName) { this.priorityClassName = priorityClassName; return this; } /** - * PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. + * priorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. * @return priorityClassName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.") + @ApiModelProperty(value = "priorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable.") public String getPriorityClassName() { return priorityClassName; } @@ -176,12 +207,12 @@ public void setPriorityClassName(@jakarta.annotation.Nullable String priorityCla } - public V1alpha2PodGroupSpec resourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + public V1alpha3PodGroupSpec resourceClaims(@jakarta.annotation.Nullable List resourceClaims) { this.resourceClaims = resourceClaims; return this; } - public V1alpha2PodGroupSpec addResourceClaimsItem(V1alpha2PodGroupResourceClaim resourceClaimsItem) { + public V1alpha3PodGroupSpec addResourceClaimsItem(V1alpha3PodGroupResourceClaim resourceClaimsItem) { if (this.resourceClaims == null) { this.resourceClaims = new ArrayList<>(); } @@ -190,21 +221,21 @@ public V1alpha2PodGroupSpec addResourceClaimsItem(V1alpha2PodGroupResourceClaim } /** - * ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. + * resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. * @return resourceClaims */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") - public List getResourceClaims() { + @ApiModelProperty(value = "resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + public List getResourceClaims() { return resourceClaims; } - public void setResourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + public void setResourceClaims(@jakarta.annotation.Nullable List resourceClaims) { this.resourceClaims = resourceClaims; } - public V1alpha2PodGroupSpec schedulingConstraints(@jakarta.annotation.Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints) { + public V1alpha3PodGroupSpec schedulingConstraints(@jakarta.annotation.Nullable V1alpha3PodGroupSchedulingConstraints schedulingConstraints) { this.schedulingConstraints = schedulingConstraints; return this; } @@ -215,16 +246,16 @@ public V1alpha2PodGroupSpec schedulingConstraints(@jakarta.annotation.Nullable V */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha2PodGroupSchedulingConstraints getSchedulingConstraints() { + public V1alpha3PodGroupSchedulingConstraints getSchedulingConstraints() { return schedulingConstraints; } - public void setSchedulingConstraints(@jakarta.annotation.Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints) { + public void setSchedulingConstraints(@jakarta.annotation.Nullable V1alpha3PodGroupSchedulingConstraints schedulingConstraints) { this.schedulingConstraints = schedulingConstraints; } - public V1alpha2PodGroupSpec schedulingPolicy(@jakarta.annotation.Nonnull V1alpha2PodGroupSchedulingPolicy schedulingPolicy) { + public V1alpha3PodGroupSpec schedulingPolicy(@jakarta.annotation.Nonnull V1alpha3PodGroupSchedulingPolicy schedulingPolicy) { this.schedulingPolicy = schedulingPolicy; return this; } @@ -235,15 +266,35 @@ public V1alpha2PodGroupSpec schedulingPolicy(@jakarta.annotation.Nonnull V1alpha */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1alpha2PodGroupSchedulingPolicy getSchedulingPolicy() { + public V1alpha3PodGroupSchedulingPolicy getSchedulingPolicy() { return schedulingPolicy; } - public void setSchedulingPolicy(@jakarta.annotation.Nonnull V1alpha2PodGroupSchedulingPolicy schedulingPolicy) { + public void setSchedulingPolicy(@jakarta.annotation.Nonnull V1alpha3PodGroupSchedulingPolicy schedulingPolicy) { this.schedulingPolicy = schedulingPolicy; } + public V1alpha3PodGroupSpec workloadRef(@jakarta.annotation.Nullable V1alpha3WorkloadReference workloadRef) { + this.workloadRef = workloadRef; + return this; + } + + /** + * Get workloadRef + * @return workloadRef + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3WorkloadReference getWorkloadRef() { + return workloadRef; + } + + public void setWorkloadRef(@jakarta.annotation.Nullable V1alpha3WorkloadReference workloadRef) { + this.workloadRef = workloadRef; + } + + @Override public boolean equals(Object o) { @@ -253,32 +304,36 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2PodGroupSpec v1alpha2PodGroupSpec = (V1alpha2PodGroupSpec) o; - return Objects.equals(this.disruptionMode, v1alpha2PodGroupSpec.disruptionMode) && - Objects.equals(this.podGroupTemplateRef, v1alpha2PodGroupSpec.podGroupTemplateRef) && - Objects.equals(this.priority, v1alpha2PodGroupSpec.priority) && - Objects.equals(this.priorityClassName, v1alpha2PodGroupSpec.priorityClassName) && - Objects.equals(this.resourceClaims, v1alpha2PodGroupSpec.resourceClaims) && - Objects.equals(this.schedulingConstraints, v1alpha2PodGroupSpec.schedulingConstraints) && - Objects.equals(this.schedulingPolicy, v1alpha2PodGroupSpec.schedulingPolicy); + V1alpha3PodGroupSpec v1alpha3PodGroupSpec = (V1alpha3PodGroupSpec) o; + return Objects.equals(this.disruptionMode, v1alpha3PodGroupSpec.disruptionMode) && + Objects.equals(this.parentCompositePodGroupName, v1alpha3PodGroupSpec.parentCompositePodGroupName) && + Objects.equals(this.preemptionPolicy, v1alpha3PodGroupSpec.preemptionPolicy) && + Objects.equals(this.priority, v1alpha3PodGroupSpec.priority) && + Objects.equals(this.priorityClassName, v1alpha3PodGroupSpec.priorityClassName) && + Objects.equals(this.resourceClaims, v1alpha3PodGroupSpec.resourceClaims) && + Objects.equals(this.schedulingConstraints, v1alpha3PodGroupSpec.schedulingConstraints) && + Objects.equals(this.schedulingPolicy, v1alpha3PodGroupSpec.schedulingPolicy) && + Objects.equals(this.workloadRef, v1alpha3PodGroupSpec.workloadRef); } @Override public int hashCode() { - return Objects.hash(disruptionMode, podGroupTemplateRef, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy); + return Objects.hash(disruptionMode, parentCompositePodGroupName, preemptionPolicy, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy, workloadRef); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodGroupSpec {\n"); + sb.append("class V1alpha3PodGroupSpec {\n"); sb.append(" disruptionMode: ").append(toIndentedString(disruptionMode)).append("\n"); - sb.append(" podGroupTemplateRef: ").append(toIndentedString(podGroupTemplateRef)).append("\n"); + sb.append(" parentCompositePodGroupName: ").append(toIndentedString(parentCompositePodGroupName)).append("\n"); + sb.append(" preemptionPolicy: ").append(toIndentedString(preemptionPolicy)).append("\n"); sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); sb.append(" priorityClassName: ").append(toIndentedString(priorityClassName)).append("\n"); sb.append(" resourceClaims: ").append(toIndentedString(resourceClaims)).append("\n"); sb.append(" schedulingConstraints: ").append(toIndentedString(schedulingConstraints)).append("\n"); sb.append(" schedulingPolicy: ").append(toIndentedString(schedulingPolicy)).append("\n"); + sb.append(" workloadRef: ").append(toIndentedString(workloadRef)).append("\n"); sb.append("}"); return sb.toString(); } @@ -300,7 +355,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("disruptionMode", "podGroupTemplateRef", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy")); + openapiFields = new HashSet(Arrays.asList("disruptionMode", "parentCompositePodGroupName", "preemptionPolicy", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy", "workloadRef")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("schedulingPolicy")); @@ -310,36 +365,39 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupSpec + * @throws IOException if the JSON Element is invalid with respect to V1alpha3PodGroupSpec */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2PodGroupSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupSpec is not found in the empty JSON string", V1alpha2PodGroupSpec.openapiRequiredFields.toString())); + if (!V1alpha3PodGroupSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3PodGroupSpec is not found in the empty JSON string", V1alpha3PodGroupSpec.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2PodGroupSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3PodGroupSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3PodGroupSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha2PodGroupSpec.openapiRequiredFields) { + for (String requiredField : V1alpha3PodGroupSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("disruptionMode") != null && !jsonObj.get("disruptionMode").isJsonNull()) && !jsonObj.get("disruptionMode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `disruptionMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("disruptionMode").toString())); + // validate the optional field `disruptionMode` + if (jsonObj.get("disruptionMode") != null && !jsonObj.get("disruptionMode").isJsonNull()) { + V1alpha3DisruptionMode.validateJsonElement(jsonObj.get("disruptionMode")); + } + if ((jsonObj.get("parentCompositePodGroupName") != null && !jsonObj.get("parentCompositePodGroupName").isJsonNull()) && !jsonObj.get("parentCompositePodGroupName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `parentCompositePodGroupName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parentCompositePodGroupName").toString())); } - // validate the optional field `podGroupTemplateRef` - if (jsonObj.get("podGroupTemplateRef") != null && !jsonObj.get("podGroupTemplateRef").isJsonNull()) { - V1alpha2PodGroupTemplateReference.validateJsonElement(jsonObj.get("podGroupTemplateRef")); + if ((jsonObj.get("preemptionPolicy") != null && !jsonObj.get("preemptionPolicy").isJsonNull()) && !jsonObj.get("preemptionPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `preemptionPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preemptionPolicy").toString())); } if ((jsonObj.get("priorityClassName") != null && !jsonObj.get("priorityClassName").isJsonNull()) && !jsonObj.get("priorityClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `priorityClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priorityClassName").toString())); @@ -354,38 +412,42 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `resourceClaims` (array) for (int i = 0; i < jsonArrayresourceClaims.size(); i++) { - V1alpha2PodGroupResourceClaim.validateJsonElement(jsonArrayresourceClaims.get(i)); + V1alpha3PodGroupResourceClaim.validateJsonElement(jsonArrayresourceClaims.get(i)); }; } } // validate the optional field `schedulingConstraints` if (jsonObj.get("schedulingConstraints") != null && !jsonObj.get("schedulingConstraints").isJsonNull()) { - V1alpha2PodGroupSchedulingConstraints.validateJsonElement(jsonObj.get("schedulingConstraints")); + V1alpha3PodGroupSchedulingConstraints.validateJsonElement(jsonObj.get("schedulingConstraints")); } // validate the required field `schedulingPolicy` - V1alpha2PodGroupSchedulingPolicy.validateJsonElement(jsonObj.get("schedulingPolicy")); + V1alpha3PodGroupSchedulingPolicy.validateJsonElement(jsonObj.get("schedulingPolicy")); + // validate the optional field `workloadRef` + if (jsonObj.get("workloadRef") != null && !jsonObj.get("workloadRef").isJsonNull()) { + V1alpha3WorkloadReference.validateJsonElement(jsonObj.get("workloadRef")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2PodGroupSpec.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2PodGroupSpec' and its subtypes + if (!V1alpha3PodGroupSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3PodGroupSpec' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupSpec.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3PodGroupSpec.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2PodGroupSpec value) throws IOException { + public void write(JsonWriter out, V1alpha3PodGroupSpec value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2PodGroupSpec read(JsonReader in) throws IOException { + public V1alpha3PodGroupSpec read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -396,18 +458,18 @@ public V1alpha2PodGroupSpec read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha2PodGroupSpec given an JSON string + * Create an instance of V1alpha3PodGroupSpec given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2PodGroupSpec - * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupSpec + * @return An instance of V1alpha3PodGroupSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha3PodGroupSpec */ - public static V1alpha2PodGroupSpec fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupSpec.class); + public static V1alpha3PodGroupSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3PodGroupSpec.class); } /** - * Convert an instance of V1alpha2PodGroupSpec to an JSON string + * Convert an instance of V1alpha3PodGroupSpec to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupStatus.java similarity index 66% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatus.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupStatus.java index 6ad0d93d17..17cfb7166d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupStatus.java @@ -19,7 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Condition; -import io.kubernetes.client.openapi.models.V1alpha2PodGroupResourceClaimStatus; +import io.kubernetes.client.openapi.models.V1alpha3PodGroupResourceClaimStatus; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -54,8 +54,8 @@ * PodGroupStatus represents information about the status of a pod group. */ @ApiModel(description = "PodGroupStatus represents information about the status of a pod group.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2PodGroupStatus { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3PodGroupStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @jakarta.annotation.Nullable @@ -64,17 +64,17 @@ public class V1alpha2PodGroupStatus { public static final String SERIALIZED_NAME_RESOURCE_CLAIM_STATUSES = "resourceClaimStatuses"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_STATUSES) @jakarta.annotation.Nullable - private List resourceClaimStatuses = new ArrayList<>(); + private List resourceClaimStatuses = new ArrayList<>(); - public V1alpha2PodGroupStatus() { + public V1alpha3PodGroupStatus() { } - public V1alpha2PodGroupStatus conditions(@jakarta.annotation.Nullable List conditions) { + public V1alpha3PodGroupStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } - public V1alpha2PodGroupStatus addConditionsItem(V1Condition conditionsItem) { + public V1alpha3PodGroupStatus addConditionsItem(V1Condition conditionsItem) { if (this.conditions == null) { this.conditions = new ArrayList<>(); } @@ -83,11 +83,11 @@ public V1alpha2PodGroupStatus addConditionsItem(V1Condition conditionsItem) { } /** - * Conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupScheduled\": Indicates whether the scheduling requirement has been satisfied. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints, affinity/anti-affinity rules, or insufficient capacity for the gang. - \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error that happened during scheduling, for example due to nodeAffinity parsing errors. Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for higher-priority PodGroups or Pods. + * conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints, affinity/anti-affinity rules, or insufficient capacity for the gang. - \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error that happened during scheduling, for example due to nodeAffinity parsing errors. Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for higher-priority PodGroups or Pods. * @return conditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupScheduled\": Indicates whether the scheduling requirement has been satisfied. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints, affinity/anti-affinity rules, or insufficient capacity for the gang. - \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error that happened during scheduling, for example due to nodeAffinity parsing errors. Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for higher-priority PodGroups or Pods.") + @ApiModelProperty(value = "conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints, affinity/anti-affinity rules, or insufficient capacity for the gang. - \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error that happened during scheduling, for example due to nodeAffinity parsing errors. Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for higher-priority PodGroups or Pods.") public List getConditions() { return conditions; } @@ -97,12 +97,12 @@ public void setConditions(@jakarta.annotation.Nullable List conditi } - public V1alpha2PodGroupStatus resourceClaimStatuses(@jakarta.annotation.Nullable List resourceClaimStatuses) { + public V1alpha3PodGroupStatus resourceClaimStatuses(@jakarta.annotation.Nullable List resourceClaimStatuses) { this.resourceClaimStatuses = resourceClaimStatuses; return this; } - public V1alpha2PodGroupStatus addResourceClaimStatusesItem(V1alpha2PodGroupResourceClaimStatus resourceClaimStatusesItem) { + public V1alpha3PodGroupStatus addResourceClaimStatusesItem(V1alpha3PodGroupResourceClaimStatus resourceClaimStatusesItem) { if (this.resourceClaimStatuses == null) { this.resourceClaimStatuses = new ArrayList<>(); } @@ -111,16 +111,16 @@ public V1alpha2PodGroupStatus addResourceClaimStatusesItem(V1alpha2PodGroupResou } /** - * Status of resource claims. + * resourceClaimStatuses is status of resource claims. * @return resourceClaimStatuses */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Status of resource claims.") - public List getResourceClaimStatuses() { + @ApiModelProperty(value = "resourceClaimStatuses is status of resource claims.") + public List getResourceClaimStatuses() { return resourceClaimStatuses; } - public void setResourceClaimStatuses(@jakarta.annotation.Nullable List resourceClaimStatuses) { + public void setResourceClaimStatuses(@jakarta.annotation.Nullable List resourceClaimStatuses) { this.resourceClaimStatuses = resourceClaimStatuses; } @@ -134,9 +134,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2PodGroupStatus v1alpha2PodGroupStatus = (V1alpha2PodGroupStatus) o; - return Objects.equals(this.conditions, v1alpha2PodGroupStatus.conditions) && - Objects.equals(this.resourceClaimStatuses, v1alpha2PodGroupStatus.resourceClaimStatuses); + V1alpha3PodGroupStatus v1alpha3PodGroupStatus = (V1alpha3PodGroupStatus) o; + return Objects.equals(this.conditions, v1alpha3PodGroupStatus.conditions) && + Objects.equals(this.resourceClaimStatuses, v1alpha3PodGroupStatus.resourceClaimStatuses); } @Override @@ -147,7 +147,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodGroupStatus {\n"); + sb.append("class V1alpha3PodGroupStatus {\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" resourceClaimStatuses: ").append(toIndentedString(resourceClaimStatuses)).append("\n"); sb.append("}"); @@ -181,20 +181,20 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupStatus + * @throws IOException if the JSON Element is invalid with respect to V1alpha3PodGroupStatus */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2PodGroupStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupStatus is not found in the empty JSON string", V1alpha2PodGroupStatus.openapiRequiredFields.toString())); + if (!V1alpha3PodGroupStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3PodGroupStatus is not found in the empty JSON string", V1alpha3PodGroupStatus.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2PodGroupStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3PodGroupStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3PodGroupStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -222,7 +222,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `resourceClaimStatuses` (array) for (int i = 0; i < jsonArrayresourceClaimStatuses.size(); i++) { - V1alpha2PodGroupResourceClaimStatus.validateJsonElement(jsonArrayresourceClaimStatuses.get(i)); + V1alpha3PodGroupResourceClaimStatus.validateJsonElement(jsonArrayresourceClaimStatuses.get(i)); }; } } @@ -232,22 +232,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2PodGroupStatus.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2PodGroupStatus' and its subtypes + if (!V1alpha3PodGroupStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3PodGroupStatus' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupStatus.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3PodGroupStatus.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2PodGroupStatus value) throws IOException { + public void write(JsonWriter out, V1alpha3PodGroupStatus value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2PodGroupStatus read(JsonReader in) throws IOException { + public V1alpha3PodGroupStatus read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -258,18 +258,18 @@ public V1alpha2PodGroupStatus read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha2PodGroupStatus given an JSON string + * Create an instance of V1alpha3PodGroupStatus given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2PodGroupStatus - * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupStatus + * @return An instance of V1alpha3PodGroupStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha3PodGroupStatus */ - public static V1alpha2PodGroupStatus fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupStatus.class); + public static V1alpha3PodGroupStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3PodGroupStatus.class); } /** - * Convert an instance of V1alpha2PodGroupStatus to an JSON string + * Convert an instance of V1alpha3PodGroupStatus to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupTemplate.java similarity index 64% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplate.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupTemplate.java index 4d14a498e0..9f34c76b5b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodGroupTemplate.java @@ -18,9 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha2PodGroupResourceClaim; -import io.kubernetes.client.openapi.models.V1alpha2PodGroupSchedulingConstraints; -import io.kubernetes.client.openapi.models.V1alpha2PodGroupSchedulingPolicy; +import io.kubernetes.client.openapi.models.V1alpha3DisruptionMode; +import io.kubernetes.client.openapi.models.V1alpha3PodGroupResourceClaim; +import io.kubernetes.client.openapi.models.V1alpha3PodGroupSchedulingConstraints; +import io.kubernetes.client.openapi.models.V1alpha3PodGroupSchedulingPolicy; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -55,18 +56,23 @@ * PodGroupTemplate represents a template for a set of pods with a scheduling policy. */ @ApiModel(description = "PodGroupTemplate represents a template for a set of pods with a scheduling policy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2PodGroupTemplate { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3PodGroupTemplate { public static final String SERIALIZED_NAME_DISRUPTION_MODE = "disruptionMode"; @SerializedName(SERIALIZED_NAME_DISRUPTION_MODE) @jakarta.annotation.Nullable - private String disruptionMode; + private V1alpha3DisruptionMode disruptionMode; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @jakarta.annotation.Nonnull private String name; + 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 @@ -80,52 +86,52 @@ public class V1alpha2PodGroupTemplate { public static final String SERIALIZED_NAME_RESOURCE_CLAIMS = "resourceClaims"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIMS) @jakarta.annotation.Nullable - private List resourceClaims = new ArrayList<>(); + private List resourceClaims = new ArrayList<>(); public static final String SERIALIZED_NAME_SCHEDULING_CONSTRAINTS = "schedulingConstraints"; @SerializedName(SERIALIZED_NAME_SCHEDULING_CONSTRAINTS) @jakarta.annotation.Nullable - private V1alpha2PodGroupSchedulingConstraints schedulingConstraints; + private V1alpha3PodGroupSchedulingConstraints schedulingConstraints; public static final String SERIALIZED_NAME_SCHEDULING_POLICY = "schedulingPolicy"; @SerializedName(SERIALIZED_NAME_SCHEDULING_POLICY) @jakarta.annotation.Nonnull - private V1alpha2PodGroupSchedulingPolicy schedulingPolicy; + private V1alpha3PodGroupSchedulingPolicy schedulingPolicy; - public V1alpha2PodGroupTemplate() { + public V1alpha3PodGroupTemplate() { } - public V1alpha2PodGroupTemplate disruptionMode(@jakarta.annotation.Nullable String disruptionMode) { + public V1alpha3PodGroupTemplate disruptionMode(@jakarta.annotation.Nullable V1alpha3DisruptionMode disruptionMode) { this.disruptionMode = disruptionMode; return this; } /** - * DisruptionMode defines the mode in which a given PodGroup can be disrupted. One of Pod, PodGroup. This field is available only when the WorkloadAwarePreemption feature gate is enabled. + * Get disruptionMode * @return disruptionMode */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "DisruptionMode defines the mode in which a given PodGroup can be disrupted. One of Pod, PodGroup. This field is available only when the WorkloadAwarePreemption feature gate is enabled.") - public String getDisruptionMode() { + @ApiModelProperty(value = "") + public V1alpha3DisruptionMode getDisruptionMode() { return disruptionMode; } - public void setDisruptionMode(@jakarta.annotation.Nullable String disruptionMode) { + public void setDisruptionMode(@jakarta.annotation.Nullable V1alpha3DisruptionMode disruptionMode) { this.disruptionMode = disruptionMode; } - public V1alpha2PodGroupTemplate name(@jakarta.annotation.Nonnull String name) { + public V1alpha3PodGroupTemplate name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } /** - * Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. + * name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.") + @ApiModelProperty(required = true, value = "name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.") public String getName() { return name; } @@ -135,17 +141,37 @@ public void setName(@jakarta.annotation.Nonnull String name) { } - public V1alpha2PodGroupTemplate priority(@jakarta.annotation.Nullable Integer priority) { + public V1alpha3PodGroupTemplate preemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return this; + } + + /** + * preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. + * @return preemptionPolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + public String getPreemptionPolicy() { + return preemptionPolicy; + } + + public void setPreemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + } + + + public V1alpha3PodGroupTemplate priority(@jakarta.annotation.Nullable Integer priority) { this.priority = priority; return this; } /** - * Priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. 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. This field is available only when the WorkloadAwarePreemption feature gate is enabled. + * priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. The higher the value, the higher the priority. This field is immutable. * @return priority */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. 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. This field is available only when the WorkloadAwarePreemption feature gate is enabled.") + @ApiModelProperty(value = "priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. The higher the value, the higher the priority. This field is immutable.") public Integer getPriority() { return priority; } @@ -155,17 +181,17 @@ public void setPriority(@jakarta.annotation.Nullable Integer priority) { } - public V1alpha2PodGroupTemplate priorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + public V1alpha3PodGroupTemplate priorityClassName(@jakarta.annotation.Nullable String priorityClassName) { this.priorityClassName = priorityClassName; return this; } /** - * PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, pod groups created from this template will have the priority set to zero. This field is available only when the WorkloadAwarePreemption feature gate is enabled. + * priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable. * @return priorityClassName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, pod groups created from this template will have the priority set to zero. This field is available only when the WorkloadAwarePreemption feature gate is enabled.") + @ApiModelProperty(value = "priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.") public String getPriorityClassName() { return priorityClassName; } @@ -175,12 +201,12 @@ public void setPriorityClassName(@jakarta.annotation.Nullable String priorityCla } - public V1alpha2PodGroupTemplate resourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + public V1alpha3PodGroupTemplate resourceClaims(@jakarta.annotation.Nullable List resourceClaims) { this.resourceClaims = resourceClaims; return this; } - public V1alpha2PodGroupTemplate addResourceClaimsItem(V1alpha2PodGroupResourceClaim resourceClaimsItem) { + public V1alpha3PodGroupTemplate addResourceClaimsItem(V1alpha3PodGroupResourceClaim resourceClaimsItem) { if (this.resourceClaims == null) { this.resourceClaims = new ArrayList<>(); } @@ -189,21 +215,21 @@ public V1alpha2PodGroupTemplate addResourceClaimsItem(V1alpha2PodGroupResourceCl } /** - * ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. + * resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. * @return resourceClaims */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") - public List getResourceClaims() { + @ApiModelProperty(value = "resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + public List getResourceClaims() { return resourceClaims; } - public void setResourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + public void setResourceClaims(@jakarta.annotation.Nullable List resourceClaims) { this.resourceClaims = resourceClaims; } - public V1alpha2PodGroupTemplate schedulingConstraints(@jakarta.annotation.Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints) { + public V1alpha3PodGroupTemplate schedulingConstraints(@jakarta.annotation.Nullable V1alpha3PodGroupSchedulingConstraints schedulingConstraints) { this.schedulingConstraints = schedulingConstraints; return this; } @@ -214,16 +240,16 @@ public V1alpha2PodGroupTemplate schedulingConstraints(@jakarta.annotation.Nullab */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha2PodGroupSchedulingConstraints getSchedulingConstraints() { + public V1alpha3PodGroupSchedulingConstraints getSchedulingConstraints() { return schedulingConstraints; } - public void setSchedulingConstraints(@jakarta.annotation.Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints) { + public void setSchedulingConstraints(@jakarta.annotation.Nullable V1alpha3PodGroupSchedulingConstraints schedulingConstraints) { this.schedulingConstraints = schedulingConstraints; } - public V1alpha2PodGroupTemplate schedulingPolicy(@jakarta.annotation.Nonnull V1alpha2PodGroupSchedulingPolicy schedulingPolicy) { + public V1alpha3PodGroupTemplate schedulingPolicy(@jakarta.annotation.Nonnull V1alpha3PodGroupSchedulingPolicy schedulingPolicy) { this.schedulingPolicy = schedulingPolicy; return this; } @@ -234,11 +260,11 @@ public V1alpha2PodGroupTemplate schedulingPolicy(@jakarta.annotation.Nonnull V1a */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1alpha2PodGroupSchedulingPolicy getSchedulingPolicy() { + public V1alpha3PodGroupSchedulingPolicy getSchedulingPolicy() { return schedulingPolicy; } - public void setSchedulingPolicy(@jakarta.annotation.Nonnull V1alpha2PodGroupSchedulingPolicy schedulingPolicy) { + public void setSchedulingPolicy(@jakarta.annotation.Nonnull V1alpha3PodGroupSchedulingPolicy schedulingPolicy) { this.schedulingPolicy = schedulingPolicy; } @@ -252,27 +278,29 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2PodGroupTemplate v1alpha2PodGroupTemplate = (V1alpha2PodGroupTemplate) o; - return Objects.equals(this.disruptionMode, v1alpha2PodGroupTemplate.disruptionMode) && - Objects.equals(this.name, v1alpha2PodGroupTemplate.name) && - Objects.equals(this.priority, v1alpha2PodGroupTemplate.priority) && - Objects.equals(this.priorityClassName, v1alpha2PodGroupTemplate.priorityClassName) && - Objects.equals(this.resourceClaims, v1alpha2PodGroupTemplate.resourceClaims) && - Objects.equals(this.schedulingConstraints, v1alpha2PodGroupTemplate.schedulingConstraints) && - Objects.equals(this.schedulingPolicy, v1alpha2PodGroupTemplate.schedulingPolicy); + V1alpha3PodGroupTemplate v1alpha3PodGroupTemplate = (V1alpha3PodGroupTemplate) o; + return Objects.equals(this.disruptionMode, v1alpha3PodGroupTemplate.disruptionMode) && + Objects.equals(this.name, v1alpha3PodGroupTemplate.name) && + Objects.equals(this.preemptionPolicy, v1alpha3PodGroupTemplate.preemptionPolicy) && + Objects.equals(this.priority, v1alpha3PodGroupTemplate.priority) && + Objects.equals(this.priorityClassName, v1alpha3PodGroupTemplate.priorityClassName) && + Objects.equals(this.resourceClaims, v1alpha3PodGroupTemplate.resourceClaims) && + Objects.equals(this.schedulingConstraints, v1alpha3PodGroupTemplate.schedulingConstraints) && + Objects.equals(this.schedulingPolicy, v1alpha3PodGroupTemplate.schedulingPolicy); } @Override public int hashCode() { - return Objects.hash(disruptionMode, name, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy); + return Objects.hash(disruptionMode, name, preemptionPolicy, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2PodGroupTemplate {\n"); + sb.append("class V1alpha3PodGroupTemplate {\n"); sb.append(" disruptionMode: ").append(toIndentedString(disruptionMode)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" preemptionPolicy: ").append(toIndentedString(preemptionPolicy)).append("\n"); sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); sb.append(" priorityClassName: ").append(toIndentedString(priorityClassName)).append("\n"); sb.append(" resourceClaims: ").append(toIndentedString(resourceClaims)).append("\n"); @@ -299,7 +327,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("disruptionMode", "name", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy")); + openapiFields = new HashSet(Arrays.asList("disruptionMode", "name", "preemptionPolicy", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name", "schedulingPolicy")); @@ -309,36 +337,40 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupTemplate + * @throws IOException if the JSON Element is invalid with respect to V1alpha3PodGroupTemplate */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2PodGroupTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupTemplate is not found in the empty JSON string", V1alpha2PodGroupTemplate.openapiRequiredFields.toString())); + if (!V1alpha3PodGroupTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3PodGroupTemplate is not found in the empty JSON string", V1alpha3PodGroupTemplate.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2PodGroupTemplate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3PodGroupTemplate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3PodGroupTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha2PodGroupTemplate.openapiRequiredFields) { + for (String requiredField : V1alpha3PodGroupTemplate.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("disruptionMode") != null && !jsonObj.get("disruptionMode").isJsonNull()) && !jsonObj.get("disruptionMode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `disruptionMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("disruptionMode").toString())); + // validate the optional field `disruptionMode` + if (jsonObj.get("disruptionMode") != null && !jsonObj.get("disruptionMode").isJsonNull()) { + V1alpha3DisruptionMode.validateJsonElement(jsonObj.get("disruptionMode")); } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } + if ((jsonObj.get("preemptionPolicy") != null && !jsonObj.get("preemptionPolicy").isJsonNull()) && !jsonObj.get("preemptionPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `preemptionPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preemptionPolicy").toString())); + } if ((jsonObj.get("priorityClassName") != null && !jsonObj.get("priorityClassName").isJsonNull()) && !jsonObj.get("priorityClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `priorityClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priorityClassName").toString())); } @@ -352,38 +384,38 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `resourceClaims` (array) for (int i = 0; i < jsonArrayresourceClaims.size(); i++) { - V1alpha2PodGroupResourceClaim.validateJsonElement(jsonArrayresourceClaims.get(i)); + V1alpha3PodGroupResourceClaim.validateJsonElement(jsonArrayresourceClaims.get(i)); }; } } // validate the optional field `schedulingConstraints` if (jsonObj.get("schedulingConstraints") != null && !jsonObj.get("schedulingConstraints").isJsonNull()) { - V1alpha2PodGroupSchedulingConstraints.validateJsonElement(jsonObj.get("schedulingConstraints")); + V1alpha3PodGroupSchedulingConstraints.validateJsonElement(jsonObj.get("schedulingConstraints")); } // validate the required field `schedulingPolicy` - V1alpha2PodGroupSchedulingPolicy.validateJsonElement(jsonObj.get("schedulingPolicy")); + V1alpha3PodGroupSchedulingPolicy.validateJsonElement(jsonObj.get("schedulingPolicy")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2PodGroupTemplate.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2PodGroupTemplate' and its subtypes + if (!V1alpha3PodGroupTemplate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3PodGroupTemplate' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupTemplate.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3PodGroupTemplate.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2PodGroupTemplate value) throws IOException { + public void write(JsonWriter out, V1alpha3PodGroupTemplate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2PodGroupTemplate read(JsonReader in) throws IOException { + public V1alpha3PodGroupTemplate read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -394,18 +426,18 @@ public V1alpha2PodGroupTemplate read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha2PodGroupTemplate given an JSON string + * Create an instance of V1alpha3PodGroupTemplate given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2PodGroupTemplate - * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupTemplate + * @return An instance of V1alpha3PodGroupTemplate + * @throws IOException if the JSON string is invalid with respect to V1alpha3PodGroupTemplate */ - public static V1alpha2PodGroupTemplate fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupTemplate.class); + public static V1alpha3PodGroupTemplate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3PodGroupTemplate.class); } /** - * Convert an instance of V1alpha2PodGroupTemplate to an JSON string + * Convert an instance of V1alpha3PodGroupTemplate to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatus.java index 3f7ad18ee4..c7aa17d30a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatus.java @@ -18,10 +18,14 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha3PartitionTypeStatus; +import io.kubernetes.client.openapi.models.V1alpha3ShareableSummaryStatus; 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; @@ -50,7 +54,7 @@ * PoolStatus contains status information for a single resource pool. */ @ApiModel(description = "PoolStatus contains status information for a single resource pool.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3PoolStatus { public static final String SERIALIZED_NAME_ALLOCATED_DEVICES = "allocatedDevices"; @SerializedName(SERIALIZED_NAME_ALLOCATED_DEVICES) @@ -77,6 +81,11 @@ public class V1alpha3PoolStatus { @jakarta.annotation.Nullable private String nodeName; + public static final String SERIALIZED_NAME_PARTITION_SUMMARY = "partitionSummary"; + @SerializedName(SERIALIZED_NAME_PARTITION_SUMMARY) + @jakarta.annotation.Nullable + private List partitionSummary = new ArrayList<>(); + public static final String SERIALIZED_NAME_POOL_NAME = "poolName"; @SerializedName(SERIALIZED_NAME_POOL_NAME) @jakarta.annotation.Nonnull @@ -87,6 +96,11 @@ public class V1alpha3PoolStatus { @jakarta.annotation.Nullable private Integer resourceSliceCount; + public static final String SERIALIZED_NAME_SHAREABLE_SUMMARY = "shareableSummary"; + @SerializedName(SERIALIZED_NAME_SHAREABLE_SUMMARY) + @jakarta.annotation.Nullable + private V1alpha3ShareableSummaryStatus shareableSummary; + public static final String SERIALIZED_NAME_TOTAL_DEVICES = "totalDevices"; @SerializedName(SERIALIZED_NAME_TOTAL_DEVICES) @jakarta.annotation.Nullable @@ -205,6 +219,34 @@ public void setNodeName(@jakarta.annotation.Nullable String nodeName) { } + public V1alpha3PoolStatus partitionSummary(@jakarta.annotation.Nullable List partitionSummary) { + this.partitionSummary = partitionSummary; + return this; + } + + public V1alpha3PoolStatus addPartitionSummaryItem(V1alpha3PartitionTypeStatus partitionSummaryItem) { + if (this.partitionSummary == null) { + this.partitionSummary = new ArrayList<>(); + } + this.partitionSummary.add(partitionSummaryItem); + return this; + } + + /** + * PartitionSummary reports allocatability per (attribute, partition type) for a partitionable pool that publishes SharedCounters. Each entry names the grouping attribute it was resolved from: the PartitionTypeAttribute declared by a device's own slice, or for devices whose slice declares none, the default named in the request. A pool that mixes partitions declared under different attributes reports each independently. When no slice declares an attribute and the request names no default, the pool reports no partition summary. + * @return partitionSummary + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "PartitionSummary reports allocatability per (attribute, partition type) for a partitionable pool that publishes SharedCounters. Each entry names the grouping attribute it was resolved from: the PartitionTypeAttribute declared by a device's own slice, or for devices whose slice declares none, the default named in the request. A pool that mixes partitions declared under different attributes reports each independently. When no slice declares an attribute and the request names no default, the pool reports no partition summary.") + public List getPartitionSummary() { + return partitionSummary; + } + + public void setPartitionSummary(@jakarta.annotation.Nullable List partitionSummary) { + this.partitionSummary = partitionSummary; + } + + public V1alpha3PoolStatus poolName(@jakarta.annotation.Nonnull String poolName) { this.poolName = poolName; return this; @@ -245,6 +287,26 @@ public void setResourceSliceCount(@jakarta.annotation.Nullable Integer resourceS } + public V1alpha3PoolStatus shareableSummary(@jakarta.annotation.Nullable V1alpha3ShareableSummaryStatus shareableSummary) { + this.shareableSummary = shareableSummary; + return this; + } + + /** + * Get shareableSummary + * @return shareableSummary + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3ShareableSummaryStatus getShareableSummary() { + return shareableSummary; + } + + public void setShareableSummary(@jakarta.annotation.Nullable V1alpha3ShareableSummaryStatus shareableSummary) { + this.shareableSummary = shareableSummary; + } + + public V1alpha3PoolStatus totalDevices(@jakarta.annotation.Nullable Integer totalDevices) { this.totalDevices = totalDevices; return this; @@ -320,8 +382,10 @@ public boolean equals(Object o) { Objects.equals(this.driver, v1alpha3PoolStatus.driver) && Objects.equals(this.generation, v1alpha3PoolStatus.generation) && Objects.equals(this.nodeName, v1alpha3PoolStatus.nodeName) && + Objects.equals(this.partitionSummary, v1alpha3PoolStatus.partitionSummary) && Objects.equals(this.poolName, v1alpha3PoolStatus.poolName) && Objects.equals(this.resourceSliceCount, v1alpha3PoolStatus.resourceSliceCount) && + Objects.equals(this.shareableSummary, v1alpha3PoolStatus.shareableSummary) && Objects.equals(this.totalDevices, v1alpha3PoolStatus.totalDevices) && Objects.equals(this.unavailableDevices, v1alpha3PoolStatus.unavailableDevices) && Objects.equals(this.validationError, v1alpha3PoolStatus.validationError); @@ -329,7 +393,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allocatedDevices, availableDevices, driver, generation, nodeName, poolName, resourceSliceCount, totalDevices, unavailableDevices, validationError); + return Objects.hash(allocatedDevices, availableDevices, driver, generation, nodeName, partitionSummary, poolName, resourceSliceCount, shareableSummary, totalDevices, unavailableDevices, validationError); } @Override @@ -341,8 +405,10 @@ public String toString() { sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" generation: ").append(toIndentedString(generation)).append("\n"); sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); + sb.append(" partitionSummary: ").append(toIndentedString(partitionSummary)).append("\n"); sb.append(" poolName: ").append(toIndentedString(poolName)).append("\n"); sb.append(" resourceSliceCount: ").append(toIndentedString(resourceSliceCount)).append("\n"); + sb.append(" shareableSummary: ").append(toIndentedString(shareableSummary)).append("\n"); sb.append(" totalDevices: ").append(toIndentedString(totalDevices)).append("\n"); sb.append(" unavailableDevices: ").append(toIndentedString(unavailableDevices)).append("\n"); sb.append(" validationError: ").append(toIndentedString(validationError)).append("\n"); @@ -367,7 +433,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allocatedDevices", "availableDevices", "driver", "generation", "nodeName", "poolName", "resourceSliceCount", "totalDevices", "unavailableDevices", "validationError")); + openapiFields = new HashSet(Arrays.asList("allocatedDevices", "availableDevices", "driver", "generation", "nodeName", "partitionSummary", "poolName", "resourceSliceCount", "shareableSummary", "totalDevices", "unavailableDevices", "validationError")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("driver", "generation", "poolName")); @@ -407,9 +473,27 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("nodeName") != null && !jsonObj.get("nodeName").isJsonNull()) && !jsonObj.get("nodeName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); } + if (jsonObj.get("partitionSummary") != null && !jsonObj.get("partitionSummary").isJsonNull()) { + JsonArray jsonArraypartitionSummary = jsonObj.getAsJsonArray("partitionSummary"); + if (jsonArraypartitionSummary != null) { + // ensure the json data is an array + if (!jsonObj.get("partitionSummary").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `partitionSummary` to be an array in the JSON string but got `%s`", jsonObj.get("partitionSummary").toString())); + } + + // validate the optional field `partitionSummary` (array) + for (int i = 0; i < jsonArraypartitionSummary.size(); i++) { + V1alpha3PartitionTypeStatus.validateJsonElement(jsonArraypartitionSummary.get(i)); + }; + } + } if (!jsonObj.get("poolName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `poolName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("poolName").toString())); } + // validate the optional field `shareableSummary` + if (jsonObj.get("shareableSummary") != null && !jsonObj.get("shareableSummary").isJsonNull()) { + V1alpha3ShareableSummaryStatus.validateJsonElement(jsonObj.get("shareableSummary")); + } if ((jsonObj.get("validationError") != null && !jsonObj.get("validationError").isJsonNull()) && !jsonObj.get("validationError").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `validationError` to be a primitive type in the JSON string but got `%s`", jsonObj.get("validationError").toString())); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequest.java index ff4a95ebf0..29080f03cd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequest.java @@ -53,7 +53,7 @@ * ResourcePoolStatusRequest triggers a one-time calculation of resource pool status based on the provided filters. Once status is set, the request is considered complete and will not be reprocessed. Users should delete and recreate requests to get updated information. */ @ApiModel(description = "ResourcePoolStatusRequest triggers a one-time calculation of resource pool status based on the provided filters. Once status is set, the request is considered complete and will not be reprocessed. Users should delete and recreate requests to get updated information.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3ResourcePoolStatusRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestList.java index fab5bace86..362c1d9168 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestList.java @@ -54,7 +54,7 @@ * ResourcePoolStatusRequestList is a collection of ResourcePoolStatusRequests. */ @ApiModel(description = "ResourcePoolStatusRequestList is a collection of ResourcePoolStatusRequests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3ResourcePoolStatusRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpec.java index 033f45e135..29c01d8b60 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpec.java @@ -50,8 +50,13 @@ * ResourcePoolStatusRequestSpec defines the filters for the pool status request. */ @ApiModel(description = "ResourcePoolStatusRequestSpec defines the filters for the pool status request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3ResourcePoolStatusRequestSpec { + public static final String SERIALIZED_NAME_DEFAULT_PARTITION_TYPE_ATTRIBUTE = "defaultPartitionTypeAttribute"; + @SerializedName(SERIALIZED_NAME_DEFAULT_PARTITION_TYPE_ATTRIBUTE) + @jakarta.annotation.Nullable + private String defaultPartitionTypeAttribute; + public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @jakarta.annotation.Nonnull @@ -70,6 +75,26 @@ public class V1alpha3ResourcePoolStatusRequestSpec { public V1alpha3ResourcePoolStatusRequestSpec() { } + public V1alpha3ResourcePoolStatusRequestSpec defaultPartitionTypeAttribute(@jakarta.annotation.Nullable String defaultPartitionTypeAttribute) { + this.defaultPartitionTypeAttribute = defaultPartitionTypeAttribute; + return this; + } + + /** + * DefaultPartitionTypeAttribute optionally names a device attribute (by its fully qualified name, e.g. \"gpu.example.com/profile\") to use as the default grouping attribute for partitionable devices whose slice has not declared one themselves. A slice's own PartitionTypeAttribute always takes precedence. This default applies only to devices whose slice does not declare one, so that a request can still get an accurate partitionSummary from a driver that has not been updated to declare it. When neither the slice nor this default names an attribute, a partitionable pool reports no partitionSummary. Must include the domain qualifier. + * @return defaultPartitionTypeAttribute + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DefaultPartitionTypeAttribute optionally names a device attribute (by its fully qualified name, e.g. \"gpu.example.com/profile\") to use as the default grouping attribute for partitionable devices whose slice has not declared one themselves. A slice's own PartitionTypeAttribute always takes precedence. This default applies only to devices whose slice does not declare one, so that a request can still get an accurate partitionSummary from a driver that has not been updated to declare it. When neither the slice nor this default names an attribute, a partitionable pool reports no partitionSummary. Must include the domain qualifier.") + public String getDefaultPartitionTypeAttribute() { + return defaultPartitionTypeAttribute; + } + + public void setDefaultPartitionTypeAttribute(@jakarta.annotation.Nullable String defaultPartitionTypeAttribute) { + this.defaultPartitionTypeAttribute = defaultPartitionTypeAttribute; + } + + public V1alpha3ResourcePoolStatusRequestSpec driver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; return this; @@ -140,20 +165,22 @@ public boolean equals(Object o) { return false; } V1alpha3ResourcePoolStatusRequestSpec v1alpha3ResourcePoolStatusRequestSpec = (V1alpha3ResourcePoolStatusRequestSpec) o; - return Objects.equals(this.driver, v1alpha3ResourcePoolStatusRequestSpec.driver) && + return Objects.equals(this.defaultPartitionTypeAttribute, v1alpha3ResourcePoolStatusRequestSpec.defaultPartitionTypeAttribute) && + Objects.equals(this.driver, v1alpha3ResourcePoolStatusRequestSpec.driver) && Objects.equals(this.limit, v1alpha3ResourcePoolStatusRequestSpec.limit) && Objects.equals(this.poolName, v1alpha3ResourcePoolStatusRequestSpec.poolName); } @Override public int hashCode() { - return Objects.hash(driver, limit, poolName); + return Objects.hash(defaultPartitionTypeAttribute, driver, limit, poolName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha3ResourcePoolStatusRequestSpec {\n"); + sb.append(" defaultPartitionTypeAttribute: ").append(toIndentedString(defaultPartitionTypeAttribute)).append("\n"); sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" poolName: ").append(toIndentedString(poolName)).append("\n"); @@ -178,7 +205,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("driver", "limit", "poolName")); + openapiFields = new HashSet(Arrays.asList("defaultPartitionTypeAttribute", "driver", "limit", "poolName")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("driver")); @@ -212,6 +239,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("defaultPartitionTypeAttribute") != null && !jsonObj.get("defaultPartitionTypeAttribute").isJsonNull()) && !jsonObj.get("defaultPartitionTypeAttribute").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `defaultPartitionTypeAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("defaultPartitionTypeAttribute").toString())); + } if (!jsonObj.get("driver").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatus.java index 08f25527d2..f2d551327e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatus.java @@ -54,7 +54,7 @@ * ResourcePoolStatusRequestStatus contains the calculated pool status information. */ @ApiModel(description = "ResourcePoolStatusRequestStatus contains the calculated pool status information.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3ResourcePoolStatusRequestStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableCapacityStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableCapacityStatus.java new file mode 100644 index 0000000000..c268a96e81 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableCapacityStatus.java @@ -0,0 +1,305 @@ +/* +Copyright 2026 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; + +/** + * ShareableCapacityStatus reports aggregate amounts for a single shareable capacity key. + */ +@ApiModel(description = "ShareableCapacityStatus reports aggregate amounts for a single shareable capacity key.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3ShareableCapacityStatus { + public static final String SERIALIZED_NAME_AVAILABLE = "available"; + @SerializedName(SERIALIZED_NAME_AVAILABLE) + @jakarta.annotation.Nonnull + private Quantity available; + + public static final String SERIALIZED_NAME_CONSUMED = "consumed"; + @SerializedName(SERIALIZED_NAME_CONSUMED) + @jakarta.annotation.Nonnull + private Quantity consumed; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_TOTAL = "total"; + @SerializedName(SERIALIZED_NAME_TOTAL) + @jakarta.annotation.Nonnull + private Quantity total; + + public V1alpha3ShareableCapacityStatus() { + } + + public V1alpha3ShareableCapacityStatus available(@jakarta.annotation.Nonnull Quantity available) { + this.available = available; + 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 available + */ + @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 getAvailable() { + return available; + } + + public void setAvailable(@jakarta.annotation.Nonnull Quantity available) { + this.available = available; + } + + + public V1alpha3ShareableCapacityStatus consumed(@jakarta.annotation.Nonnull Quantity consumed) { + this.consumed = consumed; + 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 consumed + */ + @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 getConsumed() { + return consumed; + } + + public void setConsumed(@jakarta.annotation.Nonnull Quantity consumed) { + this.consumed = consumed; + } + + + public V1alpha3ShareableCapacityStatus name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name is the capacity name. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the capacity name.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1alpha3ShareableCapacityStatus total(@jakarta.annotation.Nonnull Quantity total) { + this.total = total; + 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 total + */ + @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 getTotal() { + return total; + } + + public void setTotal(@jakarta.annotation.Nonnull Quantity total) { + this.total = total; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3ShareableCapacityStatus v1alpha3ShareableCapacityStatus = (V1alpha3ShareableCapacityStatus) o; + return Objects.equals(this.available, v1alpha3ShareableCapacityStatus.available) && + Objects.equals(this.consumed, v1alpha3ShareableCapacityStatus.consumed) && + Objects.equals(this.name, v1alpha3ShareableCapacityStatus.name) && + Objects.equals(this.total, v1alpha3ShareableCapacityStatus.total); + } + + @Override + public int hashCode() { + return Objects.hash(available, consumed, name, total); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3ShareableCapacityStatus {\n"); + sb.append(" available: ").append(toIndentedString(available)).append("\n"); + sb.append(" consumed: ").append(toIndentedString(consumed)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).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(Arrays.asList("available", "consumed", "name", "total")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("available", "consumed", "name", "total")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3ShareableCapacityStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3ShareableCapacityStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3ShareableCapacityStatus is not found in the empty JSON string", V1alpha3ShareableCapacityStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3ShareableCapacityStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3ShareableCapacityStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3ShareableCapacityStatus.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("available").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `available` to be a primitive type in the JSON string but got `%s`", jsonObj.get("available").toString())); + } + if (!jsonObj.get("consumed").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `consumed` to be a primitive type in the JSON string but got `%s`", jsonObj.get("consumed").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("total").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `total` to be a primitive type in the JSON string but got `%s`", jsonObj.get("total").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3ShareableCapacityStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3ShareableCapacityStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ShareableCapacityStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3ShareableCapacityStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3ShareableCapacityStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3ShareableCapacityStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3ShareableCapacityStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha3ShareableCapacityStatus + */ + public static V1alpha3ShareableCapacityStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3ShareableCapacityStatus.class); + } + + /** + * Convert an instance of V1alpha3ShareableCapacityStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableSummaryStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableSummaryStatus.java new file mode 100644 index 0000000000..cbe6ada084 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ShareableSummaryStatus.java @@ -0,0 +1,290 @@ +/* +Copyright 2026 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.V1alpha3ShareableCapacityStatus; +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; + +/** + * ShareableSummaryStatus reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations. + */ +@ApiModel(description = "ShareableSummaryStatus reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3ShareableSummaryStatus { + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable + private List capacity = new ArrayList<>(); + + public static final String SERIALIZED_NAME_FULLY_AVAILABLE_DEVICES = "fullyAvailableDevices"; + @SerializedName(SERIALIZED_NAME_FULLY_AVAILABLE_DEVICES) + @jakarta.annotation.Nonnull + private Integer fullyAvailableDevices; + + public static final String SERIALIZED_NAME_PARTIALLY_AVAILABLE_DEVICES = "partiallyAvailableDevices"; + @SerializedName(SERIALIZED_NAME_PARTIALLY_AVAILABLE_DEVICES) + @jakarta.annotation.Nonnull + private Integer partiallyAvailableDevices; + + public V1alpha3ShareableSummaryStatus() { + } + + public V1alpha3ShareableSummaryStatus capacity(@jakarta.annotation.Nullable List capacity) { + this.capacity = capacity; + return this; + } + + public V1alpha3ShareableSummaryStatus addCapacityItem(V1alpha3ShareableCapacityStatus capacityItem) { + if (this.capacity == null) { + this.capacity = new ArrayList<>(); + } + this.capacity.add(capacityItem); + return this; + } + + /** + * Capacity reports aggregate total, consumed, and available amounts per shareable capacity key across the pool. + * @return capacity + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Capacity reports aggregate total, consumed, and available amounts per shareable capacity key across the pool.") + public List getCapacity() { + return capacity; + } + + public void setCapacity(@jakarta.annotation.Nullable List capacity) { + this.capacity = capacity; + } + + + public V1alpha3ShareableSummaryStatus fullyAvailableDevices(@jakarta.annotation.Nonnull Integer fullyAvailableDevices) { + this.fullyAvailableDevices = fullyAvailableDevices; + return this; + } + + /** + * FullyAvailableDevices is the number of shareable devices with no capacity consumed. + * @return fullyAvailableDevices + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "FullyAvailableDevices is the number of shareable devices with no capacity consumed.") + public Integer getFullyAvailableDevices() { + return fullyAvailableDevices; + } + + public void setFullyAvailableDevices(@jakarta.annotation.Nonnull Integer fullyAvailableDevices) { + this.fullyAvailableDevices = fullyAvailableDevices; + } + + + public V1alpha3ShareableSummaryStatus partiallyAvailableDevices(@jakarta.annotation.Nonnull Integer partiallyAvailableDevices) { + this.partiallyAvailableDevices = partiallyAvailableDevices; + return this; + } + + /** + * PartiallyAvailableDevices is the number of shareable devices with some but not all capacity consumed. + * @return partiallyAvailableDevices + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "PartiallyAvailableDevices is the number of shareable devices with some but not all capacity consumed.") + public Integer getPartiallyAvailableDevices() { + return partiallyAvailableDevices; + } + + public void setPartiallyAvailableDevices(@jakarta.annotation.Nonnull Integer partiallyAvailableDevices) { + this.partiallyAvailableDevices = partiallyAvailableDevices; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3ShareableSummaryStatus v1alpha3ShareableSummaryStatus = (V1alpha3ShareableSummaryStatus) o; + return Objects.equals(this.capacity, v1alpha3ShareableSummaryStatus.capacity) && + Objects.equals(this.fullyAvailableDevices, v1alpha3ShareableSummaryStatus.fullyAvailableDevices) && + Objects.equals(this.partiallyAvailableDevices, v1alpha3ShareableSummaryStatus.partiallyAvailableDevices); + } + + @Override + public int hashCode() { + return Objects.hash(capacity, fullyAvailableDevices, partiallyAvailableDevices); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3ShareableSummaryStatus {\n"); + sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); + sb.append(" fullyAvailableDevices: ").append(toIndentedString(fullyAvailableDevices)).append("\n"); + sb.append(" partiallyAvailableDevices: ").append(toIndentedString(partiallyAvailableDevices)).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(Arrays.asList("capacity", "fullyAvailableDevices", "partiallyAvailableDevices")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("fullyAvailableDevices", "partiallyAvailableDevices")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3ShareableSummaryStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3ShareableSummaryStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3ShareableSummaryStatus is not found in the empty JSON string", V1alpha3ShareableSummaryStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3ShareableSummaryStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3ShareableSummaryStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3ShareableSummaryStatus.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { + JsonArray jsonArraycapacity = jsonObj.getAsJsonArray("capacity"); + if (jsonArraycapacity != null) { + // ensure the json data is an array + if (!jsonObj.get("capacity").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `capacity` to be an array in the JSON string but got `%s`", jsonObj.get("capacity").toString())); + } + + // validate the optional field `capacity` (array) + for (int i = 0; i < jsonArraycapacity.size(); i++) { + V1alpha3ShareableCapacityStatus.validateJsonElement(jsonArraycapacity.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3ShareableSummaryStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3ShareableSummaryStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ShareableSummaryStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3ShareableSummaryStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3ShareableSummaryStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3ShareableSummaryStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3ShareableSummaryStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha3ShareableSummaryStatus + */ + public static V1alpha3ShareableSummaryStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3ShareableSummaryStatus.class); + } + + /** + * Convert an instance of V1alpha3ShareableSummaryStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TopologyConstraint.java similarity index 79% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraint.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TopologyConstraint.java index 0917941d7a..d946a96503 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TopologyConstraint.java @@ -50,27 +50,27 @@ * TopologyConstraint defines a topology constraint for a PodGroup. */ @ApiModel(description = "TopologyConstraint defines a topology constraint for a PodGroup.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2TopologyConstraint { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3TopologyConstraint { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @jakarta.annotation.Nonnull private String key; - public V1alpha2TopologyConstraint() { + public V1alpha3TopologyConstraint() { } - public V1alpha2TopologyConstraint key(@jakarta.annotation.Nonnull String key) { + public V1alpha3TopologyConstraint key(@jakarta.annotation.Nonnull String key) { this.key = key; return this; } /** - * Key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\" + * key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\" * @return key */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\"") + @ApiModelProperty(required = true, value = "key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\"") public String getKey() { return key; } @@ -89,8 +89,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2TopologyConstraint v1alpha2TopologyConstraint = (V1alpha2TopologyConstraint) o; - return Objects.equals(this.key, v1alpha2TopologyConstraint.key); + V1alpha3TopologyConstraint v1alpha3TopologyConstraint = (V1alpha3TopologyConstraint) o; + return Objects.equals(this.key, v1alpha3TopologyConstraint.key); } @Override @@ -101,7 +101,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2TopologyConstraint {\n"); + sb.append("class V1alpha3TopologyConstraint {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append("}"); return sb.toString(); @@ -134,25 +134,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2TopologyConstraint + * @throws IOException if the JSON Element is invalid with respect to V1alpha3TopologyConstraint */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2TopologyConstraint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2TopologyConstraint is not found in the empty JSON string", V1alpha2TopologyConstraint.openapiRequiredFields.toString())); + if (!V1alpha3TopologyConstraint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3TopologyConstraint is not found in the empty JSON string", V1alpha3TopologyConstraint.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2TopologyConstraint.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2TopologyConstraint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3TopologyConstraint.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3TopologyConstraint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha2TopologyConstraint.openapiRequiredFields) { + for (String requiredField : V1alpha3TopologyConstraint.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -167,22 +167,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2TopologyConstraint.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2TopologyConstraint' and its subtypes + if (!V1alpha3TopologyConstraint.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3TopologyConstraint' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2TopologyConstraint.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3TopologyConstraint.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2TopologyConstraint value) throws IOException { + public void write(JsonWriter out, V1alpha3TopologyConstraint value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2TopologyConstraint read(JsonReader in) throws IOException { + public V1alpha3TopologyConstraint read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -193,18 +193,18 @@ public V1alpha2TopologyConstraint read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha2TopologyConstraint given an JSON string + * Create an instance of V1alpha3TopologyConstraint given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2TopologyConstraint - * @throws IOException if the JSON string is invalid with respect to V1alpha2TopologyConstraint + * @return An instance of V1alpha3TopologyConstraint + * @throws IOException if the JSON string is invalid with respect to V1alpha3TopologyConstraint */ - public static V1alpha2TopologyConstraint fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2TopologyConstraint.class); + public static V1alpha3TopologyConstraint fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3TopologyConstraint.class); } /** - * Convert an instance of V1alpha2TopologyConstraint to an JSON string + * Convert an instance of V1alpha3TopologyConstraint to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TypedLocalObjectReference.java similarity index 79% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReference.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TypedLocalObjectReference.java index eef6b48082..e7629debe9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3TypedLocalObjectReference.java @@ -50,8 +50,8 @@ * TypedLocalObjectReference allows to reference typed object inside the same namespace. */ @ApiModel(description = "TypedLocalObjectReference allows to reference typed object inside the same namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2TypedLocalObjectReference { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3TypedLocalObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @jakarta.annotation.Nullable @@ -67,20 +67,20 @@ public class V1alpha2TypedLocalObjectReference { @jakarta.annotation.Nonnull private String name; - public V1alpha2TypedLocalObjectReference() { + public V1alpha3TypedLocalObjectReference() { } - public V1alpha2TypedLocalObjectReference apiGroup(@jakarta.annotation.Nullable String apiGroup) { + public V1alpha3TypedLocalObjectReference apiGroup(@jakarta.annotation.Nullable String apiGroup) { this.apiGroup = apiGroup; return this; } /** - * APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain. + * apiGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain. * @return apiGroup */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.") + @ApiModelProperty(value = "apiGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.") public String getApiGroup() { return apiGroup; } @@ -90,17 +90,17 @@ public void setApiGroup(@jakarta.annotation.Nullable String apiGroup) { } - public V1alpha2TypedLocalObjectReference kind(@jakarta.annotation.Nonnull String kind) { + public V1alpha3TypedLocalObjectReference kind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; return this; } /** - * Kind is the type of resource being referenced. It must be a path segment name. + * kind is the type of resource being referenced. It must be a path segment name. * @return kind */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced. It must be a path segment name.") + @ApiModelProperty(required = true, value = "kind is the type of resource being referenced. It must be a path segment name.") public String getKind() { return kind; } @@ -110,17 +110,17 @@ public void setKind(@jakarta.annotation.Nonnull String kind) { } - public V1alpha2TypedLocalObjectReference name(@jakarta.annotation.Nonnull String name) { + public V1alpha3TypedLocalObjectReference name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } /** - * Name is the name of resource being referenced. It must be a path segment name. + * name is the name of resource being referenced. It must be a path segment name. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name is the name of resource being referenced. It must be a path segment name.") + @ApiModelProperty(required = true, value = "name is the name of resource being referenced. It must be a path segment name.") public String getName() { return name; } @@ -139,10 +139,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2TypedLocalObjectReference v1alpha2TypedLocalObjectReference = (V1alpha2TypedLocalObjectReference) o; - return Objects.equals(this.apiGroup, v1alpha2TypedLocalObjectReference.apiGroup) && - Objects.equals(this.kind, v1alpha2TypedLocalObjectReference.kind) && - Objects.equals(this.name, v1alpha2TypedLocalObjectReference.name); + V1alpha3TypedLocalObjectReference v1alpha3TypedLocalObjectReference = (V1alpha3TypedLocalObjectReference) o; + return Objects.equals(this.apiGroup, v1alpha3TypedLocalObjectReference.apiGroup) && + Objects.equals(this.kind, v1alpha3TypedLocalObjectReference.kind) && + Objects.equals(this.name, v1alpha3TypedLocalObjectReference.name); } @Override @@ -153,7 +153,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2TypedLocalObjectReference {\n"); + sb.append("class V1alpha3TypedLocalObjectReference {\n"); sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -188,25 +188,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2TypedLocalObjectReference + * @throws IOException if the JSON Element is invalid with respect to V1alpha3TypedLocalObjectReference */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2TypedLocalObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2TypedLocalObjectReference is not found in the empty JSON string", V1alpha2TypedLocalObjectReference.openapiRequiredFields.toString())); + if (!V1alpha3TypedLocalObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3TypedLocalObjectReference is not found in the empty JSON string", V1alpha3TypedLocalObjectReference.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2TypedLocalObjectReference.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2TypedLocalObjectReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3TypedLocalObjectReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3TypedLocalObjectReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha2TypedLocalObjectReference.openapiRequiredFields) { + for (String requiredField : V1alpha3TypedLocalObjectReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -227,22 +227,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2TypedLocalObjectReference.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2TypedLocalObjectReference' and its subtypes + if (!V1alpha3TypedLocalObjectReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3TypedLocalObjectReference' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2TypedLocalObjectReference.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3TypedLocalObjectReference.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2TypedLocalObjectReference value) throws IOException { + public void write(JsonWriter out, V1alpha3TypedLocalObjectReference value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2TypedLocalObjectReference read(JsonReader in) throws IOException { + public V1alpha3TypedLocalObjectReference read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -253,18 +253,18 @@ public V1alpha2TypedLocalObjectReference read(JsonReader in) throws IOException } /** - * Create an instance of V1alpha2TypedLocalObjectReference given an JSON string + * Create an instance of V1alpha3TypedLocalObjectReference given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2TypedLocalObjectReference - * @throws IOException if the JSON string is invalid with respect to V1alpha2TypedLocalObjectReference + * @return An instance of V1alpha3TypedLocalObjectReference + * @throws IOException if the JSON string is invalid with respect to V1alpha3TypedLocalObjectReference */ - public static V1alpha2TypedLocalObjectReference fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2TypedLocalObjectReference.class); + public static V1alpha3TypedLocalObjectReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3TypedLocalObjectReference.class); } /** - * Convert an instance of V1alpha2TypedLocalObjectReference to an JSON string + * Convert an instance of V1alpha3TypedLocalObjectReference to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2Workload.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Workload.java similarity index 82% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2Workload.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Workload.java index 91ad18031b..38eb79129a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2Workload.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Workload.java @@ -19,7 +19,7 @@ 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.V1alpha2WorkloadSpec; +import io.kubernetes.client.openapi.models.V1alpha3WorkloadSpec; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -52,8 +52,8 @@ * Workload allows for expressing scheduling constraints that should be used when managing the lifecycle of workloads from the scheduling perspective, including scheduling, preemption, eviction and other phases. Workload API enablement is toggled by the GenericWorkload feature gate. */ @ApiModel(description = "Workload allows for expressing scheduling constraints that should be used when managing the lifecycle of workloads from the scheduling perspective, including scheduling, preemption, eviction and other phases. Workload API enablement is toggled by the GenericWorkload feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2Workload implements io.kubernetes.client.common.KubernetesObject { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3Workload implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @jakarta.annotation.Nullable @@ -72,12 +72,12 @@ public class V1alpha2Workload implements io.kubernetes.client.common.KubernetesO public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) @jakarta.annotation.Nonnull - private V1alpha2WorkloadSpec spec; + private V1alpha3WorkloadSpec spec; - public V1alpha2Workload() { + public V1alpha3Workload() { } - public V1alpha2Workload apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1alpha3Workload apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -97,7 +97,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha2Workload kind(@jakarta.annotation.Nullable String kind) { + public V1alpha3Workload kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -117,7 +117,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha2Workload metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public V1alpha3Workload metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1alpha2Workload spec(@jakarta.annotation.Nonnull V1alpha2WorkloadSpec spec) { + public V1alpha3Workload spec(@jakarta.annotation.Nonnull V1alpha3WorkloadSpec spec) { this.spec = spec; return this; } @@ -148,11 +148,11 @@ public V1alpha2Workload spec(@jakarta.annotation.Nonnull V1alpha2WorkloadSpec sp */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1alpha2WorkloadSpec getSpec() { + public V1alpha3WorkloadSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1alpha2WorkloadSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1alpha3WorkloadSpec spec) { this.spec = spec; } @@ -166,11 +166,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2Workload v1alpha2Workload = (V1alpha2Workload) o; - return Objects.equals(this.apiVersion, v1alpha2Workload.apiVersion) && - Objects.equals(this.kind, v1alpha2Workload.kind) && - Objects.equals(this.metadata, v1alpha2Workload.metadata) && - Objects.equals(this.spec, v1alpha2Workload.spec); + V1alpha3Workload v1alpha3Workload = (V1alpha3Workload) o; + return Objects.equals(this.apiVersion, v1alpha3Workload.apiVersion) && + Objects.equals(this.kind, v1alpha3Workload.kind) && + Objects.equals(this.metadata, v1alpha3Workload.metadata) && + Objects.equals(this.spec, v1alpha3Workload.spec); } @Override @@ -181,7 +181,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2Workload {\n"); + sb.append("class V1alpha3Workload {\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"); @@ -217,25 +217,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2Workload + * @throws IOException if the JSON Element is invalid with respect to V1alpha3Workload */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2Workload.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2Workload is not found in the empty JSON string", V1alpha2Workload.openapiRequiredFields.toString())); + if (!V1alpha3Workload.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3Workload is not found in the empty JSON string", V1alpha3Workload.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2Workload.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2Workload` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3Workload.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3Workload` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha2Workload.openapiRequiredFields) { + for (String requiredField : V1alpha3Workload.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -252,29 +252,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } // validate the required field `spec` - V1alpha2WorkloadSpec.validateJsonElement(jsonObj.get("spec")); + V1alpha3WorkloadSpec.validateJsonElement(jsonObj.get("spec")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2Workload.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2Workload' and its subtypes + if (!V1alpha3Workload.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3Workload' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2Workload.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3Workload.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2Workload value) throws IOException { + public void write(JsonWriter out, V1alpha3Workload value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2Workload read(JsonReader in) throws IOException { + public V1alpha3Workload read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -285,18 +285,18 @@ public V1alpha2Workload read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha2Workload given an JSON string + * Create an instance of V1alpha3Workload given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2Workload - * @throws IOException if the JSON string is invalid with respect to V1alpha2Workload + * @return An instance of V1alpha3Workload + * @throws IOException if the JSON string is invalid with respect to V1alpha3Workload */ - public static V1alpha2Workload fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2Workload.class); + public static V1alpha3Workload fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3Workload.class); } /** - * Convert an instance of V1alpha2Workload to an JSON string + * Convert an instance of V1alpha3Workload to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadList.java similarity index 82% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadList.java index 0023e97d80..c1acdfc2c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadList.java @@ -19,7 +19,7 @@ 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.V1alpha2Workload; +import io.kubernetes.client.openapi.models.V1alpha3Workload; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -54,8 +54,8 @@ * WorkloadList contains a list of Workload resources. */ @ApiModel(description = "WorkloadList contains a list of Workload resources.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2WorkloadList implements io.kubernetes.client.common.KubernetesListObject { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3WorkloadList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @jakarta.annotation.Nullable @@ -64,7 +64,7 @@ public class V1alpha2WorkloadList implements io.kubernetes.client.common.Kuberne public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @jakarta.annotation.Nonnull - private List items = new ArrayList<>(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -76,10 +76,10 @@ public class V1alpha2WorkloadList implements io.kubernetes.client.common.Kuberne @jakarta.annotation.Nullable private V1ListMeta metadata; - public V1alpha2WorkloadList() { + public V1alpha3WorkloadList() { } - public V1alpha2WorkloadList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1alpha3WorkloadList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -99,12 +99,12 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha2WorkloadList items(@jakarta.annotation.Nonnull List items) { + public V1alpha3WorkloadList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } - public V1alpha2WorkloadList addItemsItem(V1alpha2Workload itemsItem) { + public V1alpha3WorkloadList addItemsItem(V1alpha3Workload itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -118,16 +118,16 @@ public V1alpha2WorkloadList addItemsItem(V1alpha2Workload itemsItem) { */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of Workloads.") - public List getItems() { + public List getItems() { return items; } - public void setItems(@jakarta.annotation.Nonnull List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1alpha2WorkloadList kind(@jakarta.annotation.Nullable String kind) { + public V1alpha3WorkloadList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -147,7 +147,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha2WorkloadList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + public V1alpha3WorkloadList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } @@ -176,11 +176,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2WorkloadList v1alpha2WorkloadList = (V1alpha2WorkloadList) o; - return Objects.equals(this.apiVersion, v1alpha2WorkloadList.apiVersion) && - Objects.equals(this.items, v1alpha2WorkloadList.items) && - Objects.equals(this.kind, v1alpha2WorkloadList.kind) && - Objects.equals(this.metadata, v1alpha2WorkloadList.metadata); + V1alpha3WorkloadList v1alpha3WorkloadList = (V1alpha3WorkloadList) o; + return Objects.equals(this.apiVersion, v1alpha3WorkloadList.apiVersion) && + Objects.equals(this.items, v1alpha3WorkloadList.items) && + Objects.equals(this.kind, v1alpha3WorkloadList.kind) && + Objects.equals(this.metadata, v1alpha3WorkloadList.metadata); } @Override @@ -191,7 +191,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2WorkloadList {\n"); + sb.append("class V1alpha3WorkloadList {\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"); @@ -227,25 +227,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2WorkloadList + * @throws IOException if the JSON Element is invalid with respect to V1alpha3WorkloadList */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2WorkloadList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2WorkloadList is not found in the empty JSON string", V1alpha2WorkloadList.openapiRequiredFields.toString())); + if (!V1alpha3WorkloadList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3WorkloadList is not found in the empty JSON string", V1alpha3WorkloadList.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2WorkloadList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2WorkloadList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3WorkloadList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3WorkloadList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha2WorkloadList.openapiRequiredFields) { + for (String requiredField : V1alpha3WorkloadList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -262,7 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); // validate the required field `items` (array) for (int i = 0; i < jsonArrayitems.size(); i++) { - V1alpha2Workload.validateJsonElement(jsonArrayitems.get(i)); + V1alpha3Workload.validateJsonElement(jsonArrayitems.get(i)); }; if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); @@ -277,22 +277,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2WorkloadList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2WorkloadList' and its subtypes + if (!V1alpha3WorkloadList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3WorkloadList' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2WorkloadList.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3WorkloadList.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2WorkloadList value) throws IOException { + public void write(JsonWriter out, V1alpha3WorkloadList value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2WorkloadList read(JsonReader in) throws IOException { + public V1alpha3WorkloadList read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -303,18 +303,18 @@ public V1alpha2WorkloadList read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha2WorkloadList given an JSON string + * Create an instance of V1alpha3WorkloadList given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2WorkloadList - * @throws IOException if the JSON string is invalid with respect to V1alpha2WorkloadList + * @return An instance of V1alpha3WorkloadList + * @throws IOException if the JSON string is invalid with respect to V1alpha3WorkloadList */ - public static V1alpha2WorkloadList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2WorkloadList.class); + public static V1alpha3WorkloadList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3WorkloadList.class); } /** - * Convert an instance of V1alpha2WorkloadList to an JSON string + * Convert an instance of V1alpha3WorkloadList to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupDisruptionMode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupDisruptionMode.java new file mode 100644 index 0000000000..e80c42e53c --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupDisruptionMode.java @@ -0,0 +1,231 @@ +/* +Copyright 2026 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; + +/** + * WorkloadPodGroupDisruptionMode defines how individual pods within a group can be disrupted. Exactly one mode must be set. + */ +@ApiModel(description = "WorkloadPodGroupDisruptionMode defines how individual pods within a group can be disrupted. Exactly one mode must be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3WorkloadPodGroupDisruptionMode { + public static final String SERIALIZED_NAME_ALL = "all"; + @SerializedName(SERIALIZED_NAME_ALL) + @jakarta.annotation.Nullable + private Object all; + + public static final String SERIALIZED_NAME_SINGLE = "single"; + @SerializedName(SERIALIZED_NAME_SINGLE) + @jakarta.annotation.Nullable + private Object single; + + public V1alpha3WorkloadPodGroupDisruptionMode() { + } + + public V1alpha3WorkloadPodGroupDisruptionMode all(@jakarta.annotation.Nullable Object all) { + this.all = all; + return this; + } + + /** + * all specifies that all pods in the group must be disrupted together. + * @return all + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "all specifies that all pods in the group must be disrupted together.") + public Object getAll() { + return all; + } + + public void setAll(@jakarta.annotation.Nullable Object all) { + this.all = all; + } + + + public V1alpha3WorkloadPodGroupDisruptionMode single(@jakarta.annotation.Nullable Object single) { + this.single = single; + return this; + } + + /** + * single specifies that pods can be disrupted independently from each other. + * @return single + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "single specifies that pods can be disrupted independently from each other.") + public Object getSingle() { + return single; + } + + public void setSingle(@jakarta.annotation.Nullable Object single) { + this.single = single; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3WorkloadPodGroupDisruptionMode v1alpha3WorkloadPodGroupDisruptionMode = (V1alpha3WorkloadPodGroupDisruptionMode) o; + return Objects.equals(this.all, v1alpha3WorkloadPodGroupDisruptionMode.all) && + Objects.equals(this.single, v1alpha3WorkloadPodGroupDisruptionMode.single); + } + + @Override + public int hashCode() { + return Objects.hash(all, single); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3WorkloadPodGroupDisruptionMode {\n"); + sb.append(" all: ").append(toIndentedString(all)).append("\n"); + sb.append(" single: ").append(toIndentedString(single)).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(Arrays.asList("all", "single")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3WorkloadPodGroupDisruptionMode + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3WorkloadPodGroupDisruptionMode.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3WorkloadPodGroupDisruptionMode is not found in the empty JSON string", V1alpha3WorkloadPodGroupDisruptionMode.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3WorkloadPodGroupDisruptionMode.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3WorkloadPodGroupDisruptionMode` 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 (!V1alpha3WorkloadPodGroupDisruptionMode.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3WorkloadPodGroupDisruptionMode' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3WorkloadPodGroupDisruptionMode.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3WorkloadPodGroupDisruptionMode value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3WorkloadPodGroupDisruptionMode read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3WorkloadPodGroupDisruptionMode given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3WorkloadPodGroupDisruptionMode + * @throws IOException if the JSON string is invalid with respect to V1alpha3WorkloadPodGroupDisruptionMode + */ + public static V1alpha3WorkloadPodGroupDisruptionMode fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3WorkloadPodGroupDisruptionMode.class); + } + + /** + * Convert an instance of V1alpha3WorkloadPodGroupDisruptionMode to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupGangSchedulingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupGangSchedulingPolicy.java new file mode 100644 index 0000000000..928105b9f9 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupGangSchedulingPolicy.java @@ -0,0 +1,204 @@ +/* +Copyright 2026 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; + +/** + * WorkloadPodGroupGangSchedulingPolicy defines the parameters for gang (all-or-nothing) scheduling. + */ +@ApiModel(description = "WorkloadPodGroupGangSchedulingPolicy defines the parameters for gang (all-or-nothing) scheduling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3WorkloadPodGroupGangSchedulingPolicy { + public static final String SERIALIZED_NAME_MIN_COUNT = "minCount"; + @SerializedName(SERIALIZED_NAME_MIN_COUNT) + @jakarta.annotation.Nullable + private Integer minCount; + + public V1alpha3WorkloadPodGroupGangSchedulingPolicy() { + } + + public V1alpha3WorkloadPodGroupGangSchedulingPolicy minCount(@jakarta.annotation.Nullable Integer minCount) { + this.minCount = minCount; + return this; + } + + /** + * minCount is the minimum number of pods that must be scheduled at the same time for the scheduler to admit the entire group. This field is optional. If it is not specified, the controller should inject a context-specific sane default (e.g., parallelism for a Job). If set, it must be a positive integer. + * @return minCount + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "minCount is the minimum number of pods that must be scheduled at the same time for the scheduler to admit the entire group. This field is optional. If it is not specified, the controller should inject a context-specific sane default (e.g., parallelism for a Job). If set, it must be a positive integer.") + public Integer getMinCount() { + return minCount; + } + + public void setMinCount(@jakarta.annotation.Nullable Integer minCount) { + this.minCount = minCount; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3WorkloadPodGroupGangSchedulingPolicy v1alpha3WorkloadPodGroupGangSchedulingPolicy = (V1alpha3WorkloadPodGroupGangSchedulingPolicy) o; + return Objects.equals(this.minCount, v1alpha3WorkloadPodGroupGangSchedulingPolicy.minCount); + } + + @Override + public int hashCode() { + return Objects.hash(minCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3WorkloadPodGroupGangSchedulingPolicy {\n"); + sb.append(" minCount: ").append(toIndentedString(minCount)).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(Arrays.asList("minCount")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3WorkloadPodGroupGangSchedulingPolicy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3WorkloadPodGroupGangSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3WorkloadPodGroupGangSchedulingPolicy is not found in the empty JSON string", V1alpha3WorkloadPodGroupGangSchedulingPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3WorkloadPodGroupGangSchedulingPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3WorkloadPodGroupGangSchedulingPolicy` 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 (!V1alpha3WorkloadPodGroupGangSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3WorkloadPodGroupGangSchedulingPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3WorkloadPodGroupGangSchedulingPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3WorkloadPodGroupGangSchedulingPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3WorkloadPodGroupGangSchedulingPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3WorkloadPodGroupGangSchedulingPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3WorkloadPodGroupGangSchedulingPolicy + * @throws IOException if the JSON string is invalid with respect to V1alpha3WorkloadPodGroupGangSchedulingPolicy + */ + public static V1alpha3WorkloadPodGroupGangSchedulingPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3WorkloadPodGroupGangSchedulingPolicy.class); + } + + /** + * Convert an instance of V1alpha3WorkloadPodGroupGangSchedulingPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupResourceClaim.java new file mode 100644 index 0000000000..05bde5f3e8 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupResourceClaim.java @@ -0,0 +1,274 @@ +/* +Copyright 2026 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; + +/** + * WorkloadPodGroupResourceClaim references a dynamic resource claim that is shared across pods in the group. + */ +@ApiModel(description = "WorkloadPodGroupResourceClaim references a dynamic resource claim that is shared across pods in the group.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3WorkloadPodGroupResourceClaim { + 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 V1alpha3WorkloadPodGroupResourceClaim() { + } + + public V1alpha3WorkloadPodGroupResourceClaim name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name uniquely identifies this resource claim inside the group. This field is required. It must be a DNS_LABEL. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name uniquely identifies this resource claim inside the group. This field is required. It must be a DNS_LABEL.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1alpha3WorkloadPodGroupResourceClaim resourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return this; + } + + /** + * resourceClaimName is the name of a ResourceClaim object in the same namespace. This field is optional. If it is not specified, no resource claim is used. If set, it must be a DNS subdomain. + * @return resourceClaimName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "resourceClaimName is the name of a ResourceClaim object in the same namespace. This field is optional. If it is not specified, no resource claim is used. If set, it must be a DNS subdomain.") + public String getResourceClaimName() { + return resourceClaimName; + } + + public void setResourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + } + + + public V1alpha3WorkloadPodGroupResourceClaim resourceClaimTemplateName(@jakarta.annotation.Nullable String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; + return this; + } + + /** + * resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace. This field is optional. If it is not specified, no resource claim template is used. If set, it must be a DNS subdomain. + * @return resourceClaimTemplateName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace. This field is optional. If it is not specified, no resource claim template is used. If set, it must be a DNS subdomain.") + public String getResourceClaimTemplateName() { + return resourceClaimTemplateName; + } + + public void setResourceClaimTemplateName(@jakarta.annotation.Nullable String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3WorkloadPodGroupResourceClaim v1alpha3WorkloadPodGroupResourceClaim = (V1alpha3WorkloadPodGroupResourceClaim) o; + return Objects.equals(this.name, v1alpha3WorkloadPodGroupResourceClaim.name) && + Objects.equals(this.resourceClaimName, v1alpha3WorkloadPodGroupResourceClaim.resourceClaimName) && + Objects.equals(this.resourceClaimTemplateName, v1alpha3WorkloadPodGroupResourceClaim.resourceClaimTemplateName); + } + + @Override + public int hashCode() { + return Objects.hash(name, resourceClaimName, resourceClaimTemplateName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3WorkloadPodGroupResourceClaim {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" resourceClaimName: ").append(toIndentedString(resourceClaimName)).append("\n"); + sb.append(" resourceClaimTemplateName: ").append(toIndentedString(resourceClaimTemplateName)).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(Arrays.asList("name", "resourceClaimName", "resourceClaimTemplateName")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1alpha3WorkloadPodGroupResourceClaim + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3WorkloadPodGroupResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3WorkloadPodGroupResourceClaim is not found in the empty JSON string", V1alpha3WorkloadPodGroupResourceClaim.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3WorkloadPodGroupResourceClaim.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3WorkloadPodGroupResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3WorkloadPodGroupResourceClaim.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("resourceClaimName") != null && !jsonObj.get("resourceClaimName").isJsonNull()) && !jsonObj.get("resourceClaimName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaimName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimName").toString())); + } + if ((jsonObj.get("resourceClaimTemplateName") != null && !jsonObj.get("resourceClaimTemplateName").isJsonNull()) && !jsonObj.get("resourceClaimTemplateName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaimTemplateName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimTemplateName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3WorkloadPodGroupResourceClaim.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3WorkloadPodGroupResourceClaim' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3WorkloadPodGroupResourceClaim.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3WorkloadPodGroupResourceClaim value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3WorkloadPodGroupResourceClaim read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3WorkloadPodGroupResourceClaim given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3WorkloadPodGroupResourceClaim + * @throws IOException if the JSON string is invalid with respect to V1alpha3WorkloadPodGroupResourceClaim + */ + public static V1alpha3WorkloadPodGroupResourceClaim fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3WorkloadPodGroupResourceClaim.class); + } + + /** + * Convert an instance of V1alpha3WorkloadPodGroupResourceClaim to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingConstraints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingConstraints.java new file mode 100644 index 0000000000..052d287a55 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingConstraints.java @@ -0,0 +1,229 @@ +/* +Copyright 2026 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.V1alpha3TopologyConstraint; +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; + +/** + * WorkloadPodGroupSchedulingConstraints defines leaf-level scheduling constraints, such as topology. + */ +@ApiModel(description = "WorkloadPodGroupSchedulingConstraints defines leaf-level scheduling constraints, such as topology.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3WorkloadPodGroupSchedulingConstraints { + public static final String SERIALIZED_NAME_TOPOLOGY = "topology"; + @SerializedName(SERIALIZED_NAME_TOPOLOGY) + @jakarta.annotation.Nullable + private List topology = new ArrayList<>(); + + public V1alpha3WorkloadPodGroupSchedulingConstraints() { + } + + public V1alpha3WorkloadPodGroupSchedulingConstraints topology(@jakarta.annotation.Nullable List topology) { + this.topology = topology; + return this; + } + + public V1alpha3WorkloadPodGroupSchedulingConstraints addTopologyItem(V1alpha3TopologyConstraint topologyItem) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + this.topology.add(topologyItem); + return this; + } + + /** + * topology specifies desired topological placements for all pods within the pod group. If unset, no topology placement is requested. + * @return topology + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "topology specifies desired topological placements for all pods within the pod group. If unset, no topology placement is requested.") + public List getTopology() { + return topology; + } + + public void setTopology(@jakarta.annotation.Nullable List topology) { + this.topology = topology; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3WorkloadPodGroupSchedulingConstraints v1alpha3WorkloadPodGroupSchedulingConstraints = (V1alpha3WorkloadPodGroupSchedulingConstraints) o; + return Objects.equals(this.topology, v1alpha3WorkloadPodGroupSchedulingConstraints.topology); + } + + @Override + public int hashCode() { + return Objects.hash(topology); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3WorkloadPodGroupSchedulingConstraints {\n"); + sb.append(" topology: ").append(toIndentedString(topology)).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(Arrays.asList("topology")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3WorkloadPodGroupSchedulingConstraints + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3WorkloadPodGroupSchedulingConstraints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3WorkloadPodGroupSchedulingConstraints is not found in the empty JSON string", V1alpha3WorkloadPodGroupSchedulingConstraints.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3WorkloadPodGroupSchedulingConstraints.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3WorkloadPodGroupSchedulingConstraints` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("topology") != null && !jsonObj.get("topology").isJsonNull()) { + JsonArray jsonArraytopology = jsonObj.getAsJsonArray("topology"); + if (jsonArraytopology != null) { + // ensure the json data is an array + if (!jsonObj.get("topology").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `topology` to be an array in the JSON string but got `%s`", jsonObj.get("topology").toString())); + } + + // validate the optional field `topology` (array) + for (int i = 0; i < jsonArraytopology.size(); i++) { + V1alpha3TopologyConstraint.validateJsonElement(jsonArraytopology.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3WorkloadPodGroupSchedulingConstraints.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3WorkloadPodGroupSchedulingConstraints' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3WorkloadPodGroupSchedulingConstraints.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3WorkloadPodGroupSchedulingConstraints value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3WorkloadPodGroupSchedulingConstraints read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3WorkloadPodGroupSchedulingConstraints given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3WorkloadPodGroupSchedulingConstraints + * @throws IOException if the JSON string is invalid with respect to V1alpha3WorkloadPodGroupSchedulingConstraints + */ + public static V1alpha3WorkloadPodGroupSchedulingConstraints fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3WorkloadPodGroupSchedulingConstraints.class); + } + + /** + * Convert an instance of V1alpha3WorkloadPodGroupSchedulingConstraints to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingPolicy.java new file mode 100644 index 0000000000..522a649e86 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadPodGroupSchedulingPolicy.java @@ -0,0 +1,236 @@ +/* +Copyright 2026 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.V1alpha3WorkloadPodGroupGangSchedulingPolicy; +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; + +/** + * WorkloadPodGroupSchedulingPolicy defines the scheduling policy for a group of pods managed by a workload controller. Exactly one policy must be set. + */ +@ApiModel(description = "WorkloadPodGroupSchedulingPolicy defines the scheduling policy for a group of pods managed by a workload controller. Exactly one policy must be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3WorkloadPodGroupSchedulingPolicy { + public static final String SERIALIZED_NAME_BASIC = "basic"; + @SerializedName(SERIALIZED_NAME_BASIC) + @jakarta.annotation.Nullable + private Object basic; + + public static final String SERIALIZED_NAME_GANG = "gang"; + @SerializedName(SERIALIZED_NAME_GANG) + @jakarta.annotation.Nullable + private V1alpha3WorkloadPodGroupGangSchedulingPolicy gang; + + public V1alpha3WorkloadPodGroupSchedulingPolicy() { + } + + public V1alpha3WorkloadPodGroupSchedulingPolicy basic(@jakarta.annotation.Nullable Object basic) { + this.basic = basic; + return this; + } + + /** + * basic specifies that standard, pod-by-pod Kubernetes scheduling behavior should be used. + * @return basic + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "basic specifies that standard, pod-by-pod Kubernetes scheduling behavior should be used.") + public Object getBasic() { + return basic; + } + + public void setBasic(@jakarta.annotation.Nullable Object basic) { + this.basic = basic; + } + + + public V1alpha3WorkloadPodGroupSchedulingPolicy gang(@jakarta.annotation.Nullable V1alpha3WorkloadPodGroupGangSchedulingPolicy gang) { + this.gang = gang; + return this; + } + + /** + * Get gang + * @return gang + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3WorkloadPodGroupGangSchedulingPolicy getGang() { + return gang; + } + + public void setGang(@jakarta.annotation.Nullable V1alpha3WorkloadPodGroupGangSchedulingPolicy gang) { + this.gang = gang; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3WorkloadPodGroupSchedulingPolicy v1alpha3WorkloadPodGroupSchedulingPolicy = (V1alpha3WorkloadPodGroupSchedulingPolicy) o; + return Objects.equals(this.basic, v1alpha3WorkloadPodGroupSchedulingPolicy.basic) && + Objects.equals(this.gang, v1alpha3WorkloadPodGroupSchedulingPolicy.gang); + } + + @Override + public int hashCode() { + return Objects.hash(basic, gang); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3WorkloadPodGroupSchedulingPolicy {\n"); + sb.append(" basic: ").append(toIndentedString(basic)).append("\n"); + sb.append(" gang: ").append(toIndentedString(gang)).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(Arrays.asList("basic", "gang")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3WorkloadPodGroupSchedulingPolicy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3WorkloadPodGroupSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3WorkloadPodGroupSchedulingPolicy is not found in the empty JSON string", V1alpha3WorkloadPodGroupSchedulingPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3WorkloadPodGroupSchedulingPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3WorkloadPodGroupSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `gang` + if (jsonObj.get("gang") != null && !jsonObj.get("gang").isJsonNull()) { + V1alpha3WorkloadPodGroupGangSchedulingPolicy.validateJsonElement(jsonObj.get("gang")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3WorkloadPodGroupSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3WorkloadPodGroupSchedulingPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3WorkloadPodGroupSchedulingPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3WorkloadPodGroupSchedulingPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3WorkloadPodGroupSchedulingPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3WorkloadPodGroupSchedulingPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3WorkloadPodGroupSchedulingPolicy + * @throws IOException if the JSON string is invalid with respect to V1alpha3WorkloadPodGroupSchedulingPolicy + */ + public static V1alpha3WorkloadPodGroupSchedulingPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3WorkloadPodGroupSchedulingPolicy.class); + } + + /** + * Convert an instance of V1alpha3WorkloadPodGroupSchedulingPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadReference.java similarity index 57% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReference.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadReference.java index ffc1eaf1f4..85ff424139 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadReference.java @@ -47,55 +47,55 @@ import io.kubernetes.client.openapi.JSON; /** - * WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object. + * WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup. */ -@ApiModel(description = "WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha2WorkloadPodGroupTemplateReference { - public static final String SERIALIZED_NAME_POD_GROUP_TEMPLATE_NAME = "podGroupTemplateName"; - @SerializedName(SERIALIZED_NAME_POD_GROUP_TEMPLATE_NAME) +@ApiModel(description = "WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3WorkloadReference { + public static final String SERIALIZED_NAME_TEMPLATE_NAME = "templateName"; + @SerializedName(SERIALIZED_NAME_TEMPLATE_NAME) @jakarta.annotation.Nonnull - private String podGroupTemplateName; + private String templateName; public static final String SERIALIZED_NAME_WORKLOAD_NAME = "workloadName"; @SerializedName(SERIALIZED_NAME_WORKLOAD_NAME) @jakarta.annotation.Nonnull private String workloadName; - public V1alpha2WorkloadPodGroupTemplateReference() { + public V1alpha3WorkloadReference() { } - public V1alpha2WorkloadPodGroupTemplateReference podGroupTemplateName(@jakarta.annotation.Nonnull String podGroupTemplateName) { - this.podGroupTemplateName = podGroupTemplateName; + public V1alpha3WorkloadReference templateName(@jakarta.annotation.Nonnull String templateName) { + this.templateName = templateName; return this; } /** - * PodGroupTemplateName defines the PodGroupTemplate name within the Workload object. - * @return podGroupTemplateName + * templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required. + * @return templateName */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "PodGroupTemplateName defines the PodGroupTemplate name within the Workload object.") - public String getPodGroupTemplateName() { - return podGroupTemplateName; + @ApiModelProperty(required = true, value = "templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.") + public String getTemplateName() { + return templateName; } - public void setPodGroupTemplateName(@jakarta.annotation.Nonnull String podGroupTemplateName) { - this.podGroupTemplateName = podGroupTemplateName; + public void setTemplateName(@jakarta.annotation.Nonnull String templateName) { + this.templateName = templateName; } - public V1alpha2WorkloadPodGroupTemplateReference workloadName(@jakarta.annotation.Nonnull String workloadName) { + public V1alpha3WorkloadReference workloadName(@jakarta.annotation.Nonnull String workloadName) { this.workloadName = workloadName; return this; } /** - * WorkloadName defines the name of the Workload object. + * workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required. * @return workloadName */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "WorkloadName defines the name of the Workload object.") + @ApiModelProperty(required = true, value = "workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.") public String getWorkloadName() { return workloadName; } @@ -114,21 +114,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha2WorkloadPodGroupTemplateReference v1alpha2WorkloadPodGroupTemplateReference = (V1alpha2WorkloadPodGroupTemplateReference) o; - return Objects.equals(this.podGroupTemplateName, v1alpha2WorkloadPodGroupTemplateReference.podGroupTemplateName) && - Objects.equals(this.workloadName, v1alpha2WorkloadPodGroupTemplateReference.workloadName); + V1alpha3WorkloadReference v1alpha3WorkloadReference = (V1alpha3WorkloadReference) o; + return Objects.equals(this.templateName, v1alpha3WorkloadReference.templateName) && + Objects.equals(this.workloadName, v1alpha3WorkloadReference.workloadName); } @Override public int hashCode() { - return Objects.hash(podGroupTemplateName, workloadName); + return Objects.hash(templateName, workloadName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha2WorkloadPodGroupTemplateReference {\n"); - sb.append(" podGroupTemplateName: ").append(toIndentedString(podGroupTemplateName)).append("\n"); + sb.append("class V1alpha3WorkloadReference {\n"); + sb.append(" templateName: ").append(toIndentedString(templateName)).append("\n"); sb.append(" workloadName: ").append(toIndentedString(workloadName)).append("\n"); sb.append("}"); return sb.toString(); @@ -151,42 +151,42 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("podGroupTemplateName", "workloadName")); + openapiFields = new HashSet(Arrays.asList("templateName", "workloadName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("podGroupTemplateName", "workloadName")); + openapiRequiredFields = new HashSet(Arrays.asList("templateName", "workloadName")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha2WorkloadPodGroupTemplateReference + * @throws IOException if the JSON Element is invalid with respect to V1alpha3WorkloadReference */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha2WorkloadPodGroupTemplateReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2WorkloadPodGroupTemplateReference is not found in the empty JSON string", V1alpha2WorkloadPodGroupTemplateReference.openapiRequiredFields.toString())); + if (!V1alpha3WorkloadReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3WorkloadReference is not found in the empty JSON string", V1alpha3WorkloadReference.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha2WorkloadPodGroupTemplateReference.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2WorkloadPodGroupTemplateReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha3WorkloadReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3WorkloadReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha2WorkloadPodGroupTemplateReference.openapiRequiredFields) { + for (String requiredField : V1alpha3WorkloadReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("podGroupTemplateName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podGroupTemplateName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podGroupTemplateName").toString())); + if (!jsonObj.get("templateName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `templateName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("templateName").toString())); } if (!jsonObj.get("workloadName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `workloadName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workloadName").toString())); @@ -197,22 +197,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha2WorkloadPodGroupTemplateReference.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha2WorkloadPodGroupTemplateReference' and its subtypes + if (!V1alpha3WorkloadReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3WorkloadReference' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2WorkloadPodGroupTemplateReference.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3WorkloadReference.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha2WorkloadPodGroupTemplateReference value) throws IOException { + public void write(JsonWriter out, V1alpha3WorkloadReference value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha2WorkloadPodGroupTemplateReference read(JsonReader in) throws IOException { + public V1alpha3WorkloadReference read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -223,18 +223,18 @@ public V1alpha2WorkloadPodGroupTemplateReference read(JsonReader in) throws IOEx } /** - * Create an instance of V1alpha2WorkloadPodGroupTemplateReference given an JSON string + * Create an instance of V1alpha3WorkloadReference given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha2WorkloadPodGroupTemplateReference - * @throws IOException if the JSON string is invalid with respect to V1alpha2WorkloadPodGroupTemplateReference + * @return An instance of V1alpha3WorkloadReference + * @throws IOException if the JSON string is invalid with respect to V1alpha3WorkloadReference */ - public static V1alpha2WorkloadPodGroupTemplateReference fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha2WorkloadPodGroupTemplateReference.class); + public static V1alpha3WorkloadReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3WorkloadReference.class); } /** - * Convert an instance of V1alpha2WorkloadPodGroupTemplateReference to an JSON string + * Convert an instance of V1alpha3WorkloadReference to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadSpec.java new file mode 100644 index 0000000000..1ed2293ecd --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3WorkloadSpec.java @@ -0,0 +1,311 @@ +/* +Copyright 2026 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.V1alpha3CompositePodGroupTemplate; +import io.kubernetes.client.openapi.models.V1alpha3PodGroupTemplate; +import io.kubernetes.client.openapi.models.V1alpha3TypedLocalObjectReference; +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; + +/** + * WorkloadSpec defines the desired state of a Workload. + */ +@ApiModel(description = "WorkloadSpec defines the desired state of a Workload.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3WorkloadSpec { + public static final String SERIALIZED_NAME_COMPOSITE_POD_GROUP_TEMPLATES = "compositePodGroupTemplates"; + @SerializedName(SERIALIZED_NAME_COMPOSITE_POD_GROUP_TEMPLATES) + @jakarta.annotation.Nullable + private List compositePodGroupTemplates = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CONTROLLER_REF = "controllerRef"; + @SerializedName(SERIALIZED_NAME_CONTROLLER_REF) + @jakarta.annotation.Nullable + private V1alpha3TypedLocalObjectReference controllerRef; + + public static final String SERIALIZED_NAME_POD_GROUP_TEMPLATES = "podGroupTemplates"; + @SerializedName(SERIALIZED_NAME_POD_GROUP_TEMPLATES) + @jakarta.annotation.Nullable + private List podGroupTemplates = new ArrayList<>(); + + public V1alpha3WorkloadSpec() { + } + + public V1alpha3WorkloadSpec compositePodGroupTemplates(@jakarta.annotation.Nullable List compositePodGroupTemplates) { + this.compositePodGroupTemplates = compositePodGroupTemplates; + return this; + } + + public V1alpha3WorkloadSpec addCompositePodGroupTemplatesItem(V1alpha3CompositePodGroupTemplate compositePodGroupTemplatesItem) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + this.compositePodGroupTemplates.add(compositePodGroupTemplatesItem); + return this; + } + + /** + * compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled. + * @return compositePodGroupTemplates + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled.") + public List getCompositePodGroupTemplates() { + return compositePodGroupTemplates; + } + + public void setCompositePodGroupTemplates(@jakarta.annotation.Nullable List compositePodGroupTemplates) { + this.compositePodGroupTemplates = compositePodGroupTemplates; + } + + + public V1alpha3WorkloadSpec controllerRef(@jakarta.annotation.Nullable V1alpha3TypedLocalObjectReference controllerRef) { + this.controllerRef = controllerRef; + return this; + } + + /** + * Get controllerRef + * @return controllerRef + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3TypedLocalObjectReference getControllerRef() { + return controllerRef; + } + + public void setControllerRef(@jakarta.annotation.Nullable V1alpha3TypedLocalObjectReference controllerRef) { + this.controllerRef = controllerRef; + } + + + public V1alpha3WorkloadSpec podGroupTemplates(@jakarta.annotation.Nullable List podGroupTemplates) { + this.podGroupTemplates = podGroupTemplates; + return this; + } + + public V1alpha3WorkloadSpec addPodGroupTemplatesItem(V1alpha3PodGroupTemplate podGroupTemplatesItem) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + this.podGroupTemplates.add(podGroupTemplatesItem); + return this; + } + + /** + * podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. + * @return podGroupTemplates + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.") + public List getPodGroupTemplates() { + return podGroupTemplates; + } + + public void setPodGroupTemplates(@jakarta.annotation.Nullable List podGroupTemplates) { + this.podGroupTemplates = podGroupTemplates; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3WorkloadSpec v1alpha3WorkloadSpec = (V1alpha3WorkloadSpec) o; + return Objects.equals(this.compositePodGroupTemplates, v1alpha3WorkloadSpec.compositePodGroupTemplates) && + Objects.equals(this.controllerRef, v1alpha3WorkloadSpec.controllerRef) && + Objects.equals(this.podGroupTemplates, v1alpha3WorkloadSpec.podGroupTemplates); + } + + @Override + public int hashCode() { + return Objects.hash(compositePodGroupTemplates, controllerRef, podGroupTemplates); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3WorkloadSpec {\n"); + sb.append(" compositePodGroupTemplates: ").append(toIndentedString(compositePodGroupTemplates)).append("\n"); + sb.append(" controllerRef: ").append(toIndentedString(controllerRef)).append("\n"); + sb.append(" podGroupTemplates: ").append(toIndentedString(podGroupTemplates)).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(Arrays.asList("compositePodGroupTemplates", "controllerRef", "podGroupTemplates")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3WorkloadSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3WorkloadSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3WorkloadSpec is not found in the empty JSON string", V1alpha3WorkloadSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3WorkloadSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3WorkloadSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("compositePodGroupTemplates") != null && !jsonObj.get("compositePodGroupTemplates").isJsonNull()) { + JsonArray jsonArraycompositePodGroupTemplates = jsonObj.getAsJsonArray("compositePodGroupTemplates"); + if (jsonArraycompositePodGroupTemplates != null) { + // ensure the json data is an array + if (!jsonObj.get("compositePodGroupTemplates").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `compositePodGroupTemplates` to be an array in the JSON string but got `%s`", jsonObj.get("compositePodGroupTemplates").toString())); + } + + // validate the optional field `compositePodGroupTemplates` (array) + for (int i = 0; i < jsonArraycompositePodGroupTemplates.size(); i++) { + V1alpha3CompositePodGroupTemplate.validateJsonElement(jsonArraycompositePodGroupTemplates.get(i)); + }; + } + } + // validate the optional field `controllerRef` + if (jsonObj.get("controllerRef") != null && !jsonObj.get("controllerRef").isJsonNull()) { + V1alpha3TypedLocalObjectReference.validateJsonElement(jsonObj.get("controllerRef")); + } + if (jsonObj.get("podGroupTemplates") != null && !jsonObj.get("podGroupTemplates").isJsonNull()) { + JsonArray jsonArraypodGroupTemplates = jsonObj.getAsJsonArray("podGroupTemplates"); + if (jsonArraypodGroupTemplates != null) { + // ensure the json data is an array + if (!jsonObj.get("podGroupTemplates").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podGroupTemplates` to be an array in the JSON string but got `%s`", jsonObj.get("podGroupTemplates").toString())); + } + + // validate the optional field `podGroupTemplates` (array) + for (int i = 0; i < jsonArraypodGroupTemplates.size(); i++) { + V1alpha3PodGroupTemplate.validateJsonElement(jsonArraypodGroupTemplates.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3WorkloadSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3WorkloadSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3WorkloadSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3WorkloadSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3WorkloadSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3WorkloadSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3WorkloadSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha3WorkloadSpec + */ + public static V1alpha3WorkloadSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3WorkloadSpec.class); + } + + /** + * Convert an instance of V1alpha3WorkloadSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java index 601b4451c5..9c1418efe8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java @@ -54,7 +54,7 @@ * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. */ @ApiModel(description = "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java index 007147765c..43419dad8e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1AllocationResult { public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java index fc4afb8ced..8fbf481e2c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ApplyConfiguration { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java index f8e08398ff..3a8375346c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java @@ -23,7 +23,7 @@ import io.kubernetes.client.openapi.models.V1beta1DeviceCapacity; import io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption; import io.kubernetes.client.openapi.models.V1beta1DeviceTaint; -import io.kubernetes.client.openapi.models.V1beta1NodeAllocatableResourceMapping; +import io.kubernetes.client.openapi.models.V1beta1NodeAllocatableResource; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -60,7 +60,7 @@ * BasicDevice defines one device instance. */ @ApiModel(description = "BasicDevice defines one device instance.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1BasicDevice { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -102,10 +102,10 @@ public class V1beta1BasicDevice { @jakarta.annotation.Nullable private List consumesCounters = new ArrayList<>(); - public static final String SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_MAPPINGS = "nodeAllocatableResourceMappings"; - @SerializedName(SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_MAPPINGS) + public static final String SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCES = "nodeAllocatableResources"; + @SerializedName(SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCES) @jakarta.annotation.Nullable - private Map nodeAllocatableResourceMappings = new HashMap<>(); + private Map nodeAllocatableResources = new HashMap<>(); public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; @SerializedName(SERIALIZED_NAME_NODE_NAME) @@ -325,31 +325,31 @@ public void setConsumesCounters(@jakarta.annotation.Nullable List nodeAllocatableResourceMappings) { - this.nodeAllocatableResourceMappings = nodeAllocatableResourceMappings; + public V1beta1BasicDevice nodeAllocatableResources(@jakarta.annotation.Nullable Map nodeAllocatableResources) { + this.nodeAllocatableResources = nodeAllocatableResources; return this; } - public V1beta1BasicDevice putNodeAllocatableResourceMappingsItem(String key, V1beta1NodeAllocatableResourceMapping nodeAllocatableResourceMappingsItem) { - if (this.nodeAllocatableResourceMappings == null) { - this.nodeAllocatableResourceMappings = new HashMap<>(); + public V1beta1BasicDevice putNodeAllocatableResourcesItem(String key, V1beta1NodeAllocatableResource nodeAllocatableResourcesItem) { + if (this.nodeAllocatableResources == null) { + this.nodeAllocatableResources = new HashMap<>(); } - this.nodeAllocatableResourceMappings.put(key, nodeAllocatableResourceMappingsItem); + this.nodeAllocatableResources.put(key, nodeAllocatableResourcesItem); return this; } /** - * NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. - * @return nodeAllocatableResourceMappings + * NodeAllocatableResources defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. + * @return nodeAllocatableResources */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.") - public Map getNodeAllocatableResourceMappings() { - return nodeAllocatableResourceMappings; + @ApiModelProperty(value = "NodeAllocatableResources defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.") + public Map getNodeAllocatableResources() { + return nodeAllocatableResources; } - public void setNodeAllocatableResourceMappings(@jakarta.annotation.Nullable Map nodeAllocatableResourceMappings) { - this.nodeAllocatableResourceMappings = nodeAllocatableResourceMappings; + public void setNodeAllocatableResources(@jakarta.annotation.Nullable Map nodeAllocatableResources) { + this.nodeAllocatableResources = nodeAllocatableResources; } @@ -439,7 +439,7 @@ public boolean equals(Object o) { Objects.equals(this.bindsToNode, v1beta1BasicDevice.bindsToNode) && Objects.equals(this.capacity, v1beta1BasicDevice.capacity) && Objects.equals(this.consumesCounters, v1beta1BasicDevice.consumesCounters) && - Objects.equals(this.nodeAllocatableResourceMappings, v1beta1BasicDevice.nodeAllocatableResourceMappings) && + Objects.equals(this.nodeAllocatableResources, v1beta1BasicDevice.nodeAllocatableResources) && Objects.equals(this.nodeName, v1beta1BasicDevice.nodeName) && Objects.equals(this.nodeSelector, v1beta1BasicDevice.nodeSelector) && Objects.equals(this.taints, v1beta1BasicDevice.taints); @@ -447,7 +447,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, nodeAllocatableResourceMappings, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, nodeAllocatableResources, nodeName, nodeSelector, taints); } @Override @@ -462,7 +462,7 @@ public String toString() { sb.append(" bindsToNode: ").append(toIndentedString(bindsToNode)).append("\n"); sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" consumesCounters: ").append(toIndentedString(consumesCounters)).append("\n"); - sb.append(" nodeAllocatableResourceMappings: ").append(toIndentedString(nodeAllocatableResourceMappings)).append("\n"); + sb.append(" nodeAllocatableResources: ").append(toIndentedString(nodeAllocatableResources)).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"); @@ -487,7 +487,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "nodeAllocatableResourceMappings", "nodeName", "nodeSelector", "taints")); + openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "nodeAllocatableResources", "nodeName", "nodeSelector", "taints")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java index c6d098fd5d..fa6cea4881 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -66,11 +66,11 @@ public V1beta1CELDeviceSelector expression(@jakarta.annotation.Nonnull String ex } /** - * 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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. + * 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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. Common errors: - \"no such key\": Use optional chaining (.? followed by orValue()) or guarding the check with has() for optional fields. See CEL Optional Types for details: https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes For more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/ 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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.") + @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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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. Common errors: - \"no such key\": Use optional chaining (.? followed by orValue()) or guarding the check with has() for optional fields. See CEL Optional Types for details: https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes For more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/ 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java index 43c442fb10..f8e6824640 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java @@ -54,7 +54,7 @@ * CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. */ @ApiModel(description = "CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1CapacityRequestPolicy { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java index 78f989bf39..d724f56f10 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java @@ -48,10 +48,10 @@ import io.kubernetes.client.openapi.JSON; /** - * CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. + * CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. */ -@ApiModel(description = "CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@ApiModel(description = "CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1CapacityRequestPolicyRange { public static final String SERIALIZED_NAME_MAX = "max"; @SerializedName(SERIALIZED_NAME_MAX) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java index b8f578892e..924ba003a3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java @@ -53,7 +53,7 @@ * CapacityRequirements defines the capacity requirements for a specific device request. */ @ApiModel(description = "CapacityRequirements defines the capacity requirements for a specific device request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1CapacityRequirements { public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java index e2fc381d1b..d36a54d902 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java @@ -49,10 +49,10 @@ import io.kubernetes.client.openapi.JSON; /** - * 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. + * 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 signer, 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@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 signer, 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 = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ClusterTrustBundle implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java index 1bfdc7c7df..e53cf58e53 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ClusterTrustBundleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java index 0b05c1351e..a1f0446fd5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ClusterTrustBundleSpec { public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; @SerializedName(SERIALIZED_NAME_SIGNER_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeDisruptionMode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeDisruptionMode.java new file mode 100644 index 0000000000..9da1d57864 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeDisruptionMode.java @@ -0,0 +1,231 @@ +/* +Copyright 2026 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; + +/** + * CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set. + */ +@ApiModel(description = "CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1CompositeDisruptionMode { + public static final String SERIALIZED_NAME_ALL = "all"; + @SerializedName(SERIALIZED_NAME_ALL) + @jakarta.annotation.Nullable + private Object all; + + public static final String SERIALIZED_NAME_SINGLE = "single"; + @SerializedName(SERIALIZED_NAME_SINGLE) + @jakarta.annotation.Nullable + private Object single; + + public V1beta1CompositeDisruptionMode() { + } + + public V1beta1CompositeDisruptionMode all(@jakarta.annotation.Nullable Object all) { + this.all = all; + return this; + } + + /** + * all specifies that all children groups can only be disrupted together. + * @return all + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "all specifies that all children groups can only be disrupted together.") + public Object getAll() { + return all; + } + + public void setAll(@jakarta.annotation.Nullable Object all) { + this.all = all; + } + + + public V1beta1CompositeDisruptionMode single(@jakarta.annotation.Nullable Object single) { + this.single = single; + return this; + } + + /** + * single specifies that children groups can be disrupted independently from each other. + * @return single + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "single specifies that children groups can be disrupted independently from each other.") + public Object getSingle() { + return single; + } + + public void setSingle(@jakarta.annotation.Nullable Object single) { + this.single = single; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1CompositeDisruptionMode v1beta1CompositeDisruptionMode = (V1beta1CompositeDisruptionMode) o; + return Objects.equals(this.all, v1beta1CompositeDisruptionMode.all) && + Objects.equals(this.single, v1beta1CompositeDisruptionMode.single); + } + + @Override + public int hashCode() { + return Objects.hash(all, single); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1CompositeDisruptionMode {\n"); + sb.append(" all: ").append(toIndentedString(all)).append("\n"); + sb.append(" single: ").append(toIndentedString(single)).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(Arrays.asList("all", "single")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1CompositeDisruptionMode + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1CompositeDisruptionMode.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1CompositeDisruptionMode is not found in the empty JSON string", V1beta1CompositeDisruptionMode.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1CompositeDisruptionMode.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1CompositeDisruptionMode` 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 (!V1beta1CompositeDisruptionMode.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1CompositeDisruptionMode' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1CompositeDisruptionMode.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1CompositeDisruptionMode value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1CompositeDisruptionMode read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1CompositeDisruptionMode given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1CompositeDisruptionMode + * @throws IOException if the JSON string is invalid with respect to V1beta1CompositeDisruptionMode + */ + public static V1beta1CompositeDisruptionMode fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1CompositeDisruptionMode.class); + } + + /** + * Convert an instance of V1beta1CompositeDisruptionMode to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeGangSchedulingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeGangSchedulingPolicy.java new file mode 100644 index 0000000000..9f5022908f --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositeGangSchedulingPolicy.java @@ -0,0 +1,211 @@ +/* +Copyright 2026 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; + +/** + * CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics. + */ +@ApiModel(description = "CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1CompositeGangSchedulingPolicy { + public static final String SERIALIZED_NAME_MIN_GROUP_COUNT = "minGroupCount"; + @SerializedName(SERIALIZED_NAME_MIN_GROUP_COUNT) + @jakarta.annotation.Nonnull + private Integer minGroupCount; + + public V1beta1CompositeGangSchedulingPolicy() { + } + + public V1beta1CompositeGangSchedulingPolicy minGroupCount(@jakarta.annotation.Nonnull Integer minGroupCount) { + this.minGroupCount = minGroupCount; + return this; + } + + /** + * minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. + * @return minGroupCount + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.") + public Integer getMinGroupCount() { + return minGroupCount; + } + + public void setMinGroupCount(@jakarta.annotation.Nonnull Integer minGroupCount) { + this.minGroupCount = minGroupCount; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1CompositeGangSchedulingPolicy v1beta1CompositeGangSchedulingPolicy = (V1beta1CompositeGangSchedulingPolicy) o; + return Objects.equals(this.minGroupCount, v1beta1CompositeGangSchedulingPolicy.minGroupCount); + } + + @Override + public int hashCode() { + return Objects.hash(minGroupCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1CompositeGangSchedulingPolicy {\n"); + sb.append(" minGroupCount: ").append(toIndentedString(minGroupCount)).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(Arrays.asList("minGroupCount")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("minGroupCount")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1CompositeGangSchedulingPolicy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1CompositeGangSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1CompositeGangSchedulingPolicy is not found in the empty JSON string", V1beta1CompositeGangSchedulingPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1CompositeGangSchedulingPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1CompositeGangSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1CompositeGangSchedulingPolicy.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1CompositeGangSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1CompositeGangSchedulingPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1CompositeGangSchedulingPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1CompositeGangSchedulingPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1CompositeGangSchedulingPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1CompositeGangSchedulingPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1CompositeGangSchedulingPolicy + * @throws IOException if the JSON string is invalid with respect to V1beta1CompositeGangSchedulingPolicy + */ + public static V1beta1CompositeGangSchedulingPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1CompositeGangSchedulingPolicy.class); + } + + /** + * Convert an instance of V1beta1CompositeGangSchedulingPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingConstraints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingConstraints.java new file mode 100644 index 0000000000..c29a0c1b9a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingConstraints.java @@ -0,0 +1,229 @@ +/* +Copyright 2026 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.V1beta1TopologyConstraint; +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; + +/** + * CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup. + */ +@ApiModel(description = "CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1CompositePodGroupSchedulingConstraints { + public static final String SERIALIZED_NAME_TOPOLOGY = "topology"; + @SerializedName(SERIALIZED_NAME_TOPOLOGY) + @jakarta.annotation.Nullable + private List topology = new ArrayList<>(); + + public V1beta1CompositePodGroupSchedulingConstraints() { + } + + public V1beta1CompositePodGroupSchedulingConstraints topology(@jakarta.annotation.Nullable List topology) { + this.topology = topology; + return this; + } + + public V1beta1CompositePodGroupSchedulingConstraints addTopologyItem(V1beta1TopologyConstraint topologyItem) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + this.topology.add(topologyItem); + return this; + } + + /** + * topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future. + * @return topology + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.") + public List getTopology() { + return topology; + } + + public void setTopology(@jakarta.annotation.Nullable List topology) { + this.topology = topology; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1CompositePodGroupSchedulingConstraints v1beta1CompositePodGroupSchedulingConstraints = (V1beta1CompositePodGroupSchedulingConstraints) o; + return Objects.equals(this.topology, v1beta1CompositePodGroupSchedulingConstraints.topology); + } + + @Override + public int hashCode() { + return Objects.hash(topology); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1CompositePodGroupSchedulingConstraints {\n"); + sb.append(" topology: ").append(toIndentedString(topology)).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(Arrays.asList("topology")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1CompositePodGroupSchedulingConstraints + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1CompositePodGroupSchedulingConstraints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1CompositePodGroupSchedulingConstraints is not found in the empty JSON string", V1beta1CompositePodGroupSchedulingConstraints.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1CompositePodGroupSchedulingConstraints.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1CompositePodGroupSchedulingConstraints` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("topology") != null && !jsonObj.get("topology").isJsonNull()) { + JsonArray jsonArraytopology = jsonObj.getAsJsonArray("topology"); + if (jsonArraytopology != null) { + // ensure the json data is an array + if (!jsonObj.get("topology").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `topology` to be an array in the JSON string but got `%s`", jsonObj.get("topology").toString())); + } + + // validate the optional field `topology` (array) + for (int i = 0; i < jsonArraytopology.size(); i++) { + V1beta1TopologyConstraint.validateJsonElement(jsonArraytopology.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1CompositePodGroupSchedulingConstraints.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1CompositePodGroupSchedulingConstraints' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1CompositePodGroupSchedulingConstraints.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1CompositePodGroupSchedulingConstraints value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1CompositePodGroupSchedulingConstraints read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1CompositePodGroupSchedulingConstraints given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1CompositePodGroupSchedulingConstraints + * @throws IOException if the JSON string is invalid with respect to V1beta1CompositePodGroupSchedulingConstraints + */ + public static V1beta1CompositePodGroupSchedulingConstraints fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1CompositePodGroupSchedulingConstraints.class); + } + + /** + * Convert an instance of V1beta1CompositePodGroupSchedulingConstraints to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingPolicy.java new file mode 100644 index 0000000000..1630d98aac --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupSchedulingPolicy.java @@ -0,0 +1,236 @@ +/* +Copyright 2026 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.V1beta1CompositeGangSchedulingPolicy; +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; + +/** + * CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set. + */ +@ApiModel(description = "CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1CompositePodGroupSchedulingPolicy { + public static final String SERIALIZED_NAME_BASIC = "basic"; + @SerializedName(SERIALIZED_NAME_BASIC) + @jakarta.annotation.Nullable + private Object basic; + + public static final String SERIALIZED_NAME_GANG = "gang"; + @SerializedName(SERIALIZED_NAME_GANG) + @jakarta.annotation.Nullable + private V1beta1CompositeGangSchedulingPolicy gang; + + public V1beta1CompositePodGroupSchedulingPolicy() { + } + + public V1beta1CompositePodGroupSchedulingPolicy basic(@jakarta.annotation.Nullable Object basic) { + this.basic = basic; + return this; + } + + /** + * basic specifies that the groups of this composite group should be scheduled independently. This field is immutable. + * @return basic + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "basic specifies that the groups of this composite group should be scheduled independently. This field is immutable.") + public Object getBasic() { + return basic; + } + + public void setBasic(@jakarta.annotation.Nullable Object basic) { + this.basic = basic; + } + + + public V1beta1CompositePodGroupSchedulingPolicy gang(@jakarta.annotation.Nullable V1beta1CompositeGangSchedulingPolicy gang) { + this.gang = gang; + return this; + } + + /** + * Get gang + * @return gang + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CompositeGangSchedulingPolicy getGang() { + return gang; + } + + public void setGang(@jakarta.annotation.Nullable V1beta1CompositeGangSchedulingPolicy gang) { + this.gang = gang; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1CompositePodGroupSchedulingPolicy v1beta1CompositePodGroupSchedulingPolicy = (V1beta1CompositePodGroupSchedulingPolicy) o; + return Objects.equals(this.basic, v1beta1CompositePodGroupSchedulingPolicy.basic) && + Objects.equals(this.gang, v1beta1CompositePodGroupSchedulingPolicy.gang); + } + + @Override + public int hashCode() { + return Objects.hash(basic, gang); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1CompositePodGroupSchedulingPolicy {\n"); + sb.append(" basic: ").append(toIndentedString(basic)).append("\n"); + sb.append(" gang: ").append(toIndentedString(gang)).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(Arrays.asList("basic", "gang")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1CompositePodGroupSchedulingPolicy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1CompositePodGroupSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1CompositePodGroupSchedulingPolicy is not found in the empty JSON string", V1beta1CompositePodGroupSchedulingPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1CompositePodGroupSchedulingPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1CompositePodGroupSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `gang` + if (jsonObj.get("gang") != null && !jsonObj.get("gang").isJsonNull()) { + V1beta1CompositeGangSchedulingPolicy.validateJsonElement(jsonObj.get("gang")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1CompositePodGroupSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1CompositePodGroupSchedulingPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1CompositePodGroupSchedulingPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1CompositePodGroupSchedulingPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1CompositePodGroupSchedulingPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1CompositePodGroupSchedulingPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1CompositePodGroupSchedulingPolicy + * @throws IOException if the JSON string is invalid with respect to V1beta1CompositePodGroupSchedulingPolicy + */ + public static V1beta1CompositePodGroupSchedulingPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1CompositePodGroupSchedulingPolicy.class); + } + + /** + * Convert an instance of V1beta1CompositePodGroupSchedulingPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupTemplate.java new file mode 100644 index 0000000000..91a71ce2ce --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CompositePodGroupTemplate.java @@ -0,0 +1,496 @@ +/* +Copyright 2026 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.V1beta1CompositeDisruptionMode; +import io.kubernetes.client.openapi.models.V1beta1CompositePodGroupSchedulingConstraints; +import io.kubernetes.client.openapi.models.V1beta1CompositePodGroupSchedulingPolicy; +import io.kubernetes.client.openapi.models.V1beta1PodGroupTemplate; +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; + +/** + * CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy. + */ +@ApiModel(description = "CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1CompositePodGroupTemplate { + public static final String SERIALIZED_NAME_COMPOSITE_POD_GROUP_TEMPLATES = "compositePodGroupTemplates"; + @SerializedName(SERIALIZED_NAME_COMPOSITE_POD_GROUP_TEMPLATES) + @jakarta.annotation.Nullable + private List compositePodGroupTemplates = new ArrayList<>(); + + public static final String SERIALIZED_NAME_DISRUPTION_MODE = "disruptionMode"; + @SerializedName(SERIALIZED_NAME_DISRUPTION_MODE) + @jakarta.annotation.Nullable + private V1beta1CompositeDisruptionMode disruptionMode; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_POD_GROUP_TEMPLATES = "podGroupTemplates"; + @SerializedName(SERIALIZED_NAME_POD_GROUP_TEMPLATES) + @jakarta.annotation.Nullable + private List podGroupTemplates = new ArrayList<>(); + + 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_SCHEDULING_CONSTRAINTS = "schedulingConstraints"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_CONSTRAINTS) + @jakarta.annotation.Nullable + private V1beta1CompositePodGroupSchedulingConstraints schedulingConstraints; + + public static final String SERIALIZED_NAME_SCHEDULING_POLICY = "schedulingPolicy"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_POLICY) + @jakarta.annotation.Nonnull + private V1beta1CompositePodGroupSchedulingPolicy schedulingPolicy; + + public V1beta1CompositePodGroupTemplate() { + } + + public V1beta1CompositePodGroupTemplate compositePodGroupTemplates(@jakarta.annotation.Nullable List compositePodGroupTemplates) { + this.compositePodGroupTemplates = compositePodGroupTemplates; + return this; + } + + public V1beta1CompositePodGroupTemplate addCompositePodGroupTemplatesItem(V1beta1CompositePodGroupTemplate compositePodGroupTemplatesItem) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + this.compositePodGroupTemplates.add(compositePodGroupTemplatesItem); + return this; + } + + /** + * compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. + * @return compositePodGroupTemplates + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.") + public List getCompositePodGroupTemplates() { + return compositePodGroupTemplates; + } + + public void setCompositePodGroupTemplates(@jakarta.annotation.Nullable List compositePodGroupTemplates) { + this.compositePodGroupTemplates = compositePodGroupTemplates; + } + + + public V1beta1CompositePodGroupTemplate disruptionMode(@jakarta.annotation.Nullable V1beta1CompositeDisruptionMode disruptionMode) { + this.disruptionMode = disruptionMode; + return this; + } + + /** + * Get disruptionMode + * @return disruptionMode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CompositeDisruptionMode getDisruptionMode() { + return disruptionMode; + } + + public void setDisruptionMode(@jakarta.annotation.Nullable V1beta1CompositeDisruptionMode disruptionMode) { + this.disruptionMode = disruptionMode; + } + + + public V1beta1CompositePodGroupTemplate name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1beta1CompositePodGroupTemplate podGroupTemplates(@jakarta.annotation.Nullable List podGroupTemplates) { + this.podGroupTemplates = podGroupTemplates; + return this; + } + + public V1beta1CompositePodGroupTemplate addPodGroupTemplatesItem(V1beta1PodGroupTemplate podGroupTemplatesItem) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + this.podGroupTemplates.add(podGroupTemplatesItem); + return this; + } + + /** + * podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. + * @return podGroupTemplates + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.") + public List getPodGroupTemplates() { + return podGroupTemplates; + } + + public void setPodGroupTemplates(@jakarta.annotation.Nullable List podGroupTemplates) { + this.podGroupTemplates = podGroupTemplates; + } + + + public V1beta1CompositePodGroupTemplate preemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return this; + } + + /** + * preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. + * @return preemptionPolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + public String getPreemptionPolicy() { + return preemptionPolicy; + } + + public void setPreemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + } + + + public V1beta1CompositePodGroupTemplate priority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + return this; + } + + /** + * priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite pod group. 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. This field is immutable. + * @return priority + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite pod group. 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. This field is immutable.") + public Integer getPriority() { + return priority; + } + + public void setPriority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + } + + + public V1beta1CompositePodGroupTemplate priorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + return this; + } + + /** + * priorityClassName indicates the priority that should be considered when scheduling a composite pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, composite pod groups created from this template will have the priority set to zero. This field is immutable. + * @return priorityClassName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "priorityClassName indicates the priority that should be considered when scheduling a composite pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, composite pod groups created from this template will have the priority set to zero. This field is immutable.") + public String getPriorityClassName() { + return priorityClassName; + } + + public void setPriorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + } + + + public V1beta1CompositePodGroupTemplate schedulingConstraints(@jakarta.annotation.Nullable V1beta1CompositePodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + return this; + } + + /** + * Get schedulingConstraints + * @return schedulingConstraints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CompositePodGroupSchedulingConstraints getSchedulingConstraints() { + return schedulingConstraints; + } + + public void setSchedulingConstraints(@jakarta.annotation.Nullable V1beta1CompositePodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + } + + + public V1beta1CompositePodGroupTemplate schedulingPolicy(@jakarta.annotation.Nonnull V1beta1CompositePodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + return this; + } + + /** + * Get schedulingPolicy + * @return schedulingPolicy + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1beta1CompositePodGroupSchedulingPolicy getSchedulingPolicy() { + return schedulingPolicy; + } + + public void setSchedulingPolicy(@jakarta.annotation.Nonnull V1beta1CompositePodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1CompositePodGroupTemplate v1beta1CompositePodGroupTemplate = (V1beta1CompositePodGroupTemplate) o; + return Objects.equals(this.compositePodGroupTemplates, v1beta1CompositePodGroupTemplate.compositePodGroupTemplates) && + Objects.equals(this.disruptionMode, v1beta1CompositePodGroupTemplate.disruptionMode) && + Objects.equals(this.name, v1beta1CompositePodGroupTemplate.name) && + Objects.equals(this.podGroupTemplates, v1beta1CompositePodGroupTemplate.podGroupTemplates) && + Objects.equals(this.preemptionPolicy, v1beta1CompositePodGroupTemplate.preemptionPolicy) && + Objects.equals(this.priority, v1beta1CompositePodGroupTemplate.priority) && + Objects.equals(this.priorityClassName, v1beta1CompositePodGroupTemplate.priorityClassName) && + Objects.equals(this.schedulingConstraints, v1beta1CompositePodGroupTemplate.schedulingConstraints) && + Objects.equals(this.schedulingPolicy, v1beta1CompositePodGroupTemplate.schedulingPolicy); + } + + @Override + public int hashCode() { + return Objects.hash(compositePodGroupTemplates, disruptionMode, name, podGroupTemplates, preemptionPolicy, priority, priorityClassName, schedulingConstraints, schedulingPolicy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1CompositePodGroupTemplate {\n"); + sb.append(" compositePodGroupTemplates: ").append(toIndentedString(compositePodGroupTemplates)).append("\n"); + sb.append(" disruptionMode: ").append(toIndentedString(disruptionMode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" podGroupTemplates: ").append(toIndentedString(podGroupTemplates)).append("\n"); + sb.append(" preemptionPolicy: ").append(toIndentedString(preemptionPolicy)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" priorityClassName: ").append(toIndentedString(priorityClassName)).append("\n"); + sb.append(" schedulingConstraints: ").append(toIndentedString(schedulingConstraints)).append("\n"); + sb.append(" schedulingPolicy: ").append(toIndentedString(schedulingPolicy)).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(Arrays.asList("compositePodGroupTemplates", "disruptionMode", "name", "podGroupTemplates", "preemptionPolicy", "priority", "priorityClassName", "schedulingConstraints", "schedulingPolicy")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("name", "schedulingPolicy")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1CompositePodGroupTemplate + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1CompositePodGroupTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1CompositePodGroupTemplate is not found in the empty JSON string", V1beta1CompositePodGroupTemplate.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1CompositePodGroupTemplate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1CompositePodGroupTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1CompositePodGroupTemplate.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("compositePodGroupTemplates") != null && !jsonObj.get("compositePodGroupTemplates").isJsonNull()) { + JsonArray jsonArraycompositePodGroupTemplates = jsonObj.getAsJsonArray("compositePodGroupTemplates"); + if (jsonArraycompositePodGroupTemplates != null) { + // ensure the json data is an array + if (!jsonObj.get("compositePodGroupTemplates").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `compositePodGroupTemplates` to be an array in the JSON string but got `%s`", jsonObj.get("compositePodGroupTemplates").toString())); + } + + // validate the optional field `compositePodGroupTemplates` (array) + for (int i = 0; i < jsonArraycompositePodGroupTemplates.size(); i++) { + V1beta1CompositePodGroupTemplate.validateJsonElement(jsonArraycompositePodGroupTemplates.get(i)); + }; + } + } + // validate the optional field `disruptionMode` + if (jsonObj.get("disruptionMode") != null && !jsonObj.get("disruptionMode").isJsonNull()) { + V1beta1CompositeDisruptionMode.validateJsonElement(jsonObj.get("disruptionMode")); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (jsonObj.get("podGroupTemplates") != null && !jsonObj.get("podGroupTemplates").isJsonNull()) { + JsonArray jsonArraypodGroupTemplates = jsonObj.getAsJsonArray("podGroupTemplates"); + if (jsonArraypodGroupTemplates != null) { + // ensure the json data is an array + if (!jsonObj.get("podGroupTemplates").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podGroupTemplates` to be an array in the JSON string but got `%s`", jsonObj.get("podGroupTemplates").toString())); + } + + // validate the optional field `podGroupTemplates` (array) + for (int i = 0; i < jsonArraypodGroupTemplates.size(); i++) { + V1beta1PodGroupTemplate.validateJsonElement(jsonArraypodGroupTemplates.get(i)); + }; + } + } + if ((jsonObj.get("preemptionPolicy") != null && !jsonObj.get("preemptionPolicy").isJsonNull()) && !jsonObj.get("preemptionPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `preemptionPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preemptionPolicy").toString())); + } + if ((jsonObj.get("priorityClassName") != null && !jsonObj.get("priorityClassName").isJsonNull()) && !jsonObj.get("priorityClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `priorityClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priorityClassName").toString())); + } + // validate the optional field `schedulingConstraints` + if (jsonObj.get("schedulingConstraints") != null && !jsonObj.get("schedulingConstraints").isJsonNull()) { + V1beta1CompositePodGroupSchedulingConstraints.validateJsonElement(jsonObj.get("schedulingConstraints")); + } + // validate the required field `schedulingPolicy` + V1beta1CompositePodGroupSchedulingPolicy.validateJsonElement(jsonObj.get("schedulingPolicy")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1CompositePodGroupTemplate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1CompositePodGroupTemplate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1CompositePodGroupTemplate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1CompositePodGroupTemplate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1CompositePodGroupTemplate read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1CompositePodGroupTemplate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1CompositePodGroupTemplate + * @throws IOException if the JSON string is invalid with respect to V1beta1CompositePodGroupTemplate + */ + public static V1beta1CompositePodGroupTemplate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1CompositePodGroupTemplate.class); + } + + /** + * Convert an instance of V1beta1CompositePodGroupTemplate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java index 3190a1c0ae..42498bb2ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1Counter { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java index 8dadf44084..d41b1645cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java @@ -53,7 +53,7 @@ * CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. 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 ResourcePool. 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1CounterSet { public static final String SERIALIZED_NAME_COUNTERS = "counters"; @SerializedName(SERIALIZED_NAME_COUNTERS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java index 5305a23a3b..18231e53e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1Device { public static final String SERIALIZED_NAME_BASIC = "basic"; @SerializedName(SERIALIZED_NAME_BASIC) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java index 0f66d2a70b..edb264d515 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java @@ -53,7 +53,7 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceAllocationConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java index f96dffc32a..e01144052b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceAllocationResult { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java index c1fc983e16..7caf399ca5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceAttribute { public static final String SERIALIZED_NAME_BOOL = "bool"; @SerializedName(SERIALIZED_NAME_BOOL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java index ae693f1c4e..3f029b2653 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java @@ -52,7 +52,7 @@ * DeviceCapacity describes a quantity associated with a device. */ @ApiModel(description = "DeviceCapacity describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceCapacity { public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java index 812f53900f..d8749321bc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceClaim { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java index d88068884a..c407102226 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceClaimConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java index 129e37230e..870883347b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,7 +71,7 @@ public class V1beta1DeviceClass implements io.kubernetes.client.common.Kubernete public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1beta1DeviceClassSpec spec; public V1beta1DeviceClass() { @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta1DeviceClass spec(@jakarta.annotation.Nonnull V1beta1DeviceClassSpec spec) { + public V1beta1DeviceClass spec(@jakarta.annotation.Nullable V1beta1DeviceClassSpec spec) { this.spec = spec; return this; } @@ -146,13 +146,13 @@ public V1beta1DeviceClass spec(@jakarta.annotation.Nonnull V1beta1DeviceClassSpe * Get spec * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1DeviceClassSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1beta1DeviceClassSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1beta1DeviceClassSpec spec) { this.spec = spec; } @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec")); + openapiRequiredFields = new HashSet(0); } /** @@ -233,13 +233,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1DeviceClass.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -251,8 +244,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the required field `spec` - V1beta1DeviceClassSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1beta1DeviceClassSpec.validateJsonElement(jsonObj.get("spec")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java index 246b53cd0b..666132ab4a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java @@ -51,7 +51,7 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceClassConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java index 8630e627ac..b19b8b5b2b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java @@ -54,7 +54,7 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java index 26676b7b28..1eafa09bfa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -108,11 +108,11 @@ public V1beta1DeviceClassSpec extendedResourceName(@jakarta.annotation.Nullable } /** - * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field. + * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. * @return extendedResourceName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field.") + @ApiModelProperty(value = "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.") public String getExtendedResourceName() { return extendedResourceName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java index 0c4da6edcf..b52fbe08af 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceConstraint { public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java index a15f165a72..68734557a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java @@ -22,8 +22,10 @@ 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; @@ -53,8 +55,13 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceCounterConsumption { + public static final String SERIALIZED_NAME_COMPATIBILITY_GROUPS = "compatibilityGroups"; + @SerializedName(SERIALIZED_NAME_COMPATIBILITY_GROUPS) + @jakarta.annotation.Nullable + private List compatibilityGroups = new ArrayList<>(); + public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; @SerializedName(SERIALIZED_NAME_COUNTER_SET) @jakarta.annotation.Nonnull @@ -68,6 +75,34 @@ public class V1beta1DeviceCounterConsumption { public V1beta1DeviceCounterConsumption() { } + public V1beta1DeviceCounterConsumption compatibilityGroups(@jakarta.annotation.Nullable List compatibilityGroups) { + this.compatibilityGroups = compatibilityGroups; + return this; + } + + public V1beta1DeviceCounterConsumption addCompatibilityGroupsItem(String compatibilityGroupsItem) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + this.compatibilityGroups.add(compatibilityGroupsItem); + return this; + } + + /** + * CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique. + * @return compatibilityGroups + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique.") + public List getCompatibilityGroups() { + return compatibilityGroups; + } + + public void setCompatibilityGroups(@jakarta.annotation.Nullable List compatibilityGroups) { + this.compatibilityGroups = compatibilityGroups; + } + + public V1beta1DeviceCounterConsumption counterSet(@jakarta.annotation.Nonnull String counterSet) { this.counterSet = counterSet; return this; @@ -126,19 +161,21 @@ public boolean equals(Object o) { return false; } V1beta1DeviceCounterConsumption v1beta1DeviceCounterConsumption = (V1beta1DeviceCounterConsumption) o; - return Objects.equals(this.counterSet, v1beta1DeviceCounterConsumption.counterSet) && + return Objects.equals(this.compatibilityGroups, v1beta1DeviceCounterConsumption.compatibilityGroups) && + Objects.equals(this.counterSet, v1beta1DeviceCounterConsumption.counterSet) && Objects.equals(this.counters, v1beta1DeviceCounterConsumption.counters); } @Override public int hashCode() { - return Objects.hash(counterSet, counters); + return Objects.hash(compatibilityGroups, counterSet, counters); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1DeviceCounterConsumption {\n"); + sb.append(" compatibilityGroups: ").append(toIndentedString(compatibilityGroups)).append("\n"); sb.append(" counterSet: ").append(toIndentedString(counterSet)).append("\n"); sb.append(" counters: ").append(toIndentedString(counters)).append("\n"); sb.append("}"); @@ -162,7 +199,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("counterSet", "counters")); + openapiFields = new HashSet(Arrays.asList("compatibilityGroups", "counterSet", "counters")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("counterSet", "counters")); @@ -196,6 +233,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("compatibilityGroups") != null && !jsonObj.get("compatibilityGroups").isJsonNull() && !jsonObj.get("compatibilityGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `compatibilityGroups` to be an array in the JSON string but got `%s`", jsonObj.get("compatibilityGroups").toString())); + } if (!jsonObj.get("counterSet").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `counterSet` to be a primitive type in the JSON string but got `%s`", jsonObj.get("counterSet").toString())); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceDerivedAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceDerivedAttribute.java new file mode 100644 index 0000000000..9a06931fa8 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceDerivedAttribute.java @@ -0,0 +1,244 @@ +/* +Copyright 2026 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; + +/** + * DeviceDerivedAttribute defines a derived attribute computed via CEL. + */ +@ApiModel(description = "DeviceDerivedAttribute defines a derived attribute computed via CEL.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1DeviceDerivedAttribute { + 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 V1beta1DeviceDerivedAttribute() { + } + + public V1beta1DeviceDerivedAttribute expression(@jakarta.annotation.Nonnull String expression) { + this.expression = expression; + return this; + } + + /** + * Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. + * @return expression + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.") + public String getExpression() { + return expression; + } + + public void setExpression(@jakarta.annotation.Nonnull String expression) { + this.expression = expression; + } + + + public V1beta1DeviceDerivedAttribute name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint.") + 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; + } + V1beta1DeviceDerivedAttribute v1beta1DeviceDerivedAttribute = (V1beta1DeviceDerivedAttribute) o; + return Objects.equals(this.expression, v1beta1DeviceDerivedAttribute.expression) && + Objects.equals(this.name, v1beta1DeviceDerivedAttribute.name); + } + + @Override + public int hashCode() { + return Objects.hash(expression, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1DeviceDerivedAttribute {\n"); + sb.append(" expression: ").append(toIndentedString(expression)).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(Arrays.asList("expression", "name")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("expression", "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 V1beta1DeviceDerivedAttribute + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1DeviceDerivedAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1DeviceDerivedAttribute is not found in the empty JSON string", V1beta1DeviceDerivedAttribute.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1DeviceDerivedAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceDerivedAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1DeviceDerivedAttribute.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("expression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1beta1DeviceDerivedAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1DeviceDerivedAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1DeviceDerivedAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1DeviceDerivedAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1DeviceDerivedAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1DeviceDerivedAttribute given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1DeviceDerivedAttribute + * @throws IOException if the JSON string is invalid with respect to V1beta1DeviceDerivedAttribute + */ + public static V1beta1DeviceDerivedAttribute fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1DeviceDerivedAttribute.class); + } + + /** + * Convert an instance of V1beta1DeviceDerivedAttribute to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java index 93c6800953..25ad48f981 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta1CapacityRequirements; +import io.kubernetes.client.openapi.models.V1beta1DeviceDerivedAttribute; import io.kubernetes.client.openapi.models.V1beta1DeviceSelector; import io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest; import io.kubernetes.client.openapi.models.V1beta1DeviceToleration; @@ -56,7 +57,7 @@ * 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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -78,6 +79,11 @@ public class V1beta1DeviceRequest { @jakarta.annotation.Nullable private Long count; + public static final String SERIALIZED_NAME_DERIVED_ATTRIBUTES = "derivedAttributes"; + @SerializedName(SERIALIZED_NAME_DERIVED_ATTRIBUTES) + @jakarta.annotation.Nullable + private List derivedAttributes = new ArrayList<>(); + public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) @jakarta.annotation.Nullable @@ -186,6 +192,34 @@ public void setCount(@jakarta.annotation.Nullable Long count) { } + public V1beta1DeviceRequest derivedAttributes(@jakarta.annotation.Nullable List derivedAttributes) { + this.derivedAttributes = derivedAttributes; + return this; + } + + public V1beta1DeviceRequest addDerivedAttributesItem(V1beta1DeviceDerivedAttribute derivedAttributesItem) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + this.derivedAttributes.add(derivedAttributesItem); + return this; + } + + /** + * DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. + * @return derivedAttributes + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") + public List getDerivedAttributes() { + return derivedAttributes; + } + + public void setDerivedAttributes(@jakarta.annotation.Nullable List derivedAttributes) { + this.derivedAttributes = derivedAttributes; + } + + public V1beta1DeviceRequest deviceClassName(@jakarta.annotation.Nullable String deviceClassName) { this.deviceClassName = deviceClassName; return this; @@ -324,6 +358,7 @@ public boolean equals(Object o) { Objects.equals(this.allocationMode, v1beta1DeviceRequest.allocationMode) && Objects.equals(this.capacity, v1beta1DeviceRequest.capacity) && Objects.equals(this.count, v1beta1DeviceRequest.count) && + Objects.equals(this.derivedAttributes, v1beta1DeviceRequest.derivedAttributes) && Objects.equals(this.deviceClassName, v1beta1DeviceRequest.deviceClassName) && Objects.equals(this.firstAvailable, v1beta1DeviceRequest.firstAvailable) && Objects.equals(this.name, v1beta1DeviceRequest.name) && @@ -333,7 +368,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, firstAvailable, name, selectors, tolerations); + return Objects.hash(adminAccess, allocationMode, capacity, count, derivedAttributes, deviceClassName, firstAvailable, name, selectors, tolerations); } @Override @@ -344,6 +379,7 @@ public String toString() { sb.append(" allocationMode: ").append(toIndentedString(allocationMode)).append("\n"); sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" derivedAttributes: ").append(toIndentedString(derivedAttributes)).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"); @@ -370,7 +406,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("adminAccess", "allocationMode", "capacity", "count", "deviceClassName", "firstAvailable", "name", "selectors", "tolerations")); + openapiFields = new HashSet(Arrays.asList("adminAccess", "allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "firstAvailable", "name", "selectors", "tolerations")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name")); @@ -411,6 +447,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { V1beta1CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); } + if (jsonObj.get("derivedAttributes") != null && !jsonObj.get("derivedAttributes").isJsonNull()) { + JsonArray jsonArrayderivedAttributes = jsonObj.getAsJsonArray("derivedAttributes"); + if (jsonArrayderivedAttributes != null) { + // ensure the json data is an array + if (!jsonObj.get("derivedAttributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `derivedAttributes` to be an array in the JSON string but got `%s`", jsonObj.get("derivedAttributes").toString())); + } + + // validate the optional field `derivedAttributes` (array) + for (int i = 0; i < jsonArrayderivedAttributes.size(); i++) { + V1beta1DeviceDerivedAttribute.validateJsonElement(jsonArrayderivedAttributes.get(i)); + }; + } + } if ((jsonObj.get("deviceClassName") != null && !jsonObj.get("deviceClassName").isJsonNull()) && !jsonObj.get("deviceClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java index 40a9a6cd29..c7ee8b3dfc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java @@ -56,7 +56,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -103,6 +103,11 @@ public class V1beta1DeviceRequestAllocationResult { @jakarta.annotation.Nullable private String shareID; + public static final String SERIALIZED_NAME_SKIP_NODE_OPERATIONS = "skipNodeOperations"; + @SerializedName(SERIALIZED_NAME_SKIP_NODE_OPERATIONS) + @jakarta.annotation.Nullable + private List skipNodeOperations = new ArrayList<>(); + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) @jakarta.annotation.Nullable @@ -315,6 +320,34 @@ public void setShareID(@jakarta.annotation.Nullable String shareID) { } + public V1beta1DeviceRequestAllocationResult skipNodeOperations(@jakarta.annotation.Nullable List skipNodeOperations) { + this.skipNodeOperations = skipNodeOperations; + return this; + } + + public V1beta1DeviceRequestAllocationResult addSkipNodeOperationsItem(String skipNodeOperationsItem) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.add(skipNodeOperationsItem); + return this; + } + + /** + * SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated. + * @return skipNodeOperations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.") + public List getSkipNodeOperations() { + return skipNodeOperations; + } + + public void setSkipNodeOperations(@jakarta.annotation.Nullable List skipNodeOperations) { + this.skipNodeOperations = skipNodeOperations; + } + + public V1beta1DeviceRequestAllocationResult tolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; return this; @@ -362,12 +395,13 @@ public boolean equals(Object o) { Objects.equals(this.pool, v1beta1DeviceRequestAllocationResult.pool) && Objects.equals(this.request, v1beta1DeviceRequestAllocationResult.request) && Objects.equals(this.shareID, v1beta1DeviceRequestAllocationResult.shareID) && + Objects.equals(this.skipNodeOperations, v1beta1DeviceRequestAllocationResult.skipNodeOperations) && Objects.equals(this.tolerations, v1beta1DeviceRequestAllocationResult.tolerations); } @Override public int hashCode() { - return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, skipNodeOperations, tolerations); } @Override @@ -383,6 +417,7 @@ public String toString() { sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); sb.append(" request: ").append(toIndentedString(request)).append("\n"); sb.append(" shareID: ").append(toIndentedString(shareID)).append("\n"); + sb.append(" skipNodeOperations: ").append(toIndentedString(skipNodeOperations)).append("\n"); sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); sb.append("}"); return sb.toString(); @@ -405,7 +440,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "tolerations")); + openapiFields = new HashSet(Arrays.asList("adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "skipNodeOperations", "tolerations")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("device", "driver", "pool", "request")); @@ -462,6 +497,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); } + // ensure the optional json data is an array if present + if (jsonObj.get("skipNodeOperations") != null && !jsonObj.get("skipNodeOperations").isJsonNull() && !jsonObj.get("skipNodeOperations").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `skipNodeOperations` to be an array in the JSON string but got `%s`", jsonObj.get("skipNodeOperations").toString())); + } if (jsonObj.get("tolerations") != null && !jsonObj.get("tolerations").isJsonNull()) { JsonArray jsonArraytolerations = jsonObj.getAsJsonArray("tolerations"); if (jsonArraytolerations != null) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java index cd27af287a..598388dd50 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceSelector { public static final String SERIALIZED_NAME_CEL = "cel"; @SerializedName(SERIALIZED_NAME_CEL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java index eef930a55e..367b4fa922 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta1CapacityRequirements; +import io.kubernetes.client.openapi.models.V1beta1DeviceDerivedAttribute; import io.kubernetes.client.openapi.models.V1beta1DeviceSelector; import io.kubernetes.client.openapi.models.V1beta1DeviceToleration; import io.swagger.annotations.ApiModel; @@ -55,7 +56,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) @@ -72,6 +73,11 @@ public class V1beta1DeviceSubRequest { @jakarta.annotation.Nullable private Long count; + public static final String SERIALIZED_NAME_DERIVED_ATTRIBUTES = "derivedAttributes"; + @SerializedName(SERIALIZED_NAME_DERIVED_ATTRIBUTES) + @jakarta.annotation.Nullable + private List derivedAttributes = new ArrayList<>(); + public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) @jakarta.annotation.Nonnull @@ -155,6 +161,34 @@ public void setCount(@jakarta.annotation.Nullable Long count) { } + public V1beta1DeviceSubRequest derivedAttributes(@jakarta.annotation.Nullable List derivedAttributes) { + this.derivedAttributes = derivedAttributes; + return this; + } + + public V1beta1DeviceSubRequest addDerivedAttributesItem(V1beta1DeviceDerivedAttribute derivedAttributesItem) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + this.derivedAttributes.add(derivedAttributesItem); + return this; + } + + /** + * DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. + * @return derivedAttributes + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") + public List getDerivedAttributes() { + return derivedAttributes; + } + + public void setDerivedAttributes(@jakarta.annotation.Nullable List derivedAttributes) { + this.derivedAttributes = derivedAttributes; + } + + public V1beta1DeviceSubRequest deviceClassName(@jakarta.annotation.Nonnull String deviceClassName) { this.deviceClassName = deviceClassName; return this; @@ -264,6 +298,7 @@ public boolean equals(Object o) { return Objects.equals(this.allocationMode, v1beta1DeviceSubRequest.allocationMode) && Objects.equals(this.capacity, v1beta1DeviceSubRequest.capacity) && Objects.equals(this.count, v1beta1DeviceSubRequest.count) && + Objects.equals(this.derivedAttributes, v1beta1DeviceSubRequest.derivedAttributes) && Objects.equals(this.deviceClassName, v1beta1DeviceSubRequest.deviceClassName) && Objects.equals(this.name, v1beta1DeviceSubRequest.name) && Objects.equals(this.selectors, v1beta1DeviceSubRequest.selectors) && @@ -272,7 +307,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + return Objects.hash(allocationMode, capacity, count, derivedAttributes, deviceClassName, name, selectors, tolerations); } @Override @@ -282,6 +317,7 @@ public String toString() { sb.append(" allocationMode: ").append(toIndentedString(allocationMode)).append("\n"); sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" derivedAttributes: ").append(toIndentedString(derivedAttributes)).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"); @@ -307,7 +343,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allocationMode", "capacity", "count", "deviceClassName", "name", "selectors", "tolerations")); + openapiFields = new HashSet(Arrays.asList("allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "name", "selectors", "tolerations")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("deviceClassName", "name")); @@ -348,6 +384,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { V1beta1CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); } + if (jsonObj.get("derivedAttributes") != null && !jsonObj.get("derivedAttributes").isJsonNull()) { + JsonArray jsonArrayderivedAttributes = jsonObj.getAsJsonArray("derivedAttributes"); + if (jsonArrayderivedAttributes != null) { + // ensure the json data is an array + if (!jsonObj.get("derivedAttributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `derivedAttributes` to be an array in the JSON string but got `%s`", jsonObj.get("derivedAttributes").toString())); + } + + // validate the optional field `derivedAttributes` (array) + for (int i = 0; i < jsonArrayderivedAttributes.size(); i++) { + V1beta1DeviceDerivedAttribute.validateJsonElement(jsonArrayderivedAttributes.get(i)); + }; + } + } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java index 5fbe17f5ff..380261730c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceTaint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java index 4b6e5b747f..da06de574a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceToleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DisruptionMode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DisruptionMode.java new file mode 100644 index 0000000000..1aa83ecf3e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DisruptionMode.java @@ -0,0 +1,231 @@ +/* +Copyright 2026 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; + +/** + * DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set. + */ +@ApiModel(description = "DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1DisruptionMode { + public static final String SERIALIZED_NAME_ALL = "all"; + @SerializedName(SERIALIZED_NAME_ALL) + @jakarta.annotation.Nullable + private Object all; + + public static final String SERIALIZED_NAME_SINGLE = "single"; + @SerializedName(SERIALIZED_NAME_SINGLE) + @jakarta.annotation.Nullable + private Object single; + + public V1beta1DisruptionMode() { + } + + public V1beta1DisruptionMode all(@jakarta.annotation.Nullable Object all) { + this.all = all; + return this; + } + + /** + * all specifies that all children can only be disrupted together. + * @return all + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "all specifies that all children can only be disrupted together.") + public Object getAll() { + return all; + } + + public void setAll(@jakarta.annotation.Nullable Object all) { + this.all = all; + } + + + public V1beta1DisruptionMode single(@jakarta.annotation.Nullable Object single) { + this.single = single; + return this; + } + + /** + * single specifies that children can be disrupted independently from each other. + * @return single + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "single specifies that children can be disrupted independently from each other.") + public Object getSingle() { + return single; + } + + public void setSingle(@jakarta.annotation.Nullable Object single) { + this.single = single; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1DisruptionMode v1beta1DisruptionMode = (V1beta1DisruptionMode) o; + return Objects.equals(this.all, v1beta1DisruptionMode.all) && + Objects.equals(this.single, v1beta1DisruptionMode.single); + } + + @Override + public int hashCode() { + return Objects.hash(all, single); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1DisruptionMode {\n"); + sb.append(" all: ").append(toIndentedString(all)).append("\n"); + sb.append(" single: ").append(toIndentedString(single)).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(Arrays.asList("all", "single")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1DisruptionMode + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1DisruptionMode.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1DisruptionMode is not found in the empty JSON string", V1beta1DisruptionMode.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1DisruptionMode.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DisruptionMode` 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 (!V1beta1DisruptionMode.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1DisruptionMode' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1DisruptionMode.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1DisruptionMode value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1DisruptionMode read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1DisruptionMode given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1DisruptionMode + * @throws IOException if the JSON string is invalid with respect to V1beta1DisruptionMode + */ + public static V1beta1DisruptionMode fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1DisruptionMode.class); + } + + /** + * Convert an instance of V1beta1DisruptionMode to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1GangSchedulingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1GangSchedulingPolicy.java new file mode 100644 index 0000000000..23df2a36b6 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1GangSchedulingPolicy.java @@ -0,0 +1,211 @@ +/* +Copyright 2026 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; + +/** + * GangSchedulingPolicy defines the parameters for gang scheduling. + */ +@ApiModel(description = "GangSchedulingPolicy defines the parameters for gang scheduling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1GangSchedulingPolicy { + public static final String SERIALIZED_NAME_MIN_COUNT = "minCount"; + @SerializedName(SERIALIZED_NAME_MIN_COUNT) + @jakarta.annotation.Nonnull + private Integer minCount; + + public V1beta1GangSchedulingPolicy() { + } + + public V1beta1GangSchedulingPolicy minCount(@jakarta.annotation.Nonnull Integer minCount) { + this.minCount = minCount; + return this; + } + + /** + * minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles. + * @return minCount + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.") + public Integer getMinCount() { + return minCount; + } + + public void setMinCount(@jakarta.annotation.Nonnull Integer minCount) { + this.minCount = minCount; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1GangSchedulingPolicy v1beta1GangSchedulingPolicy = (V1beta1GangSchedulingPolicy) o; + return Objects.equals(this.minCount, v1beta1GangSchedulingPolicy.minCount); + } + + @Override + public int hashCode() { + return Objects.hash(minCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1GangSchedulingPolicy {\n"); + sb.append(" minCount: ").append(toIndentedString(minCount)).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(Arrays.asList("minCount")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("minCount")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1GangSchedulingPolicy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1GangSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1GangSchedulingPolicy is not found in the empty JSON string", V1beta1GangSchedulingPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1GangSchedulingPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1GangSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1GangSchedulingPolicy.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1GangSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1GangSchedulingPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1GangSchedulingPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1GangSchedulingPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1GangSchedulingPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1GangSchedulingPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1GangSchedulingPolicy + * @throws IOException if the JSON string is invalid with respect to V1beta1GangSchedulingPolicy + */ + public static V1beta1GangSchedulingPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1GangSchedulingPolicy.class); + } + + /** + * Convert an instance of V1beta1GangSchedulingPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java index e3b44893ac..835ccb5e9a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java @@ -50,7 +50,7 @@ * JSONPatch defines a JSON Patch. */ @ApiModel(description = "JSONPatch defines a JSON Patch.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1JSONPatch { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java index db4dffd628..e0c13c1f57 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1LeaseCandidate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java index 509a980cd5..50da5a8e82 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1LeaseCandidateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java index ba50807678..fb33aaf565 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1LeaseCandidateSpec { public static final String SERIALIZED_NAME_BINARY_VERSION = "binaryVersion"; @SerializedName(SERIALIZED_NAME_BINARY_VERSION) @@ -92,11 +92,11 @@ public V1beta1LeaseCandidateSpec binaryVersion(@jakarta.annotation.Nonnull Strin } /** - * BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. + * 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.") + @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; } @@ -112,11 +112,11 @@ public V1beta1LeaseCandidateSpec emulationVersion(@jakarta.annotation.Nullable S } /** - * 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\" + * 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\"") + @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; } @@ -132,11 +132,11 @@ public V1beta1LeaseCandidateSpec leaseName(@jakarta.annotation.Nonnull String le } /** - * 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. + * 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. * @return leaseName */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "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.") + @ApiModelProperty(required = true, value = "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.") public String getLeaseName() { return leaseName; } @@ -152,11 +152,11 @@ public V1beta1LeaseCandidateSpec pingTime(@jakarta.annotation.Nullable OffsetDat } /** - * 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. + * 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.") + @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; } @@ -172,11 +172,11 @@ public V1beta1LeaseCandidateSpec renewTime(@jakarta.annotation.Nullable OffsetDa } /** - * 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. + * 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.") + @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; } @@ -192,11 +192,11 @@ public V1beta1LeaseCandidateSpec strategy(@jakarta.annotation.Nonnull String str } /** - * 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. + * 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.") + @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; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java index 71bb08494b..532746e3d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java @@ -50,7 +50,7 @@ * MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook. */ @ApiModel(description = "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java index bb5c509262..3d4720d360 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java index 112bb24a88..0b5c4445c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MutatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java index f8953b935b..ca8e584ba0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MutatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java index 8f0140e9eb..46a9232455 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java @@ -54,7 +54,7 @@ * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MutatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java index 22ed193d0f..702334db5c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MutatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java index be1ae8aa58..0d2fe098f7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java @@ -54,7 +54,7 @@ * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. */ @ApiModel(description = "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MutatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java index 64580db5d7..56bced172e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java @@ -57,7 +57,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MutatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java index 92a8411c8f..8f0cd71cda 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1Mutation { public static final String SERIALIZED_NAME_APPLY_CONFIGURATION = "applyConfiguration"; @SerializedName(SERIALIZED_NAME_APPLY_CONFIGURATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java index 64c9b4e6d0..305f60558c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java index 1ccb218978..54c9cc99c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java @@ -52,7 +52,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1NetworkDeviceData { public static final String SERIALIZED_NAME_HARDWARE_ADDRESS = "hardwareAddress"; @SerializedName(SERIALIZED_NAME_HARDWARE_ADDRESS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMapping.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableMapping.java similarity index 53% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMapping.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableMapping.java index 6a2c505100..c3cea62a8f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMapping.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableMapping.java @@ -48,61 +48,86 @@ import io.kubernetes.client.openapi.JSON; /** - * NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. + * NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. */ -@ApiModel(description = "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1beta1NodeAllocatableResourceMapping { - public static final String SERIALIZED_NAME_ALLOCATION_MULTIPLIER = "allocationMultiplier"; - @SerializedName(SERIALIZED_NAME_ALLOCATION_MULTIPLIER) - @jakarta.annotation.Nullable - private Quantity allocationMultiplier; - +@ApiModel(description = "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1NodeAllocatableMapping { public static final String SERIALIZED_NAME_CAPACITY_KEY = "capacityKey"; @SerializedName(SERIALIZED_NAME_CAPACITY_KEY) @jakarta.annotation.Nullable private String capacityKey; - public V1beta1NodeAllocatableResourceMapping() { + public static final String SERIALIZED_NAME_CAPACITY_MULTIPLIER = "capacityMultiplier"; + @SerializedName(SERIALIZED_NAME_CAPACITY_MULTIPLIER) + @jakarta.annotation.Nullable + private Quantity capacityMultiplier; + + public static final String SERIALIZED_NAME_DEVICE_MULTIPLIER = "deviceMultiplier"; + @SerializedName(SERIALIZED_NAME_DEVICE_MULTIPLIER) + @jakarta.annotation.Nullable + private Quantity deviceMultiplier; + + public V1beta1NodeAllocatableMapping() { + } + + public V1beta1NodeAllocatableMapping capacityKey(@jakarta.annotation.Nullable String capacityKey) { + this.capacityKey = capacityKey; + return this; + } + + /** + * CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. + * @return capacityKey + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.") + public String getCapacityKey() { + return capacityKey; + } + + public void setCapacityKey(@jakarta.annotation.Nullable String capacityKey) { + this.capacityKey = capacityKey; } - public V1beta1NodeAllocatableResourceMapping allocationMultiplier(@jakarta.annotation.Nullable Quantity allocationMultiplier) { - this.allocationMultiplier = allocationMultiplier; + + public V1beta1NodeAllocatableMapping capacityMultiplier(@jakarta.annotation.Nullable Quantity capacityMultiplier) { + this.capacityMultiplier = capacityMultiplier; 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 allocationMultiplier + * @return capacityMultiplier */ @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 getAllocationMultiplier() { - return allocationMultiplier; + public Quantity getCapacityMultiplier() { + return capacityMultiplier; } - public void setAllocationMultiplier(@jakarta.annotation.Nullable Quantity allocationMultiplier) { - this.allocationMultiplier = allocationMultiplier; + public void setCapacityMultiplier(@jakarta.annotation.Nullable Quantity capacityMultiplier) { + this.capacityMultiplier = capacityMultiplier; } - public V1beta1NodeAllocatableResourceMapping capacityKey(@jakarta.annotation.Nullable String capacityKey) { - this.capacityKey = capacityKey; + public V1beta1NodeAllocatableMapping deviceMultiplier(@jakarta.annotation.Nullable Quantity deviceMultiplier) { + this.deviceMultiplier = deviceMultiplier; return this; } /** - * CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\". - * @return capacityKey + * 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 deviceMultiplier */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\".") - public String getCapacityKey() { - return capacityKey; + @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 getDeviceMultiplier() { + return deviceMultiplier; } - public void setCapacityKey(@jakarta.annotation.Nullable String capacityKey) { - this.capacityKey = capacityKey; + public void setDeviceMultiplier(@jakarta.annotation.Nullable Quantity deviceMultiplier) { + this.deviceMultiplier = deviceMultiplier; } @@ -115,22 +140,24 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1NodeAllocatableResourceMapping v1beta1NodeAllocatableResourceMapping = (V1beta1NodeAllocatableResourceMapping) o; - return Objects.equals(this.allocationMultiplier, v1beta1NodeAllocatableResourceMapping.allocationMultiplier) && - Objects.equals(this.capacityKey, v1beta1NodeAllocatableResourceMapping.capacityKey); + V1beta1NodeAllocatableMapping v1beta1NodeAllocatableMapping = (V1beta1NodeAllocatableMapping) o; + return Objects.equals(this.capacityKey, v1beta1NodeAllocatableMapping.capacityKey) && + Objects.equals(this.capacityMultiplier, v1beta1NodeAllocatableMapping.capacityMultiplier) && + Objects.equals(this.deviceMultiplier, v1beta1NodeAllocatableMapping.deviceMultiplier); } @Override public int hashCode() { - return Objects.hash(allocationMultiplier, capacityKey); + return Objects.hash(capacityKey, capacityMultiplier, deviceMultiplier); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1NodeAllocatableResourceMapping {\n"); - sb.append(" allocationMultiplier: ").append(toIndentedString(allocationMultiplier)).append("\n"); + sb.append("class V1beta1NodeAllocatableMapping {\n"); sb.append(" capacityKey: ").append(toIndentedString(capacityKey)).append("\n"); + sb.append(" capacityMultiplier: ").append(toIndentedString(capacityMultiplier)).append("\n"); + sb.append(" deviceMultiplier: ").append(toIndentedString(deviceMultiplier)).append("\n"); sb.append("}"); return sb.toString(); } @@ -152,7 +179,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allocationMultiplier", "capacityKey")); + openapiFields = new HashSet(Arrays.asList("capacityKey", "capacityMultiplier", "deviceMultiplier")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -162,51 +189,54 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1NodeAllocatableResourceMapping + * @throws IOException if the JSON Element is invalid with respect to V1beta1NodeAllocatableMapping */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1NodeAllocatableResourceMapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1NodeAllocatableResourceMapping is not found in the empty JSON string", V1beta1NodeAllocatableResourceMapping.openapiRequiredFields.toString())); + if (!V1beta1NodeAllocatableMapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1NodeAllocatableMapping is not found in the empty JSON string", V1beta1NodeAllocatableMapping.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1NodeAllocatableResourceMapping.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1NodeAllocatableResourceMapping` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1beta1NodeAllocatableMapping.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1NodeAllocatableMapping` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("allocationMultiplier") != null && !jsonObj.get("allocationMultiplier").isJsonNull()) && !jsonObj.get("allocationMultiplier").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `allocationMultiplier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMultiplier").toString())); - } if ((jsonObj.get("capacityKey") != null && !jsonObj.get("capacityKey").isJsonNull()) && !jsonObj.get("capacityKey").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `capacityKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("capacityKey").toString())); } + if ((jsonObj.get("capacityMultiplier") != null && !jsonObj.get("capacityMultiplier").isJsonNull()) && !jsonObj.get("capacityMultiplier").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `capacityMultiplier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("capacityMultiplier").toString())); + } + if ((jsonObj.get("deviceMultiplier") != null && !jsonObj.get("deviceMultiplier").isJsonNull()) && !jsonObj.get("deviceMultiplier").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `deviceMultiplier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceMultiplier").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1NodeAllocatableResourceMapping.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1NodeAllocatableResourceMapping' and its subtypes + if (!V1beta1NodeAllocatableMapping.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1NodeAllocatableMapping' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1NodeAllocatableResourceMapping.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1NodeAllocatableMapping.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1NodeAllocatableResourceMapping value) throws IOException { + public void write(JsonWriter out, V1beta1NodeAllocatableMapping value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1NodeAllocatableResourceMapping read(JsonReader in) throws IOException { + public V1beta1NodeAllocatableMapping read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -217,18 +247,18 @@ public V1beta1NodeAllocatableResourceMapping read(JsonReader in) throws IOExcept } /** - * Create an instance of V1beta1NodeAllocatableResourceMapping given an JSON string + * Create an instance of V1beta1NodeAllocatableMapping given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1NodeAllocatableResourceMapping - * @throws IOException if the JSON string is invalid with respect to V1beta1NodeAllocatableResourceMapping + * @return An instance of V1beta1NodeAllocatableMapping + * @throws IOException if the JSON string is invalid with respect to V1beta1NodeAllocatableMapping */ - public static V1beta1NodeAllocatableResourceMapping fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1NodeAllocatableResourceMapping.class); + public static V1beta1NodeAllocatableMapping fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1NodeAllocatableMapping.class); } /** - * Convert an instance of V1beta1NodeAllocatableResourceMapping to an JSON string + * Convert an instance of V1beta1NodeAllocatableMapping to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableOverhead.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableOverhead.java new file mode 100644 index 0000000000..71051cf3b9 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableOverhead.java @@ -0,0 +1,238 @@ +/* +Copyright 2026 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; + +/** + * NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + */ +@ApiModel(description = "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1NodeAllocatableOverhead { + public static final String SERIALIZED_NAME_PER_CONTAINER = "perContainer"; + @SerializedName(SERIALIZED_NAME_PER_CONTAINER) + @jakarta.annotation.Nullable + private Quantity perContainer; + + public static final String SERIALIZED_NAME_PER_POD = "perPod"; + @SerializedName(SERIALIZED_NAME_PER_POD) + @jakarta.annotation.Nullable + private Quantity perPod; + + public V1beta1NodeAllocatableOverhead() { + } + + public V1beta1NodeAllocatableOverhead perContainer(@jakarta.annotation.Nullable Quantity perContainer) { + this.perContainer = perContainer; + 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 perContainer + */ + @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 getPerContainer() { + return perContainer; + } + + public void setPerContainer(@jakarta.annotation.Nullable Quantity perContainer) { + this.perContainer = perContainer; + } + + + public V1beta1NodeAllocatableOverhead perPod(@jakarta.annotation.Nullable Quantity perPod) { + this.perPod = perPod; + 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 perPod + */ + @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 getPerPod() { + return perPod; + } + + public void setPerPod(@jakarta.annotation.Nullable Quantity perPod) { + this.perPod = perPod; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1NodeAllocatableOverhead v1beta1NodeAllocatableOverhead = (V1beta1NodeAllocatableOverhead) o; + return Objects.equals(this.perContainer, v1beta1NodeAllocatableOverhead.perContainer) && + Objects.equals(this.perPod, v1beta1NodeAllocatableOverhead.perPod); + } + + @Override + public int hashCode() { + return Objects.hash(perContainer, perPod); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1NodeAllocatableOverhead {\n"); + sb.append(" perContainer: ").append(toIndentedString(perContainer)).append("\n"); + sb.append(" perPod: ").append(toIndentedString(perPod)).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(Arrays.asList("perContainer", "perPod")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1NodeAllocatableOverhead + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1NodeAllocatableOverhead.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1NodeAllocatableOverhead is not found in the empty JSON string", V1beta1NodeAllocatableOverhead.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1NodeAllocatableOverhead.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1NodeAllocatableOverhead` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("perContainer") != null && !jsonObj.get("perContainer").isJsonNull()) && !jsonObj.get("perContainer").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `perContainer` to be a primitive type in the JSON string but got `%s`", jsonObj.get("perContainer").toString())); + } + if ((jsonObj.get("perPod") != null && !jsonObj.get("perPod").isJsonNull()) && !jsonObj.get("perPod").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `perPod` to be a primitive type in the JSON string but got `%s`", jsonObj.get("perPod").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1NodeAllocatableOverhead.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1NodeAllocatableOverhead' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1NodeAllocatableOverhead.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1NodeAllocatableOverhead value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1NodeAllocatableOverhead read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1NodeAllocatableOverhead given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1NodeAllocatableOverhead + * @throws IOException if the JSON string is invalid with respect to V1beta1NodeAllocatableOverhead + */ + public static V1beta1NodeAllocatableOverhead fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1NodeAllocatableOverhead.class); + } + + /** + * Convert an instance of V1beta1NodeAllocatableOverhead to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResource.java new file mode 100644 index 0000000000..bf319f2cba --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResource.java @@ -0,0 +1,241 @@ +/* +Copyright 2026 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.V1beta1NodeAllocatableMapping; +import io.kubernetes.client.openapi.models.V1beta1NodeAllocatableOverhead; +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; + +/** + * NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + */ +@ApiModel(description = "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1NodeAllocatableResource { + public static final String SERIALIZED_NAME_MAPPING = "mapping"; + @SerializedName(SERIALIZED_NAME_MAPPING) + @jakarta.annotation.Nullable + private V1beta1NodeAllocatableMapping mapping; + + public static final String SERIALIZED_NAME_OVERHEAD = "overhead"; + @SerializedName(SERIALIZED_NAME_OVERHEAD) + @jakarta.annotation.Nullable + private V1beta1NodeAllocatableOverhead overhead; + + public V1beta1NodeAllocatableResource() { + } + + public V1beta1NodeAllocatableResource mapping(@jakarta.annotation.Nullable V1beta1NodeAllocatableMapping mapping) { + this.mapping = mapping; + return this; + } + + /** + * Get mapping + * @return mapping + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1NodeAllocatableMapping getMapping() { + return mapping; + } + + public void setMapping(@jakarta.annotation.Nullable V1beta1NodeAllocatableMapping mapping) { + this.mapping = mapping; + } + + + public V1beta1NodeAllocatableResource overhead(@jakarta.annotation.Nullable V1beta1NodeAllocatableOverhead overhead) { + this.overhead = overhead; + return this; + } + + /** + * Get overhead + * @return overhead + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1NodeAllocatableOverhead getOverhead() { + return overhead; + } + + public void setOverhead(@jakarta.annotation.Nullable V1beta1NodeAllocatableOverhead overhead) { + this.overhead = overhead; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1NodeAllocatableResource v1beta1NodeAllocatableResource = (V1beta1NodeAllocatableResource) o; + return Objects.equals(this.mapping, v1beta1NodeAllocatableResource.mapping) && + Objects.equals(this.overhead, v1beta1NodeAllocatableResource.overhead); + } + + @Override + public int hashCode() { + return Objects.hash(mapping, overhead); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1NodeAllocatableResource {\n"); + sb.append(" mapping: ").append(toIndentedString(mapping)).append("\n"); + sb.append(" overhead: ").append(toIndentedString(overhead)).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(Arrays.asList("mapping", "overhead")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1NodeAllocatableResource + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1NodeAllocatableResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1NodeAllocatableResource is not found in the empty JSON string", V1beta1NodeAllocatableResource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1NodeAllocatableResource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1NodeAllocatableResource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `mapping` + if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { + V1beta1NodeAllocatableMapping.validateJsonElement(jsonObj.get("mapping")); + } + // validate the optional field `overhead` + if (jsonObj.get("overhead") != null && !jsonObj.get("overhead").isJsonNull()) { + V1beta1NodeAllocatableOverhead.validateJsonElement(jsonObj.get("overhead")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1NodeAllocatableResource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1NodeAllocatableResource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1NodeAllocatableResource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1NodeAllocatableResource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1NodeAllocatableResource read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1NodeAllocatableResource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1NodeAllocatableResource + * @throws IOException if the JSON string is invalid with respect to V1beta1NodeAllocatableResource + */ + public static V1beta1NodeAllocatableResource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1NodeAllocatableResource.class); + } + + /** + * Convert an instance of V1beta1NodeAllocatableResource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java index 7d04be6f59..3dcc73e029 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java @@ -50,7 +50,7 @@ * OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. */ @ApiModel(description = "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1OpaqueDeviceConfiguration { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java index 753706f7c0..65be960189 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java index 1ab59285b9..3ee115d409 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequest.java index 776897a82c..815b4f02aa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequest.java @@ -53,7 +53,7 @@ * PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes */ @ApiModel(description = "PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1PodCertificateRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestList.java index 662ab29c74..70c48f720e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestList.java @@ -54,7 +54,7 @@ * PodCertificateRequestList is a collection of PodCertificateRequest objects */ @ApiModel(description = "PodCertificateRequestList is a collection of PodCertificateRequest objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1PodCertificateRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpec.java index e75861e2a6..bf5ae1a09c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpec.java @@ -52,7 +52,7 @@ * PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation. */ @ApiModel(description = "PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1PodCertificateRequestSpec { public static final String SERIALIZED_NAME_MAX_EXPIRATION_SECONDS = "maxExpirationSeconds"; @SerializedName(SERIALIZED_NAME_MAX_EXPIRATION_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatus.java index 266c9bf79e..c48ab506ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatus.java @@ -54,7 +54,7 @@ * PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued. */ @ApiModel(description = "PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1PodCertificateRequestStatus { public static final String SERIALIZED_NAME_BEGIN_REFRESH_AT = "beginRefreshAt"; @SerializedName(SERIALIZED_NAME_BEGIN_REFRESH_AT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroup.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroup.java new file mode 100644 index 0000000000..40237197a8 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroup.java @@ -0,0 +1,338 @@ +/* +Copyright 2026 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.V1beta1PodGroupSpec; +import io.kubernetes.client.openapi.models.V1beta1PodGroupStatus; +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; + +/** + * PodGroup represents a runtime instance of pods grouped together. PodGroups are created by workload controllers (Job, LWS, JobSet, etc...) from Workload.podGroupTemplates. PodGroup API enablement is toggled by the GenericWorkload feature gate. + */ +@ApiModel(description = "PodGroup represents a runtime instance of pods grouped together. PodGroups are created by workload controllers (Job, LWS, JobSet, etc...) from Workload.podGroupTemplates. PodGroup API enablement is toggled by the GenericWorkload feature gate.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1PodGroup 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 V1beta1PodGroupSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable + private V1beta1PodGroupStatus status; + + public V1beta1PodGroup() { + } + + public V1beta1PodGroup 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 V1beta1PodGroup 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 V1beta1PodGroup 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 V1beta1PodGroup spec(@jakarta.annotation.Nonnull V1beta1PodGroupSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1beta1PodGroupSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nonnull V1beta1PodGroupSpec spec) { + this.spec = spec; + } + + + public V1beta1PodGroup status(@jakarta.annotation.Nullable V1beta1PodGroupStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1PodGroupStatus getStatus() { + return status; + } + + public void setStatus(@jakarta.annotation.Nullable V1beta1PodGroupStatus status) { + this.status = status; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1PodGroup v1beta1PodGroup = (V1beta1PodGroup) o; + return Objects.equals(this.apiVersion, v1beta1PodGroup.apiVersion) && + Objects.equals(this.kind, v1beta1PodGroup.kind) && + Objects.equals(this.metadata, v1beta1PodGroup.metadata) && + Objects.equals(this.spec, v1beta1PodGroup.spec) && + Objects.equals(this.status, v1beta1PodGroup.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1PodGroup {\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(); + } + + /** + * 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(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1beta1PodGroup + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1PodGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1PodGroup is not found in the empty JSON string", V1beta1PodGroup.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1PodGroup.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1PodGroup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1PodGroup.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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` + V1beta1PodGroupSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1beta1PodGroupStatus.validateJsonElement(jsonObj.get("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1PodGroup.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1PodGroup' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1PodGroup.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1PodGroup value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1PodGroup read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1PodGroup given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1PodGroup + * @throws IOException if the JSON string is invalid with respect to V1beta1PodGroup + */ + public static V1beta1PodGroup fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1PodGroup.class); + } + + /** + * Convert an instance of V1beta1PodGroup to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupList.java new file mode 100644 index 0000000000..a215535723 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupList.java @@ -0,0 +1,324 @@ +/* +Copyright 2026 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.V1beta1PodGroup; +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; + +/** + * PodGroupList contains a list of PodGroup resources. + */ +@ApiModel(description = "PodGroupList contains a list of PodGroup resources.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1PodGroupList 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 V1beta1PodGroupList() { + } + + public V1beta1PodGroupList 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 V1beta1PodGroupList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1beta1PodGroupList addItemsItem(V1beta1PodGroup itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * Items is the list of PodGroups. + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of PodGroups.") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1beta1PodGroupList 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 V1beta1PodGroupList 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; + } + V1beta1PodGroupList v1beta1PodGroupList = (V1beta1PodGroupList) o; + return Objects.equals(this.apiVersion, v1beta1PodGroupList.apiVersion) && + Objects.equals(this.items, v1beta1PodGroupList.items) && + Objects.equals(this.kind, v1beta1PodGroupList.kind) && + Objects.equals(this.metadata, v1beta1PodGroupList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1PodGroupList {\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(Arrays.asList("apiVersion", "items", "kind", "metadata")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1beta1PodGroupList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1PodGroupList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1PodGroupList is not found in the empty JSON string", V1beta1PodGroupList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1PodGroupList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1PodGroupList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1PodGroupList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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++) { + V1beta1PodGroup.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1beta1PodGroupList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1PodGroupList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1PodGroupList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1PodGroupList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1PodGroupList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1PodGroupList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1PodGroupList + * @throws IOException if the JSON string is invalid with respect to V1beta1PodGroupList + */ + public static V1beta1PodGroupList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1PodGroupList.class); + } + + /** + * Convert an instance of V1beta1PodGroupList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaim.java new file mode 100644 index 0000000000..fdc4e7ddcb --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaim.java @@ -0,0 +1,274 @@ +/* +Copyright 2026 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; + +/** + * PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup. It adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly. + */ +@ApiModel(description = "PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup. It adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1PodGroupResourceClaim { + 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 V1beta1PodGroupResourceClaim() { + } + + public V1beta1PodGroupResourceClaim name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1beta1PodGroupResourceClaim 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 PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods. 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 PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.") + public String getResourceClaimName() { + return resourceClaimName; + } + + public void setResourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + } + + + public V1beta1PodGroupResourceClaim 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 PodGroup. The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup 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 podgroup.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 PodGroup. The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup 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 podgroup.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(@jakarta.annotation.Nullable String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1PodGroupResourceClaim v1beta1PodGroupResourceClaim = (V1beta1PodGroupResourceClaim) o; + return Objects.equals(this.name, v1beta1PodGroupResourceClaim.name) && + Objects.equals(this.resourceClaimName, v1beta1PodGroupResourceClaim.resourceClaimName) && + Objects.equals(this.resourceClaimTemplateName, v1beta1PodGroupResourceClaim.resourceClaimTemplateName); + } + + @Override + public int hashCode() { + return Objects.hash(name, resourceClaimName, resourceClaimTemplateName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1PodGroupResourceClaim {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" resourceClaimName: ").append(toIndentedString(resourceClaimName)).append("\n"); + sb.append(" resourceClaimTemplateName: ").append(toIndentedString(resourceClaimTemplateName)).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(Arrays.asList("name", "resourceClaimName", "resourceClaimTemplateName")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1beta1PodGroupResourceClaim + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1PodGroupResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1PodGroupResourceClaim is not found in the empty JSON string", V1beta1PodGroupResourceClaim.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1PodGroupResourceClaim.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1PodGroupResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1PodGroupResourceClaim.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("resourceClaimName") != null && !jsonObj.get("resourceClaimName").isJsonNull()) && !jsonObj.get("resourceClaimName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaimName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimName").toString())); + } + if ((jsonObj.get("resourceClaimTemplateName") != null && !jsonObj.get("resourceClaimTemplateName").isJsonNull()) && !jsonObj.get("resourceClaimTemplateName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaimTemplateName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimTemplateName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1PodGroupResourceClaim.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1PodGroupResourceClaim' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1PodGroupResourceClaim.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1PodGroupResourceClaim value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1PodGroupResourceClaim read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1PodGroupResourceClaim given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1PodGroupResourceClaim + * @throws IOException if the JSON string is invalid with respect to V1beta1PodGroupResourceClaim + */ + public static V1beta1PodGroupResourceClaim fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1PodGroupResourceClaim.class); + } + + /** + * Convert an instance of V1beta1PodGroupResourceClaim to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimStatus.java new file mode 100644 index 0000000000..146b28831a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupResourceClaimStatus.java @@ -0,0 +1,244 @@ +/* +Copyright 2026 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; + +/** + * PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. + */ +@ApiModel(description = "PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1PodGroupResourceClaimStatus { + 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 V1beta1PodGroupResourceClaimStatus() { + } + + public V1beta1PodGroupResourceClaimStatus name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.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 PodGroup. This must match the name of an entry in podgroup.spec.resourceClaims, which implies that the string must be a DNS_LABEL.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1beta1PodGroupResourceClaimStatus resourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return this; + } + + /** + * resourceClaimName is the name of the ResourceClaim that was generated for the PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.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 PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case.") + public String getResourceClaimName() { + return resourceClaimName; + } + + public void setResourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1PodGroupResourceClaimStatus v1beta1PodGroupResourceClaimStatus = (V1beta1PodGroupResourceClaimStatus) o; + return Objects.equals(this.name, v1beta1PodGroupResourceClaimStatus.name) && + Objects.equals(this.resourceClaimName, v1beta1PodGroupResourceClaimStatus.resourceClaimName); + } + + @Override + public int hashCode() { + return Objects.hash(name, resourceClaimName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1PodGroupResourceClaimStatus {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" resourceClaimName: ").append(toIndentedString(resourceClaimName)).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(Arrays.asList("name", "resourceClaimName")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1beta1PodGroupResourceClaimStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1PodGroupResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1PodGroupResourceClaimStatus is not found in the empty JSON string", V1beta1PodGroupResourceClaimStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1PodGroupResourceClaimStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1PodGroupResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1PodGroupResourceClaimStatus.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("resourceClaimName") != null && !jsonObj.get("resourceClaimName").isJsonNull()) && !jsonObj.get("resourceClaimName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaimName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1PodGroupResourceClaimStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1PodGroupResourceClaimStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1PodGroupResourceClaimStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1PodGroupResourceClaimStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1PodGroupResourceClaimStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1PodGroupResourceClaimStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1PodGroupResourceClaimStatus + * @throws IOException if the JSON string is invalid with respect to V1beta1PodGroupResourceClaimStatus + */ + public static V1beta1PodGroupResourceClaimStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1PodGroupResourceClaimStatus.class); + } + + /** + * Convert an instance of V1beta1PodGroupResourceClaimStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingConstraints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingConstraints.java new file mode 100644 index 0000000000..73eb075106 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingConstraints.java @@ -0,0 +1,229 @@ +/* +Copyright 2026 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.V1beta1TopologyConstraint; +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; + +/** + * PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. + */ +@ApiModel(description = "PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1PodGroupSchedulingConstraints { + public static final String SERIALIZED_NAME_TOPOLOGY = "topology"; + @SerializedName(SERIALIZED_NAME_TOPOLOGY) + @jakarta.annotation.Nullable + private List topology = new ArrayList<>(); + + public V1beta1PodGroupSchedulingConstraints() { + } + + public V1beta1PodGroupSchedulingConstraints topology(@jakarta.annotation.Nullable List topology) { + this.topology = topology; + return this; + } + + public V1beta1PodGroupSchedulingConstraints addTopologyItem(V1beta1TopologyConstraint topologyItem) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + this.topology.add(topologyItem); + return this; + } + + /** + * topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future. + * @return topology + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future.") + public List getTopology() { + return topology; + } + + public void setTopology(@jakarta.annotation.Nullable List topology) { + this.topology = topology; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1PodGroupSchedulingConstraints v1beta1PodGroupSchedulingConstraints = (V1beta1PodGroupSchedulingConstraints) o; + return Objects.equals(this.topology, v1beta1PodGroupSchedulingConstraints.topology); + } + + @Override + public int hashCode() { + return Objects.hash(topology); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1PodGroupSchedulingConstraints {\n"); + sb.append(" topology: ").append(toIndentedString(topology)).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(Arrays.asList("topology")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1PodGroupSchedulingConstraints + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1PodGroupSchedulingConstraints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1PodGroupSchedulingConstraints is not found in the empty JSON string", V1beta1PodGroupSchedulingConstraints.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1PodGroupSchedulingConstraints.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1PodGroupSchedulingConstraints` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("topology") != null && !jsonObj.get("topology").isJsonNull()) { + JsonArray jsonArraytopology = jsonObj.getAsJsonArray("topology"); + if (jsonArraytopology != null) { + // ensure the json data is an array + if (!jsonObj.get("topology").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `topology` to be an array in the JSON string but got `%s`", jsonObj.get("topology").toString())); + } + + // validate the optional field `topology` (array) + for (int i = 0; i < jsonArraytopology.size(); i++) { + V1beta1TopologyConstraint.validateJsonElement(jsonArraytopology.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1PodGroupSchedulingConstraints.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1PodGroupSchedulingConstraints' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1PodGroupSchedulingConstraints.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1PodGroupSchedulingConstraints value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1PodGroupSchedulingConstraints read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1PodGroupSchedulingConstraints given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1PodGroupSchedulingConstraints + * @throws IOException if the JSON string is invalid with respect to V1beta1PodGroupSchedulingConstraints + */ + public static V1beta1PodGroupSchedulingConstraints fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1PodGroupSchedulingConstraints.class); + } + + /** + * Convert an instance of V1beta1PodGroupSchedulingConstraints to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingPolicy.java new file mode 100644 index 0000000000..041aa048c2 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSchedulingPolicy.java @@ -0,0 +1,236 @@ +/* +Copyright 2026 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.V1beta1GangSchedulingPolicy; +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; + +/** + * PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it. + */ +@ApiModel(description = "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1PodGroupSchedulingPolicy { + public static final String SERIALIZED_NAME_BASIC = "basic"; + @SerializedName(SERIALIZED_NAME_BASIC) + @jakarta.annotation.Nullable + private Object basic; + + public static final String SERIALIZED_NAME_GANG = "gang"; + @SerializedName(SERIALIZED_NAME_GANG) + @jakarta.annotation.Nullable + private V1beta1GangSchedulingPolicy gang; + + public V1beta1PodGroupSchedulingPolicy() { + } + + public V1beta1PodGroupSchedulingPolicy basic(@jakarta.annotation.Nullable Object basic) { + this.basic = basic; + return this; + } + + /** + * basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward. + * @return basic + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward.") + public Object getBasic() { + return basic; + } + + public void setBasic(@jakarta.annotation.Nullable Object basic) { + this.basic = basic; + } + + + public V1beta1PodGroupSchedulingPolicy gang(@jakarta.annotation.Nullable V1beta1GangSchedulingPolicy gang) { + this.gang = gang; + return this; + } + + /** + * Get gang + * @return gang + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1GangSchedulingPolicy getGang() { + return gang; + } + + public void setGang(@jakarta.annotation.Nullable V1beta1GangSchedulingPolicy gang) { + this.gang = gang; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1PodGroupSchedulingPolicy v1beta1PodGroupSchedulingPolicy = (V1beta1PodGroupSchedulingPolicy) o; + return Objects.equals(this.basic, v1beta1PodGroupSchedulingPolicy.basic) && + Objects.equals(this.gang, v1beta1PodGroupSchedulingPolicy.gang); + } + + @Override + public int hashCode() { + return Objects.hash(basic, gang); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1PodGroupSchedulingPolicy {\n"); + sb.append(" basic: ").append(toIndentedString(basic)).append("\n"); + sb.append(" gang: ").append(toIndentedString(gang)).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(Arrays.asList("basic", "gang")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1PodGroupSchedulingPolicy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1PodGroupSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1PodGroupSchedulingPolicy is not found in the empty JSON string", V1beta1PodGroupSchedulingPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1PodGroupSchedulingPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1PodGroupSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `gang` + if (jsonObj.get("gang") != null && !jsonObj.get("gang").isJsonNull()) { + V1beta1GangSchedulingPolicy.validateJsonElement(jsonObj.get("gang")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1PodGroupSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1PodGroupSchedulingPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1PodGroupSchedulingPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1PodGroupSchedulingPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1PodGroupSchedulingPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1PodGroupSchedulingPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1PodGroupSchedulingPolicy + * @throws IOException if the JSON string is invalid with respect to V1beta1PodGroupSchedulingPolicy + */ + public static V1beta1PodGroupSchedulingPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1PodGroupSchedulingPolicy.class); + } + + /** + * Convert an instance of V1beta1PodGroupSchedulingPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSpec.java new file mode 100644 index 0000000000..1d0dee389b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupSpec.java @@ -0,0 +1,479 @@ +/* +Copyright 2026 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.V1beta1DisruptionMode; +import io.kubernetes.client.openapi.models.V1beta1PodGroupResourceClaim; +import io.kubernetes.client.openapi.models.V1beta1PodGroupSchedulingConstraints; +import io.kubernetes.client.openapi.models.V1beta1PodGroupSchedulingPolicy; +import io.kubernetes.client.openapi.models.V1beta1WorkloadReference; +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; + +/** + * PodGroupSpec defines the desired state of a PodGroup. + */ +@ApiModel(description = "PodGroupSpec defines the desired state of a PodGroup.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1PodGroupSpec { + public static final String SERIALIZED_NAME_DISRUPTION_MODE = "disruptionMode"; + @SerializedName(SERIALIZED_NAME_DISRUPTION_MODE) + @jakarta.annotation.Nullable + private V1beta1DisruptionMode disruptionMode; + + public static final String SERIALIZED_NAME_PARENT_COMPOSITE_POD_GROUP_NAME = "parentCompositePodGroupName"; + @SerializedName(SERIALIZED_NAME_PARENT_COMPOSITE_POD_GROUP_NAME) + @jakarta.annotation.Nullable + private String parentCompositePodGroupName; + + 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_RESOURCE_CLAIMS = "resourceClaims"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIMS) + @jakarta.annotation.Nullable + private List resourceClaims = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SCHEDULING_CONSTRAINTS = "schedulingConstraints"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_CONSTRAINTS) + @jakarta.annotation.Nullable + private V1beta1PodGroupSchedulingConstraints schedulingConstraints; + + public static final String SERIALIZED_NAME_SCHEDULING_POLICY = "schedulingPolicy"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_POLICY) + @jakarta.annotation.Nonnull + private V1beta1PodGroupSchedulingPolicy schedulingPolicy; + + public static final String SERIALIZED_NAME_WORKLOAD_REF = "workloadRef"; + @SerializedName(SERIALIZED_NAME_WORKLOAD_REF) + @jakarta.annotation.Nullable + private V1beta1WorkloadReference workloadRef; + + public V1beta1PodGroupSpec() { + } + + public V1beta1PodGroupSpec disruptionMode(@jakarta.annotation.Nullable V1beta1DisruptionMode disruptionMode) { + this.disruptionMode = disruptionMode; + return this; + } + + /** + * Get disruptionMode + * @return disruptionMode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1DisruptionMode getDisruptionMode() { + return disruptionMode; + } + + public void setDisruptionMode(@jakarta.annotation.Nullable V1beta1DisruptionMode disruptionMode) { + this.disruptionMode = disruptionMode; + } + + + public V1beta1PodGroupSpec parentCompositePodGroupName(@jakarta.annotation.Nullable String parentCompositePodGroupName) { + this.parentCompositePodGroupName = parentCompositePodGroupName; + return this; + } + + /** + * parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable. + * @return parentCompositePodGroupName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.") + public String getParentCompositePodGroupName() { + return parentCompositePodGroupName; + } + + public void setParentCompositePodGroupName(@jakarta.annotation.Nullable String parentCompositePodGroupName) { + this.parentCompositePodGroupName = parentCompositePodGroupName; + } + + + public V1beta1PodGroupSpec preemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return this; + } + + /** + * preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. + * @return preemptionPolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + public String getPreemptionPolicy() { + return preemptionPolicy; + } + + public void setPreemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + } + + + public V1beta1PodGroupSpec priority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + return this; + } + + /** + * priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. 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. This field is immutable. + * @return priority + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. 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. This field is immutable.") + public Integer getPriority() { + return priority; + } + + public void setPriority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + } + + + public V1beta1PodGroupSpec priorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + return this; + } + + /** + * priorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. + * @return priorityClassName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "priorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable.") + public String getPriorityClassName() { + return priorityClassName; + } + + public void setPriorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + } + + + public V1beta1PodGroupSpec resourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; + return this; + } + + public V1beta1PodGroupSpec addResourceClaimsItem(V1beta1PodGroupResourceClaim resourceClaimsItem) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + this.resourceClaims.add(resourceClaimsItem); + return this; + } + + /** + * resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. + * @return resourceClaims + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + public List getResourceClaims() { + return resourceClaims; + } + + public void setResourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; + } + + + public V1beta1PodGroupSpec schedulingConstraints(@jakarta.annotation.Nullable V1beta1PodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + return this; + } + + /** + * Get schedulingConstraints + * @return schedulingConstraints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1PodGroupSchedulingConstraints getSchedulingConstraints() { + return schedulingConstraints; + } + + public void setSchedulingConstraints(@jakarta.annotation.Nullable V1beta1PodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + } + + + public V1beta1PodGroupSpec schedulingPolicy(@jakarta.annotation.Nonnull V1beta1PodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + return this; + } + + /** + * Get schedulingPolicy + * @return schedulingPolicy + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1beta1PodGroupSchedulingPolicy getSchedulingPolicy() { + return schedulingPolicy; + } + + public void setSchedulingPolicy(@jakarta.annotation.Nonnull V1beta1PodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + } + + + public V1beta1PodGroupSpec workloadRef(@jakarta.annotation.Nullable V1beta1WorkloadReference workloadRef) { + this.workloadRef = workloadRef; + return this; + } + + /** + * Get workloadRef + * @return workloadRef + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1WorkloadReference getWorkloadRef() { + return workloadRef; + } + + public void setWorkloadRef(@jakarta.annotation.Nullable V1beta1WorkloadReference workloadRef) { + this.workloadRef = workloadRef; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1PodGroupSpec v1beta1PodGroupSpec = (V1beta1PodGroupSpec) o; + return Objects.equals(this.disruptionMode, v1beta1PodGroupSpec.disruptionMode) && + Objects.equals(this.parentCompositePodGroupName, v1beta1PodGroupSpec.parentCompositePodGroupName) && + Objects.equals(this.preemptionPolicy, v1beta1PodGroupSpec.preemptionPolicy) && + Objects.equals(this.priority, v1beta1PodGroupSpec.priority) && + Objects.equals(this.priorityClassName, v1beta1PodGroupSpec.priorityClassName) && + Objects.equals(this.resourceClaims, v1beta1PodGroupSpec.resourceClaims) && + Objects.equals(this.schedulingConstraints, v1beta1PodGroupSpec.schedulingConstraints) && + Objects.equals(this.schedulingPolicy, v1beta1PodGroupSpec.schedulingPolicy) && + Objects.equals(this.workloadRef, v1beta1PodGroupSpec.workloadRef); + } + + @Override + public int hashCode() { + return Objects.hash(disruptionMode, parentCompositePodGroupName, preemptionPolicy, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy, workloadRef); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1PodGroupSpec {\n"); + sb.append(" disruptionMode: ").append(toIndentedString(disruptionMode)).append("\n"); + sb.append(" parentCompositePodGroupName: ").append(toIndentedString(parentCompositePodGroupName)).append("\n"); + sb.append(" preemptionPolicy: ").append(toIndentedString(preemptionPolicy)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" priorityClassName: ").append(toIndentedString(priorityClassName)).append("\n"); + sb.append(" resourceClaims: ").append(toIndentedString(resourceClaims)).append("\n"); + sb.append(" schedulingConstraints: ").append(toIndentedString(schedulingConstraints)).append("\n"); + sb.append(" schedulingPolicy: ").append(toIndentedString(schedulingPolicy)).append("\n"); + sb.append(" workloadRef: ").append(toIndentedString(workloadRef)).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(Arrays.asList("disruptionMode", "parentCompositePodGroupName", "preemptionPolicy", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy", "workloadRef")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("schedulingPolicy")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1PodGroupSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1PodGroupSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1PodGroupSpec is not found in the empty JSON string", V1beta1PodGroupSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1PodGroupSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1PodGroupSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1PodGroupSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `disruptionMode` + if (jsonObj.get("disruptionMode") != null && !jsonObj.get("disruptionMode").isJsonNull()) { + V1beta1DisruptionMode.validateJsonElement(jsonObj.get("disruptionMode")); + } + if ((jsonObj.get("parentCompositePodGroupName") != null && !jsonObj.get("parentCompositePodGroupName").isJsonNull()) && !jsonObj.get("parentCompositePodGroupName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `parentCompositePodGroupName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parentCompositePodGroupName").toString())); + } + if ((jsonObj.get("preemptionPolicy") != null && !jsonObj.get("preemptionPolicy").isJsonNull()) && !jsonObj.get("preemptionPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `preemptionPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preemptionPolicy").toString())); + } + if ((jsonObj.get("priorityClassName") != null && !jsonObj.get("priorityClassName").isJsonNull()) && !jsonObj.get("priorityClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `priorityClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priorityClassName").toString())); + } + if (jsonObj.get("resourceClaims") != null && !jsonObj.get("resourceClaims").isJsonNull()) { + JsonArray jsonArrayresourceClaims = jsonObj.getAsJsonArray("resourceClaims"); + if (jsonArrayresourceClaims != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceClaims").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaims` to be an array in the JSON string but got `%s`", jsonObj.get("resourceClaims").toString())); + } + + // validate the optional field `resourceClaims` (array) + for (int i = 0; i < jsonArrayresourceClaims.size(); i++) { + V1beta1PodGroupResourceClaim.validateJsonElement(jsonArrayresourceClaims.get(i)); + }; + } + } + // validate the optional field `schedulingConstraints` + if (jsonObj.get("schedulingConstraints") != null && !jsonObj.get("schedulingConstraints").isJsonNull()) { + V1beta1PodGroupSchedulingConstraints.validateJsonElement(jsonObj.get("schedulingConstraints")); + } + // validate the required field `schedulingPolicy` + V1beta1PodGroupSchedulingPolicy.validateJsonElement(jsonObj.get("schedulingPolicy")); + // validate the optional field `workloadRef` + if (jsonObj.get("workloadRef") != null && !jsonObj.get("workloadRef").isJsonNull()) { + V1beta1WorkloadReference.validateJsonElement(jsonObj.get("workloadRef")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1PodGroupSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1PodGroupSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1PodGroupSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1PodGroupSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1PodGroupSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1PodGroupSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1PodGroupSpec + * @throws IOException if the JSON string is invalid with respect to V1beta1PodGroupSpec + */ + public static V1beta1PodGroupSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1PodGroupSpec.class); + } + + /** + * Convert an instance of V1beta1PodGroupSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupStatus.java new file mode 100644 index 0000000000..1ee63c8fe0 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupStatus.java @@ -0,0 +1,279 @@ +/* +Copyright 2026 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.kubernetes.client.openapi.models.V1beta1PodGroupResourceClaimStatus; +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; + +/** + * PodGroupStatus represents information about the status of a pod group. + */ +@ApiModel(description = "PodGroupStatus represents information about the status of a pod group.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1PodGroupStatus { + 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_CLAIM_STATUSES = "resourceClaimStatuses"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_STATUSES) + @jakarta.annotation.Nullable + private List resourceClaimStatuses = new ArrayList<>(); + + public V1beta1PodGroupStatus() { + } + + public V1beta1PodGroupStatus conditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + return this; + } + + public V1beta1PodGroupStatus addConditionsItem(V1Condition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints, affinity/anti-affinity rules, or insufficient capacity for the gang. - \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error that happened during scheduling, for example due to nodeAffinity parsing errors. Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for higher-priority PodGroups or Pods. + * @return conditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints, affinity/anti-affinity rules, or insufficient capacity for the gang. - \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error that happened during scheduling, for example due to nodeAffinity parsing errors. Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for higher-priority PodGroups or Pods.") + public List getConditions() { + return conditions; + } + + public void setConditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + } + + + public V1beta1PodGroupStatus resourceClaimStatuses(@jakarta.annotation.Nullable List resourceClaimStatuses) { + this.resourceClaimStatuses = resourceClaimStatuses; + return this; + } + + public V1beta1PodGroupStatus addResourceClaimStatusesItem(V1beta1PodGroupResourceClaimStatus resourceClaimStatusesItem) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList<>(); + } + this.resourceClaimStatuses.add(resourceClaimStatusesItem); + return this; + } + + /** + * resourceClaimStatuses is status of resource claims. + * @return resourceClaimStatuses + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "resourceClaimStatuses is status of resource claims.") + public List getResourceClaimStatuses() { + return resourceClaimStatuses; + } + + public void setResourceClaimStatuses(@jakarta.annotation.Nullable List resourceClaimStatuses) { + this.resourceClaimStatuses = resourceClaimStatuses; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1PodGroupStatus v1beta1PodGroupStatus = (V1beta1PodGroupStatus) o; + return Objects.equals(this.conditions, v1beta1PodGroupStatus.conditions) && + Objects.equals(this.resourceClaimStatuses, v1beta1PodGroupStatus.resourceClaimStatuses); + } + + @Override + public int hashCode() { + return Objects.hash(conditions, resourceClaimStatuses); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1PodGroupStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" resourceClaimStatuses: ").append(toIndentedString(resourceClaimStatuses)).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(Arrays.asList("conditions", "resourceClaimStatuses")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1PodGroupStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1PodGroupStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1PodGroupStatus is not found in the empty JSON string", V1beta1PodGroupStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1PodGroupStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1PodGroupStatus` 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(java.util.Locale.ROOT, "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)); + }; + } + } + if (jsonObj.get("resourceClaimStatuses") != null && !jsonObj.get("resourceClaimStatuses").isJsonNull()) { + JsonArray jsonArrayresourceClaimStatuses = jsonObj.getAsJsonArray("resourceClaimStatuses"); + if (jsonArrayresourceClaimStatuses != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceClaimStatuses").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaimStatuses` to be an array in the JSON string but got `%s`", jsonObj.get("resourceClaimStatuses").toString())); + } + + // validate the optional field `resourceClaimStatuses` (array) + for (int i = 0; i < jsonArrayresourceClaimStatuses.size(); i++) { + V1beta1PodGroupResourceClaimStatus.validateJsonElement(jsonArrayresourceClaimStatuses.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1PodGroupStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1PodGroupStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1PodGroupStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1PodGroupStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1PodGroupStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1PodGroupStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1PodGroupStatus + * @throws IOException if the JSON string is invalid with respect to V1beta1PodGroupStatus + */ + public static V1beta1PodGroupStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1PodGroupStatus.class); + } + + /** + * Convert an instance of V1beta1PodGroupStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupTemplate.java new file mode 100644 index 0000000000..c34c147197 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodGroupTemplate.java @@ -0,0 +1,447 @@ +/* +Copyright 2026 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.V1beta1DisruptionMode; +import io.kubernetes.client.openapi.models.V1beta1PodGroupResourceClaim; +import io.kubernetes.client.openapi.models.V1beta1PodGroupSchedulingConstraints; +import io.kubernetes.client.openapi.models.V1beta1PodGroupSchedulingPolicy; +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; + +/** + * PodGroupTemplate represents a template for a set of pods with a scheduling policy. + */ +@ApiModel(description = "PodGroupTemplate represents a template for a set of pods with a scheduling policy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1PodGroupTemplate { + public static final String SERIALIZED_NAME_DISRUPTION_MODE = "disruptionMode"; + @SerializedName(SERIALIZED_NAME_DISRUPTION_MODE) + @jakarta.annotation.Nullable + private V1beta1DisruptionMode disruptionMode; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + 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_RESOURCE_CLAIMS = "resourceClaims"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIMS) + @jakarta.annotation.Nullable + private List resourceClaims = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SCHEDULING_CONSTRAINTS = "schedulingConstraints"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_CONSTRAINTS) + @jakarta.annotation.Nullable + private V1beta1PodGroupSchedulingConstraints schedulingConstraints; + + public static final String SERIALIZED_NAME_SCHEDULING_POLICY = "schedulingPolicy"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_POLICY) + @jakarta.annotation.Nonnull + private V1beta1PodGroupSchedulingPolicy schedulingPolicy; + + public V1beta1PodGroupTemplate() { + } + + public V1beta1PodGroupTemplate disruptionMode(@jakarta.annotation.Nullable V1beta1DisruptionMode disruptionMode) { + this.disruptionMode = disruptionMode; + return this; + } + + /** + * Get disruptionMode + * @return disruptionMode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1DisruptionMode getDisruptionMode() { + return disruptionMode; + } + + public void setDisruptionMode(@jakarta.annotation.Nullable V1beta1DisruptionMode disruptionMode) { + this.disruptionMode = disruptionMode; + } + + + public V1beta1PodGroupTemplate name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1beta1PodGroupTemplate preemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return this; + } + + /** + * preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. + * @return preemptionPolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + public String getPreemptionPolicy() { + return preemptionPolicy; + } + + public void setPreemptionPolicy(@jakarta.annotation.Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + } + + + public V1beta1PodGroupTemplate priority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + return this; + } + + /** + * priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. The higher the value, the higher the priority. This field is immutable. + * @return priority + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. The higher the value, the higher the priority. This field is immutable.") + public Integer getPriority() { + return priority; + } + + public void setPriority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + } + + + public V1beta1PodGroupTemplate priorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + return this; + } + + /** + * priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable. + * @return priorityClassName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.") + public String getPriorityClassName() { + return priorityClassName; + } + + public void setPriorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + } + + + public V1beta1PodGroupTemplate resourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; + return this; + } + + public V1beta1PodGroupTemplate addResourceClaimsItem(V1beta1PodGroupResourceClaim resourceClaimsItem) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + this.resourceClaims.add(resourceClaimsItem); + return this; + } + + /** + * resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. + * @return resourceClaims + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + public List getResourceClaims() { + return resourceClaims; + } + + public void setResourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; + } + + + public V1beta1PodGroupTemplate schedulingConstraints(@jakarta.annotation.Nullable V1beta1PodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + return this; + } + + /** + * Get schedulingConstraints + * @return schedulingConstraints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1PodGroupSchedulingConstraints getSchedulingConstraints() { + return schedulingConstraints; + } + + public void setSchedulingConstraints(@jakarta.annotation.Nullable V1beta1PodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + } + + + public V1beta1PodGroupTemplate schedulingPolicy(@jakarta.annotation.Nonnull V1beta1PodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + return this; + } + + /** + * Get schedulingPolicy + * @return schedulingPolicy + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1beta1PodGroupSchedulingPolicy getSchedulingPolicy() { + return schedulingPolicy; + } + + public void setSchedulingPolicy(@jakarta.annotation.Nonnull V1beta1PodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1PodGroupTemplate v1beta1PodGroupTemplate = (V1beta1PodGroupTemplate) o; + return Objects.equals(this.disruptionMode, v1beta1PodGroupTemplate.disruptionMode) && + Objects.equals(this.name, v1beta1PodGroupTemplate.name) && + Objects.equals(this.preemptionPolicy, v1beta1PodGroupTemplate.preemptionPolicy) && + Objects.equals(this.priority, v1beta1PodGroupTemplate.priority) && + Objects.equals(this.priorityClassName, v1beta1PodGroupTemplate.priorityClassName) && + Objects.equals(this.resourceClaims, v1beta1PodGroupTemplate.resourceClaims) && + Objects.equals(this.schedulingConstraints, v1beta1PodGroupTemplate.schedulingConstraints) && + Objects.equals(this.schedulingPolicy, v1beta1PodGroupTemplate.schedulingPolicy); + } + + @Override + public int hashCode() { + return Objects.hash(disruptionMode, name, preemptionPolicy, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1PodGroupTemplate {\n"); + sb.append(" disruptionMode: ").append(toIndentedString(disruptionMode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" preemptionPolicy: ").append(toIndentedString(preemptionPolicy)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" priorityClassName: ").append(toIndentedString(priorityClassName)).append("\n"); + sb.append(" resourceClaims: ").append(toIndentedString(resourceClaims)).append("\n"); + sb.append(" schedulingConstraints: ").append(toIndentedString(schedulingConstraints)).append("\n"); + sb.append(" schedulingPolicy: ").append(toIndentedString(schedulingPolicy)).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(Arrays.asList("disruptionMode", "name", "preemptionPolicy", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("name", "schedulingPolicy")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1PodGroupTemplate + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1PodGroupTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1PodGroupTemplate is not found in the empty JSON string", V1beta1PodGroupTemplate.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1PodGroupTemplate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1PodGroupTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1PodGroupTemplate.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `disruptionMode` + if (jsonObj.get("disruptionMode") != null && !jsonObj.get("disruptionMode").isJsonNull()) { + V1beta1DisruptionMode.validateJsonElement(jsonObj.get("disruptionMode")); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("preemptionPolicy") != null && !jsonObj.get("preemptionPolicy").isJsonNull()) && !jsonObj.get("preemptionPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `preemptionPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preemptionPolicy").toString())); + } + if ((jsonObj.get("priorityClassName") != null && !jsonObj.get("priorityClassName").isJsonNull()) && !jsonObj.get("priorityClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `priorityClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priorityClassName").toString())); + } + if (jsonObj.get("resourceClaims") != null && !jsonObj.get("resourceClaims").isJsonNull()) { + JsonArray jsonArrayresourceClaims = jsonObj.getAsJsonArray("resourceClaims"); + if (jsonArrayresourceClaims != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceClaims").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaims` to be an array in the JSON string but got `%s`", jsonObj.get("resourceClaims").toString())); + } + + // validate the optional field `resourceClaims` (array) + for (int i = 0; i < jsonArrayresourceClaims.size(); i++) { + V1beta1PodGroupResourceClaim.validateJsonElement(jsonArrayresourceClaims.get(i)); + }; + } + } + // validate the optional field `schedulingConstraints` + if (jsonObj.get("schedulingConstraints") != null && !jsonObj.get("schedulingConstraints").isJsonNull()) { + V1beta1PodGroupSchedulingConstraints.validateJsonElement(jsonObj.get("schedulingConstraints")); + } + // validate the required field `schedulingPolicy` + V1beta1PodGroupSchedulingPolicy.validateJsonElement(jsonObj.get("schedulingPolicy")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1PodGroupTemplate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1PodGroupTemplate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1PodGroupTemplate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1PodGroupTemplate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1PodGroupTemplate read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1PodGroupTemplate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1PodGroupTemplate + * @throws IOException if the JSON string is invalid with respect to V1beta1PodGroupTemplate + */ + public static V1beta1PodGroupTemplate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1PodGroupTemplate.class); + } + + /** + * Convert an instance of V1beta1PodGroupTemplate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java index c73d00485f..a7be3c6d45 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java @@ -53,7 +53,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -72,7 +72,7 @@ public class V1beta1ResourceClaim implements io.kubernetes.client.common.Kuberne public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1beta1ResourceClaimSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta1ResourceClaim spec(@jakarta.annotation.Nonnull V1beta1ResourceClaimSpec spec) { + public V1beta1ResourceClaim spec(@jakarta.annotation.Nullable V1beta1ResourceClaimSpec spec) { this.spec = spec; return this; } @@ -152,13 +152,13 @@ public V1beta1ResourceClaim spec(@jakarta.annotation.Nonnull V1beta1ResourceClai * Get spec * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1ResourceClaimSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1beta1ResourceClaimSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1beta1ResourceClaimSpec spec) { this.spec = spec; } @@ -238,7 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec")); + openapiRequiredFields = new HashSet(0); } /** @@ -261,13 +261,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1ResourceClaim.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -279,8 +272,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the required field `spec` - V1beta1ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1beta1ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { V1beta1ResourceClaimStatus.validateJsonElement(jsonObj.get("status")); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java index 20ef5e460e..7292f88dc5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java @@ -50,7 +50,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimConsumerReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java index b3e523130c..59d1bdb578 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java @@ -54,7 +54,7 @@ * ResourceClaimList is a collection of claims. */ @ApiModel(description = "ResourceClaimList is a collection of claims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java index c90fc931ff..cb354ebc96 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java @@ -51,7 +51,7 @@ * ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. */ @ApiModel(description = "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimSpec { public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java index d83ec2ae87..b01cd2ae5a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java @@ -55,7 +55,7 @@ * ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. */ @ApiModel(description = "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimStatus { public static final String SERIALIZED_NAME_ALLOCATION = "allocation"; @SerializedName(SERIALIZED_NAME_ALLOCATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java index 98252b6f0b..596eab6e53 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java @@ -52,7 +52,7 @@ * ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,7 +71,7 @@ public class V1beta1ResourceClaimTemplate implements io.kubernetes.client.common public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1beta1ResourceClaimTemplateSpec spec; public V1beta1ResourceClaimTemplate() { @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta1ResourceClaimTemplate spec(@jakarta.annotation.Nonnull V1beta1ResourceClaimTemplateSpec spec) { + public V1beta1ResourceClaimTemplate spec(@jakarta.annotation.Nullable V1beta1ResourceClaimTemplateSpec spec) { this.spec = spec; return this; } @@ -146,13 +146,13 @@ public V1beta1ResourceClaimTemplate spec(@jakarta.annotation.Nonnull V1beta1Reso * Get spec * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1ResourceClaimTemplateSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1beta1ResourceClaimTemplateSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1beta1ResourceClaimTemplateSpec spec) { this.spec = spec; } @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec")); + openapiRequiredFields = new HashSet(0); } /** @@ -233,13 +233,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1ResourceClaimTemplate.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -251,8 +244,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the required field `spec` - V1beta1ResourceClaimTemplateSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1beta1ResourceClaimTemplateSpec.validateJsonElement(jsonObj.get("spec")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java index 97b211ee64..67ee0389a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java @@ -54,7 +54,7 @@ * ResourceClaimTemplateList is a collection of claim templates. */ @ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java index fb4cd6a030..0e46a36f6f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java @@ -52,7 +52,7 @@ * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ @ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @@ -61,7 +61,7 @@ public class V1beta1ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1beta1ResourceClaimSpec spec; public V1beta1ResourceClaimTemplateSpec() { @@ -87,7 +87,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta1ResourceClaimTemplateSpec spec(@jakarta.annotation.Nonnull V1beta1ResourceClaimSpec spec) { + public V1beta1ResourceClaimTemplateSpec spec(@jakarta.annotation.Nullable V1beta1ResourceClaimSpec spec) { this.spec = spec; return this; } @@ -96,13 +96,13 @@ public V1beta1ResourceClaimTemplateSpec spec(@jakarta.annotation.Nonnull V1beta1 * Get spec * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1ResourceClaimSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1beta1ResourceClaimSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1beta1ResourceClaimSpec spec) { this.spec = spec; } @@ -156,7 +156,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec")); + openapiRequiredFields = new HashSet(0); } /** @@ -179,20 +179,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimTemplateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1ResourceClaimTemplateSpec.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `metadata` if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the required field `spec` - V1beta1ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1beta1ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java index e76cbfe047..0a29f1b5c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java @@ -50,7 +50,7 @@ * ResourcePool describes the pool that ResourceSlices belong to. */ @ApiModel(description = "ResourcePool describes the pool that ResourceSlices belong to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) @@ -96,11 +96,11 @@ public V1beta1ResourcePool name(@jakarta.annotation.Nonnull String name) { } /** - * 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. + * Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "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.") + @ApiModelProperty(required = true, value = "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java index 21239f24bb..280a474812 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java @@ -52,7 +52,7 @@ * 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 <driver name>, <pool name>, <device name>. 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java index 0cc6a624de..bb911bf943 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java @@ -54,7 +54,7 @@ * ResourceSliceList is a collection of ResourceSlices. */ @ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java index 1cb2ceefd1..646d0a10c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java @@ -56,7 +56,7 @@ * ResourceSliceSpec contains the information published by the driver in one ResourceSlice. */ @ApiModel(description = "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -83,6 +83,11 @@ public class V1beta1ResourceSliceSpec { @jakarta.annotation.Nullable private V1NodeSelector nodeSelector; + public static final String SERIALIZED_NAME_PARTITION_TYPE_ATTRIBUTE = "partitionTypeAttribute"; + @SerializedName(SERIALIZED_NAME_PARTITION_TYPE_ATTRIBUTE) + @jakarta.annotation.Nullable + private String partitionTypeAttribute; + public static final String SERIALIZED_NAME_PER_DEVICE_NODE_SELECTION = "perDeviceNodeSelection"; @SerializedName(SERIALIZED_NAME_PER_DEVICE_NODE_SELECTION) @jakarta.annotation.Nullable @@ -98,6 +103,11 @@ public class V1beta1ResourceSliceSpec { @jakarta.annotation.Nullable private List sharedCounters = new ArrayList<>(); + public static final String SERIALIZED_NAME_SKIP_NODE_OPERATIONS = "skipNodeOperations"; + @SerializedName(SERIALIZED_NAME_SKIP_NODE_OPERATIONS) + @jakarta.annotation.Nullable + private List skipNodeOperations = new ArrayList<>(); + public V1beta1ResourceSliceSpec() { } @@ -209,6 +219,26 @@ public void setNodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSele } + public V1beta1ResourceSliceSpec partitionTypeAttribute(@jakarta.annotation.Nullable String partitionTypeAttribute) { + this.partitionTypeAttribute = partitionTypeAttribute; + return this; + } + + /** + * PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost. + * @return partitionTypeAttribute + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.") + public String getPartitionTypeAttribute() { + return partitionTypeAttribute; + } + + public void setPartitionTypeAttribute(@jakarta.annotation.Nullable String partitionTypeAttribute) { + this.partitionTypeAttribute = partitionTypeAttribute; + } + + public V1beta1ResourceSliceSpec perDeviceNodeSelection(@jakarta.annotation.Nullable Boolean perDeviceNodeSelection) { this.perDeviceNodeSelection = perDeviceNodeSelection; return this; @@ -277,6 +307,34 @@ public void setSharedCounters(@jakarta.annotation.Nullable List skipNodeOperations) { + this.skipNodeOperations = skipNodeOperations; + return this; + } + + public V1beta1ResourceSliceSpec addSkipNodeOperationsItem(String skipNodeOperationsItem) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.add(skipNodeOperationsItem); + return this; + } + + /** + * SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values. + * @return skipNodeOperations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values.") + public List getSkipNodeOperations() { + return skipNodeOperations; + } + + public void setSkipNodeOperations(@jakarta.annotation.Nullable List skipNodeOperations) { + this.skipNodeOperations = skipNodeOperations; + } + + @Override public boolean equals(Object o) { @@ -292,14 +350,16 @@ public boolean equals(Object o) { Objects.equals(this.driver, v1beta1ResourceSliceSpec.driver) && Objects.equals(this.nodeName, v1beta1ResourceSliceSpec.nodeName) && Objects.equals(this.nodeSelector, v1beta1ResourceSliceSpec.nodeSelector) && + Objects.equals(this.partitionTypeAttribute, v1beta1ResourceSliceSpec.partitionTypeAttribute) && Objects.equals(this.perDeviceNodeSelection, v1beta1ResourceSliceSpec.perDeviceNodeSelection) && Objects.equals(this.pool, v1beta1ResourceSliceSpec.pool) && - Objects.equals(this.sharedCounters, v1beta1ResourceSliceSpec.sharedCounters); + Objects.equals(this.sharedCounters, v1beta1ResourceSliceSpec.sharedCounters) && + Objects.equals(this.skipNodeOperations, v1beta1ResourceSliceSpec.skipNodeOperations); } @Override public int hashCode() { - return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); + return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, partitionTypeAttribute, perDeviceNodeSelection, pool, sharedCounters, skipNodeOperations); } @Override @@ -311,9 +371,11 @@ public String toString() { sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); + sb.append(" partitionTypeAttribute: ").append(toIndentedString(partitionTypeAttribute)).append("\n"); sb.append(" perDeviceNodeSelection: ").append(toIndentedString(perDeviceNodeSelection)).append("\n"); sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); sb.append(" sharedCounters: ").append(toIndentedString(sharedCounters)).append("\n"); + sb.append(" skipNodeOperations: ").append(toIndentedString(skipNodeOperations)).append("\n"); sb.append("}"); return sb.toString(); } @@ -335,7 +397,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allNodes", "devices", "driver", "nodeName", "nodeSelector", "perDeviceNodeSelection", "pool", "sharedCounters")); + openapiFields = new HashSet(Arrays.asList("allNodes", "devices", "driver", "nodeName", "nodeSelector", "partitionTypeAttribute", "perDeviceNodeSelection", "pool", "sharedCounters", "skipNodeOperations")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("driver", "pool")); @@ -393,6 +455,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { V1NodeSelector.validateJsonElement(jsonObj.get("nodeSelector")); } + if ((jsonObj.get("partitionTypeAttribute") != null && !jsonObj.get("partitionTypeAttribute").isJsonNull()) && !jsonObj.get("partitionTypeAttribute").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `partitionTypeAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("partitionTypeAttribute").toString())); + } // validate the required field `pool` V1beta1ResourcePool.validateJsonElement(jsonObj.get("pool")); if (jsonObj.get("sharedCounters") != null && !jsonObj.get("sharedCounters").isJsonNull()) { @@ -409,6 +474,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + // ensure the optional json data is an array if present + if (jsonObj.get("skipNodeOperations") != null && !jsonObj.get("skipNodeOperations").isJsonNull() && !jsonObj.get("skipNodeOperations").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `skipNodeOperations` to be an array in the JSON string but got `%s`", jsonObj.get("skipNodeOperations").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigration.java index f6ba57d1ef..f5c717a361 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigration.java @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1StorageVersionMigration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationList.java index dad8b99800..289eb7ab24 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationList.java @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1StorageVersionMigrationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpec.java index 909ea97437..808b83c962 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpec.java @@ -51,7 +51,7 @@ * Spec of the storage version migration. */ @ApiModel(description = "Spec of the storage version migration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1StorageVersionMigrationSpec { public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatus.java index f1f32fac6e..6cc3fce68a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatus.java @@ -53,7 +53,7 @@ * Status of the storage version migration. */ @ApiModel(description = "Status of the storage version migration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1StorageVersionMigrationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TopologyConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TopologyConstraint.java new file mode 100644 index 0000000000..a1845167df --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TopologyConstraint.java @@ -0,0 +1,214 @@ +/* +Copyright 2026 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; + +/** + * TopologyConstraint defines a topology constraint for a PodGroup. + */ +@ApiModel(description = "TopologyConstraint defines a topology constraint for a PodGroup.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1TopologyConstraint { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nonnull + private String key; + + public V1beta1TopologyConstraint() { + } + + public V1beta1TopologyConstraint key(@jakarta.annotation.Nonnull String key) { + this.key = key; + return this; + } + + /** + * key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\" + * @return key + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\"") + public String getKey() { + return key; + } + + public void setKey(@jakarta.annotation.Nonnull String key) { + this.key = key; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1TopologyConstraint v1beta1TopologyConstraint = (V1beta1TopologyConstraint) o; + return Objects.equals(this.key, v1beta1TopologyConstraint.key); + } + + @Override + public int hashCode() { + return Objects.hash(key); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1TopologyConstraint {\n"); + sb.append(" key: ").append(toIndentedString(key)).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(Arrays.asList("key")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("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 V1beta1TopologyConstraint + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1TopologyConstraint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1TopologyConstraint is not found in the empty JSON string", V1beta1TopologyConstraint.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1TopologyConstraint.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1TopologyConstraint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1TopologyConstraint.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1TopologyConstraint.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1TopologyConstraint' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1TopologyConstraint.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1TopologyConstraint value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1TopologyConstraint read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1TopologyConstraint given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1TopologyConstraint + * @throws IOException if the JSON string is invalid with respect to V1beta1TopologyConstraint + */ + public static V1beta1TopologyConstraint fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1TopologyConstraint.class); + } + + /** + * Convert an instance of V1beta1TopologyConstraint to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypedLocalObjectReference.java similarity index 52% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypedLocalObjectReference.java index 47caeaae2f..e272434ae8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypedLocalObjectReference.java @@ -47,111 +47,86 @@ import io.kubernetes.client.openapi.JSON; /** - * ParentReference describes a reference to a parent object. + * TypedLocalObjectReference allows to reference typed object inside the same namespace. */ -@ApiModel(description = "ParentReference describes a reference to a parent object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1beta1ParentReference { - public static final String SERIALIZED_NAME_GROUP = "group"; - @SerializedName(SERIALIZED_NAME_GROUP) +@ApiModel(description = "TypedLocalObjectReference allows to reference typed object inside the same namespace.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1TypedLocalObjectReference { + public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; + @SerializedName(SERIALIZED_NAME_API_GROUP) @jakarta.annotation.Nullable - private String group; + 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_RESOURCE = "resource"; - @SerializedName(SERIALIZED_NAME_RESOURCE) - @jakarta.annotation.Nonnull - private String resource; - - public V1beta1ParentReference() { + public V1beta1TypedLocalObjectReference() { } - public V1beta1ParentReference group(@jakarta.annotation.Nullable String group) { - this.group = group; + public V1beta1TypedLocalObjectReference apiGroup(@jakarta.annotation.Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } /** - * Group is the group of the object being referenced. - * @return group + * apiGroup is the group for the resource being referenced. If apiGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting apiGroup is required. It must be a DNS subdomain. + * @return apiGroup */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Group is the group of the object being referenced.") - public String getGroup() { - return group; + @ApiModelProperty(value = "apiGroup is the group for the resource being referenced. If apiGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting apiGroup is required. It must be a DNS subdomain.") + public String getApiGroup() { + return apiGroup; } - public void setGroup(@jakarta.annotation.Nullable String group) { - this.group = group; + public void setApiGroup(@jakarta.annotation.Nullable String apiGroup) { + this.apiGroup = apiGroup; } - public V1beta1ParentReference name(@jakarta.annotation.Nonnull String name) { - this.name = name; + public V1beta1TypedLocalObjectReference kind(@jakarta.annotation.Nonnull String kind) { + this.kind = kind; return this; } /** - * Name is the name of the object being referenced. - * @return name + * kind is the type of resource being referenced. It must be a path segment name. + * @return kind */ @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 V1beta1ParentReference 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; + @ApiModelProperty(required = true, value = "kind is the type of resource being referenced. It must be a path segment name.") + public String getKind() { + return kind; } - public void setNamespace(@jakarta.annotation.Nullable String namespace) { - this.namespace = namespace; + public void setKind(@jakarta.annotation.Nonnull String kind) { + this.kind = kind; } - public V1beta1ParentReference resource(@jakarta.annotation.Nonnull String resource) { - this.resource = resource; + public V1beta1TypedLocalObjectReference name(@jakarta.annotation.Nonnull String name) { + this.name = name; return this; } /** - * Resource is the resource of the object being referenced. - * @return resource + * name is the name of resource being referenced. It must be a path segment name. + * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Resource is the resource of the object being referenced.") - public String getResource() { - return resource; + @ApiModelProperty(required = true, value = "name is the name of resource being referenced. It must be a path segment name.") + public String getName() { + return name; } - public void setResource(@jakarta.annotation.Nonnull String resource) { - this.resource = resource; + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; } @@ -164,26 +139,24 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1ParentReference v1beta1ParentReference = (V1beta1ParentReference) o; - return Objects.equals(this.group, v1beta1ParentReference.group) && - Objects.equals(this.name, v1beta1ParentReference.name) && - Objects.equals(this.namespace, v1beta1ParentReference.namespace) && - Objects.equals(this.resource, v1beta1ParentReference.resource); + V1beta1TypedLocalObjectReference v1beta1TypedLocalObjectReference = (V1beta1TypedLocalObjectReference) o; + return Objects.equals(this.apiGroup, v1beta1TypedLocalObjectReference.apiGroup) && + Objects.equals(this.kind, v1beta1TypedLocalObjectReference.kind) && + Objects.equals(this.name, v1beta1TypedLocalObjectReference.name); } @Override public int hashCode() { - return Objects.hash(group, name, namespace, resource); + return Objects.hash(apiGroup, kind, name); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ParentReference {\n"); - sb.append(" group: ").append(toIndentedString(group)).append("\n"); + sb.append("class V1beta1TypedLocalObjectReference {\n"); + sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).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(); } @@ -205,74 +178,71 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("group", "name", "namespace", "resource")); + openapiFields = new HashSet(Arrays.asList("apiGroup", "kind", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("name", "resource")); + openapiRequiredFields = new HashSet(Arrays.asList("kind", "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 V1beta1ParentReference + * @throws IOException if the JSON Element is invalid with respect to V1beta1TypedLocalObjectReference */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1ParentReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1ParentReference is not found in the empty JSON string", V1beta1ParentReference.openapiRequiredFields.toString())); + if (!V1beta1TypedLocalObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1TypedLocalObjectReference is not found in the empty JSON string", V1beta1TypedLocalObjectReference.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1ParentReference.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ParentReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1beta1TypedLocalObjectReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1TypedLocalObjectReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1ParentReference.openapiRequiredFields) { + for (String requiredField : V1beta1TypedLocalObjectReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + if ((jsonObj.get("apiGroup") != null && !jsonObj.get("apiGroup").isJsonNull()) && !jsonObj.get("apiGroup").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiGroup` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiGroup").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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 (!V1beta1ParentReference.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1ParentReference' and its subtypes + if (!V1beta1TypedLocalObjectReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1TypedLocalObjectReference' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ParentReference.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1TypedLocalObjectReference.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1ParentReference value) throws IOException { + public void write(JsonWriter out, V1beta1TypedLocalObjectReference value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1ParentReference read(JsonReader in) throws IOException { + public V1beta1TypedLocalObjectReference read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -283,18 +253,18 @@ public V1beta1ParentReference read(JsonReader in) throws IOException { } /** - * Create an instance of V1beta1ParentReference given an JSON string + * Create an instance of V1beta1TypedLocalObjectReference given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1ParentReference - * @throws IOException if the JSON string is invalid with respect to V1beta1ParentReference + * @return An instance of V1beta1TypedLocalObjectReference + * @throws IOException if the JSON string is invalid with respect to V1beta1TypedLocalObjectReference */ - public static V1beta1ParentReference fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1ParentReference.class); + public static V1beta1TypedLocalObjectReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1TypedLocalObjectReference.class); } /** - * Convert an instance of V1beta1ParentReference to an JSON string + * Convert an instance of V1beta1TypedLocalObjectReference to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java index cf8a664939..159d7c3a87 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java deleted file mode 100644 index a9af35b901..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java +++ /dev/null @@ -1,343 +0,0 @@ -/* -Copyright 2026 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.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; - -/** - * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1beta1VolumeAttributesClass 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 V1beta1VolumeAttributesClass() { - } - - public V1beta1VolumeAttributesClass 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 V1beta1VolumeAttributesClass 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(@jakarta.annotation.Nonnull String driverName) { - this.driverName = driverName; - } - - - public V1beta1VolumeAttributesClass 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 V1beta1VolumeAttributesClass 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 V1beta1VolumeAttributesClass parameters(@jakarta.annotation.Nullable Map parameters) { - this.parameters = parameters; - return this; - } - - public V1beta1VolumeAttributesClass putParametersItem(String key, String parametersItem) { - if (this.parameters == null) { - this.parameters = new HashMap<>(); - } - this.parameters.put(key, parametersItem); - 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(@jakarta.annotation.Nullable Map parameters) { - this.parameters = parameters; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1VolumeAttributesClass v1beta1VolumeAttributesClass = (V1beta1VolumeAttributesClass) o; - return Objects.equals(this.apiVersion, v1beta1VolumeAttributesClass.apiVersion) && - Objects.equals(this.driverName, v1beta1VolumeAttributesClass.driverName) && - Objects.equals(this.kind, v1beta1VolumeAttributesClass.kind) && - Objects.equals(this.metadata, v1beta1VolumeAttributesClass.metadata) && - Objects.equals(this.parameters, v1beta1VolumeAttributesClass.parameters); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, driverName, kind, metadata, parameters); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1VolumeAttributesClass {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" driverName: ").append(toIndentedString(driverName)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" parameters: ").append(toIndentedString(parameters)).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(Arrays.asList("apiVersion", "driverName", "kind", "metadata", "parameters")); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("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 V1beta1VolumeAttributesClass - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!V1beta1VolumeAttributesClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1VolumeAttributesClass is not found in the empty JSON string", V1beta1VolumeAttributesClass.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!V1beta1VolumeAttributesClass.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1VolumeAttributesClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1VolumeAttributesClass.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); - } - if (!jsonObj.get("driverName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `driverName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driverName").toString())); - } - if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1VolumeAttributesClass.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1VolumeAttributesClass' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1VolumeAttributesClass.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, V1beta1VolumeAttributesClass value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public V1beta1VolumeAttributesClass read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of V1beta1VolumeAttributesClass given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1beta1VolumeAttributesClass - * @throws IOException if the JSON string is invalid with respect to V1beta1VolumeAttributesClass - */ - public static V1beta1VolumeAttributesClass fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1VolumeAttributesClass.class); - } - - /** - * Convert an instance of V1beta1VolumeAttributesClass to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java deleted file mode 100644 index bf727ae16c..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java +++ /dev/null @@ -1,324 +0,0 @@ -/* -Copyright 2026 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.V1beta1VolumeAttributesClass; -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; - -/** - * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1beta1VolumeAttributesClassList 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 V1beta1VolumeAttributesClassList() { - } - - public V1beta1VolumeAttributesClassList 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 V1beta1VolumeAttributesClassList items(@jakarta.annotation.Nonnull List items) { - this.items = items; - return this; - } - - public V1beta1VolumeAttributesClassList addItemsItem(V1beta1VolumeAttributesClass itemsItem) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - this.items.add(itemsItem); - 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(@jakarta.annotation.Nonnull List items) { - this.items = items; - } - - - public V1beta1VolumeAttributesClassList 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 V1beta1VolumeAttributesClassList 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; - } - V1beta1VolumeAttributesClassList v1beta1VolumeAttributesClassList = (V1beta1VolumeAttributesClassList) o; - return Objects.equals(this.apiVersion, v1beta1VolumeAttributesClassList.apiVersion) && - Objects.equals(this.items, v1beta1VolumeAttributesClassList.items) && - Objects.equals(this.kind, v1beta1VolumeAttributesClassList.kind) && - Objects.equals(this.metadata, v1beta1VolumeAttributesClassList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1VolumeAttributesClassList {\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(Arrays.asList("apiVersion", "items", "kind", "metadata")); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("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 V1beta1VolumeAttributesClassList - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!V1beta1VolumeAttributesClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1VolumeAttributesClassList is not found in the empty JSON string", V1beta1VolumeAttributesClassList.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!V1beta1VolumeAttributesClassList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1VolumeAttributesClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1VolumeAttributesClassList.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "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++) { - V1beta1VolumeAttributesClass.validateJsonElement(jsonArrayitems.get(i)); - }; - if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1beta1VolumeAttributesClassList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1VolumeAttributesClassList' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1VolumeAttributesClassList.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, V1beta1VolumeAttributesClassList value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public V1beta1VolumeAttributesClassList read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of V1beta1VolumeAttributesClassList given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1beta1VolumeAttributesClassList - * @throws IOException if the JSON string is invalid with respect to V1beta1VolumeAttributesClassList - */ - public static V1beta1VolumeAttributesClassList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1VolumeAttributesClassList.class); - } - - /** - * Convert an instance of V1beta1VolumeAttributesClassList to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Workload.java similarity index 71% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Workload.java index a8de0b4576..e8ffeaefb7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Workload.java @@ -19,7 +19,7 @@ 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.V1beta1IPAddressSpec; +import io.kubernetes.client.openapi.models.V1beta1WorkloadSpec; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -49,11 +49,11 @@ 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 + * Workload allows for expressing scheduling constraints that should be used when managing the lifecycle of workloads from the scheduling perspective, including scheduling, preemption, eviction and other phases. Workload API enablement is toggled by the GenericWorkload feature gate. */ -@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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1beta1IPAddress implements io.kubernetes.client.common.KubernetesObject { +@ApiModel(description = "Workload allows for expressing scheduling constraints that should be used when managing the lifecycle of workloads from the scheduling perspective, including scheduling, preemption, eviction and other phases. Workload API enablement is toggled by the GenericWorkload feature gate.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1Workload implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @jakarta.annotation.Nullable @@ -72,12 +72,12 @@ public class V1beta1IPAddress implements io.kubernetes.client.common.KubernetesO public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) @jakarta.annotation.Nonnull - private V1beta1IPAddressSpec spec; + private V1beta1WorkloadSpec spec; - public V1beta1IPAddress() { + public V1beta1Workload() { } - public V1beta1IPAddress apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1beta1Workload apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -97,7 +97,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1beta1IPAddress kind(@jakarta.annotation.Nullable String kind) { + public V1beta1Workload kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -117,7 +117,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1beta1IPAddress metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public V1beta1Workload metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta1IPAddress spec(@jakarta.annotation.Nonnull V1beta1IPAddressSpec spec) { + public V1beta1Workload spec(@jakarta.annotation.Nonnull V1beta1WorkloadSpec spec) { this.spec = spec; return this; } @@ -148,11 +148,11 @@ public V1beta1IPAddress spec(@jakarta.annotation.Nonnull V1beta1IPAddressSpec sp */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1beta1IPAddressSpec getSpec() { + public V1beta1WorkloadSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1beta1IPAddressSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1beta1WorkloadSpec spec) { this.spec = spec; } @@ -166,11 +166,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1IPAddress v1beta1IPAddress = (V1beta1IPAddress) o; - return Objects.equals(this.apiVersion, v1beta1IPAddress.apiVersion) && - Objects.equals(this.kind, v1beta1IPAddress.kind) && - Objects.equals(this.metadata, v1beta1IPAddress.metadata) && - Objects.equals(this.spec, v1beta1IPAddress.spec); + V1beta1Workload v1beta1Workload = (V1beta1Workload) o; + return Objects.equals(this.apiVersion, v1beta1Workload.apiVersion) && + Objects.equals(this.kind, v1beta1Workload.kind) && + Objects.equals(this.metadata, v1beta1Workload.metadata) && + Objects.equals(this.spec, v1beta1Workload.spec); } @Override @@ -181,7 +181,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1IPAddress {\n"); + sb.append("class V1beta1Workload {\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"); @@ -217,25 +217,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1IPAddress + * @throws IOException if the JSON Element is invalid with respect to V1beta1Workload */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1IPAddress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1IPAddress is not found in the empty JSON string", V1beta1IPAddress.openapiRequiredFields.toString())); + if (!V1beta1Workload.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1Workload is not found in the empty JSON string", V1beta1Workload.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1IPAddress.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1IPAddress` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1beta1Workload.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1Workload` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1IPAddress.openapiRequiredFields) { + for (String requiredField : V1beta1Workload.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -252,29 +252,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } // validate the required field `spec` - V1beta1IPAddressSpec.validateJsonElement(jsonObj.get("spec")); + V1beta1WorkloadSpec.validateJsonElement(jsonObj.get("spec")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1IPAddress.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1IPAddress' and its subtypes + if (!V1beta1Workload.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1Workload' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1IPAddress.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1Workload.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1IPAddress value) throws IOException { + public void write(JsonWriter out, V1beta1Workload value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1IPAddress read(JsonReader in) throws IOException { + public V1beta1Workload read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -285,18 +285,18 @@ public V1beta1IPAddress read(JsonReader in) throws IOException { } /** - * Create an instance of V1beta1IPAddress given an JSON string + * Create an instance of V1beta1Workload given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1IPAddress - * @throws IOException if the JSON string is invalid with respect to V1beta1IPAddress + * @return An instance of V1beta1Workload + * @throws IOException if the JSON string is invalid with respect to V1beta1Workload */ - public static V1beta1IPAddress fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1IPAddress.class); + public static V1beta1Workload fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1Workload.class); } /** - * Convert an instance of V1beta1IPAddress to an JSON string + * Convert an instance of V1beta1Workload to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadList.java similarity index 76% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadList.java index c9679872d1..fd6211145a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadList.java @@ -19,7 +19,7 @@ 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.V1beta1ServiceCIDR; +import io.kubernetes.client.openapi.models.V1beta1Workload; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -51,11 +51,11 @@ import io.kubernetes.client.openapi.JSON; /** - * ServiceCIDRList contains a list of ServiceCIDR objects. + * WorkloadList contains a list of Workload resources. */ -@ApiModel(description = "ServiceCIDRList contains a list of ServiceCIDR objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1beta1ServiceCIDRList implements io.kubernetes.client.common.KubernetesListObject { +@ApiModel(description = "WorkloadList contains a list of Workload resources.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1WorkloadList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @jakarta.annotation.Nullable @@ -64,7 +64,7 @@ public class V1beta1ServiceCIDRList implements io.kubernetes.client.common.Kuber public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @jakarta.annotation.Nonnull - private List items = new ArrayList<>(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -76,10 +76,10 @@ public class V1beta1ServiceCIDRList implements io.kubernetes.client.common.Kuber @jakarta.annotation.Nullable private V1ListMeta metadata; - public V1beta1ServiceCIDRList() { + public V1beta1WorkloadList() { } - public V1beta1ServiceCIDRList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1beta1WorkloadList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -99,12 +99,12 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1beta1ServiceCIDRList items(@jakarta.annotation.Nonnull List items) { + public V1beta1WorkloadList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } - public V1beta1ServiceCIDRList addItemsItem(V1beta1ServiceCIDR itemsItem) { + public V1beta1WorkloadList addItemsItem(V1beta1Workload itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -113,21 +113,21 @@ public V1beta1ServiceCIDRList addItemsItem(V1beta1ServiceCIDR itemsItem) { } /** - * items is the list of ServiceCIDRs. + * items is the list of Workloads. * @return items */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "items is the list of ServiceCIDRs.") - public List getItems() { + @ApiModelProperty(required = true, value = "items is the list of Workloads.") + public List getItems() { return items; } - public void setItems(@jakarta.annotation.Nonnull List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1beta1ServiceCIDRList kind(@jakarta.annotation.Nullable String kind) { + public V1beta1WorkloadList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -147,7 +147,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1beta1ServiceCIDRList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + public V1beta1WorkloadList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } @@ -176,11 +176,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1ServiceCIDRList v1beta1ServiceCIDRList = (V1beta1ServiceCIDRList) o; - return Objects.equals(this.apiVersion, v1beta1ServiceCIDRList.apiVersion) && - Objects.equals(this.items, v1beta1ServiceCIDRList.items) && - Objects.equals(this.kind, v1beta1ServiceCIDRList.kind) && - Objects.equals(this.metadata, v1beta1ServiceCIDRList.metadata); + V1beta1WorkloadList v1beta1WorkloadList = (V1beta1WorkloadList) o; + return Objects.equals(this.apiVersion, v1beta1WorkloadList.apiVersion) && + Objects.equals(this.items, v1beta1WorkloadList.items) && + Objects.equals(this.kind, v1beta1WorkloadList.kind) && + Objects.equals(this.metadata, v1beta1WorkloadList.metadata); } @Override @@ -191,7 +191,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ServiceCIDRList {\n"); + sb.append("class V1beta1WorkloadList {\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"); @@ -227,25 +227,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1ServiceCIDRList + * @throws IOException if the JSON Element is invalid with respect to V1beta1WorkloadList */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1ServiceCIDRList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1ServiceCIDRList is not found in the empty JSON string", V1beta1ServiceCIDRList.openapiRequiredFields.toString())); + if (!V1beta1WorkloadList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1WorkloadList is not found in the empty JSON string", V1beta1WorkloadList.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1ServiceCIDRList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ServiceCIDRList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1beta1WorkloadList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1WorkloadList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1ServiceCIDRList.openapiRequiredFields) { + for (String requiredField : V1beta1WorkloadList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -262,7 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); // validate the required field `items` (array) for (int i = 0; i < jsonArrayitems.size(); i++) { - V1beta1ServiceCIDR.validateJsonElement(jsonArrayitems.get(i)); + V1beta1Workload.validateJsonElement(jsonArrayitems.get(i)); }; if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); @@ -277,22 +277,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1ServiceCIDRList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1ServiceCIDRList' and its subtypes + if (!V1beta1WorkloadList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1WorkloadList' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ServiceCIDRList.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1WorkloadList.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1ServiceCIDRList value) throws IOException { + public void write(JsonWriter out, V1beta1WorkloadList value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1ServiceCIDRList read(JsonReader in) throws IOException { + public V1beta1WorkloadList read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -303,18 +303,18 @@ public V1beta1ServiceCIDRList read(JsonReader in) throws IOException { } /** - * Create an instance of V1beta1ServiceCIDRList given an JSON string + * Create an instance of V1beta1WorkloadList given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1ServiceCIDRList - * @throws IOException if the JSON string is invalid with respect to V1beta1ServiceCIDRList + * @return An instance of V1beta1WorkloadList + * @throws IOException if the JSON string is invalid with respect to V1beta1WorkloadList */ - public static V1beta1ServiceCIDRList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1ServiceCIDRList.class); + public static V1beta1WorkloadList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1WorkloadList.class); } /** - * Convert an instance of V1beta1ServiceCIDRList to an JSON string + * Convert an instance of V1beta1WorkloadList to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadReference.java new file mode 100644 index 0000000000..255227d454 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadReference.java @@ -0,0 +1,244 @@ +/* +Copyright 2026 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; + +/** + * WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup. + */ +@ApiModel(description = "WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1WorkloadReference { + public static final String SERIALIZED_NAME_TEMPLATE_NAME = "templateName"; + @SerializedName(SERIALIZED_NAME_TEMPLATE_NAME) + @jakarta.annotation.Nonnull + private String templateName; + + public static final String SERIALIZED_NAME_WORKLOAD_NAME = "workloadName"; + @SerializedName(SERIALIZED_NAME_WORKLOAD_NAME) + @jakarta.annotation.Nonnull + private String workloadName; + + public V1beta1WorkloadReference() { + } + + public V1beta1WorkloadReference templateName(@jakarta.annotation.Nonnull String templateName) { + this.templateName = templateName; + return this; + } + + /** + * templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required. + * @return templateName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.") + public String getTemplateName() { + return templateName; + } + + public void setTemplateName(@jakarta.annotation.Nonnull String templateName) { + this.templateName = templateName; + } + + + public V1beta1WorkloadReference workloadName(@jakarta.annotation.Nonnull String workloadName) { + this.workloadName = workloadName; + return this; + } + + /** + * workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required. + * @return workloadName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.") + public String getWorkloadName() { + return workloadName; + } + + public void setWorkloadName(@jakarta.annotation.Nonnull String workloadName) { + this.workloadName = workloadName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1WorkloadReference v1beta1WorkloadReference = (V1beta1WorkloadReference) o; + return Objects.equals(this.templateName, v1beta1WorkloadReference.templateName) && + Objects.equals(this.workloadName, v1beta1WorkloadReference.workloadName); + } + + @Override + public int hashCode() { + return Objects.hash(templateName, workloadName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1WorkloadReference {\n"); + sb.append(" templateName: ").append(toIndentedString(templateName)).append("\n"); + sb.append(" workloadName: ").append(toIndentedString(workloadName)).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(Arrays.asList("templateName", "workloadName")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("templateName", "workloadName")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1WorkloadReference + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1WorkloadReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1WorkloadReference is not found in the empty JSON string", V1beta1WorkloadReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1WorkloadReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1WorkloadReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1WorkloadReference.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("templateName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `templateName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("templateName").toString())); + } + if (!jsonObj.get("workloadName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `workloadName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workloadName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1WorkloadReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1WorkloadReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1WorkloadReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1WorkloadReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1WorkloadReference read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1WorkloadReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1WorkloadReference + * @throws IOException if the JSON string is invalid with respect to V1beta1WorkloadReference + */ + public static V1beta1WorkloadReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1WorkloadReference.class); + } + + /** + * Convert an instance of V1beta1WorkloadReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadSpec.java new file mode 100644 index 0000000000..93501c2709 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1WorkloadSpec.java @@ -0,0 +1,311 @@ +/* +Copyright 2026 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.V1beta1CompositePodGroupTemplate; +import io.kubernetes.client.openapi.models.V1beta1PodGroupTemplate; +import io.kubernetes.client.openapi.models.V1beta1TypedLocalObjectReference; +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; + +/** + * WorkloadSpec defines the desired state of a Workload. + */ +@ApiModel(description = "WorkloadSpec defines the desired state of a Workload.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1WorkloadSpec { + public static final String SERIALIZED_NAME_COMPOSITE_POD_GROUP_TEMPLATES = "compositePodGroupTemplates"; + @SerializedName(SERIALIZED_NAME_COMPOSITE_POD_GROUP_TEMPLATES) + @jakarta.annotation.Nullable + private List compositePodGroupTemplates = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CONTROLLER_REF = "controllerRef"; + @SerializedName(SERIALIZED_NAME_CONTROLLER_REF) + @jakarta.annotation.Nullable + private V1beta1TypedLocalObjectReference controllerRef; + + public static final String SERIALIZED_NAME_POD_GROUP_TEMPLATES = "podGroupTemplates"; + @SerializedName(SERIALIZED_NAME_POD_GROUP_TEMPLATES) + @jakarta.annotation.Nullable + private List podGroupTemplates = new ArrayList<>(); + + public V1beta1WorkloadSpec() { + } + + public V1beta1WorkloadSpec compositePodGroupTemplates(@jakarta.annotation.Nullable List compositePodGroupTemplates) { + this.compositePodGroupTemplates = compositePodGroupTemplates; + return this; + } + + public V1beta1WorkloadSpec addCompositePodGroupTemplatesItem(V1beta1CompositePodGroupTemplate compositePodGroupTemplatesItem) { + if (this.compositePodGroupTemplates == null) { + this.compositePodGroupTemplates = new ArrayList<>(); + } + this.compositePodGroupTemplates.add(compositePodGroupTemplatesItem); + return this; + } + + /** + * compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled. + * @return compositePodGroupTemplates + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled.") + public List getCompositePodGroupTemplates() { + return compositePodGroupTemplates; + } + + public void setCompositePodGroupTemplates(@jakarta.annotation.Nullable List compositePodGroupTemplates) { + this.compositePodGroupTemplates = compositePodGroupTemplates; + } + + + public V1beta1WorkloadSpec controllerRef(@jakarta.annotation.Nullable V1beta1TypedLocalObjectReference controllerRef) { + this.controllerRef = controllerRef; + return this; + } + + /** + * Get controllerRef + * @return controllerRef + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1TypedLocalObjectReference getControllerRef() { + return controllerRef; + } + + public void setControllerRef(@jakarta.annotation.Nullable V1beta1TypedLocalObjectReference controllerRef) { + this.controllerRef = controllerRef; + } + + + public V1beta1WorkloadSpec podGroupTemplates(@jakarta.annotation.Nullable List podGroupTemplates) { + this.podGroupTemplates = podGroupTemplates; + return this; + } + + public V1beta1WorkloadSpec addPodGroupTemplatesItem(V1beta1PodGroupTemplate podGroupTemplatesItem) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); + } + this.podGroupTemplates.add(podGroupTemplatesItem); + return this; + } + + /** + * podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. + * @return podGroupTemplates + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.") + public List getPodGroupTemplates() { + return podGroupTemplates; + } + + public void setPodGroupTemplates(@jakarta.annotation.Nullable List podGroupTemplates) { + this.podGroupTemplates = podGroupTemplates; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1WorkloadSpec v1beta1WorkloadSpec = (V1beta1WorkloadSpec) o; + return Objects.equals(this.compositePodGroupTemplates, v1beta1WorkloadSpec.compositePodGroupTemplates) && + Objects.equals(this.controllerRef, v1beta1WorkloadSpec.controllerRef) && + Objects.equals(this.podGroupTemplates, v1beta1WorkloadSpec.podGroupTemplates); + } + + @Override + public int hashCode() { + return Objects.hash(compositePodGroupTemplates, controllerRef, podGroupTemplates); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1WorkloadSpec {\n"); + sb.append(" compositePodGroupTemplates: ").append(toIndentedString(compositePodGroupTemplates)).append("\n"); + sb.append(" controllerRef: ").append(toIndentedString(controllerRef)).append("\n"); + sb.append(" podGroupTemplates: ").append(toIndentedString(podGroupTemplates)).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(Arrays.asList("compositePodGroupTemplates", "controllerRef", "podGroupTemplates")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1WorkloadSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1WorkloadSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1WorkloadSpec is not found in the empty JSON string", V1beta1WorkloadSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1WorkloadSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1WorkloadSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("compositePodGroupTemplates") != null && !jsonObj.get("compositePodGroupTemplates").isJsonNull()) { + JsonArray jsonArraycompositePodGroupTemplates = jsonObj.getAsJsonArray("compositePodGroupTemplates"); + if (jsonArraycompositePodGroupTemplates != null) { + // ensure the json data is an array + if (!jsonObj.get("compositePodGroupTemplates").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `compositePodGroupTemplates` to be an array in the JSON string but got `%s`", jsonObj.get("compositePodGroupTemplates").toString())); + } + + // validate the optional field `compositePodGroupTemplates` (array) + for (int i = 0; i < jsonArraycompositePodGroupTemplates.size(); i++) { + V1beta1CompositePodGroupTemplate.validateJsonElement(jsonArraycompositePodGroupTemplates.get(i)); + }; + } + } + // validate the optional field `controllerRef` + if (jsonObj.get("controllerRef") != null && !jsonObj.get("controllerRef").isJsonNull()) { + V1beta1TypedLocalObjectReference.validateJsonElement(jsonObj.get("controllerRef")); + } + if (jsonObj.get("podGroupTemplates") != null && !jsonObj.get("podGroupTemplates").isJsonNull()) { + JsonArray jsonArraypodGroupTemplates = jsonObj.getAsJsonArray("podGroupTemplates"); + if (jsonArraypodGroupTemplates != null) { + // ensure the json data is an array + if (!jsonObj.get("podGroupTemplates").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podGroupTemplates` to be an array in the JSON string but got `%s`", jsonObj.get("podGroupTemplates").toString())); + } + + // validate the optional field `podGroupTemplates` (array) + for (int i = 0; i < jsonArraypodGroupTemplates.size(); i++) { + V1beta1PodGroupTemplate.validateJsonElement(jsonArraypodGroupTemplates.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1WorkloadSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1WorkloadSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1WorkloadSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1WorkloadSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1WorkloadSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1WorkloadSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1WorkloadSpec + * @throws IOException if the JSON string is invalid with respect to V1beta1WorkloadSpec + */ + public static V1beta1WorkloadSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1WorkloadSpec.class); + } + + /** + * Convert an instance of V1beta1WorkloadSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java index b4b7fc83fb..7d91d4c266 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java @@ -54,7 +54,7 @@ * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. */ @ApiModel(description = "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java index 3f49b5f59a..df38fe82b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2AllocationResult { public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java index 44c4626960..91809771d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -66,11 +66,11 @@ public V1beta2CELDeviceSelector expression(@jakarta.annotation.Nonnull String ex } /** - * 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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. + * 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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. Common errors: - \"no such key\": Use optional chaining (.? followed by orValue()) or guarding the check with has() for optional fields. See CEL Optional Types for details: https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes For more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/ 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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.") + @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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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. Common errors: - \"no such key\": Use optional chaining (.? followed by orValue()) or guarding the check with has() for optional fields. See CEL Optional Types for details: https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes For more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/ 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) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") 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; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java index bfa0e09709..2986654e31 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java @@ -54,7 +54,7 @@ * CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. */ @ApiModel(description = "CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2CapacityRequestPolicy { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java index 990e778bb3..2d37177000 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java @@ -48,10 +48,10 @@ import io.kubernetes.client.openapi.JSON; /** - * CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. + * CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. */ -@ApiModel(description = "CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@ApiModel(description = "CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2CapacityRequestPolicyRange { public static final String SERIALIZED_NAME_MAX = "max"; @SerializedName(SERIALIZED_NAME_MAX) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java index e14d0bc3f6..c5f60ccd01 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java @@ -53,7 +53,7 @@ * CapacityRequirements defines the capacity requirements for a specific device request. */ @ApiModel(description = "CapacityRequirements defines the capacity requirements for a specific device request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2CapacityRequirements { public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java index 5b1b9922e8..43cce9cf32 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2Counter { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java index a1b2bf902a..73ff12cb24 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java @@ -53,7 +53,7 @@ * CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. 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 ResourcePool. 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2CounterSet { public static final String SERIALIZED_NAME_COUNTERS = "counters"; @SerializedName(SERIALIZED_NAME_COUNTERS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java index f30e34f59b..3e70f4c731 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java @@ -23,7 +23,7 @@ import io.kubernetes.client.openapi.models.V1beta2DeviceCapacity; import io.kubernetes.client.openapi.models.V1beta2DeviceCounterConsumption; import io.kubernetes.client.openapi.models.V1beta2DeviceTaint; -import io.kubernetes.client.openapi.models.V1beta2NodeAllocatableResourceMapping; +import io.kubernetes.client.openapi.models.V1beta2NodeAllocatableResource; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -60,7 +60,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2Device { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -107,10 +107,10 @@ public class V1beta2Device { @jakarta.annotation.Nonnull private String name; - public static final String SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_MAPPINGS = "nodeAllocatableResourceMappings"; - @SerializedName(SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_MAPPINGS) + public static final String SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCES = "nodeAllocatableResources"; + @SerializedName(SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCES) @jakarta.annotation.Nullable - private Map nodeAllocatableResourceMappings = new HashMap<>(); + private Map nodeAllocatableResources = new HashMap<>(); public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; @SerializedName(SERIALIZED_NAME_NODE_NAME) @@ -350,31 +350,31 @@ public void setName(@jakarta.annotation.Nonnull String name) { } - public V1beta2Device nodeAllocatableResourceMappings(@jakarta.annotation.Nullable Map nodeAllocatableResourceMappings) { - this.nodeAllocatableResourceMappings = nodeAllocatableResourceMappings; + public V1beta2Device nodeAllocatableResources(@jakarta.annotation.Nullable Map nodeAllocatableResources) { + this.nodeAllocatableResources = nodeAllocatableResources; return this; } - public V1beta2Device putNodeAllocatableResourceMappingsItem(String key, V1beta2NodeAllocatableResourceMapping nodeAllocatableResourceMappingsItem) { - if (this.nodeAllocatableResourceMappings == null) { - this.nodeAllocatableResourceMappings = new HashMap<>(); + public V1beta2Device putNodeAllocatableResourcesItem(String key, V1beta2NodeAllocatableResource nodeAllocatableResourcesItem) { + if (this.nodeAllocatableResources == null) { + this.nodeAllocatableResources = new HashMap<>(); } - this.nodeAllocatableResourceMappings.put(key, nodeAllocatableResourceMappingsItem); + this.nodeAllocatableResources.put(key, nodeAllocatableResourcesItem); return this; } /** - * NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. - * @return nodeAllocatableResourceMappings + * NodeAllocatableResources defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. + * @return nodeAllocatableResources */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.") - public Map getNodeAllocatableResourceMappings() { - return nodeAllocatableResourceMappings; + @ApiModelProperty(value = "NodeAllocatableResources defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.") + public Map getNodeAllocatableResources() { + return nodeAllocatableResources; } - public void setNodeAllocatableResourceMappings(@jakarta.annotation.Nullable Map nodeAllocatableResourceMappings) { - this.nodeAllocatableResourceMappings = nodeAllocatableResourceMappings; + public void setNodeAllocatableResources(@jakarta.annotation.Nullable Map nodeAllocatableResources) { + this.nodeAllocatableResources = nodeAllocatableResources; } @@ -465,7 +465,7 @@ public boolean equals(Object o) { Objects.equals(this.capacity, v1beta2Device.capacity) && Objects.equals(this.consumesCounters, v1beta2Device.consumesCounters) && Objects.equals(this.name, v1beta2Device.name) && - Objects.equals(this.nodeAllocatableResourceMappings, v1beta2Device.nodeAllocatableResourceMappings) && + Objects.equals(this.nodeAllocatableResources, v1beta2Device.nodeAllocatableResources) && Objects.equals(this.nodeName, v1beta2Device.nodeName) && Objects.equals(this.nodeSelector, v1beta2Device.nodeSelector) && Objects.equals(this.taints, v1beta2Device.taints); @@ -473,7 +473,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeAllocatableResourceMappings, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeAllocatableResources, nodeName, nodeSelector, taints); } @Override @@ -489,7 +489,7 @@ public String toString() { sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" consumesCounters: ").append(toIndentedString(consumesCounters)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" nodeAllocatableResourceMappings: ").append(toIndentedString(nodeAllocatableResourceMappings)).append("\n"); + sb.append(" nodeAllocatableResources: ").append(toIndentedString(nodeAllocatableResources)).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"); @@ -514,7 +514,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResourceMappings", "nodeName", "nodeSelector", "taints")); + openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResources", "nodeName", "nodeSelector", "taints")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name")); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java index 3eb7f91cdc..f09b33ff58 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java @@ -53,7 +53,7 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceAllocationConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java index 8b495adc26..d47d60dda6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceAllocationResult { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java index 2b34b32736..1d965e3d7f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceAttribute { public static final String SERIALIZED_NAME_BOOL = "bool"; @SerializedName(SERIALIZED_NAME_BOOL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java index 5ccd579b7c..b742572a7f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java @@ -52,7 +52,7 @@ * DeviceCapacity describes a quantity associated with a device. */ @ApiModel(description = "DeviceCapacity describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceCapacity { public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java index f1cae0247d..342ff21d1d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java @@ -55,7 +55,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceClaim { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java index bc881e9154..2e3562210d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceClaimConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java index ae2cec6d96..560b8c7954 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,7 +71,7 @@ public class V1beta2DeviceClass implements io.kubernetes.client.common.Kubernete public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1beta2DeviceClassSpec spec; public V1beta2DeviceClass() { @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta2DeviceClass spec(@jakarta.annotation.Nonnull V1beta2DeviceClassSpec spec) { + public V1beta2DeviceClass spec(@jakarta.annotation.Nullable V1beta2DeviceClassSpec spec) { this.spec = spec; return this; } @@ -146,13 +146,13 @@ public V1beta2DeviceClass spec(@jakarta.annotation.Nonnull V1beta2DeviceClassSpe * Get spec * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta2DeviceClassSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1beta2DeviceClassSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1beta2DeviceClassSpec spec) { this.spec = spec; } @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec")); + openapiRequiredFields = new HashSet(0); } /** @@ -233,13 +233,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta2DeviceClass.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -251,8 +244,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the required field `spec` - V1beta2DeviceClassSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1beta2DeviceClassSpec.validateJsonElement(jsonObj.get("spec")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java index 468ba27761..0e84365402 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java @@ -51,7 +51,7 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceClassConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java index af530a7456..afcce764a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java @@ -54,7 +54,7 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java index 565463d0d2..95aab3f601 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java @@ -54,7 +54,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -108,11 +108,11 @@ public V1beta2DeviceClassSpec extendedResourceName(@jakarta.annotation.Nullable } /** - * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field. + * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. * @return extendedResourceName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field.") + @ApiModelProperty(value = "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.") public String getExtendedResourceName() { return extendedResourceName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java index e28fea7c31..4e951d6c73 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceConstraint { public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java index ece9f52c93..4e85f6b242 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java @@ -22,8 +22,10 @@ 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; @@ -53,8 +55,13 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceCounterConsumption { + public static final String SERIALIZED_NAME_COMPATIBILITY_GROUPS = "compatibilityGroups"; + @SerializedName(SERIALIZED_NAME_COMPATIBILITY_GROUPS) + @jakarta.annotation.Nullable + private List compatibilityGroups = new ArrayList<>(); + public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; @SerializedName(SERIALIZED_NAME_COUNTER_SET) @jakarta.annotation.Nonnull @@ -68,6 +75,34 @@ public class V1beta2DeviceCounterConsumption { public V1beta2DeviceCounterConsumption() { } + public V1beta2DeviceCounterConsumption compatibilityGroups(@jakarta.annotation.Nullable List compatibilityGroups) { + this.compatibilityGroups = compatibilityGroups; + return this; + } + + public V1beta2DeviceCounterConsumption addCompatibilityGroupsItem(String compatibilityGroupsItem) { + if (this.compatibilityGroups == null) { + this.compatibilityGroups = new ArrayList<>(); + } + this.compatibilityGroups.add(compatibilityGroupsItem); + return this; + } + + /** + * CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique. + * @return compatibilityGroups + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique.") + public List getCompatibilityGroups() { + return compatibilityGroups; + } + + public void setCompatibilityGroups(@jakarta.annotation.Nullable List compatibilityGroups) { + this.compatibilityGroups = compatibilityGroups; + } + + public V1beta2DeviceCounterConsumption counterSet(@jakarta.annotation.Nonnull String counterSet) { this.counterSet = counterSet; return this; @@ -126,19 +161,21 @@ public boolean equals(Object o) { return false; } V1beta2DeviceCounterConsumption v1beta2DeviceCounterConsumption = (V1beta2DeviceCounterConsumption) o; - return Objects.equals(this.counterSet, v1beta2DeviceCounterConsumption.counterSet) && + return Objects.equals(this.compatibilityGroups, v1beta2DeviceCounterConsumption.compatibilityGroups) && + Objects.equals(this.counterSet, v1beta2DeviceCounterConsumption.counterSet) && Objects.equals(this.counters, v1beta2DeviceCounterConsumption.counters); } @Override public int hashCode() { - return Objects.hash(counterSet, counters); + return Objects.hash(compatibilityGroups, counterSet, counters); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DeviceCounterConsumption {\n"); + sb.append(" compatibilityGroups: ").append(toIndentedString(compatibilityGroups)).append("\n"); sb.append(" counterSet: ").append(toIndentedString(counterSet)).append("\n"); sb.append(" counters: ").append(toIndentedString(counters)).append("\n"); sb.append("}"); @@ -162,7 +199,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("counterSet", "counters")); + openapiFields = new HashSet(Arrays.asList("compatibilityGroups", "counterSet", "counters")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("counterSet", "counters")); @@ -196,6 +233,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("compatibilityGroups") != null && !jsonObj.get("compatibilityGroups").isJsonNull() && !jsonObj.get("compatibilityGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `compatibilityGroups` to be an array in the JSON string but got `%s`", jsonObj.get("compatibilityGroups").toString())); + } if (!jsonObj.get("counterSet").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `counterSet` to be a primitive type in the JSON string but got `%s`", jsonObj.get("counterSet").toString())); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceDerivedAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceDerivedAttribute.java new file mode 100644 index 0000000000..be6475a55d --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceDerivedAttribute.java @@ -0,0 +1,244 @@ +/* +Copyright 2026 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; + +/** + * DeviceDerivedAttribute defines a derived attribute computed via CEL. + */ +@ApiModel(description = "DeviceDerivedAttribute defines a derived attribute computed via CEL.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta2DeviceDerivedAttribute { + 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 V1beta2DeviceDerivedAttribute() { + } + + public V1beta2DeviceDerivedAttribute expression(@jakarta.annotation.Nonnull String expression) { + this.expression = expression; + return this; + } + + /** + * Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. + * @return expression + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.") + public String getExpression() { + return expression; + } + + public void setExpression(@jakarta.annotation.Nonnull String expression) { + this.expression = expression; + } + + + public V1beta2DeviceDerivedAttribute name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint.") + 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; + } + V1beta2DeviceDerivedAttribute v1beta2DeviceDerivedAttribute = (V1beta2DeviceDerivedAttribute) o; + return Objects.equals(this.expression, v1beta2DeviceDerivedAttribute.expression) && + Objects.equals(this.name, v1beta2DeviceDerivedAttribute.name); + } + + @Override + public int hashCode() { + return Objects.hash(expression, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta2DeviceDerivedAttribute {\n"); + sb.append(" expression: ").append(toIndentedString(expression)).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(Arrays.asList("expression", "name")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("expression", "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 V1beta2DeviceDerivedAttribute + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta2DeviceDerivedAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta2DeviceDerivedAttribute is not found in the empty JSON string", V1beta2DeviceDerivedAttribute.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta2DeviceDerivedAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceDerivedAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2DeviceDerivedAttribute.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("expression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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 (!V1beta2DeviceDerivedAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2DeviceDerivedAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2DeviceDerivedAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2DeviceDerivedAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2DeviceDerivedAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2DeviceDerivedAttribute given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2DeviceDerivedAttribute + * @throws IOException if the JSON string is invalid with respect to V1beta2DeviceDerivedAttribute + */ + public static V1beta2DeviceDerivedAttribute fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2DeviceDerivedAttribute.class); + } + + /** + * Convert an instance of V1beta2DeviceDerivedAttribute to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java index 1c0ae0a73d..8e9f976d5f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java @@ -54,7 +54,7 @@ * 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. */ @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. With FirstAvailable it is also possible to provide a prioritized list of requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceRequest { public static final String SERIALIZED_NAME_EXACTLY = "exactly"; @SerializedName(SERIALIZED_NAME_EXACTLY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java index fe31deb131..e805b38632 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java @@ -56,7 +56,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -103,6 +103,11 @@ public class V1beta2DeviceRequestAllocationResult { @jakarta.annotation.Nullable private String shareID; + public static final String SERIALIZED_NAME_SKIP_NODE_OPERATIONS = "skipNodeOperations"; + @SerializedName(SERIALIZED_NAME_SKIP_NODE_OPERATIONS) + @jakarta.annotation.Nullable + private List skipNodeOperations = new ArrayList<>(); + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) @jakarta.annotation.Nullable @@ -315,6 +320,34 @@ public void setShareID(@jakarta.annotation.Nullable String shareID) { } + public V1beta2DeviceRequestAllocationResult skipNodeOperations(@jakarta.annotation.Nullable List skipNodeOperations) { + this.skipNodeOperations = skipNodeOperations; + return this; + } + + public V1beta2DeviceRequestAllocationResult addSkipNodeOperationsItem(String skipNodeOperationsItem) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.add(skipNodeOperationsItem); + return this; + } + + /** + * SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated. + * @return skipNodeOperations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.") + public List getSkipNodeOperations() { + return skipNodeOperations; + } + + public void setSkipNodeOperations(@jakarta.annotation.Nullable List skipNodeOperations) { + this.skipNodeOperations = skipNodeOperations; + } + + public V1beta2DeviceRequestAllocationResult tolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; return this; @@ -362,12 +395,13 @@ public boolean equals(Object o) { Objects.equals(this.pool, v1beta2DeviceRequestAllocationResult.pool) && Objects.equals(this.request, v1beta2DeviceRequestAllocationResult.request) && Objects.equals(this.shareID, v1beta2DeviceRequestAllocationResult.shareID) && + Objects.equals(this.skipNodeOperations, v1beta2DeviceRequestAllocationResult.skipNodeOperations) && Objects.equals(this.tolerations, v1beta2DeviceRequestAllocationResult.tolerations); } @Override public int hashCode() { - return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, skipNodeOperations, tolerations); } @Override @@ -383,6 +417,7 @@ public String toString() { sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); sb.append(" request: ").append(toIndentedString(request)).append("\n"); sb.append(" shareID: ").append(toIndentedString(shareID)).append("\n"); + sb.append(" skipNodeOperations: ").append(toIndentedString(skipNodeOperations)).append("\n"); sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); sb.append("}"); return sb.toString(); @@ -405,7 +440,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "tolerations")); + openapiFields = new HashSet(Arrays.asList("adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "skipNodeOperations", "tolerations")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("device", "driver", "pool", "request")); @@ -462,6 +497,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); } + // ensure the optional json data is an array if present + if (jsonObj.get("skipNodeOperations") != null && !jsonObj.get("skipNodeOperations").isJsonNull() && !jsonObj.get("skipNodeOperations").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `skipNodeOperations` to be an array in the JSON string but got `%s`", jsonObj.get("skipNodeOperations").toString())); + } if (jsonObj.get("tolerations") != null && !jsonObj.get("tolerations").isJsonNull()) { JsonArray jsonArraytolerations = jsonObj.getAsJsonArray("tolerations"); if (jsonArraytolerations != null) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java index f5d98aa347..50e68b0079 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceSelector { public static final String SERIALIZED_NAME_CEL = "cel"; @SerializedName(SERIALIZED_NAME_CEL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java index b2f146b5f7..15752396ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta2CapacityRequirements; +import io.kubernetes.client.openapi.models.V1beta2DeviceDerivedAttribute; import io.kubernetes.client.openapi.models.V1beta2DeviceSelector; import io.kubernetes.client.openapi.models.V1beta2DeviceToleration; import io.swagger.annotations.ApiModel; @@ -55,7 +56,7 @@ * 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. */ @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 ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) @@ -72,6 +73,11 @@ public class V1beta2DeviceSubRequest { @jakarta.annotation.Nullable private Long count; + public static final String SERIALIZED_NAME_DERIVED_ATTRIBUTES = "derivedAttributes"; + @SerializedName(SERIALIZED_NAME_DERIVED_ATTRIBUTES) + @jakarta.annotation.Nullable + private List derivedAttributes = new ArrayList<>(); + public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) @jakarta.annotation.Nonnull @@ -155,6 +161,34 @@ public void setCount(@jakarta.annotation.Nullable Long count) { } + public V1beta2DeviceSubRequest derivedAttributes(@jakarta.annotation.Nullable List derivedAttributes) { + this.derivedAttributes = derivedAttributes; + return this; + } + + public V1beta2DeviceSubRequest addDerivedAttributesItem(V1beta2DeviceDerivedAttribute derivedAttributesItem) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + this.derivedAttributes.add(derivedAttributesItem); + return this; + } + + /** + * DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. + * @return derivedAttributes + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") + public List getDerivedAttributes() { + return derivedAttributes; + } + + public void setDerivedAttributes(@jakarta.annotation.Nullable List derivedAttributes) { + this.derivedAttributes = derivedAttributes; + } + + public V1beta2DeviceSubRequest deviceClassName(@jakarta.annotation.Nonnull String deviceClassName) { this.deviceClassName = deviceClassName; return this; @@ -264,6 +298,7 @@ public boolean equals(Object o) { return Objects.equals(this.allocationMode, v1beta2DeviceSubRequest.allocationMode) && Objects.equals(this.capacity, v1beta2DeviceSubRequest.capacity) && Objects.equals(this.count, v1beta2DeviceSubRequest.count) && + Objects.equals(this.derivedAttributes, v1beta2DeviceSubRequest.derivedAttributes) && Objects.equals(this.deviceClassName, v1beta2DeviceSubRequest.deviceClassName) && Objects.equals(this.name, v1beta2DeviceSubRequest.name) && Objects.equals(this.selectors, v1beta2DeviceSubRequest.selectors) && @@ -272,7 +307,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + return Objects.hash(allocationMode, capacity, count, derivedAttributes, deviceClassName, name, selectors, tolerations); } @Override @@ -282,6 +317,7 @@ public String toString() { sb.append(" allocationMode: ").append(toIndentedString(allocationMode)).append("\n"); sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" derivedAttributes: ").append(toIndentedString(derivedAttributes)).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"); @@ -307,7 +343,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allocationMode", "capacity", "count", "deviceClassName", "name", "selectors", "tolerations")); + openapiFields = new HashSet(Arrays.asList("allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "name", "selectors", "tolerations")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("deviceClassName", "name")); @@ -348,6 +384,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { V1beta2CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); } + if (jsonObj.get("derivedAttributes") != null && !jsonObj.get("derivedAttributes").isJsonNull()) { + JsonArray jsonArrayderivedAttributes = jsonObj.getAsJsonArray("derivedAttributes"); + if (jsonArrayderivedAttributes != null) { + // ensure the json data is an array + if (!jsonObj.get("derivedAttributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `derivedAttributes` to be an array in the JSON string but got `%s`", jsonObj.get("derivedAttributes").toString())); + } + + // validate the optional field `derivedAttributes` (array) + for (int i = 0; i < jsonArrayderivedAttributes.size(); i++) { + V1beta2DeviceDerivedAttribute.validateJsonElement(jsonArrayderivedAttributes.get(i)); + }; + } + } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java index 3a8d6147d6..0f54cc5d9d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java @@ -51,7 +51,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceTaint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRule.java index d1d3165cab..e9b89b43e2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRule.java @@ -53,7 +53,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceTaintRule implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleList.java index 356e1cbf40..e7930cab52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleList.java @@ -54,7 +54,7 @@ * DeviceTaintRuleList is a collection of DeviceTaintRules. */ @ApiModel(description = "DeviceTaintRuleList is a collection of DeviceTaintRules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceTaintRuleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpec.java index e7c14bac82..b42464d7c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpec.java @@ -52,7 +52,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceTaintRuleSpec { public static final String SERIALIZED_NAME_DEVICE_SELECTOR = "deviceSelector"; @SerializedName(SERIALIZED_NAME_DEVICE_SELECTOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatus.java index 529dbed37f..3b86333435 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatus.java @@ -53,7 +53,7 @@ * DeviceTaintRuleStatus provides information about an on-going pod eviction. */ @ApiModel(description = "DeviceTaintRuleStatus provides information about an on-going pod eviction.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceTaintRuleStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelector.java index dbc7af90bb..d22500195c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelector.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceTaintSelector { public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java index c4e5b05a35..48a389bed3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceToleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java index e5b8916739..8e0caba7ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta2CapacityRequirements; +import io.kubernetes.client.openapi.models.V1beta2DeviceDerivedAttribute; import io.kubernetes.client.openapi.models.V1beta2DeviceSelector; import io.kubernetes.client.openapi.models.V1beta2DeviceToleration; import io.swagger.annotations.ApiModel; @@ -55,7 +56,7 @@ * ExactDeviceRequest is a request for one or more identical devices. */ @ApiModel(description = "ExactDeviceRequest is a request for one or more identical devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ExactDeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -77,6 +78,11 @@ public class V1beta2ExactDeviceRequest { @jakarta.annotation.Nullable private Long count; + public static final String SERIALIZED_NAME_DERIVED_ATTRIBUTES = "derivedAttributes"; + @SerializedName(SERIALIZED_NAME_DERIVED_ATTRIBUTES) + @jakarta.annotation.Nullable + private List derivedAttributes = new ArrayList<>(); + public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) @jakarta.annotation.Nonnull @@ -175,6 +181,34 @@ public void setCount(@jakarta.annotation.Nullable Long count) { } + public V1beta2ExactDeviceRequest derivedAttributes(@jakarta.annotation.Nullable List derivedAttributes) { + this.derivedAttributes = derivedAttributes; + return this; + } + + public V1beta2ExactDeviceRequest addDerivedAttributesItem(V1beta2DeviceDerivedAttribute derivedAttributesItem) { + if (this.derivedAttributes == null) { + this.derivedAttributes = new ArrayList<>(); + } + this.derivedAttributes.add(derivedAttributesItem); + return this; + } + + /** + * DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. + * @return derivedAttributes + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") + public List getDerivedAttributes() { + return derivedAttributes; + } + + public void setDerivedAttributes(@jakarta.annotation.Nullable List derivedAttributes) { + this.derivedAttributes = derivedAttributes; + } + + public V1beta2ExactDeviceRequest deviceClassName(@jakarta.annotation.Nonnull String deviceClassName) { this.deviceClassName = deviceClassName; return this; @@ -265,6 +299,7 @@ public boolean equals(Object o) { Objects.equals(this.allocationMode, v1beta2ExactDeviceRequest.allocationMode) && Objects.equals(this.capacity, v1beta2ExactDeviceRequest.capacity) && Objects.equals(this.count, v1beta2ExactDeviceRequest.count) && + Objects.equals(this.derivedAttributes, v1beta2ExactDeviceRequest.derivedAttributes) && Objects.equals(this.deviceClassName, v1beta2ExactDeviceRequest.deviceClassName) && Objects.equals(this.selectors, v1beta2ExactDeviceRequest.selectors) && Objects.equals(this.tolerations, v1beta2ExactDeviceRequest.tolerations); @@ -272,7 +307,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, selectors, tolerations); + return Objects.hash(adminAccess, allocationMode, capacity, count, derivedAttributes, deviceClassName, selectors, tolerations); } @Override @@ -283,6 +318,7 @@ public String toString() { sb.append(" allocationMode: ").append(toIndentedString(allocationMode)).append("\n"); sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" derivedAttributes: ").append(toIndentedString(derivedAttributes)).append("\n"); sb.append(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); @@ -307,7 +343,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("adminAccess", "allocationMode", "capacity", "count", "deviceClassName", "selectors", "tolerations")); + openapiFields = new HashSet(Arrays.asList("adminAccess", "allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "selectors", "tolerations")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("deviceClassName")); @@ -348,6 +384,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { V1beta2CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); } + if (jsonObj.get("derivedAttributes") != null && !jsonObj.get("derivedAttributes").isJsonNull()) { + JsonArray jsonArrayderivedAttributes = jsonObj.getAsJsonArray("derivedAttributes"); + if (jsonArrayderivedAttributes != null) { + // ensure the json data is an array + if (!jsonObj.get("derivedAttributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `derivedAttributes` to be an array in the JSON string but got `%s`", jsonObj.get("derivedAttributes").toString())); + } + + // validate the optional field `derivedAttributes` (array) + for (int i = 0; i < jsonArrayderivedAttributes.size(); i++) { + V1beta2DeviceDerivedAttribute.validateJsonElement(jsonArrayderivedAttributes.get(i)); + }; + } + } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java index 7e1b210917..5343f4d2dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java @@ -52,7 +52,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2NetworkDeviceData { public static final String SERIALIZED_NAME_HARDWARE_ADDRESS = "hardwareAddress"; @SerializedName(SERIALIZED_NAME_HARDWARE_ADDRESS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMapping.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableMapping.java similarity index 52% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMapping.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableMapping.java index 832ed64464..8e2da0bd90 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMapping.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableMapping.java @@ -48,61 +48,86 @@ import io.kubernetes.client.openapi.JSON; /** - * NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. + * NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. */ -@ApiModel(description = "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1beta2NodeAllocatableResourceMapping { - public static final String SERIALIZED_NAME_ALLOCATION_MULTIPLIER = "allocationMultiplier"; - @SerializedName(SERIALIZED_NAME_ALLOCATION_MULTIPLIER) - @jakarta.annotation.Nullable - private Quantity allocationMultiplier; - +@ApiModel(description = "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta2NodeAllocatableMapping { public static final String SERIALIZED_NAME_CAPACITY_KEY = "capacityKey"; @SerializedName(SERIALIZED_NAME_CAPACITY_KEY) @jakarta.annotation.Nullable private String capacityKey; - public V1beta2NodeAllocatableResourceMapping() { + public static final String SERIALIZED_NAME_CAPACITY_MULTIPLIER = "capacityMultiplier"; + @SerializedName(SERIALIZED_NAME_CAPACITY_MULTIPLIER) + @jakarta.annotation.Nullable + private Quantity capacityMultiplier; + + public static final String SERIALIZED_NAME_DEVICE_MULTIPLIER = "deviceMultiplier"; + @SerializedName(SERIALIZED_NAME_DEVICE_MULTIPLIER) + @jakarta.annotation.Nullable + private Quantity deviceMultiplier; + + public V1beta2NodeAllocatableMapping() { + } + + public V1beta2NodeAllocatableMapping capacityKey(@jakarta.annotation.Nullable String capacityKey) { + this.capacityKey = capacityKey; + return this; + } + + /** + * CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. + * @return capacityKey + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.") + public String getCapacityKey() { + return capacityKey; + } + + public void setCapacityKey(@jakarta.annotation.Nullable String capacityKey) { + this.capacityKey = capacityKey; } - public V1beta2NodeAllocatableResourceMapping allocationMultiplier(@jakarta.annotation.Nullable Quantity allocationMultiplier) { - this.allocationMultiplier = allocationMultiplier; + + public V1beta2NodeAllocatableMapping capacityMultiplier(@jakarta.annotation.Nullable Quantity capacityMultiplier) { + this.capacityMultiplier = capacityMultiplier; 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 allocationMultiplier + * @return capacityMultiplier */ @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 getAllocationMultiplier() { - return allocationMultiplier; + public Quantity getCapacityMultiplier() { + return capacityMultiplier; } - public void setAllocationMultiplier(@jakarta.annotation.Nullable Quantity allocationMultiplier) { - this.allocationMultiplier = allocationMultiplier; + public void setCapacityMultiplier(@jakarta.annotation.Nullable Quantity capacityMultiplier) { + this.capacityMultiplier = capacityMultiplier; } - public V1beta2NodeAllocatableResourceMapping capacityKey(@jakarta.annotation.Nullable String capacityKey) { - this.capacityKey = capacityKey; + public V1beta2NodeAllocatableMapping deviceMultiplier(@jakarta.annotation.Nullable Quantity deviceMultiplier) { + this.deviceMultiplier = deviceMultiplier; return this; } /** - * CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\". - * @return capacityKey + * 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 deviceMultiplier */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\".") - public String getCapacityKey() { - return capacityKey; + @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 getDeviceMultiplier() { + return deviceMultiplier; } - public void setCapacityKey(@jakarta.annotation.Nullable String capacityKey) { - this.capacityKey = capacityKey; + public void setDeviceMultiplier(@jakarta.annotation.Nullable Quantity deviceMultiplier) { + this.deviceMultiplier = deviceMultiplier; } @@ -115,22 +140,24 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta2NodeAllocatableResourceMapping v1beta2NodeAllocatableResourceMapping = (V1beta2NodeAllocatableResourceMapping) o; - return Objects.equals(this.allocationMultiplier, v1beta2NodeAllocatableResourceMapping.allocationMultiplier) && - Objects.equals(this.capacityKey, v1beta2NodeAllocatableResourceMapping.capacityKey); + V1beta2NodeAllocatableMapping v1beta2NodeAllocatableMapping = (V1beta2NodeAllocatableMapping) o; + return Objects.equals(this.capacityKey, v1beta2NodeAllocatableMapping.capacityKey) && + Objects.equals(this.capacityMultiplier, v1beta2NodeAllocatableMapping.capacityMultiplier) && + Objects.equals(this.deviceMultiplier, v1beta2NodeAllocatableMapping.deviceMultiplier); } @Override public int hashCode() { - return Objects.hash(allocationMultiplier, capacityKey); + return Objects.hash(capacityKey, capacityMultiplier, deviceMultiplier); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta2NodeAllocatableResourceMapping {\n"); - sb.append(" allocationMultiplier: ").append(toIndentedString(allocationMultiplier)).append("\n"); + sb.append("class V1beta2NodeAllocatableMapping {\n"); sb.append(" capacityKey: ").append(toIndentedString(capacityKey)).append("\n"); + sb.append(" capacityMultiplier: ").append(toIndentedString(capacityMultiplier)).append("\n"); + sb.append(" deviceMultiplier: ").append(toIndentedString(deviceMultiplier)).append("\n"); sb.append("}"); return sb.toString(); } @@ -152,7 +179,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allocationMultiplier", "capacityKey")); + openapiFields = new HashSet(Arrays.asList("capacityKey", "capacityMultiplier", "deviceMultiplier")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -162,51 +189,54 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta2NodeAllocatableResourceMapping + * @throws IOException if the JSON Element is invalid with respect to V1beta2NodeAllocatableMapping */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta2NodeAllocatableResourceMapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta2NodeAllocatableResourceMapping is not found in the empty JSON string", V1beta2NodeAllocatableResourceMapping.openapiRequiredFields.toString())); + if (!V1beta2NodeAllocatableMapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta2NodeAllocatableMapping is not found in the empty JSON string", V1beta2NodeAllocatableMapping.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta2NodeAllocatableResourceMapping.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2NodeAllocatableResourceMapping` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1beta2NodeAllocatableMapping.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2NodeAllocatableMapping` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("allocationMultiplier") != null && !jsonObj.get("allocationMultiplier").isJsonNull()) && !jsonObj.get("allocationMultiplier").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `allocationMultiplier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMultiplier").toString())); - } if ((jsonObj.get("capacityKey") != null && !jsonObj.get("capacityKey").isJsonNull()) && !jsonObj.get("capacityKey").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `capacityKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("capacityKey").toString())); } + if ((jsonObj.get("capacityMultiplier") != null && !jsonObj.get("capacityMultiplier").isJsonNull()) && !jsonObj.get("capacityMultiplier").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `capacityMultiplier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("capacityMultiplier").toString())); + } + if ((jsonObj.get("deviceMultiplier") != null && !jsonObj.get("deviceMultiplier").isJsonNull()) && !jsonObj.get("deviceMultiplier").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `deviceMultiplier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceMultiplier").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta2NodeAllocatableResourceMapping.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta2NodeAllocatableResourceMapping' and its subtypes + if (!V1beta2NodeAllocatableMapping.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2NodeAllocatableMapping' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta2NodeAllocatableResourceMapping.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2NodeAllocatableMapping.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta2NodeAllocatableResourceMapping value) throws IOException { + public void write(JsonWriter out, V1beta2NodeAllocatableMapping value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta2NodeAllocatableResourceMapping read(JsonReader in) throws IOException { + public V1beta2NodeAllocatableMapping read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -217,18 +247,18 @@ public V1beta2NodeAllocatableResourceMapping read(JsonReader in) throws IOExcept } /** - * Create an instance of V1beta2NodeAllocatableResourceMapping given an JSON string + * Create an instance of V1beta2NodeAllocatableMapping given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta2NodeAllocatableResourceMapping - * @throws IOException if the JSON string is invalid with respect to V1beta2NodeAllocatableResourceMapping + * @return An instance of V1beta2NodeAllocatableMapping + * @throws IOException if the JSON string is invalid with respect to V1beta2NodeAllocatableMapping */ - public static V1beta2NodeAllocatableResourceMapping fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta2NodeAllocatableResourceMapping.class); + public static V1beta2NodeAllocatableMapping fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2NodeAllocatableMapping.class); } /** - * Convert an instance of V1beta2NodeAllocatableResourceMapping to an JSON string + * Convert an instance of V1beta2NodeAllocatableMapping to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableOverhead.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableOverhead.java new file mode 100644 index 0000000000..24cfc068c0 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableOverhead.java @@ -0,0 +1,238 @@ +/* +Copyright 2026 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; + +/** + * NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + */ +@ApiModel(description = "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta2NodeAllocatableOverhead { + public static final String SERIALIZED_NAME_PER_CONTAINER = "perContainer"; + @SerializedName(SERIALIZED_NAME_PER_CONTAINER) + @jakarta.annotation.Nullable + private Quantity perContainer; + + public static final String SERIALIZED_NAME_PER_POD = "perPod"; + @SerializedName(SERIALIZED_NAME_PER_POD) + @jakarta.annotation.Nullable + private Quantity perPod; + + public V1beta2NodeAllocatableOverhead() { + } + + public V1beta2NodeAllocatableOverhead perContainer(@jakarta.annotation.Nullable Quantity perContainer) { + this.perContainer = perContainer; + 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 perContainer + */ + @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 getPerContainer() { + return perContainer; + } + + public void setPerContainer(@jakarta.annotation.Nullable Quantity perContainer) { + this.perContainer = perContainer; + } + + + public V1beta2NodeAllocatableOverhead perPod(@jakarta.annotation.Nullable Quantity perPod) { + this.perPod = perPod; + 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 perPod + */ + @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 getPerPod() { + return perPod; + } + + public void setPerPod(@jakarta.annotation.Nullable Quantity perPod) { + this.perPod = perPod; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta2NodeAllocatableOverhead v1beta2NodeAllocatableOverhead = (V1beta2NodeAllocatableOverhead) o; + return Objects.equals(this.perContainer, v1beta2NodeAllocatableOverhead.perContainer) && + Objects.equals(this.perPod, v1beta2NodeAllocatableOverhead.perPod); + } + + @Override + public int hashCode() { + return Objects.hash(perContainer, perPod); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta2NodeAllocatableOverhead {\n"); + sb.append(" perContainer: ").append(toIndentedString(perContainer)).append("\n"); + sb.append(" perPod: ").append(toIndentedString(perPod)).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(Arrays.asList("perContainer", "perPod")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta2NodeAllocatableOverhead + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta2NodeAllocatableOverhead.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta2NodeAllocatableOverhead is not found in the empty JSON string", V1beta2NodeAllocatableOverhead.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta2NodeAllocatableOverhead.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2NodeAllocatableOverhead` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("perContainer") != null && !jsonObj.get("perContainer").isJsonNull()) && !jsonObj.get("perContainer").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `perContainer` to be a primitive type in the JSON string but got `%s`", jsonObj.get("perContainer").toString())); + } + if ((jsonObj.get("perPod") != null && !jsonObj.get("perPod").isJsonNull()) && !jsonObj.get("perPod").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `perPod` to be a primitive type in the JSON string but got `%s`", jsonObj.get("perPod").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2NodeAllocatableOverhead.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2NodeAllocatableOverhead' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2NodeAllocatableOverhead.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2NodeAllocatableOverhead value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2NodeAllocatableOverhead read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2NodeAllocatableOverhead given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2NodeAllocatableOverhead + * @throws IOException if the JSON string is invalid with respect to V1beta2NodeAllocatableOverhead + */ + public static V1beta2NodeAllocatableOverhead fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2NodeAllocatableOverhead.class); + } + + /** + * Convert an instance of V1beta2NodeAllocatableOverhead to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResource.java new file mode 100644 index 0000000000..e6cf725c8a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResource.java @@ -0,0 +1,241 @@ +/* +Copyright 2026 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.V1beta2NodeAllocatableMapping; +import io.kubernetes.client.openapi.models.V1beta2NodeAllocatableOverhead; +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; + +/** + * NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + */ +@ApiModel(description = "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta2NodeAllocatableResource { + public static final String SERIALIZED_NAME_MAPPING = "mapping"; + @SerializedName(SERIALIZED_NAME_MAPPING) + @jakarta.annotation.Nullable + private V1beta2NodeAllocatableMapping mapping; + + public static final String SERIALIZED_NAME_OVERHEAD = "overhead"; + @SerializedName(SERIALIZED_NAME_OVERHEAD) + @jakarta.annotation.Nullable + private V1beta2NodeAllocatableOverhead overhead; + + public V1beta2NodeAllocatableResource() { + } + + public V1beta2NodeAllocatableResource mapping(@jakarta.annotation.Nullable V1beta2NodeAllocatableMapping mapping) { + this.mapping = mapping; + return this; + } + + /** + * Get mapping + * @return mapping + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2NodeAllocatableMapping getMapping() { + return mapping; + } + + public void setMapping(@jakarta.annotation.Nullable V1beta2NodeAllocatableMapping mapping) { + this.mapping = mapping; + } + + + public V1beta2NodeAllocatableResource overhead(@jakarta.annotation.Nullable V1beta2NodeAllocatableOverhead overhead) { + this.overhead = overhead; + return this; + } + + /** + * Get overhead + * @return overhead + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2NodeAllocatableOverhead getOverhead() { + return overhead; + } + + public void setOverhead(@jakarta.annotation.Nullable V1beta2NodeAllocatableOverhead overhead) { + this.overhead = overhead; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta2NodeAllocatableResource v1beta2NodeAllocatableResource = (V1beta2NodeAllocatableResource) o; + return Objects.equals(this.mapping, v1beta2NodeAllocatableResource.mapping) && + Objects.equals(this.overhead, v1beta2NodeAllocatableResource.overhead); + } + + @Override + public int hashCode() { + return Objects.hash(mapping, overhead); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta2NodeAllocatableResource {\n"); + sb.append(" mapping: ").append(toIndentedString(mapping)).append("\n"); + sb.append(" overhead: ").append(toIndentedString(overhead)).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(Arrays.asList("mapping", "overhead")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta2NodeAllocatableResource + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta2NodeAllocatableResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta2NodeAllocatableResource is not found in the empty JSON string", V1beta2NodeAllocatableResource.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta2NodeAllocatableResource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2NodeAllocatableResource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `mapping` + if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { + V1beta2NodeAllocatableMapping.validateJsonElement(jsonObj.get("mapping")); + } + // validate the optional field `overhead` + if (jsonObj.get("overhead") != null && !jsonObj.get("overhead").isJsonNull()) { + V1beta2NodeAllocatableOverhead.validateJsonElement(jsonObj.get("overhead")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2NodeAllocatableResource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2NodeAllocatableResource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2NodeAllocatableResource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2NodeAllocatableResource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2NodeAllocatableResource read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2NodeAllocatableResource given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2NodeAllocatableResource + * @throws IOException if the JSON string is invalid with respect to V1beta2NodeAllocatableResource + */ + public static V1beta2NodeAllocatableResource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2NodeAllocatableResource.class); + } + + /** + * Convert an instance of V1beta2NodeAllocatableResource to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java index cbd85f9e7a..fca9015e36 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java @@ -50,7 +50,7 @@ * OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. */ @ApiModel(description = "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2OpaqueDeviceConfiguration { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java index ff3eb35344..6b4e3d521f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java @@ -53,7 +53,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -72,7 +72,7 @@ public class V1beta2ResourceClaim implements io.kubernetes.client.common.Kuberne public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1beta2ResourceClaimSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta2ResourceClaim spec(@jakarta.annotation.Nonnull V1beta2ResourceClaimSpec spec) { + public V1beta2ResourceClaim spec(@jakarta.annotation.Nullable V1beta2ResourceClaimSpec spec) { this.spec = spec; return this; } @@ -152,13 +152,13 @@ public V1beta2ResourceClaim spec(@jakarta.annotation.Nonnull V1beta2ResourceClai * Get spec * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta2ResourceClaimSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1beta2ResourceClaimSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1beta2ResourceClaimSpec spec) { this.spec = spec; } @@ -238,7 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec")); + openapiRequiredFields = new HashSet(0); } /** @@ -261,13 +261,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta2ResourceClaim.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -279,8 +272,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the required field `spec` - V1beta2ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1beta2ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { V1beta2ResourceClaimStatus.validateJsonElement(jsonObj.get("status")); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java index 3526c85912..0f1376e788 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java @@ -50,7 +50,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimConsumerReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java index 333379f5d9..6a07b84352 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java @@ -54,7 +54,7 @@ * ResourceClaimList is a collection of claims. */ @ApiModel(description = "ResourceClaimList is a collection of claims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java index 943f123268..4a66cb224c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java @@ -51,7 +51,7 @@ * ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. */ @ApiModel(description = "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimSpec { public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java index 951879cdeb..2502dc1471 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java @@ -55,7 +55,7 @@ * ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. */ @ApiModel(description = "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimStatus { public static final String SERIALIZED_NAME_ALLOCATION = "allocation"; @SerializedName(SERIALIZED_NAME_ALLOCATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java index 422b76c974..31d8895408 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java @@ -52,7 +52,7 @@ * ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,7 +71,7 @@ public class V1beta2ResourceClaimTemplate implements io.kubernetes.client.common public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1beta2ResourceClaimTemplateSpec spec; public V1beta2ResourceClaimTemplate() { @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta2ResourceClaimTemplate spec(@jakarta.annotation.Nonnull V1beta2ResourceClaimTemplateSpec spec) { + public V1beta2ResourceClaimTemplate spec(@jakarta.annotation.Nullable V1beta2ResourceClaimTemplateSpec spec) { this.spec = spec; return this; } @@ -146,13 +146,13 @@ public V1beta2ResourceClaimTemplate spec(@jakarta.annotation.Nonnull V1beta2Reso * Get spec * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta2ResourceClaimTemplateSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1beta2ResourceClaimTemplateSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1beta2ResourceClaimTemplateSpec spec) { this.spec = spec; } @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec")); + openapiRequiredFields = new HashSet(0); } /** @@ -233,13 +233,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta2ResourceClaimTemplate.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "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(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -251,8 +244,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the required field `spec` - V1beta2ResourceClaimTemplateSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1beta2ResourceClaimTemplateSpec.validateJsonElement(jsonObj.get("spec")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java index d53a9b063c..78bdba59b6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java @@ -54,7 +54,7 @@ * ResourceClaimTemplateList is a collection of claim templates. */ @ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java index 51ad24792d..c2720ba086 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java @@ -52,7 +52,7 @@ * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ @ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @@ -61,7 +61,7 @@ public class V1beta2ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1beta2ResourceClaimSpec spec; public V1beta2ResourceClaimTemplateSpec() { @@ -87,7 +87,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta2ResourceClaimTemplateSpec spec(@jakarta.annotation.Nonnull V1beta2ResourceClaimSpec spec) { + public V1beta2ResourceClaimTemplateSpec spec(@jakarta.annotation.Nullable V1beta2ResourceClaimSpec spec) { this.spec = spec; return this; } @@ -96,13 +96,13 @@ public V1beta2ResourceClaimTemplateSpec spec(@jakarta.annotation.Nonnull V1beta2 * Get spec * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta2ResourceClaimSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1beta2ResourceClaimSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1beta2ResourceClaimSpec spec) { this.spec = spec; } @@ -156,7 +156,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec")); + openapiRequiredFields = new HashSet(0); } /** @@ -179,20 +179,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimTemplateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta2ResourceClaimTemplateSpec.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `metadata` if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the required field `spec` - V1beta2ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1beta2ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java index bb7accb1f9..07ffe3edb6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java @@ -50,7 +50,7 @@ * ResourcePool describes the pool that ResourceSlices belong to. */ @ApiModel(description = "ResourcePool describes the pool that ResourceSlices belong to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) @@ -96,11 +96,11 @@ public V1beta2ResourcePool name(@jakarta.annotation.Nonnull String name) { } /** - * 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. + * Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "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.") + @ApiModelProperty(required = true, value = "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java index 7acf41edd2..1b614676a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java @@ -52,7 +52,7 @@ * 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 <driver name>, <pool name>, <device name>. 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java index a635e5b0da..afc622215c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java @@ -54,7 +54,7 @@ * ResourceSliceList is a collection of ResourceSlices. */ @ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java index bc478f2be1..27eea160f4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java @@ -56,7 +56,7 @@ * ResourceSliceSpec contains the information published by the driver in one ResourceSlice. */ @ApiModel(description = "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -83,6 +83,11 @@ public class V1beta2ResourceSliceSpec { @jakarta.annotation.Nullable private V1NodeSelector nodeSelector; + public static final String SERIALIZED_NAME_PARTITION_TYPE_ATTRIBUTE = "partitionTypeAttribute"; + @SerializedName(SERIALIZED_NAME_PARTITION_TYPE_ATTRIBUTE) + @jakarta.annotation.Nullable + private String partitionTypeAttribute; + public static final String SERIALIZED_NAME_PER_DEVICE_NODE_SELECTION = "perDeviceNodeSelection"; @SerializedName(SERIALIZED_NAME_PER_DEVICE_NODE_SELECTION) @jakarta.annotation.Nullable @@ -98,6 +103,11 @@ public class V1beta2ResourceSliceSpec { @jakarta.annotation.Nullable private List sharedCounters = new ArrayList<>(); + public static final String SERIALIZED_NAME_SKIP_NODE_OPERATIONS = "skipNodeOperations"; + @SerializedName(SERIALIZED_NAME_SKIP_NODE_OPERATIONS) + @jakarta.annotation.Nullable + private List skipNodeOperations = new ArrayList<>(); + public V1beta2ResourceSliceSpec() { } @@ -209,6 +219,26 @@ public void setNodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSele } + public V1beta2ResourceSliceSpec partitionTypeAttribute(@jakarta.annotation.Nullable String partitionTypeAttribute) { + this.partitionTypeAttribute = partitionTypeAttribute; + return this; + } + + /** + * PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost. + * @return partitionTypeAttribute + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.") + public String getPartitionTypeAttribute() { + return partitionTypeAttribute; + } + + public void setPartitionTypeAttribute(@jakarta.annotation.Nullable String partitionTypeAttribute) { + this.partitionTypeAttribute = partitionTypeAttribute; + } + + public V1beta2ResourceSliceSpec perDeviceNodeSelection(@jakarta.annotation.Nullable Boolean perDeviceNodeSelection) { this.perDeviceNodeSelection = perDeviceNodeSelection; return this; @@ -277,6 +307,34 @@ public void setSharedCounters(@jakarta.annotation.Nullable List skipNodeOperations) { + this.skipNodeOperations = skipNodeOperations; + return this; + } + + public V1beta2ResourceSliceSpec addSkipNodeOperationsItem(String skipNodeOperationsItem) { + if (this.skipNodeOperations == null) { + this.skipNodeOperations = new ArrayList<>(); + } + this.skipNodeOperations.add(skipNodeOperationsItem); + return this; + } + + /** + * SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values. + * @return skipNodeOperations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values.") + public List getSkipNodeOperations() { + return skipNodeOperations; + } + + public void setSkipNodeOperations(@jakarta.annotation.Nullable List skipNodeOperations) { + this.skipNodeOperations = skipNodeOperations; + } + + @Override public boolean equals(Object o) { @@ -292,14 +350,16 @@ public boolean equals(Object o) { Objects.equals(this.driver, v1beta2ResourceSliceSpec.driver) && Objects.equals(this.nodeName, v1beta2ResourceSliceSpec.nodeName) && Objects.equals(this.nodeSelector, v1beta2ResourceSliceSpec.nodeSelector) && + Objects.equals(this.partitionTypeAttribute, v1beta2ResourceSliceSpec.partitionTypeAttribute) && Objects.equals(this.perDeviceNodeSelection, v1beta2ResourceSliceSpec.perDeviceNodeSelection) && Objects.equals(this.pool, v1beta2ResourceSliceSpec.pool) && - Objects.equals(this.sharedCounters, v1beta2ResourceSliceSpec.sharedCounters); + Objects.equals(this.sharedCounters, v1beta2ResourceSliceSpec.sharedCounters) && + Objects.equals(this.skipNodeOperations, v1beta2ResourceSliceSpec.skipNodeOperations); } @Override public int hashCode() { - return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); + return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, partitionTypeAttribute, perDeviceNodeSelection, pool, sharedCounters, skipNodeOperations); } @Override @@ -311,9 +371,11 @@ public String toString() { sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); + sb.append(" partitionTypeAttribute: ").append(toIndentedString(partitionTypeAttribute)).append("\n"); sb.append(" perDeviceNodeSelection: ").append(toIndentedString(perDeviceNodeSelection)).append("\n"); sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); sb.append(" sharedCounters: ").append(toIndentedString(sharedCounters)).append("\n"); + sb.append(" skipNodeOperations: ").append(toIndentedString(skipNodeOperations)).append("\n"); sb.append("}"); return sb.toString(); } @@ -335,7 +397,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allNodes", "devices", "driver", "nodeName", "nodeSelector", "perDeviceNodeSelection", "pool", "sharedCounters")); + openapiFields = new HashSet(Arrays.asList("allNodes", "devices", "driver", "nodeName", "nodeSelector", "partitionTypeAttribute", "perDeviceNodeSelection", "pool", "sharedCounters", "skipNodeOperations")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("driver", "pool")); @@ -393,6 +455,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { V1NodeSelector.validateJsonElement(jsonObj.get("nodeSelector")); } + if ((jsonObj.get("partitionTypeAttribute") != null && !jsonObj.get("partitionTypeAttribute").isJsonNull()) && !jsonObj.get("partitionTypeAttribute").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `partitionTypeAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("partitionTypeAttribute").toString())); + } // validate the required field `pool` V1beta2ResourcePool.validateJsonElement(jsonObj.get("pool")); if (jsonObj.get("sharedCounters") != null && !jsonObj.get("sharedCounters").isJsonNull()) { @@ -409,6 +474,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + // ensure the optional json data is an array if present + if (jsonObj.get("skipNodeOperations") != null && !jsonObj.get("skipNodeOperations").isJsonNull() && !jsonObj.get("skipNodeOperations").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `skipNodeOperations` to be an array in the JSON string but got `%s`", jsonObj.get("skipNodeOperations").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscovery.java index 3f71e45c17..0da92c7c2d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscovery.java @@ -54,7 +54,7 @@ * APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry. */ @ApiModel(description = "APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2APIGroupDiscovery implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryList.java index f9abc9ecd7..002bc0d4b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryList.java @@ -54,7 +54,7 @@ * APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports. */ @ApiModel(description = "APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2APIGroupDiscoveryList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscovery.java index 372233313a..e96906041f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscovery.java @@ -54,7 +54,7 @@ * APIResourceDiscovery provides information about an API resource for discovery. */ @ApiModel(description = "APIResourceDiscovery provides information about an API resource for discovery.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2APIResourceDiscovery { public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscovery.java index b051b83022..68dd5259ab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscovery.java @@ -53,7 +53,7 @@ * APISubresourceDiscovery provides information about an API subresource for discovery. */ @ApiModel(description = "APISubresourceDiscovery provides information about an API subresource for discovery.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2APISubresourceDiscovery { public static final String SERIALIZED_NAME_SUBRESOURCE = "subresource"; @SerializedName(SERIALIZED_NAME_SUBRESOURCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscovery.java index 0f6f0ebe46..85657baf2d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscovery.java @@ -53,7 +53,7 @@ * APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group. */ @ApiModel(description = "APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2APIVersionDiscovery { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java index f7abf556e5..4b6cb18a00 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java @@ -51,7 +51,7 @@ * ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. */ @ApiModel(description = "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ContainerResourceMetricSource { public static final String SERIALIZED_NAME_CONTAINER = "container"; @SerializedName(SERIALIZED_NAME_CONTAINER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java index 670f741ce2..5a2c7b3009 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java @@ -51,7 +51,7 @@ * ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. */ @ApiModel(description = "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ContainerResourceMetricStatus { public static final String SERIALIZED_NAME_CONTAINER = "container"; @SerializedName(SERIALIZED_NAME_CONTAINER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java index 30c07975f9..ef9b3e2510 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java @@ -50,7 +50,7 @@ * 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 = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java index fbc6087c3c..5d6a3d3518 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java @@ -52,7 +52,7 @@ * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). */ @ApiModel(description = "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ExternalMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; @SerializedName(SERIALIZED_NAME_METRIC) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java index 133f490c07..1451823aac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java @@ -52,7 +52,7 @@ * ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. */ @ApiModel(description = "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ExternalMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java index 5f9e5e2f5e..51f0e628ec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java @@ -50,7 +50,7 @@ * HPAScalingPolicy is a single policy which must hold true for a specified past interval. */ @ApiModel(description = "HPAScalingPolicy is a single policy which must hold true for a specified past interval.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HPAScalingPolicy { public static final String SERIALIZED_NAME_PERIOD_SECONDS = "periodSeconds"; @SerializedName(SERIALIZED_NAME_PERIOD_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java index 7e3f407ced..2cd35225c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java @@ -51,10 +51,10 @@ import io.kubernetes.client.openapi.JSON; /** - * 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 the beta HPAConfigurableTolerance feature gate to be enabled.) + * 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. */ -@ApiModel(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 the beta HPAConfigurableTolerance feature gate to be enabled.)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@ApiModel(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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HPAScalingRules { public static final String SERIALIZED_NAME_POLICIES = "policies"; @SerializedName(SERIALIZED_NAME_POLICIES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java index 9c4eed3bf7..a99807aeb5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java @@ -53,7 +53,7 @@ * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. */ @ApiModel(description = "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java index a7b7ae721c..daa62a2e33 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java @@ -51,7 +51,7 @@ * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). */ @ApiModel(description = "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HorizontalPodAutoscalerBehavior { public static final String SERIALIZED_NAME_SCALE_DOWN = "scaleDown"; @SerializedName(SERIALIZED_NAME_SCALE_DOWN) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java index d0ce018c16..dad2409de1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java @@ -51,7 +51,7 @@ * HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. */ @ApiModel(description = "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HorizontalPodAutoscalerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -63,6 +63,11 @@ public class V2HorizontalPodAutoscalerCondition { @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 @@ -121,6 +126,26 @@ public void setMessage(@jakarta.annotation.Nullable String message) { } + public V2HorizontalPodAutoscalerCondition 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(@jakarta.annotation.Nullable Long observedGeneration) { + this.observedGeneration = observedGeneration; + } + + public V2HorizontalPodAutoscalerCondition reason(@jakarta.annotation.Nullable String reason) { this.reason = reason; return this; @@ -193,6 +218,7 @@ public boolean equals(Object o) { V2HorizontalPodAutoscalerCondition v2HorizontalPodAutoscalerCondition = (V2HorizontalPodAutoscalerCondition) o; return Objects.equals(this.lastTransitionTime, v2HorizontalPodAutoscalerCondition.lastTransitionTime) && Objects.equals(this.message, v2HorizontalPodAutoscalerCondition.message) && + Objects.equals(this.observedGeneration, v2HorizontalPodAutoscalerCondition.observedGeneration) && Objects.equals(this.reason, v2HorizontalPodAutoscalerCondition.reason) && Objects.equals(this.status, v2HorizontalPodAutoscalerCondition.status) && Objects.equals(this.type, v2HorizontalPodAutoscalerCondition.type); @@ -200,7 +226,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); } @Override @@ -209,6 +235,7 @@ public String toString() { sb.append("class V2HorizontalPodAutoscalerCondition {\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"); @@ -233,7 +260,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "observedGeneration", "reason", "status", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java index 5db1ced9d4..1539b68e8b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java @@ -54,7 +54,7 @@ * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. */ @ApiModel(description = "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java index 8a4ff05b10..d33df4c7cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java @@ -55,7 +55,7 @@ * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. */ @ApiModel(description = "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_BEHAVIOR = "behavior"; @SerializedName(SERIALIZED_NAME_BEHAVIOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java index d352536f3f..d00803481a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java @@ -55,7 +55,7 @@ * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. */ @ApiModel(description = "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java index c494f2ade5..71cfad7443 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java @@ -51,7 +51,7 @@ * MetricIdentifier defines the name and optionally selector for a metric */ @ApiModel(description = "MetricIdentifier defines the name and optionally selector for a metric") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2MetricIdentifier { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java index 94161306a5..fa93bae2a3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java @@ -55,7 +55,7 @@ * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). */ @ApiModel(description = "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2MetricSpec { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; @SerializedName(SERIALIZED_NAME_CONTAINER_RESOURCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java index 23a38ba2d6..a84f931005 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java @@ -55,7 +55,7 @@ * MetricStatus describes the last-read state of a single metric. */ @ApiModel(description = "MetricStatus describes the last-read state of a single metric.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2MetricStatus { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; @SerializedName(SERIALIZED_NAME_CONTAINER_RESOURCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java index 9a7046f8c2..0c052ac3cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java @@ -51,7 +51,7 @@ * MetricTarget defines the target value, average value, or average utilization of a specific metric */ @ApiModel(description = "MetricTarget defines the target value, average value, or average utilization of a specific metric") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2MetricTarget { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; @SerializedName(SERIALIZED_NAME_AVERAGE_UTILIZATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java index 6a9eda7e60..ef41aaabc3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java @@ -51,7 +51,7 @@ * MetricValueStatus holds the current value for a metric */ @ApiModel(description = "MetricValueStatus holds the current value for a metric") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2MetricValueStatus { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; @SerializedName(SERIALIZED_NAME_AVERAGE_UTILIZATION) @@ -77,11 +77,11 @@ public V2MetricValueStatus averageUtilization(@jakarta.annotation.Nullable Integ } /** - * currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + * averageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. * @return averageUtilization */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.") + @ApiModelProperty(value = "averageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.") public Integer getAverageUtilization() { return averageUtilization; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java index 44156c4d7f..e92c4a1a06 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java @@ -53,7 +53,7 @@ * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ @ApiModel(description = "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ObjectMetricSource { public static final String SERIALIZED_NAME_DESCRIBED_OBJECT = "describedObject"; @SerializedName(SERIALIZED_NAME_DESCRIBED_OBJECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java index 20afd2fafe..8fb2b4f25d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java @@ -53,7 +53,7 @@ * ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ @ApiModel(description = "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ObjectMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java index 35c689627f..618fca29c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java @@ -52,7 +52,7 @@ * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. */ @ApiModel(description = "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2PodsMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; @SerializedName(SERIALIZED_NAME_METRIC) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java index 3c7a0901a5..049a3d955e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java @@ -52,7 +52,7 @@ * PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). */ @ApiModel(description = "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2PodsMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java index 3a267b3d7a..e96757e33d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java @@ -51,7 +51,7 @@ * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. */ @ApiModel(description = "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ResourceMetricSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java index bfbe9a7ca9..11242175fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java @@ -51,7 +51,7 @@ * ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. */ @ApiModel(description = "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ResourceMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscovery.java index c2b7dae6c6..06a1d7cdb9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscovery.java @@ -54,7 +54,7 @@ * APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry. */ @ApiModel(description = "APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2beta1APIGroupDiscovery implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryList.java index cbd9cfce4b..065fe9f1e9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryList.java @@ -54,7 +54,7 @@ * APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports. */ @ApiModel(description = "APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2beta1APIGroupDiscoveryList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscovery.java index e2d7a0b3b2..14109202f8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscovery.java @@ -54,7 +54,7 @@ * APIResourceDiscovery provides information about an API resource for discovery. */ @ApiModel(description = "APIResourceDiscovery provides information about an API resource for discovery.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2beta1APIResourceDiscovery { public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscovery.java index 1568282101..1aa29df320 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscovery.java @@ -53,7 +53,7 @@ * APISubresourceDiscovery provides information about an API subresource for discovery. */ @ApiModel(description = "APISubresourceDiscovery provides information about an API subresource for discovery.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2beta1APISubresourceDiscovery { public static final String SERIALIZED_NAME_SUBRESOURCE = "subresource"; @SerializedName(SERIALIZED_NAME_SUBRESOURCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscovery.java index dd688cd14c..5230024814 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscovery.java @@ -53,7 +53,7 @@ * APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group. */ @ApiModel(description = "APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2beta1APIVersionDiscovery { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java index 56c368b792..34562e7c0d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java @@ -50,7 +50,7 @@ * Info contains versioning information. how we'll want to distribute that information. */ @ApiModel(description = "Info contains versioning information. how we'll want to distribute that information.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-10-15T02:48:00.835726Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class VersionInfo { public static final String SERIALIZED_NAME_BUILD_DATE = "buildDate"; @SerializedName(SERIALIZED_NAME_BUILD_DATE) diff --git a/kubernetes/swagger.json b/kubernetes/swagger.json index c39e9d892f..28b4967599 100644 --- a/kubernetes/swagger.json +++ b/kubernetes/swagger.json @@ -2175,7 +2175,7 @@ } }, "required": [ - "revision" + "data" ], "type": "object", "x-kubernetes-group-version-kind": [ @@ -2251,6 +2251,9 @@ "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -2288,10 +2291,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "v1.DaemonSetList": { @@ -2472,6 +2471,9 @@ "description": "Most recently observed status of the Deployment." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -2514,10 +2516,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "v1.DeploymentList": { @@ -2702,6 +2700,9 @@ "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -2739,10 +2740,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "v1.ReplicaSetList": { @@ -2929,6 +2926,9 @@ "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -2966,10 +2966,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "v1.StatefulSetList": { @@ -3183,7 +3179,7 @@ "type": "string" }, "kind": { - "description": "kind of the referent. Valid kinds are 'Pod' and 'Secret'.", + "description": "kind of the referent. Valid kinds are 'Pod', 'Secret', 'Node', 'ValidatingWebhookConfiguration', and 'MutatingWebhookConfiguration'.", "type": "string" }, "name": { @@ -3278,6 +3274,16 @@ "v1.TokenRequestSpec": { "description": "TokenRequestSpec contains client provided parameters of a token request.", "properties": { + "attestations": { + "additionalProperties": { + "items": { + "type": "string" + }, + "type": "array" + }, + "description": "attestations is a map of well-known keys to string-slice values. The values for each key have a specific semantic meaning, which is documented on the key definition. Requesters of tokens may ask the Kubernetes API Server to attest to certain claims. The API Server may perform authorization checks depending on the key of this map.", + "type": "object" + }, "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": { @@ -3905,7 +3911,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/v1.HorizontalPodAutoscalerSpec", @@ -3984,7 +3990,7 @@ }, "scaleTargetRef": { "$ref": "#/definitions/v1.CrossVersionObjectReference", - "description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource." + "description": "scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource." }, "targetCPUUtilizationPercentage": { "description": "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.", @@ -4046,7 +4052,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "spec": { "$ref": "#/definitions/v1.ScaleSpec", @@ -4228,7 +4234,7 @@ "type": "object" }, "v2.HPAScalingRules": { - "description": "HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.\n\nScaling 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.\n\nThe tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires the beta HPAConfigurableTolerance feature gate to be enabled.)", + "description": "HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.\n\nScaling 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.\n\nThe tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations.", "properties": { "policies": { "description": "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.", @@ -4249,7 +4255,7 @@ }, "tolerance": { "$ref": "#/definitions/resource.Quantity", - "description": "tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).\n\nFor example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.\n\nThis is an beta field and requires the HPAConfigurableTolerance feature gate to be enabled." + "description": "tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).\n\nFor example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi." } }, "type": "object" @@ -4319,6 +4325,11 @@ "description": "message is a human-readable explanation containing details about the transition", "type": "string" }, + "observedGeneration": { + "description": "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.", + "format": "int64", + "type": "integer" + }, "reason": { "description": "reason is the reason for the condition's last transition.", "type": "string" @@ -4517,7 +4528,7 @@ "properties": { "containerResource": { "$ref": "#/definitions/v2.ContainerResourceMetricStatus", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + "description": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." }, "external": { "$ref": "#/definitions/v2.ExternalMetricStatus", @@ -4575,7 +4586,7 @@ "description": "MetricValueStatus holds the current value for a metric", "properties": { "averageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", + "description": "averageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", "format": "int32", "type": "integer" }, @@ -4622,7 +4633,7 @@ }, "describedObject": { "$ref": "#/definitions/v2.CrossVersionObjectReference", - "description": "DescribedObject specifies the descriptions of a object,such as kind,name apiVersion" + "description": "describedObject specifies the descriptions of a object,such as kind,name apiVersion" }, "metric": { "$ref": "#/definitions/v2.MetricIdentifier", @@ -4964,6 +4975,37 @@ "io.kubernetes.client.common.KubernetesListObject" ] }, + "v1.JobSchedulingConfiguration": { + "description": "JobSchedulingConfiguration composes the reusable workload-aware scheduling building blocks.", + "properties": { + "disruptionMode": { + "$ref": "#/definitions/v1alpha3.WorkloadPodGroupDisruptionMode", + "description": "DisruptionMode defines the mode in which the Job's pods can be disrupted. One of Single, All. This field is immutable after creation: it may not be added or removed, and the selected mode may not be changed." + }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims may be shared among Pods in the Job. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. At most 4 claims may be set, matching the limit on the resulting PodGroup. This list is immutable after creation: entries may neither be added, removed, nor modified.", + "items": { + "$ref": "#/definitions/v1alpha3.WorkloadPodGroupResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "schedulingConstraints": { + "$ref": "#/definitions/v1alpha3.WorkloadPodGroupSchedulingConstraints", + "description": "SchedulingConstraints defines scheduling constraints (e.g. topology) for the Job's pods. This field is immutable after creation." + }, + "schedulingPolicy": { + "$ref": "#/definitions/v1alpha3.WorkloadPodGroupSchedulingPolicy", + "description": "SchedulingPolicy defines the scheduling policy for this Job. Exactly one of Basic or Gang must be set. This field is immutable after creation: the policy may not be added or removed. The policy variant (basic/gang) is frozen by hand-written validation; only schedulingPolicy.gang.minCount may be changed." + } + }, + "type": "object" + }, "v1.JobSpec": { "description": "JobSpec describes how the job execution will look like.", "properties": { @@ -5017,6 +5059,10 @@ "description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use.", "type": "string" }, + "scheduling": { + "$ref": "#/definitions/v1.JobSchedulingConfiguration", + "description": "scheduling defines the Workload-aware Scheduling configuration for this Job. When set, it specifies the scheduling policy (basic or gang), topology constraints, disruption mode, and shared resource claims. When omitted, the Job defaults to the basic scheduling policy, which behaves as standard pod-by-pod scheduling. This field is alpha-level and requires the WorkloadWithJob feature gate. This field is immutable, including whether it is set at all, only policy.gang.minCount may be changed after creation." + }, "selector": { "$ref": "#/definitions/v1.LabelSelector", "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" @@ -5096,7 +5142,7 @@ "type": "integer" }, "terminating": { - "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).", + "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).", "format": "int32", "type": "integer" }, @@ -5452,8 +5498,8 @@ }, "type": "object" }, - "v1alpha1.ClusterTrustBundle": { - "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt 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.", + "v1.ClusterTrustBundle": { + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt can be optionally associated with a particular signer, 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": { "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", @@ -5468,7 +5514,7 @@ "description": "metadata contains the object metadata." }, "spec": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundleSpec", + "$ref": "#/definitions/v1.ClusterTrustBundleSpec", "description": "spec contains the signer (if any) and trust anchors." } }, @@ -5480,14 +5526,14 @@ { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1alpha1.ClusterTrustBundleList": { + "v1.ClusterTrustBundleList": { "description": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", "properties": { "apiVersion": { @@ -5497,7 +5543,7 @@ "items": { "description": "items is a collection of ClusterTrustBundle objects", "items": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" }, "type": "array" }, @@ -5518,14 +5564,14 @@ { "group": "certificates.k8s.io", "kind": "ClusterTrustBundleList", - "version": "v1alpha1" + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1alpha1.ClusterTrustBundleSpec": { + "v1.ClusterTrustBundleSpec": { "description": "ClusterTrustBundleSpec contains the signer and trust anchors.", "properties": { "signerName": { @@ -5542,8 +5588,184 @@ ], "type": "object" }, + "v1.PodCertificateRequest": { + "description": "PodCertificateRequest encodes a pod requesting a certificate from a given signer.\n\nKubelets use this API to implement podCertificate projected volumes", + "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": "#/definitions/v1.ObjectMeta", + "description": "metadata contains the object metadata." + }, + "spec": { + "$ref": "#/definitions/v1.PodCertificateRequestSpec", + "description": "spec contains the details about the certificate being requested." + }, + "status": { + "$ref": "#/definitions/v1.PodCertificateRequestStatus", + "description": "status contains the issued certificate, and a standard set of conditions." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v1.PodCertificateRequestList": { + "description": "PodCertificateRequestList is a collection of PodCertificateRequest objects", + "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 PodCertificateRequest objects", + "items": { + "$ref": "#/definitions/v1.PodCertificateRequest" + }, + "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": "#/definitions/v1.ListMeta", + "description": "metadata contains the list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequestList", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v1.PodCertificateRequestSpec": { + "description": "PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.", + "properties": { + "maxExpirationSeconds": { + "description": "maxExpirationSeconds is the maximum lifetime permitted for the certificate.\n\nIf omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days).\n\nThe signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours.", + "format": "int32", + "type": "integer" + }, + "nodeName": { + "description": "nodeName is the name of the node the pod is assigned to.", + "type": "string" + }, + "nodeUID": { + "description": "nodeUID is the UID of the node the pod is assigned to.", + "type": "string" + }, + "podName": { + "description": "podName is the name of the pod into which the certificate will be mounted.", + "type": "string" + }, + "podUID": { + "description": "podUID is the UID of the pod into which the certificate will be mounted.", + "type": "string" + }, + "serviceAccountName": { + "description": "serviceAccountName is the name of the service account the pod is running as.", + "type": "string" + }, + "serviceAccountUID": { + "description": "serviceAccountUID is the UID of the service account the pod is running as.", + "type": "string" + }, + "signerName": { + "description": "signerName indicates the requested signer.\n\nAll signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented.", + "type": "string" + }, + "stubPKCS10Request": { + "description": "A PKCS#10 certificate signing request (DER-serialized) generated by Kubelet using the subject private key.\n\nMost signer implementations will ignore the contents of the CSR except to extract the subject public key. The API server automatically verifies the CSR signature during admission, so the signer does not need to repeat the verification. CSRs generated by kubelet are completely empty.\n\nThe subject public key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future.\n\nSigner implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field.", + "format": "byte", + "type": "string" + }, + "unverifiedUserAnnotations": { + "additionalProperties": { + "type": "string" + }, + "description": "unverifiedUserAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way.\n\nEntries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field.\n\nSigners should document the keys and values they support. Signers should deny requests that contain keys they do not recognize.", + "type": "object" + } + }, + "required": [ + "signerName", + "podName", + "podUID", + "serviceAccountName", + "serviceAccountUID", + "nodeName", + "nodeUID", + "stubPKCS10Request" + ], + "type": "object" + }, + "v1.PodCertificateRequestStatus": { + "description": "PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued.", + "properties": { + "beginRefreshAt": { + "description": "beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable.\n\nThis field is only a hint. Kubelet may start refreshing before or after this time if necessary.", + "format": "date-time", + "type": "string" + }, + "certificateChain": { + "description": "certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf 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.\n\nValidation requirements:\n 1. certificateChain must consist of one or more PEM-formatted certificates.\n 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as\n described in section 4 of RFC5280.\n\nIf more than one 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. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers.", + "type": "string" + }, + "conditions": { + "description": "conditions applied to the request.\n\nThe types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\".\n\nIf the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field.", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "notAfter": { + "description": "notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.", + "format": "date-time", + "type": "string" + }, + "notBefore": { + "description": "notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.", + "format": "date-time", + "type": "string" + } + }, + "type": "object" + }, "v1beta1.ClusterTrustBundle": { - "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt 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.", + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt can be optionally associated with a particular signer, 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": { "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", @@ -5831,7 +6053,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/v1.LeaseSpec", @@ -5911,7 +6133,7 @@ "type": "integer" }, "preferredHolder": { - "description": "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.", + "description": "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.", "type": "string" }, "renewTime": { @@ -5920,7 +6142,7 @@ "type": "string" }, "strategy": { - "description": "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.", + "description": "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.", "type": "string" } }, @@ -5939,7 +6161,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/v1alpha2.LeaseCandidateSpec", @@ -6003,29 +6225,29 @@ "description": "LeaseCandidateSpec is a specification of a Lease.", "properties": { "binaryVersion": { - "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", + "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\"", + "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. This field is immutable.", + "description": "leaseName is the name of the lease for which this candidate is contending. 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.", + "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.", + "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.", + "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" } }, @@ -6049,7 +6271,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/v1beta1.LeaseCandidateSpec", @@ -6113,29 +6335,29 @@ "description": "LeaseCandidateSpec is a specification of a Lease.", "properties": { "binaryVersion": { - "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", + "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\"", + "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.", + "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.", + "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.", + "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.", + "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" } }, @@ -6614,6 +6836,11 @@ "signerName": { "description": "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.", "type": "string" + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -6738,7 +6965,7 @@ "format": "byte", "type": "string" }, - "description": "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.", + "description": "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. Note: BinaryData keys are not currently propagated to container env vars via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used.", "type": "object" }, "data": { @@ -6774,7 +7001,7 @@ ] }, "v1.ConfigMapEnvSource": { - "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. Keys in the BinaryData field are not currently propagated to container env vars.", "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", @@ -6791,7 +7018,7 @@ "description": "Selects a key from a ConfigMap.", "properties": { "key": { - "description": "The key to select.", + "description": "The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars.", "type": "string" }, "name": { @@ -6908,6 +7135,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "items": { "description": "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 '..'.", "items": { @@ -7459,6 +7691,11 @@ "resourceFieldRef": { "$ref": "#/definitions/v1.ResourceFieldSelector", "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -7474,6 +7711,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "items": { "description": "Items is a list of downward API volume file", "items": { @@ -7492,6 +7734,11 @@ "description": "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", "type": "string" }, + "mode": { + "description": "mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not specified, defaults to 0777. This might be in conflict with other options that affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup permissions will override the mode specified here. This field has no effect on Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be enabled.", + "format": "int32", + "type": "integer" + }, "sizeLimit": { "$ref": "#/definitions/resource.Quantity", "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" @@ -8061,6 +8308,26 @@ }, "type": "object" }, + "v1.EvictionResponder": { + "description": "EvictionResponder allows you to specify the responder reacting to an Eviction. Responders should observe and communicate through the Eviction Resource API to help with the graceful eviction of a target (e.g. termination of a pod).", + "properties": { + "name": { + "description": "name allows you to identify the responder responding to the Eviction.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required.", + "type": "string" + }, + "priority": { + "description": "priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last.\n\nThe responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders.\n\nThe minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "name", + "priority" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, "v1.ExecAction": { "description": "ExecAction describes a \"run in container\" action.", "properties": { @@ -8245,6 +8512,10 @@ "v1.GRPCAction": { "description": "GRPCAction specifies an action involving a GRPC service.", "properties": { + "mode": { + "description": "mode specifies the connection mode for the gRPC health probe. Set to \"TLS\" to use TLS without certificate verification. Set to \"Plaintext\" to use a plaintext (insecure) connection explicitly. If not specified, the probe uses a plaintext (insecure) connection.", + "type": "string" + }, "port": { "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", "format": "int32", @@ -8352,6 +8623,10 @@ "$ref": "#/definitions/intstr.IntOrString", "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." }, + "protocol": { + "description": "Protocol selects the wire protocol for the probe connection. Nil defaults to HTTP/1.1.", + "type": "string" + }, "scheme": { "description": "Scheme to use for connecting to the host. Defaults to HTTP.", "type": "string" @@ -8593,6 +8868,11 @@ "path": { "description": "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 '..'.", "type": "string" + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -9126,6 +9406,45 @@ }, "type": "object" }, + "v1.NodeAllocatableMappedResources": { + "description": "NodeAllocatableMappedResources describes mapped node allocatable resource allocations.", + "properties": { + "name": { + "description": "Name is the name of the resource (e.g., cpu, memory).", + "type": "string" + }, + "quantity": { + "$ref": "#/definitions/resource.Quantity", + "description": "Quantity is the total node allocatable resource capacity allocated for the claim. This claim's allocated devices is shared by all the containers referencing the claim. Kubelet adds this value to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim." + } + }, + "required": [ + "name", + "quantity" + ], + "type": "object" + }, + "v1.NodeAllocatableOverheadResources": { + "description": "NodeAllocatableOverheadResources describes auxiliary overhead resource allocations.", + "properties": { + "name": { + "description": "Name is the name of the resource (e.g., cpu, memory).", + "type": "string" + }, + "perContainer": { + "$ref": "#/definitions/resource.Quantity", + "description": "PerContainer is the variable overhead quantity applied for each container referencing the claim. The container references are recorded in `nodeAllocatableResourceClaimStatuses.containers`. The total overhead quantity allocated for the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration." + }, + "perPod": { + "$ref": "#/definitions/resource.Quantity", + "description": "PerPod is the flat overhead quantity allocated per pod. Adding to each container limit allows individual containers to utilize the overhead, while the parent pod-level cgroup limit caps the total usage at the pod boundary where the overhead is accounted for exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration." + } + }, + "required": [ + "name" + ], + "type": "object" + }, "v1.NodeAllocatableResourceClaimStatus": { "description": "NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA.", "properties": { @@ -9137,21 +9456,39 @@ "type": "array", "x-kubernetes-list-type": "set" }, + "mapping": { + "description": "Mapping contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].mapping` field. This is used by kubelet for pod level and container-level cgroup enforcement.", + "items": { + "$ref": "#/definitions/v1.NodeAllocatableMappedResources" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "overhead": { + "description": "Overhead contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].overhead` field. This is used by kubelet for pod level and container-level cgroup enforcement.", + "items": { + "$ref": "#/definitions/v1.NodeAllocatableOverheadResources" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, "resourceClaimName": { "description": "ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.", "type": "string" - }, - "resources": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - }, - "description": "Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.", - "type": "object" } }, "required": [ - "resourceClaimName", - "resources" + "resourceClaimName" ], "type": "object" }, @@ -9281,6 +9618,20 @@ "io.kubernetes.client.common.KubernetesListObject" ] }, + "v1.NodePodPreemptionPolicy": { + "description": "NodePodPreemptionPolicy defines the node-level policies governing preemption for pods on this node.", + "properties": { + "disableResizePreemption": { + "description": "DisableResizePreemption lists the owners (e.g., autoscalers, operators, administrators) that have requested to disable scheduler and Kubelet preemption for in-place pod resize on this node. If this list is non-empty, resize-induced preemption is disabled on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, "v1.NodeRuntimeHandler": { "description": "NodeRuntimeHandler is a set of runtime handler information.", "properties": { @@ -9400,6 +9751,10 @@ "x-kubernetes-list-type": "set", "x-kubernetes-patch-strategy": "merge" }, + "podPreemptionPolicy": { + "$ref": "#/definitions/v1.NodePodPreemptionPolicy", + "description": "PodPreemptionPolicy controls the node-level preemption behaviors for pods on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate." + }, "providerID": { "description": "ID of the node assigned by the cloud provider in the format: ://", "type": "string" @@ -9575,6 +9930,10 @@ "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", "type": "string" }, + "runningInUserNamespace": { + "description": "Whether the node is running in a user namespace.", + "type": "boolean" + }, "swap": { "$ref": "#/definitions/v1.NodeSwapStatus", "description": "Swap Info reported by the node." @@ -9810,11 +10169,11 @@ }, "dataSource": { "$ref": "#/definitions/v1.TypedLocalObjectReference", - "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource." + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource." }, "dataSourceRef": { "$ref": "#/definitions/v1.TypedObjectReference", - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." }, "resources": { "$ref": "#/definitions/v1.VolumeResourceRequirements", @@ -9893,6 +10252,10 @@ "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim", "type": "string" }, + "healthStatus": { + "$ref": "#/definitions/v1.VolumeHealthStatus", + "description": "healthStatus contains the latest controller-reported health information for the volume bound to this claim." + }, "modifyVolumeStatus": { "$ref": "#/definitions/v1.ModifyVolumeStatus", "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted." @@ -10311,6 +10674,11 @@ "description": "Kubelet's generated CSRs will be addressed to this signer.", "type": "string" }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "userAnnotations": { "additionalProperties": { "type": "string" @@ -10608,7 +10976,7 @@ "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\".\n\n\"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.\n\n\"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.\n\nIf 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.\n\nThis field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.\n\nAll 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.", + "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\".\n\n\"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.\n\n\"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.\n\nIf not specified, \"MountOption\" is used.\n\nThis field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.\n\nAll 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": { @@ -10701,6 +11069,19 @@ "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge" }, + "evictionResponders": { + "description": "evictionResponders reference responders that react to Evictions based on EvictionRequests. Responders should observe and communicate through the Eviction Resource API to help with the graceful termination of a pod. The responders are selected sequentially, according to their specified priority.\n\nResponders should periodically report on an eviction progress by updating the .status.responders[].heartbeatTime field of the Eviction object. If this field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there is no other responder, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource).\n\nThe maximum length of the responders list is 10. Responders are not supported when the pod is part of a PodGroup (.spec.schedulingGroup is set). This field can only be set on creation and is immutable afterwards.", + "items": { + "$ref": "#/definitions/v1.EvictionResponder" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, "hostAliases": { "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.", "items": { @@ -10735,7 +11116,7 @@ "type": "string" }, "hostnameOverride": { - "description": "HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false.\n\nThis field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled.", + "description": "HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false.\n\nThis field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters.", "type": "string" }, "imagePullSecrets": { @@ -10788,7 +11169,7 @@ "type": "object" }, "preemptionPolicy": { - "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. Defaults to PreemptLowerPriority if unset.", "type": "string" }, "priority": { @@ -10999,7 +11380,12 @@ "$ref": "#/definitions/v1.NodeAllocatableResourceClaimStatus" }, "type": "array", - "x-kubernetes-list-type": "atomic" + "x-kubernetes-list-map-keys": [ + "resourceClaimName" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "resourceClaimName", + "x-kubernetes-patch-strategy": "merge" }, "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.", @@ -11064,6 +11450,17 @@ "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" + }, + "volumeHealth": { + "description": "volumeHealth contains node-reported health for each volume the pod is using. Populated by the kubelet on the pod's node.", + "items": { + "$ref": "#/definitions/v1.PodVolumeHealth" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" } }, "type": "object" @@ -11152,6 +11549,38 @@ }, "type": "object" }, + "v1.PodVolumeHealth": { + "description": "PodVolumeHealth contains health information for a volume used by a pod, reported by the CSI node plugin via the kubelet.", + "properties": { + "healthConditions": { + "description": "conditions is the set of adverse conditions reported by the CSI node plugin for this volume on this node. At most 16 conditions may be reported.", + "items": { + "$ref": "#/definitions/v1.VolumeHealthCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "status", + "reason" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "status", + "x-kubernetes-patch-strategy": "merge" + }, + "lastTransitionTime": { + "description": "lastTransitionTime is when the current set of conditions first appeared.", + "format": "date-time", + "type": "string" + }, + "name": { + "description": "name matches an entry in pod.spec.volumes.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "v1.PortStatus": { "description": "PortStatus represents the error condition of a service port", "properties": { @@ -11275,6 +11704,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "sources": { "description": "sources is the list of volume projections. Each entry in this list handles one source.", "items": { @@ -11806,7 +12240,7 @@ "description": "ResourceStatus represents the status of a single resource allocated to a Pod.", "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 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 container.resources.claims[*].request is set or \"claim:\" when container.resources.claims[*].request is empty. For DRA-backed extended resources, \"claim:/\" is used when the claim name and request name are recorded in pod.status.extendedResourceClaimStatus. 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": { @@ -12186,6 +12620,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "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": { @@ -12403,6 +12842,11 @@ "path": { "description": "path is the path relative to the mount point of the file to project the token into.", "type": "string" + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -13074,11 +13518,66 @@ ], "type": "object" }, + "v1.VolumeHealthCondition": { + "description": "VolumeHealthCondition represents an adverse health condition reported for a volume.", + "properties": { + "message": { + "description": "message is a human-readable description. Maximum permitted length of a message is 1024 bytes.", + "type": "string" + }, + "reason": { + "description": "reason is a brief CamelCase machine-parseable reason. Together with status it forms the unique identity of a condition entry. Maximum permitted length of a reason is 256 bytes.", + "type": "string" + }, + "status": { + "description": "status is the machine-parseable health category. Possible values: - \"Inaccessible\": the volume cannot be accessed. - \"DataLoss\": data loss has been detected on the volume. - \"Degraded\": the volume is functioning with reduced capability.", + "type": "string" + } + }, + "required": [ + "status", + "reason" + ], + "type": "object" + }, + "v1.VolumeHealthStatus": { + "description": "VolumeHealthStatus contains health information for a volume reported by the CSI controller plugin.", + "properties": { + "healthConditions": { + "description": "conditions is the set of adverse conditions reported by the CSI controller plugin. An empty list means no adverse condition. At most 16 conditions may be reported.", + "items": { + "$ref": "#/definitions/v1.VolumeHealthCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "status", + "reason" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "status", + "x-kubernetes-patch-strategy": "merge" + }, + "lastTransitionTime": { + "description": "lastTransitionTime is when the current set of conditions first appeared.", + "format": "date-time", + "type": "string" + } + }, + "type": "object" + }, "v1.VolumeMount": { "description": "VolumeMount describes a mounting of a Volume within a container.", "properties": { + "bindMountOptions": { + "description": "bindMountOptions is the list of additional bind mount options to apply when mounting this volume into the container. Allowed values are noexec, nodev, and nosuid. These are Linux mount options and have no effect on Windows nodes. This field is not supported with image volumes. This is an alpha field and requires enabling the VolumeBindMountOptions feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "description": "Path within the container at which the volume should be mounted.", "type": "string" }, "mountPropagation": { @@ -13546,7 +14045,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "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.", @@ -13616,7 +14115,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -13707,6 +14206,9 @@ "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -13736,7 +14238,7 @@ "type": "string" }, "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "description": "`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.", "type": "string" }, "type": { @@ -13744,6 +14246,9 @@ "type": "string" } }, + "required": [ + "type" + ], "type": "object" }, "v1.FlowSchemaList": { @@ -13894,6 +14399,9 @@ "type": "integer" } }, + "required": [ + "limitResponse" + ], "type": "object" }, "v1.NonResourcePolicyRule": { @@ -13979,6 +14487,9 @@ "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -14008,7 +14519,7 @@ "type": "string" }, "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "description": "`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.", "type": "string" }, "type": { @@ -14016,6 +14527,9 @@ "type": "string" } }, + "required": [ + "type" + ], "type": "object" }, "v1.PriorityLevelConfigurationList": { @@ -14252,47 +14766,8 @@ ], "type": "object" }, - "v1.HTTPIngressPath": { - "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", - "properties": { - "backend": { - "$ref": "#/definitions/v1.IngressBackend", - "description": "backend defines the referenced service endpoint to which the traffic will be forwarded to." - }, - "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\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", - "type": "string" - } - }, - "required": [ - "pathType", - "backend" - ], - "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 '#'.", - "properties": { - "paths": { - "description": "paths is a collection of paths that map requests to backends.", - "items": { - "$ref": "#/definitions/v1.HTTPIngressPath" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "paths" - ], - "type": "object" - }, - "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", + "v1alpha1.Eviction": { + "description": "Eviction initiates an eviction process, which should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod).\n\nThe evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. It manages the Eviction lifecycle. Requesters are preserved in .status.requesters even after they have withdrawn their request. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Once all EvictionRequest corresponding to this Eviction .spec.target have been removed, this Eviction object will eventually be garbage collected.\n\nIf the target is a pod, the .status.targetResponders is populated from Pod's .spec.evictionResponders.\n\nResponders should observe and communicate through the .status to help with the eviction of the target when they see their state == Active in .status.targetResponders. ResponderStatus struct should then be periodically updated to indicate the progress or completion of the eviction process by each responder in .status.responders. If .status.responders[].heartbeatTime is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority.\n\nIf there are no other responders and the target is a pod, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource).", "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", @@ -14304,11 +14779,15 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. .metadata.name set by the evictionrequest-controller is purely informative and subject to change. .spec.target field should be used to identify the target precisesly.\n\nThe requester and responder names will be used as label keys and added to the labels of the eviction in one of the following formats: 1. acme.io/foo: \"requester\" 2. acme.io/foo: \"responder\" 3. acme.io/foo: \"requester-responder\"\n\nPlease see EvictionParticipantRole for available role label values." }, "spec": { - "$ref": "#/definitions/v1.IPAddressSpec", - "description": "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1alpha1.EvictionSpec", + "description": "spec defines the eviction specification. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1alpha1.EvictionStatus", + "description": "status represents the most recently observed status of the eviction. Populated by responders and evictionrequest-controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "required": [ @@ -14317,26 +14796,26 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1.IPAddressList": { - "description": "IPAddressList contains a list of IPAddress.", + "v1alpha1.EvictionList": { + "description": "EvictionList contains a list of Eviction resources.", "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 IPAddresses.", + "description": "items is the list of Evictions.", "items": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1alpha1.Eviction" }, "type": "array" }, @@ -14346,7 +14825,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -14355,51 +14834,35 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "networking.k8s.io", - "kind": "IPAddressList", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionList", + "version": "v1alpha1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1.IPAddressSpec": { - "description": "IPAddressSpec describe the attributes in an IP Address.", - "properties": { - "parentRef": { - "$ref": "#/definitions/v1.ParentReference", - "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." - } - }, - "required": [ - "parentRef" - ], - "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.", + "v1alpha1.EvictionPodReference": { + "description": "EvictionPodReference contains enough information to locate the referenced pod inside the same namespace.", "properties": { - "cidr": { - "description": "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", + "name": { + "description": "name of the target. This field is required.", "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", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "uid": { + "description": "uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.", + "type": "string" } }, "required": [ - "cidr" + "name", + "uid" ], "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.", + "v1alpha1.EvictionRequest": { + "description": "EvictionRequest defines a request that should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod).\n\nThe evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions.\n - .spec.requester is set as a label on the Eviction for easier lookup.\n - Each target can have a set of responders assigned to it. Eviction objects are observed by\n these responders, who implement the eviction logic and update the Eviction's status with\n progress.\n\nThere is many-to-many relationship between EvictionRequests and Evictions in general. And many-to-one if the target is a pod.\n\nIf all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Deleting an EvictionRequest also counts as a withdrawal. Once all EvictionRequest of a target are removed, the corresponding Evictions are eventually garbage collected.", "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", @@ -14411,86 +14874,43 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "spec": { - "$ref": "#/definitions/v1.IngressSpec", - "description": "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1alpha1.EvictionRequestSpec", + "description": "spec defines the eviction request specification. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/v1.IngressStatus", - "description": "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1alpha1.EvictionRequestStatus", + "description": "status represents the most recently observed status of the eviction request. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } + "required": [ + "spec" ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" - ] - }, - "v1.IngressBackend": { - "description": "IngressBackend describes all endpoints for a given service and port.", - "properties": { - "resource": { - "$ref": "#/definitions/v1.TypedLocalObjectReference", - "description": "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\"." - }, - "service": { - "$ref": "#/definitions/v1.IngressServiceBackend", - "description": "service references a service as a backend. This is a mutually exclusive setting with \"Resource\"." - } - }, - "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.", - "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": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.IngressClassSpec", - "description": "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1.IngressClassList": { - "description": "IngressClassList is a collection of IngressClasses.", + "v1alpha1.EvictionRequestList": { + "description": "EvictionRequestList contains a list of EvictionRequests resources.", "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 IngressClasses.", + "description": "items is the list of EvictionRequests.", "items": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1alpha1.EvictionRequest" }, "type": "array" }, @@ -14500,7 +14920,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata." + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -14509,246 +14929,313 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "networking.k8s.io", - "kind": "IngressClassList", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequestList", + "version": "v1alpha1" } ], "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.", + "v1alpha1.EvictionRequestPodReference": { + "description": "EvictionRequestPodReference contains enough information to locate the referenced pod inside the same 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\".", + "description": "name of the target. This field is required.", "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\".", + "uid": { + "description": "uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.", "type": "string" } }, "required": [ - "kind", - "name" + "name", + "uid" ], "type": "object" }, - "v1.IngressClassSpec": { - "description": "IngressClassSpec provides information about the class of an Ingress.", - "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": "#/definitions/v1.IngressClassParametersReference", - "description": "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters." - } - }, - "type": "object" - }, - "v1.IngressList": { - "description": "IngressList is a collection of Ingress.", + "v1alpha1.EvictionRequestSpec": { + "description": "EvictionRequestSpec is a specification of an EvictionRequest.", "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", + "intent": { + "description": "intent specifies the action that should be taken for the specified target.\n\n- Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target.\n If all requesters' intents are withdrawn for a common target, the eviction will be canceled.\n Cancellation consequences:\n - Inactive responders will never run.\n - Active responders are expected to cancel the eviction.\n - Completed or Interrupted responders should not take any action.", "type": "string" }, - "items": { - "description": "items is the list of Ingress.", - "items": { - "$ref": "#/definitions/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", + "requester": { + "description": "requester allows you to identify the entity, that requested the eviction of the target.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field is required and immutable.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "target": { + "$ref": "#/definitions/v1alpha1.EvictionRequestTarget", + "description": "target contains a reference to an object (e.g. a pod) that should be evicted. This field is required and immutable." } }, "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "IngressList", - "version": "v1" - } + "target", + "requester", + "intent" ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] + "type": "object" }, - "v1.IngressLoadBalancerIngress": { - "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "v1alpha1.EvictionRequestStatus": { + "description": "EvictionRequestStatus represents the last observed status of the eviction request.", "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.", + "conditions": { + "description": "conditions contain information about the eviction request.\n\nEvictionRequest specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed\n by any eviction responder. This can happen if the request is canceled or if no responder\n managed to evict the target (e.g. terminate or delete a pod).\n- TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted).\n\nThese conditions can be reset if the eviction was unsuccessful and a new Eviction intent has been submitted.\n\nThe maximum length of the conditions list is 100.", "items": { - "$ref": "#/definitions/v1.IngressPortStatus" + "$ref": "#/definitions/v1.Condition" }, "type": "array", - "x-kubernetes-list-type": "atomic" + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "observedGeneration": { + "description": "observedGeneration is EvictionRequest's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.", + "format": "int64", + "type": "integer" } }, "type": "object" }, - "v1.IngressLoadBalancerStatus": { - "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "v1alpha1.EvictionRequestTarget": { + "description": "EvictionRequestTarget contains a reference to an object that should be evicted.", "properties": { - "ingress": { - "description": "ingress is a list containing ingress points for the load-balancer.", - "items": { - "$ref": "#/definitions/v1.IngressLoadBalancerIngress" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "pod": { + "$ref": "#/definitions/v1alpha1.EvictionRequestPodReference", + "description": "pod references a pod that is subject to eviction/termination. Pods that are part of a PodGroup (.spec.schedulingGroup is set) are not supported." } }, - "type": "object" + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "pod": "Pod" + } + } + ] }, - "v1.IngressPortStatus": { - "description": "IngressPortStatus represents the error condition of a service port", + "v1alpha1.EvictionSpec": { + "description": "EvictionSpec is a specification of an Eviction.", "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\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n 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" + "target": { + "$ref": "#/definitions/v1alpha1.EvictionTarget", + "description": "target contains a reference to an object (e.g. a pod) that should be evicted. This field is required and immutable." } }, "required": [ - "port", - "protocol" + "target" ], "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.", + "v1alpha1.EvictionStatus": { + "description": "EvictionStatus represents the last observed status of the eviction request.", "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" + "conditions": { + "description": "conditions contain information about the eviction request.\n\nEviction specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed\n by any eviction responder. This can happen if the request is canceled or if no responder\n managed to evict the target (e.g. terminate or delete a pod).\n- TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted).\n\n\tThe maximum length of the conditions list is 100.", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "http": { - "$ref": "#/definitions/v1.HTTPIngressRuleValue" + "observedGeneration": { + "description": "observedGeneration is Eviction's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.", + "format": "int64", + "type": "integer" + }, + "requesters": { + "description": "requesters allow you to identify the entities, that requested the eviction of the target. If all the requesters withdraw their eviction intent, the eviction will be canceled.\n\nThe maximum length of the requesters list is 100. If this limit is exceeded, requesters with Withdrawn intent should be dropped first.", + "items": { + "$ref": "#/definitions/v1alpha1.Requester" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "responders": { + "description": "responders represents the eviction process status of each declared responder.\n\nThe responder list should be the same length and have the same .name fields as .status.targetResponders. Only responders with .name that have Active state in .targetResponders[].state should be updated and can be mutated. First initialization of the list is allowed.\n\nEach ResponderStatus is initialized by evictionrequest-controller and then managed by the designated responder.", + "items": { + "$ref": "#/definitions/v1alpha1.ResponderStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "targetResponders": { + "description": "targetResponders reference responders that should eventually respond to this eviction to help with the graceful eviction of a target. These responders are selected sequentially, according to their specified priority by setting the Active state to the TargetResponder .state field. The maximum number of active responders allowed is 1. Eventually each responder can end up in an Interrupted, Canceled or, Completed state. Responders should observe these states in order to navigate their lifecycle.\n\nIf the target is a pod, the field is populated from Pod's .spec.evictionResponders. Default responders may be added to the list according to the target.\n\nDefault responders: - imperative-eviction.k8s.io/evictor responder with a priority of 100 is added to the list if the\n target is a pod. It will call the imperative Eviction API (pods//eviction subresource).\n This call may not succeed due to PodDisruptionBudgets, which may block the pod termination.\n It will update the responder message and try again with a backoff.\n\nThe maximum length of the responders list is 11. The length and keys of the list cannot change once set. This field is managed by evictionrequest-controller.", + "items": { + "$ref": "#/definitions/v1alpha1.TargetResponder" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" } }, "type": "object" }, - "v1.IngressServiceBackend": { - "description": "IngressServiceBackend references a Kubernetes Service as a Backend.", + "v1alpha1.EvictionTarget": { + "description": "EvictionTarget contains a reference to an object that should be evicted.", + "properties": { + "pod": { + "$ref": "#/definitions/v1alpha1.EvictionPodReference", + "description": "pod references a pod that is subject to eviction/termination. Pods that are part of a PodGroup (.spec.schedulingGroup is set) are not supported." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "pod": "Pod" + } + } + ] + }, + "v1alpha1.Requester": { + "description": "Requester allows you to identify the entity, that requested the eviction of the target.", "properties": { + "intent": { + "description": "intent specifies the action that should be taken for the specified target.\n\n- Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target.\n If all requesters' intents are withdrawn, the eviction will be canceled.\n Cancellation consequences:\n - Inactive responders will never run.\n - Active responders are expected to cancel the eviction.\n - Completed or Interrupted responders should not take any action.", + "type": "string" + }, "name": { - "description": "name is the referenced service. The service must exist in the same namespace as the Ingress object.", + "description": "name allows you to identify the entity, that requested the eviction of the target.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each requester. This field is required.", + "type": "string" + } + }, + "required": [ + "name", + "intent" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1alpha1.ResponderStatus": { + "description": "ResponderStatus represents the last observed status of the eviction process of the responder. It should be only updated by the designated responder whose name is .name field.", + "properties": { + "completionTime": { + "description": "completionTime tracks the time at which the Responder stopped processing the eviction request. Completion means that the responders has either fully or partially completed the eviction process, which may have resulted in target eviction (e.g. pod termination). It should reflect the present time when set. This field becomes immutable once set.", + "format": "date-time", "type": "string" }, - "port": { - "$ref": "#/definitions/v1.ServiceBackendPort", - "description": "port of the referenced service. A port name or port number is required for a IngressServiceBackend." + "expectedCompletionTime": { + "description": "expectedCompletionTime is the time at which the eviction process step is expected to end for the responder. The time cannot be set to the past. May be omitted if no estimate can be made.", + "format": "date-time", + "type": "string" + }, + "heartbeatTime": { + "description": "heartbeatTime is the last time at which the eviction process was reported to be in progress by the responder. It should reflect the present time when set. Responders should avoid heartbeats more frequent than 20 seconds to avoid overloading the control-plane.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "message provides human-readable details about the state of the responder and the eviction process. Maximum length is 4000 characters.", + "type": "string" + }, + "name": { + "description": "name allows you to identify the responder reacting to the Eviction.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field is initialized by Kubernetes and must be unique for each responder. This field is required.", + "type": "string" + }, + "startTime": { + "description": "startTime tracks the time at which this responder was designated as active and should start processing the eviction request. It should reflect the present time when set. This field is initialized by Kubernetes when this responder becomes active. This field becomes immutable once set.", + "format": "date-time", + "type": "string" } }, "required": [ "name" ], - "type": "object" + "type": "object", + "x-kubernetes-map-type": "granular" }, - "v1.IngressSpec": { - "description": "IngressSpec describes the Ingress the user wishes to exist.", + "v1alpha1.TargetResponder": { + "description": "TargetResponder allows you to specify the responder reacting to the Eviction. Responders should observe and communicate through the Eviction API (see .state) to help with the graceful eviction of a target (e.g. termination of a pod).", "properties": { - "defaultBackend": { - "$ref": "#/definitions/v1.IngressBackend", - "description": "defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller." - }, - "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.", + "name": { + "description": "name allows you to identify the responder reacting to the Eviction.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each responder. This field is required.", "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": "#/definitions/v1.IngressRule" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "priority": { + "description": "priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last.\n\nThe responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders.\n\nThe minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required and immutable.", + "format": "int32", + "type": "integer" }, - "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": "#/definitions/v1.IngressTLS" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "state": { + "description": "state specifies a state that is assigned by the evictionrequest-controller. Responders should observe this state in order to navigate their lifecycle. - Inactive means that the responder should not yet process this eviction request. - Active means that the responder is either running or expected to start soon.\n Also, startTime has been set in the ResponderStatus by the evictionrequest-controller.\n\n An active responder should currently interact with the eviction process by updating\n .status.responders, where .name is the active responder name. ResponderStatus fields\n should be periodically updated to indicate the progress or completion of the eviction process.\n If .status.responders[].heartbeatTime field is not updated within the heartbeat deadline defined\n by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder\n\t with a lower priority. Only one responder can be active at a time.\n- Interrupted means that the responder has failed to start or failed to update\n heartbeatTime in ResponderStatus in a timely manner.\n- Canceled means that the responder has been canceled. In other words, there\tis no\n EvictionRequest with the same target and Eviction intent in .spec.intent.\n- Completed means that the responder has successfully completed and set completionTime\n in ResponderStatus.\n\nPlease refer to the ResponderStatus in .status.responders for more details on each responder.", + "type": "string" } }, - "type": "object" + "required": [ + "name", + "priority", + "state" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1.IngressStatus": { - "description": "IngressStatus describe the current state of the Ingress.", + "v1.HTTPIngressPath": { + "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", "properties": { - "loadBalancer": { - "$ref": "#/definitions/v1.IngressLoadBalancerStatus", - "description": "loadBalancer contains the current status of the load-balancer." + "backend": { + "$ref": "#/definitions/v1.IngressBackend", + "description": "backend defines the referenced service endpoint to which the traffic will be forwarded to." + }, + "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\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", + "type": "string" } }, + "required": [ + "pathType", + "backend" + ], "type": "object" }, - "v1.IngressTLS": { - "description": "IngressTLS describes the transport layer security associated with an ingress.", + "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 '#'.", "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.", + "paths": { + "description": "paths is a collection of paths that map requests to backends.", "items": { - "type": "string" + "$ref": "#/definitions/v1.HTTPIngressPath" }, "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": [ + "paths" + ], "type": "object" }, - "v1.NetworkPolicy": { - "description": "NetworkPolicy describes what network traffic is allowed for a set of Pods", + "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", "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", @@ -14760,18 +15247,21 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.NetworkPolicySpec", - "description": "spec represents the specification of the desired behavior for this NetworkPolicy." + "$ref": "#/definitions/v1.IPAddressSpec", + "description": "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "kind": "IPAddress", "version": "v1" } ], @@ -14779,61 +15269,17 @@ "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", - "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": "#/definitions/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": "#/definitions/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.", - "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": "#/definitions/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": "#/definitions/v1.NetworkPolicyPort" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "v1.NetworkPolicyList": { - "description": "NetworkPolicyList is a list of NetworkPolicy objects.", + "v1.IPAddressList": { + "description": "IPAddressList contains a list of IPAddress.", "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.", + "description": "items is the list of IPAddresses.", "items": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.IPAddress" }, "type": "array" }, @@ -14843,7 +15289,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -14853,7 +15299,7 @@ "x-kubernetes-group-version-kind": [ { "group": "networking.k8s.io", - "kind": "NetworkPolicyList", + "kind": "IPAddressList", "version": "v1" } ], @@ -14861,68 +15307,28 @@ "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.IPAddressSpec": { + "description": "IPAddressSpec describe the attributes in an IP Address.", "properties": { - "ipBlock": { - "$ref": "#/definitions/v1.IPBlock", - "description": "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be." - }, - "namespaceSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector." - }, - "podSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace." + "parentRef": { + "$ref": "#/definitions/v1.ParentReference", + "description": "parentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." } }, + "required": [ + "parentRef" + ], "type": "object" }, - "v1.NetworkPolicyPort": { - "description": "NetworkPolicyPort describes a port to allow traffic on", + "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.", "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": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched." - }, - "protocol": { - "description": "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", + "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" - }, - "v1.NetworkPolicySpec": { - "description": "NetworkPolicySpec provides the specification of a NetworkPolicy", - "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", - "items": { - "$ref": "#/definitions/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": "#/definitions/v1.NetworkPolicyIngressRule" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "podSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "podSelector selects the pods to which this NetworkPolicy object applies. The array of rules is applied to any pods selected by this field. An empty selector matches all pods in the policy's namespace. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is optional. If it is not specified, it defaults to an empty selector." }, - "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", + "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": { "type": "string" }, @@ -14930,52 +15336,13 @@ "x-kubernetes-list-type": "atomic" } }, - "type": "object" - }, - "v1.ParentReference": { - "description": "ParentReference describes a reference to a parent object.", - "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.", - "type": "string" - } - }, "required": [ - "resource", - "name" + "cidr" ], "type": "object" }, - "v1.ServiceBackendPort": { - "description": "ServiceBackendPort is the service port being referenced.", - "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" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "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.", + "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.", "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", @@ -14987,22 +15354,22 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.ServiceCIDRSpec", - "description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.IngressSpec", + "description": "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/v1.ServiceCIDRStatus", - "description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.IngressStatus", + "description": "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { "group": "networking.k8s.io", - "kind": "ServiceCIDR", + "kind": "Ingress", "version": "v1" } ], @@ -15010,79 +15377,22 @@ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1.ServiceCIDRList": { - "description": "ServiceCIDRList contains a list of ServiceCIDR objects.", + "v1.IngressBackend": { + "description": "IngressBackend describes all endpoints for a given service and port.", "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": "#/definitions/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" + "resource": { + "$ref": "#/definitions/v1.TypedLocalObjectReference", + "description": "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\"." }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "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.", - "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.", - "properties": { - "conditions": { - "description": "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", - "items": { - "$ref": "#/definitions/v1.Condition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" + "service": { + "$ref": "#/definitions/v1.IngressServiceBackend", + "description": "service references a service as a backend. This is a mutually exclusive setting with \"Resource\"." } }, "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", + "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.", "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", @@ -15094,39 +15404,36 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1beta1.IPAddressSpec", - "description": "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.IngressClassSpec", + "description": "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1beta1.IPAddressList": { - "description": "IPAddressList contains a list of IPAddress.", + "v1.IngressClassList": { + "description": "IngressClassList is a collection of IngressClasses.", "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 IPAddresses.", + "description": "items is the list of IngressClasses.", "items": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" }, "type": "array" }, @@ -15136,7 +15443,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata." } }, "required": [ @@ -15146,90 +15453,508 @@ "x-kubernetes-group-version-kind": [ { "group": "networking.k8s.io", - "kind": "IPAddressList", - "version": "v1beta1" + "kind": "IngressClassList", + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1beta1.IPAddressSpec": { - "description": "IPAddressSpec describe the attributes in an IP Address.", - "properties": { - "parentRef": { - "$ref": "#/definitions/v1beta1.ParentReference", - "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." - } - }, - "required": [ - "parentRef" - ], - "type": "object" - }, - "v1beta1.ParentReference": { - "description": "ParentReference describes a reference to a parent object.", + "v1.IngressClassParametersReference": { + "description": "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", "properties": { - "group": { - "description": "Group is the group of the object being referenced.", + "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 the object being referenced.", + "description": "name is the name of resource being referenced.", "type": "string" }, "namespace": { - "description": "Namespace is the namespace of the object being referenced.", + "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" }, - "resource": { - "description": "Resource is the resource of the object being referenced.", + "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": [ - "resource", + "kind", "name" ], "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.", + "v1.IngressClassSpec": { + "description": "IngressClassSpec provides information about the class of an Ingress.", + "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": "#/definitions/v1.IngressClassParametersReference", + "description": "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters." + } + }, + "type": "object" + }, + "v1.IngressList": { + "description": "IngressList is a collection of Ingress.", "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 Ingress.", + "items": { + "$ref": "#/definitions/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": "#/definitions/v1.ObjectMeta", + "$ref": "#/definitions/v1.ListMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1beta1.ServiceCIDRSpec", - "description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1beta1.ServiceCIDRStatus", - "description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, + "required": [ + "items" + ], "type": "object", "x-kubernetes-group-version-kind": [ { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IngressList", + "version": "v1" } ], "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v1.IngressLoadBalancerIngress": { + "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "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.", + "items": { + "$ref": "#/definitions/v1.IngressPortStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.IngressLoadBalancerStatus": { + "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "ingress is a list containing ingress points for the load-balancer.", + "items": { + "$ref": "#/definitions/v1.IngressLoadBalancerIngress" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.IngressPortStatus": { + "description": "IngressPortStatus represents the error condition of a service port", + "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\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n 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.", + "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": "#/definitions/v1.HTTPIngressRuleValue", + "description": "http is a HTTP IngressRuleValue, which contains a list of http selectors" + } + }, + "type": "object" + }, + "v1.IngressServiceBackend": { + "description": "IngressServiceBackend references a Kubernetes Service as a Backend.", + "properties": { + "name": { + "description": "name is the referenced service. The service must exist in the same namespace as the Ingress object.", + "type": "string" + }, + "port": { + "$ref": "#/definitions/v1.ServiceBackendPort", + "description": "port of the referenced service. A port name or port number is required for a IngressServiceBackend." + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1.IngressSpec": { + "description": "IngressSpec describes the Ingress the user wishes to exist.", + "properties": { + "defaultBackend": { + "$ref": "#/definitions/v1.IngressBackend", + "description": "defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller." + }, + "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": "#/definitions/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": "#/definitions/v1.IngressTLS" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.IngressStatus": { + "description": "IngressStatus describe the current state of the Ingress.", + "properties": { + "loadBalancer": { + "$ref": "#/definitions/v1.IngressLoadBalancerStatus", + "description": "loadBalancer contains the current status of the load-balancer." + } + }, + "type": "object" + }, + "v1.IngressTLS": { + "description": "IngressTLS describes the transport layer security associated with an ingress.", + "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", + "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": "#/definitions/v1.ObjectMeta", + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.NetworkPolicySpec", + "description": "spec represents the specification of the desired behavior for this NetworkPolicy." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" ] }, - "v1beta1.ServiceCIDRList": { + "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", + "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": "#/definitions/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": "#/definitions/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.", + "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": "#/definitions/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": "#/definitions/v1.NetworkPolicyPort" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.NetworkPolicyList": { + "description": "NetworkPolicyList is a list of NetworkPolicy objects.", + "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": "#/definitions/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": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "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", + "properties": { + "ipBlock": { + "$ref": "#/definitions/v1.IPBlock", + "description": "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be." + }, + "namespaceSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector." + }, + "podSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace." + } + }, + "type": "object" + }, + "v1.NetworkPolicyPort": { + "description": "NetworkPolicyPort describes a port to allow traffic on", + "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": { + "$ref": "#/definitions/intstr.IntOrString", + "description": "port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched." + }, + "protocol": { + "description": "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", + "type": "string" + } + }, + "type": "object" + }, + "v1.NetworkPolicySpec": { + "description": "NetworkPolicySpec provides the specification of a NetworkPolicy", + "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", + "items": { + "$ref": "#/definitions/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": "#/definitions/v1.NetworkPolicyIngressRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "podSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "podSelector selects the pods to which this NetworkPolicy object applies. The array of rules is applied to any pods selected by this field. An empty selector matches all pods in the policy's namespace. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is optional. If it is not specified, it defaults to an empty selector." + }, + "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" + } + }, + "type": "object" + }, + "v1.ParentReference": { + "description": "ParentReference describes a reference to a parent object.", + "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.", + "type": "string" + } + }, + "required": [ + "resource", + "name" + ], + "type": "object" + }, + "v1.ServiceBackendPort": { + "description": "ServiceBackendPort is the service port being referenced.", + "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" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "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.", + "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": "#/definitions/v1.ObjectMeta", + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.ServiceCIDRSpec", + "description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1.ServiceCIDRStatus", + "description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v1.ServiceCIDRList": { "description": "ServiceCIDRList contains a list of ServiceCIDR objects.", "properties": { "apiVersion": { @@ -15239,7 +15964,7 @@ "items": { "description": "items is the list of ServiceCIDRs.", "items": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.ServiceCIDR" }, "type": "array" }, @@ -15260,18 +15985,18 @@ { "group": "networking.k8s.io", "kind": "ServiceCIDRList", - "version": "v1beta1" + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1beta1.ServiceCIDRSpec": { + "v1.ServiceCIDRSpec": { "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", "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.", + "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" }, @@ -15281,7 +16006,7 @@ }, "type": "object" }, - "v1beta1.ServiceCIDRStatus": { + "v1.ServiceCIDRStatus": { "description": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", "properties": { "conditions": { @@ -15330,7 +16055,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "overhead": { "$ref": "#/definitions/v1.Overhead", @@ -15425,7 +16150,7 @@ }, "deleteOptions": { "$ref": "#/definitions/v1.DeleteOptions", - "description": "DeleteOptions may be provided" + "description": "deleteOptions may be provided" }, "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", @@ -15433,7 +16158,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "ObjectMeta describes the pod that is being evicted." + "description": "metadata describes the pod that is being evicted." } }, "type": "object", @@ -15461,15 +16186,15 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/v1.PodDisruptionBudgetSpec", - "description": "Specification of the desired behavior of the PodDisruptionBudget." + "description": "spec is the specification of the desired behavior of the PodDisruptionBudget." }, "status": { "$ref": "#/definitions/v1.PodDisruptionBudgetStatus", - "description": "Most recently observed status of the PodDisruptionBudget." + "description": "status is the most recently observed status of the PodDisruptionBudget." } }, "type": "object", @@ -15527,19 +16252,19 @@ "properties": { "maxUnavailable": { "$ref": "#/definitions/intstr.IntOrString", - "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." + "description": "maxUnavailable indicates that an eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." }, "minAvailable": { "$ref": "#/definitions/intstr.IntOrString", - "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." + "description": "minAvailable indicates that an eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." }, "selector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", + "description": "selector is a label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", "x-kubernetes-patch-strategy": "replace" }, "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\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget 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.\n\nAlwaysAllow 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.\n\nAdditional 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.", + "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\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget 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.\n\nAlwaysAllow 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.\n\nAdditional 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" } }, @@ -15602,7 +16327,7 @@ "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", "properties": { "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", + "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": { "$ref": "#/definitions/v1.LabelSelector" }, @@ -15617,7 +16342,7 @@ "properties": { "aggregationRule": { "$ref": "#/definitions/v1.AggregationRule", - "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." + "description": "aggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." }, "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", @@ -15629,10 +16354,10 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", + "description": "rules holds all the PolicyRules for this ClusterRole", "items": { "$ref": "#/definitions/v1.PolicyRule" }, @@ -15665,14 +16390,14 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "roleRef": { "$ref": "#/definitions/v1.RoleRef", - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." + "description": "roleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." }, "subjects": { - "description": "Subjects holds references to the objects the role applies to.", + "description": "subjects holds references to the objects the role applies to.", "items": { "$ref": "#/definitions/rbac.v1.Subject" }, @@ -15775,7 +16500,7 @@ "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.", "properties": { "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.", + "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": { "type": "string" }, @@ -15783,7 +16508,7 @@ "x-kubernetes-list-type": "atomic" }, "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.", + "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": { "type": "string" }, @@ -15791,7 +16516,7 @@ "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.", + "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" }, @@ -15799,7 +16524,7 @@ "x-kubernetes-list-type": "atomic" }, "resources": { - "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", + "description": "resources is a list of resources this rule applies to. '*' represents all resources.", "items": { "type": "string" }, @@ -15807,7 +16532,7 @@ "x-kubernetes-list-type": "atomic" }, "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", + "description": "verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", "items": { "type": "string" }, @@ -15833,10 +16558,10 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "rules": { - "description": "Rules holds all the PolicyRules for this Role", + "description": "rules holds all the PolicyRules for this Role", "items": { "$ref": "#/definitions/v1.PolicyRule" }, @@ -15869,14 +16594,14 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "roleRef": { "$ref": "#/definitions/v1.RoleRef", - "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." + "description": "roleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." }, "subjects": { - "description": "Subjects holds references to the objects the role applies to.", + "description": "subjects holds references to the objects the role applies to.", "items": { "$ref": "#/definitions/rbac.v1.Subject" }, @@ -15979,15 +16704,15 @@ "description": "RoleRef contains information that points to the role being used", "properties": { "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", + "description": "apiGroup is the group for the resource being referenced", "type": "string" }, "kind": { - "description": "Kind is the type of resource being referenced", + "description": "kind is the type of resource being referenced", "type": "string" }, "name": { - "description": "Name is the name of resource being referenced", + "description": "name is the name of resource being referenced", "type": "string" } }, @@ -16002,19 +16727,19 @@ "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.", "properties": { "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.", + "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" }, "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.", + "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.", + "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.", + "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" } }, @@ -16094,7 +16819,7 @@ "description": "CELDeviceSelector contains a CEL expression for selecting a device.", "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.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device\n (v1.34+ with the DRAConsumableCapacity feature enabled).\n\nExample: 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:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe 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.\n\nThe 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.\n\nIf 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.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor 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:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nWhen the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example:\n\n device.attributes[\"dra.example.com\"].models.includes(\"some-model\")\n\nThe 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.", + "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.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\").\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device\n (v1.34+ with the DRAConsumableCapacity feature enabled).\n\nExample: 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:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe 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.\n\nThe 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.\n\nIf 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.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nCommon errors: - \"no such key\": Use optional chaining (.? followed by orValue())\n or guarding the check with has() for optional fields.\n See CEL Optional Types for details:\n https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes\n\nFor more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/\n\nFor 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:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nWhen the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example:\n\n device.attributes[\"dra.example.com\"].models.includes(\"some-model\")\n\nThe 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" } }, @@ -16126,7 +16851,7 @@ "type": "object" }, "v1.CapacityRequestPolicyRange": { - "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", + "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\nIf the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", "properties": { "max": { "$ref": "#/definitions/resource.Quantity", @@ -16250,11 +16975,11 @@ "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", "type": "string" }, - "nodeAllocatableResourceMappings": { + "nodeAllocatableResources": { "additionalProperties": { - "$ref": "#/definitions/v1.NodeAllocatableResourceMapping" + "$ref": "#/definitions/v1.NodeAllocatableResource" }, - "description": "NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.", + "description": "NodeAllocatableResources defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.", "type": "object" }, "nodeName": { @@ -16467,9 +17192,6 @@ "description": "Spec defines what can be allocated and how to configure it.\n\nThis is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.\n\nChanging the spec automatically increments the metadata.generation number." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -16542,7 +17264,7 @@ "x-kubernetes-list-type": "atomic" }, "extendedResourceName": { - "description": "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.\n\nThis is a beta field.", + "description": "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.", "type": "string" }, "selectors": { @@ -16581,6 +17303,14 @@ "v1.DeviceCounterConsumption": { "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", "properties": { + "compatibilityGroups": { + "description": "CompatibilityGroups is a list of opaque group names for this counter set consumption.\n\nDevices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.\n\nAn unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.\n\nGroup names are opaque and meaningful only within the publishing driver's pool.\n\nThe maximum number of groups is 2, and the names must be unique.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "counterSet": { "description": "CounterSet is the name of the set from which the counters defined will be consumed.", "type": "string" @@ -16599,6 +17329,24 @@ ], "type": "object" }, + "v1.DeviceDerivedAttribute": { + "description": "DeviceDerivedAttribute defines a derived attribute computed via CEL.", + "properties": { + "expression": { + "description": "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail.\n\nThe expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector.\n\nWhen pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors.\n\nThe expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks).\n\nThe 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.", + "type": "string" + }, + "name": { + "description": "Name is the identifier for this derived attribute, used in constraints.\n\nIt must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\").\n\nIf the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\").\n\nIt is not valid to define a derived attribute that isn't used in at least one constraint.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, "v1.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.", "properties": { @@ -16674,6 +17422,14 @@ "description": "ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device.", "type": "string" }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "tolerations": { "description": "A copy of all tolerations specified in the request at the time when the device got allocated.\n\nThe maximum number of tolerations is 16.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { @@ -16717,6 +17473,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/v1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators 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" @@ -16775,6 +17539,137 @@ ], "type": "object" }, + "v1.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.", + "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": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/v1.DeviceTaintRuleSpec", + "description": "Spec specifies the selector and one taint.\n\nChanging the spec automatically increments the metadata.generation number." + }, + "status": { + "$ref": "#/definitions/v1.DeviceTaintRuleStatus", + "description": "Status provides information about what was requested in the spec." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v1.DeviceTaintRuleList": { + "description": "DeviceTaintRuleList is a collection of DeviceTaintRules.", + "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 DeviceTaintRules.", + "items": { + "$ref": "#/definitions/v1.DeviceTaintRule" + }, + "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": "#/definitions/v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceTaintRuleList", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v1.DeviceTaintRuleSpec": { + "description": "DeviceTaintRuleSpec specifies the selector and one taint.", + "properties": { + "deviceSelector": { + "$ref": "#/definitions/v1.DeviceTaintSelector", + "description": "DeviceSelector defines which device(s) the taint is applied to. All selector criteria must be satisfied for a device to match. The empty selector matches all devices. Without a selector, no devices are matches." + }, + "taint": { + "$ref": "#/definitions/v1.DeviceTaint", + "description": "The taint that gets applied to matching devices." + } + }, + "required": [ + "taint" + ], + "type": "object" + }, + "v1.DeviceTaintRuleStatus": { + "description": "DeviceTaintRuleStatus provides information about an on-going pod eviction.", + "properties": { + "conditions": { + "description": "Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format.\n\nThe following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise\n (includes the effects which don't cause eviction).\n- Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods\n in a human-readable format, updated periodically, may change\n\nFor `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status.\n\nMust have 8 or fewer entries.", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "v1.DeviceTaintSelector": { + "description": "DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched.", + "properties": { + "device": { + "description": "If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name.\n\nSetting also driver and pool may be required to avoid ambiguity, but is not required.", + "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.\n\nAlso 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" + } + }, + "type": "object" + }, "v1.DeviceToleration": { "description": "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .", "properties": { @@ -16822,6 +17717,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/v1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA DeviceClassName is required.\n\nAdministrators 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" @@ -16870,16 +17773,48 @@ }, "type": "object" }, - "v1.NodeAllocatableResourceMapping": { - "description": "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.", + "v1.NodeAllocatableMapping": { + "description": "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.", "properties": { - "allocationMultiplier": { - "$ref": "#/definitions/resource.Quantity", - "description": "AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim. It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set. 1. If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.\n\t a. A DRA driver representing each CPU core as a device would have\n {ResourceName: \"cpu\", allocationMultiplier: \"2\"} in its\n `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,\n\t\t 4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.\n b. A GPU device that needs additional node memory per GPU allocation would\n have {ResourceName: \"memory\", allocationMultiplier: \"2Gi\"}. Each allocated\n\t\t GPU device instance of this type will account for 2Gi of memory.\n\n2. If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.\n\t The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.\n For example, if a Device's capacity \"dra.example.com/cores\" is consumed,\n and each \"core\" provides 2 \"cpu\"s, the mapping would be:\n {ResourceName: \"cpu\", capacityKey: \"dra.example.com/cores\", allocationMultiplier: \"2\"}.\n If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." - }, "capacityKey": { - "description": "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\".", + "description": "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.", "type": "string" + }, + "capacityMultiplier": { + "$ref": "#/definitions/resource.Quantity", + "description": "CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. For example, if a Device's capacity \"dra.example.com/cores\" is consumed, and each \"core\" provides 2 \"cpu\"s, the mapping would be: {ResourceName: \"cpu\", capacityKey: \"dra.example.com/cores\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." + }, + "deviceMultiplier": { + "$ref": "#/definitions/resource.Quantity", + "description": "DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set." + } + }, + "type": "object" + }, + "v1.NodeAllocatableOverhead": { + "description": "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.", + "properties": { + "perContainer": { + "$ref": "#/definitions/resource.Quantity", + "description": "PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once." + }, + "perPod": { + "$ref": "#/definitions/resource.Quantity", + "description": "PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim." + } + }, + "type": "object" + }, + "v1.NodeAllocatableResource": { + "description": "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.", + "properties": { + "mapping": { + "$ref": "#/definitions/v1.NodeAllocatableMapping", + "description": "Mapping is used when the device directly models a node allocatable resource like standard CPU or memory (e.g., with a CPU DRA driver). The calculated quantity is accounted for exactly once per claim instance on the node. To prevent node cgroup isolation friction, the scheduler explicitly blocks sharing mapped device claims across multiple pods." + }, + "overhead": { + "$ref": "#/definitions/v1.NodeAllocatableOverhead", + "description": "Overhead contains fields for modeling auxiliary overhead incurred on node allocatable resources when allocating devices that are not themselves modeling a node allocatable resource (e.g., host memory overhead for GPUs). Sharing overhead-mapped claims across multiple pods is allowed. The node allocatable overhead is accounted for individually for each pod referencing the claim. Overhead is always subtracted from the node's allocatable capacity for the resource, even when mapping is specified for the same resource. Eg: If a device models memory capacity per socket as a consumable capacity pool via Mapping (with CapacityKey), any overhead specified for the same resource will be subtracted from the node's general allocatable capacity and not from the per-socket capacity pool in Mapping." } }, "type": "object" @@ -16926,9 +17861,6 @@ "description": "Status describes whether the claim is ready to use and what has been allocated." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -17073,9 +18005,6 @@ "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -17138,9 +18067,6 @@ "description": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here." } }, - "required": [ - "spec" - ], "type": "object" }, "v1.ResourcePool": { @@ -17152,7 +18078,7 @@ "type": "integer" }, "name": { - "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", "type": "string" }, "resourceSliceCount": { @@ -17268,6 +18194,10 @@ "$ref": "#/definitions/v1.NodeSelector", "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set." }, + "partitionTypeAttribute": { + "description": "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU.\n\nWhen set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.", + "type": "string" + }, "perDeviceNodeSelection": { "description": "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.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.", "type": "boolean" @@ -17283,6 +18213,14 @@ }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are:\n\n- \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This\n value cannot be specified unless \"NodeUnprepareResources\" is also listed\n (or \"*\" is specified).\n- \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped.\n\nOther values may be added in the future. The kubelet must ignore unknown values.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ @@ -17449,6 +18387,36 @@ }, "type": "object" }, + "v1alpha3.PartitionTypeStatus": { + "description": "PartitionTypeStatus reports allocatability for a single partition type, identified by the value of a grouping attribute.", + "properties": { + "allocatable": { + "description": "Allocatable is the number of additional devices of this partition type that could still be allocated given current shared-counter consumption.", + "format": "int32", + "type": "integer" + }, + "attribute": { + "description": "Attribute is the fully qualified name of the device attribute whose value groups this entry. It is the PartitionTypeAttribute declared by the devices' own slice, or the default named in the request when their slice declares none.", + "type": "string" + }, + "total": { + "description": "Total is the number of devices of this partition type in the pool.", + "format": "int32", + "type": "integer" + }, + "type": { + "description": "Type is the partition type value (e.g. \"Full\" or \"Half\").", + "type": "string" + } + }, + "required": [ + "attribute", + "type", + "total", + "allocatable" + ], + "type": "object" + }, "v1alpha3.PoolStatus": { "description": "PoolStatus contains status information for a single resource pool.", "properties": { @@ -17475,6 +18443,14 @@ "description": "NodeName is the node this pool is associated with. When omitted, the pool is not associated with a specific node. Must be a valid DNS subdomain name (RFC1123).", "type": "string" }, + "partitionSummary": { + "description": "PartitionSummary reports allocatability per (attribute, partition type) for a partitionable pool that publishes SharedCounters. Each entry names the grouping attribute it was resolved from: the PartitionTypeAttribute declared by a device's own slice, or for devices whose slice declares none, the default named in the request. A pool that mixes partitions declared under different attributes reports each independently. When no slice declares an attribute and the request names no default, the pool reports no partition summary.", + "items": { + "$ref": "#/definitions/v1alpha3.PartitionTypeStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "poolName": { "description": "PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\").", "type": "string" @@ -17484,6 +18460,10 @@ "format": "int32", "type": "integer" }, + "shareableSummary": { + "$ref": "#/definitions/v1alpha3.ShareableSummaryStatus", + "description": "ShareableSummary reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations. It is populated only when at least one device in the pool is shareable." + }, "totalDevices": { "description": "TotalDevices is the total number of devices in the pool across all slices. A value of 0 means the pool has no devices. May be unset when validationError is set.", "format": "int32", @@ -17587,6 +18567,10 @@ "v1alpha3.ResourcePoolStatusRequestSpec": { "description": "ResourcePoolStatusRequestSpec defines the filters for the pool status request.", "properties": { + "defaultPartitionTypeAttribute": { + "description": "DefaultPartitionTypeAttribute optionally names a device attribute (by its fully qualified name, e.g. \"gpu.example.com/profile\") to use as the default grouping attribute for partitionable devices whose slice has not declared one themselves.\n\nA slice's own PartitionTypeAttribute always takes precedence. This default applies only to devices whose slice does not declare one, so that a request can still get an accurate partitionSummary from a driver that has not been updated to declare it. When neither the slice nor this default names an attribute, a partitionable pool reports no partitionSummary.\n\nMust include the domain qualifier.", + "type": "string" + }, "driver": { "description": "Driver specifies the DRA driver name to filter pools. Only pools from ResourceSlices with this driver will be included. Must be a DNS subdomain (e.g., \"gpu.example.com\").", "type": "string" @@ -17641,6 +18625,62 @@ ], "type": "object" }, + "v1alpha3.ShareableCapacityStatus": { + "description": "ShareableCapacityStatus reports aggregate amounts for a single shareable capacity key.", + "properties": { + "available": { + "$ref": "#/definitions/resource.Quantity", + "description": "Available is Total minus Consumed, never negative." + }, + "consumed": { + "$ref": "#/definitions/resource.Quantity", + "description": "Consumed is the amount drawn by current allocations." + }, + "name": { + "description": "Name is the capacity name.", + "type": "string" + }, + "total": { + "$ref": "#/definitions/resource.Quantity", + "description": "Total is the sum of this capacity across shareable devices in the pool." + } + }, + "required": [ + "name", + "total", + "consumed", + "available" + ], + "type": "object" + }, + "v1alpha3.ShareableSummaryStatus": { + "description": "ShareableSummaryStatus reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations.", + "properties": { + "capacity": { + "description": "Capacity reports aggregate total, consumed, and available amounts per shareable capacity key across the pool.", + "items": { + "$ref": "#/definitions/v1alpha3.ShareableCapacityStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "fullyAvailableDevices": { + "description": "FullyAvailableDevices is the number of shareable devices with no capacity consumed.", + "format": "int32", + "type": "integer" + }, + "partiallyAvailableDevices": { + "description": "PartiallyAvailableDevices is the number of shareable devices with some but not all capacity consumed.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "fullyAvailableDevices", + "partiallyAvailableDevices" + ], + "type": "object" + }, "v1beta1.AllocatedDeviceStatus": { "description": "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.\n\nThe combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices.", "properties": { @@ -17759,11 +18799,11 @@ "type": "array", "x-kubernetes-list-type": "atomic" }, - "nodeAllocatableResourceMappings": { + "nodeAllocatableResources": { "additionalProperties": { - "$ref": "#/definitions/v1beta1.NodeAllocatableResourceMapping" + "$ref": "#/definitions/v1beta1.NodeAllocatableResource" }, - "description": "NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.", + "description": "NodeAllocatableResources defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.", "type": "object" }, "nodeName": { @@ -17789,7 +18829,7 @@ "description": "CELDeviceSelector contains a CEL expression for selecting a device.", "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.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device\n (v1.34+ with the DRAConsumableCapacity feature enabled).\n\nExample: 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:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe 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.\n\nThe 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.\n\nIf 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.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor 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:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nWhen the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example:\n\n device.attributes[\"dra.example.com\"].models.includes(\"some-model\")\n\nThe 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.", + "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.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\").\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device\n (v1.34+ with the DRAConsumableCapacity feature enabled).\n\nExample: 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:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe 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.\n\nThe 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.\n\nIf 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.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nCommon errors: - \"no such key\": Use optional chaining (.? followed by orValue())\n or guarding the check with has() for optional fields.\n See CEL Optional Types for details:\n https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes\n\nFor more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/\n\nFor 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:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nWhen the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example:\n\n device.attributes[\"dra.example.com\"].models.includes(\"some-model\")\n\nThe 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" } }, @@ -17821,7 +18861,7 @@ "type": "object" }, "v1beta1.CapacityRequestPolicyRange": { - "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", + "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\nIf the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", "properties": { "max": { "$ref": "#/definitions/resource.Quantity", @@ -18093,9 +19133,6 @@ "description": "Spec defines what can be allocated and how to configure it.\n\nThis is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.\n\nChanging the spec automatically increments the metadata.generation number." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -18168,7 +19205,7 @@ "x-kubernetes-list-type": "atomic" }, "extendedResourceName": { - "description": "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.\n\nThis is a beta field.", + "description": "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.", "type": "string" }, "selectors": { @@ -18207,6 +19244,14 @@ "v1beta1.DeviceCounterConsumption": { "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", "properties": { + "compatibilityGroups": { + "description": "CompatibilityGroups is a list of opaque group names for this counter set consumption.\n\nDevices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.\n\nAn unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.\n\nGroup names are opaque and meaningful only within the publishing driver's pool.\n\nThe maximum number of groups is 2, and the names must be unique.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "counterSet": { "description": "CounterSet is the name of the set from which the counters defined will be consumed.", "type": "string" @@ -18225,6 +19270,24 @@ ], "type": "object" }, + "v1beta1.DeviceDerivedAttribute": { + "description": "DeviceDerivedAttribute defines a derived attribute computed via CEL.", + "properties": { + "expression": { + "description": "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail.\n\nThe expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector.\n\nWhen pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors.\n\nThe expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks).\n\nThe 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.", + "type": "string" + }, + "name": { + "description": "Name is the identifier for this derived attribute, used in constraints.\n\nIt must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\").\n\nIf the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\").\n\nIt is not valid to define a derived attribute that isn't used in at least one constraint.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "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.", "properties": { @@ -18245,6 +19308,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/v1beta1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA 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.\n\nAdministrators 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" @@ -18333,6 +19404,14 @@ "description": "ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device.", "type": "string" }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "tolerations": { "description": "A copy of all tolerations specified in the request at the time when the device got allocated.\n\nThe maximum number of tolerations is 16.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { @@ -18376,6 +19455,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/v1beta1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators 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" @@ -18483,16 +19570,48 @@ }, "type": "object" }, - "v1beta1.NodeAllocatableResourceMapping": { - "description": "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.", + "v1beta1.NodeAllocatableMapping": { + "description": "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.", "properties": { - "allocationMultiplier": { - "$ref": "#/definitions/resource.Quantity", - "description": "AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim. It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set. 1. If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.\n\t a. A DRA driver representing each CPU core as a device would have\n {ResourceName: \"cpu\", allocationMultiplier: \"2\"} in its\n `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,\n\t\t 4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.\n b. A GPU device that needs additional node memory per GPU allocation would\n have {ResourceName: \"memory\", allocationMultiplier: \"2Gi\"}. Each allocated\n\t\t GPU device instance of this type will account for 2Gi of memory.\n\n2. If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.\n\t The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.\n For example, if a Device's capacity \"dra.example.com/cores\" is consumed,\n and each \"core\" provides 2 \"cpu\"s, the mapping would be:\n {ResourceName: \"cpu\", capacityKey: \"dra.example.com/cores\", allocationMultiplier: \"2\"}.\n If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." - }, "capacityKey": { - "description": "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\".", + "description": "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.", "type": "string" + }, + "capacityMultiplier": { + "$ref": "#/definitions/resource.Quantity", + "description": "CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. For example, if a Device's capacity \"dra.example.com/cores\" is consumed, and each \"core\" provides 2 \"cpu\"s, the mapping would be: {ResourceName: \"cpu\", capacityKey: \"dra.example.com/cores\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." + }, + "deviceMultiplier": { + "$ref": "#/definitions/resource.Quantity", + "description": "DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set." + } + }, + "type": "object" + }, + "v1beta1.NodeAllocatableOverhead": { + "description": "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.", + "properties": { + "perContainer": { + "$ref": "#/definitions/resource.Quantity", + "description": "PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once." + }, + "perPod": { + "$ref": "#/definitions/resource.Quantity", + "description": "PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim." + } + }, + "type": "object" + }, + "v1beta1.NodeAllocatableResource": { + "description": "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.", + "properties": { + "mapping": { + "$ref": "#/definitions/v1beta1.NodeAllocatableMapping", + "description": "Mapping is used when the device directly models a node allocatable resource like standard CPU or memory (e.g., with a CPU DRA driver). The calculated quantity is accounted for exactly once per claim instance on the node. To prevent node cgroup isolation friction, the scheduler explicitly blocks sharing mapped device claims across multiple pods." + }, + "overhead": { + "$ref": "#/definitions/v1beta1.NodeAllocatableOverhead", + "description": "Overhead contains fields for modeling auxiliary overhead incurred on node allocatable resources when allocating devices that are not themselves modeling a node allocatable resource (e.g., host memory overhead for GPUs). Sharing overhead-mapped claims across multiple pods is allowed. The node allocatable overhead is accounted for individually for each pod referencing the claim. Overhead is always subtracted from the node's allocatable capacity for the resource, even when mapping is specified for the same resource. Eg: If a device models memory capacity per socket as a consumable capacity pool via Mapping (with CapacityKey), any overhead specified for the same resource will be subtracted from the node's general allocatable capacity and not from the per-socket capacity pool in Mapping." } }, "type": "object" @@ -18539,9 +19658,6 @@ "description": "Status describes whether the claim is ready to use and what has been allocated." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -18686,9 +19802,6 @@ "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -18751,9 +19864,6 @@ "description": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here." } }, - "required": [ - "spec" - ], "type": "object" }, "v1beta1.ResourcePool": { @@ -18765,7 +19875,7 @@ "type": "integer" }, "name": { - "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", "type": "string" }, "resourceSliceCount": { @@ -18881,6 +19991,10 @@ "$ref": "#/definitions/v1.NodeSelector", "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set." }, + "partitionTypeAttribute": { + "description": "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU.\n\nWhen set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.", + "type": "string" + }, "perDeviceNodeSelection": { "description": "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.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.", "type": "boolean" @@ -18896,6 +20010,14 @@ }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are:\n\n- \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This\n value cannot be specified unless \"NodeUnprepareResources\" is also listed\n (or \"*\" is specified).\n- \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped.\n\nOther values may be added in the future. The kubelet must ignore unknown values.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ @@ -18973,7 +20095,7 @@ "description": "CELDeviceSelector contains a CEL expression for selecting a device.", "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.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device\n (v1.34+ with the DRAConsumableCapacity feature enabled).\n\nExample: 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:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe 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.\n\nThe 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.\n\nIf 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.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor 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:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nWhen the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example:\n\n device.attributes[\"dra.example.com\"].models.includes(\"some-model\")\n\nThe 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.", + "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.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\").\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device\n (v1.34+ with the DRAConsumableCapacity feature enabled).\n\nExample: 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:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe 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.\n\nThe 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.\n\nIf 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.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nCommon errors: - \"no such key\": Use optional chaining (.? followed by orValue())\n or guarding the check with has() for optional fields.\n See CEL Optional Types for details:\n https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes\n\nFor more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/\n\nFor 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:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nWhen the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example:\n\n device.attributes[\"dra.example.com\"].models.includes(\"some-model\")\n\nThe 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" } }, @@ -19005,7 +20127,7 @@ "type": "object" }, "v1beta2.CapacityRequestPolicyRange": { - "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", + "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\nIf the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", "properties": { "max": { "$ref": "#/definitions/resource.Quantity", @@ -19129,11 +20251,11 @@ "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", "type": "string" }, - "nodeAllocatableResourceMappings": { + "nodeAllocatableResources": { "additionalProperties": { - "$ref": "#/definitions/v1beta2.NodeAllocatableResourceMapping" + "$ref": "#/definitions/v1beta2.NodeAllocatableResource" }, - "description": "NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.", + "description": "NodeAllocatableResources defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.", "type": "object" }, "nodeName": { @@ -19346,9 +20468,6 @@ "description": "Spec defines what can be allocated and how to configure it.\n\nThis is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.\n\nChanging the spec automatically increments the metadata.generation number." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -19421,7 +20540,7 @@ "x-kubernetes-list-type": "atomic" }, "extendedResourceName": { - "description": "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.\n\nThis is a beta field.", + "description": "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.", "type": "string" }, "selectors": { @@ -19460,6 +20579,14 @@ "v1beta2.DeviceCounterConsumption": { "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", "properties": { + "compatibilityGroups": { + "description": "CompatibilityGroups is a list of opaque group names for this counter set consumption.\n\nDevices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.\n\nAn unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.\n\nGroup names are opaque and meaningful only within the publishing driver's pool.\n\nThe maximum number of groups is 2, and the names must be unique.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "counterSet": { "description": "CounterSet is the name of the set from which the counters defined will be consumed.", "type": "string" @@ -19478,6 +20605,24 @@ ], "type": "object" }, + "v1beta2.DeviceDerivedAttribute": { + "description": "DeviceDerivedAttribute defines a derived attribute computed via CEL.", + "properties": { + "expression": { + "description": "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail.\n\nThe expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector.\n\nWhen pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors.\n\nThe expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks).\n\nThe 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.", + "type": "string" + }, + "name": { + "description": "Name is the identifier for this derived attribute, used in constraints.\n\nIt must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\").\n\nIf the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\").\n\nIt is not valid to define a derived attribute that isn't used in at least one constraint.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "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.", "properties": { @@ -19553,6 +20698,14 @@ "description": "ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device.", "type": "string" }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "tolerations": { "description": "A copy of all tolerations specified in the request at the time when the device got allocated.\n\nThe maximum number of tolerations is 16.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { @@ -19596,6 +20749,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/v1beta2.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators 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" @@ -19832,6 +20993,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/v1beta2.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA DeviceClassName is required.\n\nAdministrators 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" @@ -19880,16 +21049,48 @@ }, "type": "object" }, - "v1beta2.NodeAllocatableResourceMapping": { - "description": "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.", + "v1beta2.NodeAllocatableMapping": { + "description": "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.", "properties": { - "allocationMultiplier": { - "$ref": "#/definitions/resource.Quantity", - "description": "AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim. It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set. 1. If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.\n\t a. A DRA driver representing each CPU core as a device would have\n {ResourceName: \"cpu\", allocationMultiplier: \"2\"} in its\n `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,\n\t\t 4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.\n b. A GPU device that needs additional node memory per GPU allocation would\n have {ResourceName: \"memory\", allocationMultiplier: \"2Gi\"}. Each allocated\n\t\t GPU device instance of this type will account for 2Gi of memory.\n\n2. If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.\n\t The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.\n For example, if a Device's capacity \"dra.example.com/cores\" is consumed,\n and each \"core\" provides 2 \"cpu\"s, the mapping would be:\n {ResourceName: \"cpu\", capacityKey: \"dra.example.com/cores\", allocationMultiplier: \"2\"}.\n If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." - }, "capacityKey": { - "description": "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\".", + "description": "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.", "type": "string" + }, + "capacityMultiplier": { + "$ref": "#/definitions/resource.Quantity", + "description": "CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. For example, if a Device's capacity \"dra.example.com/cores\" is consumed, and each \"core\" provides 2 \"cpu\"s, the mapping would be: {ResourceName: \"cpu\", capacityKey: \"dra.example.com/cores\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." + }, + "deviceMultiplier": { + "$ref": "#/definitions/resource.Quantity", + "description": "DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set." + } + }, + "type": "object" + }, + "v1beta2.NodeAllocatableOverhead": { + "description": "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.", + "properties": { + "perContainer": { + "$ref": "#/definitions/resource.Quantity", + "description": "PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once." + }, + "perPod": { + "$ref": "#/definitions/resource.Quantity", + "description": "PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim." + } + }, + "type": "object" + }, + "v1beta2.NodeAllocatableResource": { + "description": "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.", + "properties": { + "mapping": { + "$ref": "#/definitions/v1beta2.NodeAllocatableMapping", + "description": "Mapping is used when the device directly models a node allocatable resource like standard CPU or memory (e.g., with a CPU DRA driver). The calculated quantity is accounted for exactly once per claim instance on the node. To prevent node cgroup isolation friction, the scheduler explicitly blocks sharing mapped device claims across multiple pods." + }, + "overhead": { + "$ref": "#/definitions/v1beta2.NodeAllocatableOverhead", + "description": "Overhead contains fields for modeling auxiliary overhead incurred on node allocatable resources when allocating devices that are not themselves modeling a node allocatable resource (e.g., host memory overhead for GPUs). Sharing overhead-mapped claims across multiple pods is allowed. The node allocatable overhead is accounted for individually for each pod referencing the claim. Overhead is always subtracted from the node's allocatable capacity for the resource, even when mapping is specified for the same resource. Eg: If a device models memory capacity per socket as a consumable capacity pool via Mapping (with CapacityKey), any overhead specified for the same resource will be subtracted from the node's general allocatable capacity and not from the per-socket capacity pool in Mapping." } }, "type": "object" @@ -19936,9 +21137,6 @@ "description": "Status describes whether the claim is ready to use and what has been allocated." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -20083,9 +21281,6 @@ "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -20148,9 +21343,6 @@ "description": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here." } }, - "required": [ - "spec" - ], "type": "object" }, "v1beta2.ResourcePool": { @@ -20162,7 +21354,7 @@ "type": "integer" }, "name": { - "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", "type": "string" }, "resourceSliceCount": { @@ -20278,6 +21470,10 @@ "$ref": "#/definitions/v1.NodeSelector", "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set." }, + "partitionTypeAttribute": { + "description": "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU.\n\nWhen set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.", + "type": "string" + }, "perDeviceNodeSelection": { "description": "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.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.", "type": "boolean" @@ -20293,6 +21489,14 @@ }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are:\n\n- \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This\n value cannot be specified unless \"NodeUnprepareResources\" is also listed\n (or \"*\" is specified).\n- \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped.\n\nOther values may be added in the future. The kubelet must ignore unknown values.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ @@ -20322,7 +21526,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "preemptionPolicy": { "description": "preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", @@ -20384,11 +21588,305 @@ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1alpha2.GangSchedulingPolicy": { + "v1alpha3.CompositeDisruptionMode": { + "description": "CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set.", + "properties": { + "all": { + "description": "all specifies that all children groups can only be disrupted together.", + "type": "object" + }, + "single": { + "description": "single specifies that children groups can be disrupted independently from each other.", + "type": "object" + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "v1alpha3.CompositeGangSchedulingPolicy": { + "description": "CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics.", + "properties": { + "minGroupCount": { + "description": "minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "minGroupCount" + ], + "type": "object" + }, + "v1alpha3.CompositePodGroup": { + "description": "CompositePodGroup represents a runtime instance of pod groups grouped together. CompositePodGroups are created by workload controllers (LWS, JobSet, etc...) from Workload.compositePodGroupTemplates. CompositePodGroup API enablement is toggled by the CompositePodGroup feature gate.", + "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": "#/definitions/v1.ObjectMeta", + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1alpha3.CompositePodGroupSpec", + "description": "spec defines the desired state of the CompositePodGroup." + }, + "status": { + "$ref": "#/definitions/v1alpha3.CompositePodGroupStatus", + "description": "status represents the current observed state of the CompositePodGroup." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v1alpha3.CompositePodGroupList": { + "description": "CompositePodGroupList contains a list of CompositePodGroup resources.", + "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 CompositePodGroups.", + "items": { + "$ref": "#/definitions/v1alpha3.CompositePodGroup" + }, + "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": "#/definitions/v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroupList", + "version": "v1alpha3" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v1alpha3.CompositePodGroupSchedulingConstraints": { + "description": "CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup.", + "properties": { + "topology": { + "description": "topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.", + "items": { + "$ref": "#/definitions/v1alpha3.TopologyConstraint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1alpha3.CompositePodGroupSchedulingPolicy": { + "description": "CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set.", + "properties": { + "basic": { + "description": "basic specifies that the groups of this composite group should be scheduled independently. This field is immutable.", + "type": "object" + }, + "gang": { + "$ref": "#/definitions/v1alpha3.CompositeGangSchedulingPolicy", + "description": "gang specifies that the groups of this composite group should be scheduled using all-or-nothing semantics." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } + } + ] + }, + "v1alpha3.CompositePodGroupSpec": { + "description": "CompositePodGroupSpec defines the desired state of CompositePodGroup.", + "properties": { + "disruptionMode": { + "$ref": "#/definitions/v1alpha3.CompositeDisruptionMode", + "description": "disruptionMode defines the mode in which a given CompositePodGroup can be disrupted. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. One of Single, All. Defaults to Single if unset. This field is immutable." + }, + "parentCompositePodGroupName": { + "description": "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite pod group. It must be a DNS name. If it's nil, then this composite pod group is a root of a workload's hierarchy. This field is immutable.", + "type": "string" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "priority": { + "description": "priority is the value of priority of this composite pod group. Various system components use this field to find the priority of the composite pod group. 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. This field is immutable.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName defines the priority that should be considered when scheduling this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. If left unspecified, it is validated and resolved similarly to the PriorityClassName field in Pods (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the composite pod group's priority will be zero). This field is immutable.", + "type": "string" + }, + "schedulingConstraints": { + "$ref": "#/definitions/v1alpha3.CompositePodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/v1alpha3.CompositePodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this instance of the CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. This field is immutable." + }, + "workloadRef": { + "$ref": "#/definitions/v1alpha3.WorkloadReference", + "description": "workloadRef references an optional CompositePodGroup template within the Workload object that was used to create the CompositePodGroup. This field is required. This field is immutable." + } + }, + "required": [ + "workloadRef", + "schedulingPolicy" + ], + "type": "object" + }, + "v1alpha3.CompositePodGroupStatus": { + "description": "CompositePodGroupStatus represents information about the status of a composite pod group.", + "properties": { + "conditions": { + "description": "conditions represent the latest observations of the CompositePodGroup's state.\n\nKnown condition types: - \"CompositePodGroupInitiallyScheduled\": Indicates whether the overall scheduling requirement\n for the subtree under this CompositePodGroup has been satisfied. Once this condition\n transitions to True, it serves as a terminal state and will never revert to False,\n even if pods are subsequently deleted and group constraints are no longer met.\n- \"DisruptionTarget\": Indicates whether the CompositePodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the CompositePodGroupInitiallyScheduled condition: - \"Unschedulable\": The CompositePodGroup's subtree could not be placed due to resource constraints,\n affinity/anti-affinity, or topological constraints.\n- \"SchedulerError\": The CompositePodGroup cannot be scheduled due to some internal error\n that occurred during scheduling.\n- \"Invalid\": Set to True when kube-scheduler detects an invalid group layout during\n runtime validation. The `message` field details the specific layout violation (such as\n a detected cycle, exceeding the maximum depth of 4, or referencing multiple distinct Workloads).\n\nKnown reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The CompositePodGroup was targeted by the scheduler's preemption loop\n to free up capacity for higher-priority preemptors.", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "v1alpha3.CompositePodGroupTemplate": { + "description": "CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.", + "properties": { + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/v1alpha3.CompositePodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "disruptionMode": { + "$ref": "#/definitions/v1alpha3.CompositeDisruptionMode", + "description": "disruptionMode defines the mode in which a given CompositePodGroup can be disrupted. One of Single, All. This field is immutable." + }, + "name": { + "description": "name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.", + "type": "string" + }, + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/v1alpha3.PodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "priority": { + "description": "priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite pod group. 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. This field is immutable.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName indicates the priority that should be considered when scheduling a composite pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, composite pod groups created from this template will have the priority set to zero. This field is immutable.", + "type": "string" + }, + "schedulingConstraints": { + "$ref": "#/definitions/v1alpha3.CompositePodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this CompositePodGroupTemplate. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/v1alpha3.CompositePodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this template." + } + }, + "required": [ + "name", + "schedulingPolicy" + ], + "type": "object" + }, + "v1alpha3.DisruptionMode": { + "description": "DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set.", + "properties": { + "all": { + "description": "all specifies that all children can only be disrupted together.", + "type": "object" + }, + "single": { + "description": "single specifies that children can be disrupted independently from each other.", + "type": "object" + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "v1alpha3.GangSchedulingPolicy": { "description": "GangSchedulingPolicy defines the parameters for gang scheduling.", "properties": { "minCount": { - "description": "MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.", + "description": "minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling.\n\nNote that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.", "format": "int32", "type": "integer" } @@ -20398,7 +21896,7 @@ ], "type": "object" }, - "v1alpha2.PodGroup": { + "v1alpha3.PodGroup": { "description": "PodGroup represents a runtime instance of pods grouped together. PodGroups are created by workload controllers (Job, LWS, JobSet, etc...) from Workload.podGroupTemplates. PodGroup API enablement is toggled by the GenericWorkload feature gate.", "properties": { "apiVersion": { @@ -20411,15 +21909,15 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1alpha2.PodGroupSpec", - "description": "Spec defines the desired state of the PodGroup." + "$ref": "#/definitions/v1alpha3.PodGroupSpec", + "description": "spec defines the desired state of the PodGroup." }, "status": { - "$ref": "#/definitions/v1alpha2.PodGroupStatus", - "description": "Status represents the current observed state of the PodGroup." + "$ref": "#/definitions/v1alpha3.PodGroupStatus", + "description": "status represents the current observed state of the PodGroup." } }, "required": [ @@ -20430,14 +21928,14 @@ { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1alpha3" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1alpha2.PodGroupList": { + "v1alpha3.PodGroupList": { "description": "PodGroupList contains a list of PodGroup resources.", "properties": { "apiVersion": { @@ -20447,7 +21945,7 @@ "items": { "description": "Items is the list of PodGroups.", "items": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1alpha3.PodGroup" }, "type": "array" }, @@ -20468,26 +21966,26 @@ { "group": "scheduling.k8s.io", "kind": "PodGroupList", - "version": "v1alpha2" + "version": "v1alpha3" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1alpha2.PodGroupResourceClaim": { + "v1alpha3.PodGroupResourceClaim": { "description": "PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup.\n\nIt adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly.", "properties": { "name": { - "description": "Name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.", + "description": "name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.", "type": "string" }, "resourceClaimName": { - "description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "description": "resourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods.\n\nExactly 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 PodGroup.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup 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 podgroup.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "description": "resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this PodGroup.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup 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 podgroup.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", "type": "string" } }, @@ -20496,15 +21994,15 @@ ], "type": "object" }, - "v1alpha2.PodGroupResourceClaimStatus": { + "v1alpha3.PodGroupResourceClaimStatus": { "description": "PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.", "properties": { "name": { - "description": "Name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.spec.resourceClaims, which implies that the string must be a DNS_LABEL.", + "description": "name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.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 PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case.", + "description": "resourceClaimName is the name of the ResourceClaim that was generated for the PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case.", "type": "string" } }, @@ -20513,13 +22011,13 @@ ], "type": "object" }, - "v1alpha2.PodGroupSchedulingConstraints": { + "v1alpha3.PodGroupSchedulingConstraints": { "description": "PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup.", "properties": { "topology": { - "description": "Topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future.", + "description": "topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future.", "items": { - "$ref": "#/definitions/v1alpha2.TopologyConstraint" + "$ref": "#/definitions/v1alpha3.TopologyConstraint" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -20527,16 +22025,16 @@ }, "type": "object" }, - "v1alpha2.PodGroupSchedulingPolicy": { - "description": "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set.", + "v1alpha3.PodGroupSchedulingPolicy": { + "description": "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.", "properties": { "basic": { - "description": "Basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior.", + "description": "basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward.", "type": "object" }, "gang": { - "$ref": "#/definitions/v1alpha2.GangSchedulingPolicy", - "description": "Gang specifies that the pods in this group should be scheduled using all-or-nothing semantics." + "$ref": "#/definitions/v1alpha3.GangSchedulingPolicy", + "description": "gang specifies that the pods in this group should be scheduled using all-or-nothing semantics. Setting this field at group creation time opts this group to gang scheduling; this field cannot be set or unset afterward. The minCount field within Gang scheduling policy remains mutable after group creation." } }, "type": "object", @@ -20549,30 +22047,34 @@ } ] }, - "v1alpha2.PodGroupSpec": { + "v1alpha3.PodGroupSpec": { "description": "PodGroupSpec defines the desired state of a PodGroup.", "properties": { "disruptionMode": { - "description": "DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.", + "$ref": "#/definitions/v1alpha3.DisruptionMode", + "description": "disruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Single, All. Defaults to Single if unset. This field is immutable." + }, + "parentCompositePodGroupName": { + "description": "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.", "type": "string" }, - "podGroupTemplateRef": { - "$ref": "#/definitions/v1alpha2.PodGroupTemplateReference", - "description": "PodGroupTemplateRef references an optional PodGroup template within other object (e.g. Workload) that was used to create the PodGroup. This field is immutable." + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" }, "priority": { - "description": "Priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. 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. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.", + "description": "priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. 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. This field is immutable.", "format": "int32", "type": "integer" }, "priorityClassName": { - "description": "PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.", + "description": "priorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable.", "type": "string" }, "resourceClaims": { - "description": "ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate.\n\nThis is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", + "description": "resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate.\n\nThis is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", "items": { - "$ref": "#/definitions/v1alpha2.PodGroupResourceClaim" + "$ref": "#/definitions/v1alpha3.PodGroupResourceClaim" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -20583,12 +22085,16 @@ "x-kubernetes-patch-strategy": "merge,retainKeys" }, "schedulingConstraints": { - "$ref": "#/definitions/v1alpha2.PodGroupSchedulingConstraints", - "description": "SchedulingConstraints defines optional scheduling constraints (e.g. topology) for this PodGroup. Controllers are expected to fill this field by copying it from a PodGroupTemplate. This field is immutable. This field is only available when the TopologyAwareWorkloadScheduling feature gate is enabled." + "$ref": "#/definitions/v1alpha3.PodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this PodGroup. Controllers are expected to fill this field by copying it from a PodGroupTemplate. This field is immutable. This field is only available when the TopologyAwareWorkloadScheduling feature gate is enabled." }, "schedulingPolicy": { - "$ref": "#/definitions/v1alpha2.PodGroupSchedulingPolicy", - "description": "SchedulingPolicy defines the scheduling policy for this instance of the PodGroup. Controllers are expected to fill this field by copying it from a PodGroupTemplate. This field is immutable." + "$ref": "#/definitions/v1alpha3.PodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this instance of the PodGroup. Controllers are expected to fill this field by copying it from a PodGroupTemplate." + }, + "workloadRef": { + "$ref": "#/definitions/v1alpha3.WorkloadReference", + "description": "workloadRef references an optional PodGroup template within the Workload object that was used to create the PodGroup. This field is immutable." } }, "required": [ @@ -20596,11 +22102,11 @@ ], "type": "object" }, - "v1alpha2.PodGroupStatus": { + "v1alpha3.PodGroupStatus": { "description": "PodGroupStatus represents information about the status of a pod group.", "properties": { "conditions": { - "description": "Conditions represent the latest observations of the PodGroup's state.\n\nKnown condition types: - \"PodGroupScheduled\": Indicates whether the scheduling requirement has been satisfied. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the PodGroupScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints,\n affinity/anti-affinity rules, or insufficient capacity for the gang.\n- \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error\n that happened during scheduling, for example due to nodeAffinity parsing errors.\n\nKnown reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for\n higher-priority PodGroups or Pods.", + "description": "conditions represent the latest observations of the PodGroup's state.\n\nKnown condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the PodGroupInitiallyScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints,\n affinity/anti-affinity rules, or insufficient capacity for the gang.\n- \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error\n that happened during scheduling, for example due to nodeAffinity parsing errors.\n\nKnown reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for\n higher-priority PodGroups or Pods.", "items": { "$ref": "#/definitions/v1.Condition" }, @@ -20613,9 +22119,9 @@ "x-kubernetes-patch-strategy": "merge" }, "resourceClaimStatuses": { - "description": "Status of resource claims.", + "description": "resourceClaimStatuses is status of resource claims.", "items": { - "$ref": "#/definitions/v1alpha2.PodGroupResourceClaimStatus" + "$ref": "#/definitions/v1alpha3.PodGroupResourceClaimStatus" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -20628,30 +22134,34 @@ }, "type": "object" }, - "v1alpha2.PodGroupTemplate": { + "v1alpha3.PodGroupTemplate": { "description": "PodGroupTemplate represents a template for a set of pods with a scheduling policy.", "properties": { "disruptionMode": { - "description": "DisruptionMode defines the mode in which a given PodGroup can be disrupted. One of Pod, PodGroup. This field is available only when the WorkloadAwarePreemption feature gate is enabled.", - "type": "string" + "$ref": "#/definitions/v1alpha3.DisruptionMode", + "description": "disruptionMode defines the mode in which a given PodGroup can be disrupted. One of Single, All. This field is immutable." }, "name": { - "description": "Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.", + "description": "name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.", + "type": "string" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", "type": "string" }, "priority": { - "description": "Priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. 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. This field is available only when the WorkloadAwarePreemption feature gate is enabled.", + "description": "priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. The higher the value, the higher the priority. This field is immutable.", "format": "int32", "type": "integer" }, "priorityClassName": { - "description": "PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, pod groups created from this template will have the priority set to zero. This field is available only when the WorkloadAwarePreemption feature gate is enabled.", + "description": "priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.", "type": "string" }, "resourceClaims": { - "description": "ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate.\n\nThis is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", + "description": "resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate.\n\nThis is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", "items": { - "$ref": "#/definitions/v1alpha2.PodGroupResourceClaim" + "$ref": "#/definitions/v1alpha3.PodGroupResourceClaim" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -20662,12 +22172,12 @@ "x-kubernetes-patch-strategy": "merge,retainKeys" }, "schedulingConstraints": { - "$ref": "#/definitions/v1alpha2.PodGroupSchedulingConstraints", - "description": "SchedulingConstraints defines optional scheduling constraints (e.g. topology) for this PodGroupTemplate. This field is only available when the TopologyAwareWorkloadScheduling feature gate is enabled." + "$ref": "#/definitions/v1alpha3.PodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this PodGroupTemplate. This field is only available when the TopologyAwareWorkloadScheduling feature gate is enabled. This field is immutable." }, "schedulingPolicy": { - "$ref": "#/definitions/v1alpha2.PodGroupSchedulingPolicy", - "description": "SchedulingPolicy defines the scheduling policy for this PodGroupTemplate." + "$ref": "#/definitions/v1alpha3.PodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this PodGroupTemplate." } }, "required": [ @@ -20676,28 +22186,11 @@ ], "type": "object" }, - "v1alpha2.PodGroupTemplateReference": { - "description": "PodGroupTemplateReference references a PodGroup template defined in some object (e.g. Workload). Exactly one reference must be set.", - "properties": { - "workload": { - "$ref": "#/definitions/v1alpha2.WorkloadPodGroupTemplateReference", - "description": "Workload references the PodGroupTemplate within the Workload object that was used to create the PodGroup." - } - }, - "type": "object", - "x-kubernetes-unions": [ - { - "fields-to-discriminateBy": { - "workload": "Workload" - } - } - ] - }, - "v1alpha2.TopologyConstraint": { + "v1alpha3.TopologyConstraint": { "description": "TopologyConstraint defines a topology constraint for a PodGroup.", "properties": { "key": { - "description": "Key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\"", + "description": "key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\"", "type": "string" } }, @@ -20706,19 +22199,19 @@ ], "type": "object" }, - "v1alpha2.TypedLocalObjectReference": { + "v1alpha3.TypedLocalObjectReference": { "description": "TypedLocalObjectReference allows to reference typed object inside the same namespace.", "properties": { "apiGroup": { - "description": "APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.", + "description": "apiGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.", "type": "string" }, "kind": { - "description": "Kind is the type of resource being referenced. It must be a path segment name.", + "description": "kind is the type of resource being referenced. It must be a path segment name.", "type": "string" }, "name": { - "description": "Name is the name of resource being referenced. It must be a path segment name.", + "description": "name is the name of resource being referenced. It must be a path segment name.", "type": "string" } }, @@ -20728,7 +22221,7 @@ ], "type": "object" }, - "v1alpha2.Workload": { + "v1alpha3.Workload": { "description": "Workload allows for expressing scheduling constraints that should be used when managing the lifecycle of workloads from the scheduling perspective, including scheduling, preemption, eviction and other phases. Workload API enablement is toggled by the GenericWorkload feature gate.", "properties": { "apiVersion": { @@ -20741,11 +22234,11 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1alpha2.WorkloadSpec", - "description": "Spec defines the desired behavior of a Workload." + "$ref": "#/definitions/v1alpha3.WorkloadSpec", + "description": "spec defines the desired behavior of a Workload." } }, "required": [ @@ -20756,14 +22249,14 @@ { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1alpha3" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1alpha2.WorkloadList": { + "v1alpha3.WorkloadList": { "description": "WorkloadList contains a list of Workload resources.", "properties": { "apiVersion": { @@ -20773,7 +22266,7 @@ "items": { "description": "Items is the list of Workloads.", "items": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1alpha3.Workload" }, "type": "array" }, @@ -20794,412 +22287,325 @@ { "group": "scheduling.k8s.io", "kind": "WorkloadList", - "version": "v1alpha2" + "version": "v1alpha3" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1alpha2.WorkloadPodGroupTemplateReference": { - "description": "WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object.", + "v1alpha3.WorkloadPodGroupDisruptionMode": { + "description": "WorkloadPodGroupDisruptionMode defines how individual pods within a group can be disrupted. Exactly one mode must be set.", "properties": { - "podGroupTemplateName": { - "description": "PodGroupTemplateName defines the PodGroupTemplate name within the Workload object.", + "all": { + "description": "all specifies that all pods in the group must be disrupted together.", + "type": "object" + }, + "single": { + "description": "single specifies that pods can be disrupted independently from each other.", + "type": "object" + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "v1alpha3.WorkloadPodGroupGangSchedulingPolicy": { + "description": "WorkloadPodGroupGangSchedulingPolicy defines the parameters for gang (all-or-nothing) scheduling.", + "properties": { + "minCount": { + "description": "minCount is the minimum number of pods that must be scheduled at the same time for the scheduler to admit the entire group. This field is optional. If it is not specified, the controller should inject a context-specific sane default (e.g., parallelism for a Job). If set, it must be a positive integer.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "v1alpha3.WorkloadPodGroupResourceClaim": { + "description": "WorkloadPodGroupResourceClaim references a dynamic resource claim that is shared across pods in the group.", + "properties": { + "name": { + "description": "name uniquely identifies this resource claim inside the group. This field is required. It must be a DNS_LABEL.", "type": "string" }, - "workloadName": { - "description": "WorkloadName defines the name of the Workload object.", + "resourceClaimName": { + "description": "resourceClaimName is the name of a ResourceClaim object in the same namespace. This field is optional. If it is not specified, no resource claim is used. If set, it must be a DNS subdomain.", + "type": "string" + }, + "resourceClaimTemplateName": { + "description": "resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace. This field is optional. If it is not specified, no resource claim template is used. If set, it must be a DNS subdomain.", "type": "string" } }, "required": [ - "workloadName", - "podGroupTemplateName" + "name" ], "type": "object" }, - "v1alpha2.WorkloadSpec": { - "description": "WorkloadSpec defines the desired state of a Workload.", + "v1alpha3.WorkloadPodGroupSchedulingConstraints": { + "description": "WorkloadPodGroupSchedulingConstraints defines leaf-level scheduling constraints, such as topology.", "properties": { - "controllerRef": { - "$ref": "#/definitions/v1alpha2.TypedLocalObjectReference", - "description": "ControllerRef is an optional reference to the controlling object, such as a Deployment or Job. This field is intended for use by tools like CLIs to provide a link back to the original workload definition. This field is immutable." - }, - "podGroupTemplates": { - "description": "PodGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. This field is immutable.", + "topology": { + "description": "topology specifies desired topological placements for all pods within the pod group. If unset, no topology placement is requested.", "items": { - "$ref": "#/definitions/v1alpha2.PodGroupTemplate" + "$ref": "#/definitions/v1alpha3.TopologyConstraint" }, "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" + "x-kubernetes-list-type": "atomic" } }, - "required": [ - "podGroupTemplates" - ], "type": "object" }, - "v1.CSIDriver": { - "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.", + "v1alpha3.WorkloadPodGroupSchedulingPolicy": { + "description": "WorkloadPodGroupSchedulingPolicy defines the scheduling policy for a group of pods managed by a workload controller. Exactly one policy must be set.", "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": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "basic": { + "description": "basic specifies that standard, pod-by-pod Kubernetes scheduling behavior should be used.", + "type": "object" }, - "spec": { - "$ref": "#/definitions/v1.CSIDriverSpec", - "description": "spec represents the specification of the CSI Driver." + "gang": { + "$ref": "#/definitions/v1alpha3.WorkloadPodGroupGangSchedulingPolicy", + "description": "gang specifies all-or-nothing scheduling semantics." } }, - "required": [ - "spec" - ], "type": "object", - "x-kubernetes-group-version-kind": [ + "x-kubernetes-unions": [ { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" ] }, - "v1.CSIDriverList": { - "description": "CSIDriverList is a collection of CSIDriver objects.", + "v1alpha3.WorkloadReference": { + "description": "WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup.", "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", + "templateName": { + "description": "templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.", "type": "string" }, - "items": { - "description": "items is the list of CSIDriver", - "items": { - "$ref": "#/definitions/v1.CSIDriver" - }, - "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", + "workloadName": { + "description": "workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.", "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSIDriverList", - "version": "v1" - } + "workloadName", + "templateName" ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] + "type": "object" }, - "v1.CSIDriverSpec": { - "description": "CSIDriverSpec is the specification of a CSIDriver.", + "v1alpha3.WorkloadSpec": { + "description": "WorkloadSpec defines the desired state of a Workload.", "properties": { - "attachRequired": { - "description": "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 value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", - "type": "boolean" - }, - "fsGroupPolicy": { - "description": "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.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults 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.", - "type": "string" - }, - "nodeAllocatableUpdatePeriodSeconds": { - "description": "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.\n\nThis feature requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", - "format": "int64", - "type": "integer" - }, - "podInfoOnMount": { - "description": "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.\n\nThe 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.\n\nThe 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\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"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.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.", - "type": "boolean" - }, - "preventPodSchedulingIfMissing": { - "description": "PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver on the node is missing.\n\nEnabling this option will prevent the scheduler (or any other component which embeds default scheduler such as cluster-autoscaler) from scheduling pods to nodes where CSI driver is not installed.\n\nFor components(such as cluster-autoscaler) that embed the scheduler and run pod placement simulations using scheduler plugins, they MUST be aware of CSI driver registration information via CSINode object. They must create simulated CSINode objects in addition to Node objects during scheduling simulation, otherwise if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any newly created node may be rejected by the scheduler because of missing CSI driver information from the node.\n\nThis is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\".", - "type": "boolean" - }, - "requiresRepublish": { - "description": "requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: 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.", - "type": "boolean" - }, - "seLinuxMount": { - "description": "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"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.\n\nWhen \"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.\n\nDefault is \"false\".", - "type": "boolean" - }, - "serviceAccountTokenInSecrets": { - "description": "serviceAccountTokenInSecrets is an opt-in for CSI drivers to indicate that service account tokens should be passed via the Secrets field in NodePublishVolumeRequest instead of the VolumeContext field. The CSI specification provides a dedicated Secrets field for sensitive information like tokens, which is the appropriate mechanism for handling credentials. This addresses security concerns where sensitive tokens were being logged as part of volume context.\n\nWhen \"true\", kubelet will pass the tokens only in the Secrets field with the key \"csi.storage.k8s.io/serviceAccount.tokens\". The CSI driver must be updated to read tokens from the Secrets field instead of VolumeContext.\n\nWhen \"false\" or not set, kubelet will pass the tokens in VolumeContext with the key \"csi.storage.k8s.io/serviceAccount.tokens\" (existing behavior). This maintains backward compatibility with existing CSI drivers.\n\nThis field can only be set when TokenRequests is configured. The API server will reject CSIDriver specs that set this field without TokenRequests.\n\nDefault behavior if unset is to pass tokens in the VolumeContext field.", - "type": "boolean" - }, - "storageCapacity": { - "description": "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.\n\nThe 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.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", - "type": "boolean" - }, - "tokenRequests": { - "description": "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\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: 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.", + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.\n\nThis field is used only when the CompositePodGroup feature gate is enabled.", "items": { - "$ref": "#/definitions/storage.v1.TokenRequest" + "$ref": "#/definitions/v1alpha3.CompositePodGroupTemplate" }, "type": "array", - "x-kubernetes-list-type": "atomic" + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" }, - "volumeLifecycleModes": { - "description": "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.\n\nThe 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.\n\nFor 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.\n\nThis field is beta. This field is immutable.", + "controllerRef": { + "$ref": "#/definitions/v1alpha3.TypedLocalObjectReference", + "description": "controllerRef is an optional reference to the controlling object, such as a Deployment or Job. This field is intended for use by tools like CLIs to provide a link back to the original workload definition. This field is immutable." + }, + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.", "items": { - "type": "string" + "$ref": "#/definitions/v1alpha3.PodGroupTemplate" }, "type": "array", - "x-kubernetes-list-type": "set" + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" } }, "type": "object" }, - "v1.CSINode": { - "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.", + "v1beta1.CompositeDisruptionMode": { + "description": "CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set.", "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": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. metadata.name must be the Kubernetes node name." + "all": { + "description": "all specifies that all children groups can only be disrupted together.", + "type": "object" }, - "spec": { - "$ref": "#/definitions/v1.CSINodeSpec", - "description": "spec is the specification of CSINode" + "single": { + "description": "single specifies that children groups can be disrupted independently from each other.", + "type": "object" } }, - "required": [ - "spec" - ], "type": "object", - "x-kubernetes-group-version-kind": [ + "x-kubernetes-unions": [ { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" ] }, - "v1.CSINodeDriver": { - "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", + "v1beta1.CompositeGangSchedulingPolicy": { + "description": "CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics.", "properties": { - "allocatable": { - "$ref": "#/definitions/v1.VolumeNodeResources", - "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." - }, - "name": { - "description": "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.", - "type": "string" - }, - "nodeID": { - "description": "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.", - "type": "string" - }, - "topologyKeys": { - "description": "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.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "minGroupCount": { + "description": "minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.", + "format": "int32", + "type": "integer" } }, "required": [ - "name", - "nodeID" + "minGroupCount" ], "type": "object" }, - "v1.CSINodeList": { - "description": "CSINodeList is a collection of CSINode objects.", + "v1beta1.CompositePodGroupSchedulingConstraints": { + "description": "CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup.", "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 CSINode", + "topology": { + "description": "topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.", "items": { - "$ref": "#/definitions/v1.CSINode" + "$ref": "#/definitions/v1beta1.TopologyConstraint" }, - "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" + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1beta1.CompositePodGroupSchedulingPolicy": { + "description": "CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set.", + "properties": { + "basic": { + "description": "basic specifies that the groups of this composite group should be scheduled independently. This field is immutable.", + "type": "object" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "gang": { + "$ref": "#/definitions/v1beta1.CompositeGangSchedulingPolicy", + "description": "gang specifies that the groups of this composite group should be scheduled using all-or-nothing semantics." } }, - "required": [ - "items" - ], "type": "object", - "x-kubernetes-group-version-kind": [ + "x-kubernetes-unions": [ { - "group": "storage.k8s.io", - "kind": "CSINodeList", - "version": "v1" + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1.CSINodeSpec": { - "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", + "v1beta1.CompositePodGroupTemplate": { + "description": "CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.", "properties": { - "drivers": { - "description": "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.", + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", "items": { - "$ref": "#/definitions/v1.CSINodeDriver" + "$ref": "#/definitions/v1beta1.CompositePodGroupTemplate" }, "type": "array", "x-kubernetes-list-map-keys": [ "name" ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - } - }, - "required": [ - "drivers" - ], - "type": "object" - }, - "v1.CSIStorageCapacity": { - "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.\n\nFor 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\"\n\nThe 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\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey 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.", - "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" + "x-kubernetes-list-type": "map" }, - "capacity": { - "$ref": "#/definitions/resource.Quantity", - "description": "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable." + "disruptionMode": { + "$ref": "#/definitions/v1beta1.CompositeDisruptionMode", + "description": "disruptionMode defines the mode in which a given CompositePodGroup can be disrupted. One of Single, All. This field is immutable." }, - "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", + "name": { + "description": "name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.", "type": "string" }, - "maximumVolumeSize": { - "$ref": "#/definitions/resource.Quantity", - "description": "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim." + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/v1beta1.PodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" }, - "nodeTopology": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + "priority": { + "description": "priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite pod group. 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. This field is immutable.", + "format": "int32", + "type": "integer" }, - "storageClassName": { - "description": "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.", + "priorityClassName": { + "description": "priorityClassName indicates the priority that should be considered when scheduling a composite pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, composite pod groups created from this template will have the priority set to zero. This field is immutable.", "type": "string" + }, + "schedulingConstraints": { + "$ref": "#/definitions/v1beta1.CompositePodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this CompositePodGroupTemplate. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/v1beta1.CompositePodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this template." } }, "required": [ - "storageClassName" + "name", + "schedulingPolicy" ], + "type": "object" + }, + "v1beta1.DisruptionMode": { + "description": "DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set.", + "properties": { + "all": { + "description": "all specifies that all children can only be disrupted together.", + "type": "object" + }, + "single": { + "description": "single specifies that children can be disrupted independently from each other.", + "type": "object" + } + }, "type": "object", - "x-kubernetes-group-version-kind": [ + "x-kubernetes-unions": [ { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1" + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" ] }, - "v1.CSIStorageCapacityList": { - "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", + "v1beta1.GangSchedulingPolicy": { + "description": "GangSchedulingPolicy defines the parameters for gang scheduling.", "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 CSIStorageCapacity objects.", - "items": { - "$ref": "#/definitions/v1.CSIStorageCapacity" - }, - "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": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "minCount": { + "description": "minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling.\n\nNote that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.", + "format": "int32", + "type": "integer" } }, "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacityList", - "version": "v1" - } + "minCount" ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] + "type": "object" }, - "v1.StorageClass": { - "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", + "v1beta1.PodGroup": { + "description": "PodGroup represents a runtime instance of pods grouped together. PodGroups are created by workload controllers (Job, LWS, JobSet, etc...) from Workload.podGroupTemplates. PodGroup API enablement is toggled by the GenericWorkload feature gate.", "properties": { - "allowVolumeExpansion": { - "description": "allowVolumeExpansion shows whether the storage class allow volume expand.", - "type": "boolean" - }, - "allowedTopologies": { - "description": "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.", - "items": { - "$ref": "#/definitions/v1.TopologySelectorTerm" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, "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" @@ -21210,62 +22616,43 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "mountOptions": { - "description": "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.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "parameters": { - "additionalProperties": { - "type": "string" - }, - "description": "parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "type": "object" - }, - "provisioner": { - "description": "provisioner indicates the type of the provisioner.", - "type": "string" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "reclaimPolicy": { - "description": "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.", - "type": "string" + "spec": { + "$ref": "#/definitions/v1beta1.PodGroupSpec", + "description": "spec defines the desired state of the PodGroup." }, - "volumeBindingMode": { - "description": "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.", - "type": "string" + "status": { + "$ref": "#/definitions/v1beta1.PodGroupStatus", + "description": "status represents the current observed state of the PodGroup." } }, "required": [ - "provisioner" + "spec" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1beta1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1.StorageClassList": { - "description": "StorageClassList is a collection of storage classes.", + "v1beta1.PodGroupList": { + "description": "PodGroupList contains a list of PodGroup resources.", "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 StorageClasses", + "description": "Items is the list of PodGroups.", "items": { - "$ref": "#/definitions/v1.StorageClass" + "$ref": "#/definitions/v1beta1.PodGroup" }, "type": "array" }, @@ -21275,7 +22662,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata." } }, "required": [ @@ -21284,228 +22671,309 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "StorageClassList", - "version": "v1" + "group": "scheduling.k8s.io", + "kind": "PodGroupList", + "version": "v1beta1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "storage.v1.TokenRequest": { - "description": "TokenRequest contains parameters of a service account token.", + "v1beta1.PodGroupResourceClaim": { + "description": "PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup.\n\nIt adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly.", "properties": { - "audience": { - "description": "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", + "name": { + "description": "name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.", "type": "string" }, - "expirationSeconds": { - "description": "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".", - "format": "int64", - "type": "integer" + "resourceClaimName": { + "description": "resourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods.\n\nExactly 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 PodGroup.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup 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 podgroup.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "type": "string" } }, "required": [ - "audience" + "name" ], "type": "object" }, - "v1.VolumeAttachment": { - "description": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", + "v1beta1.PodGroupResourceClaimStatus": { + "description": "PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.", "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", + "name": { + "description": "name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.spec.resourceClaims, which implies that the string must be a DNS_LABEL.", "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", + "resourceClaimName": { + "description": "resourceClaimName is the name of the ResourceClaim that was generated for the PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case.", "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.VolumeAttachmentSpec", - "description": "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system." - }, - "status": { - "$ref": "#/definitions/v1.VolumeAttachmentStatus", - "description": "status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher." } }, "required": [ - "spec" + "name" ], + "type": "object" + }, + "v1beta1.PodGroupSchedulingConstraints": { + "description": "PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup.", + "properties": { + "topology": { + "description": "topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future.", + "items": { + "$ref": "#/definitions/v1beta1.TopologyConstraint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1beta1.PodGroupSchedulingPolicy": { + "description": "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.", + "properties": { + "basic": { + "description": "basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward.", + "type": "object" + }, + "gang": { + "$ref": "#/definitions/v1beta1.GangSchedulingPolicy", + "description": "gang specifies that the pods in this group should be scheduled using all-or-nothing semantics. Setting this field at group creation time opts this group to gang scheduling; this field cannot be set or unset afterward. The minCount field within Gang scheduling policy remains mutable after group creation." + } + }, "type": "object", - "x-kubernetes-group-version-kind": [ + "x-kubernetes-unions": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" ] }, - "v1.VolumeAttachmentList": { - "description": "VolumeAttachmentList is a collection of VolumeAttachment objects.", + "v1beta1.PodGroupSpec": { + "description": "PodGroupSpec defines the desired state of a PodGroup.", "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", + "disruptionMode": { + "$ref": "#/definitions/v1beta1.DisruptionMode", + "description": "disruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Single, All. Defaults to Single if unset. This field is immutable." + }, + "parentCompositePodGroupName": { + "description": "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.", "type": "string" }, - "items": { - "description": "items is the list of VolumeAttachments", + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "priority": { + "description": "priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. 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. This field is immutable.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable.", + "type": "string" + }, + "resourceClaims": { + "description": "resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate.\n\nThis is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", "items": { - "$ref": "#/definitions/v1.VolumeAttachment" + "$ref": "#/definitions/v1beta1.PodGroupResourceClaim" }, - "type": "array" + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" }, - "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" + "schedulingConstraints": { + "$ref": "#/definitions/v1beta1.PodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this PodGroup. Controllers are expected to fill this field by copying it from a PodGroupTemplate. This field is immutable. This field is only available when the TopologyAwareWorkloadScheduling feature gate is enabled." }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "schedulingPolicy": { + "$ref": "#/definitions/v1beta1.PodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this instance of the PodGroup. Controllers are expected to fill this field by copying it from a PodGroupTemplate." + }, + "workloadRef": { + "$ref": "#/definitions/v1beta1.WorkloadReference", + "description": "workloadRef references an optional PodGroup template within the Workload object that was used to create the PodGroup. This field is immutable." } }, "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "VolumeAttachmentList", - "version": "v1" - } + "schedulingPolicy" ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] + "type": "object" }, - "v1.VolumeAttachmentSource": { - "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.", + "v1beta1.PodGroupStatus": { + "description": "PodGroupStatus represents information about the status of a pod group.", "properties": { - "inlineVolumeSpec": { - "$ref": "#/definitions/v1.PersistentVolumeSpec", - "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature." + "conditions": { + "description": "conditions represent the latest observations of the PodGroup's state.\n\nKnown condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the PodGroupInitiallyScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints,\n affinity/anti-affinity rules, or insufficient capacity for the gang.\n- \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error\n that happened during scheduling, for example due to nodeAffinity parsing errors.\n\nKnown reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for\n higher-priority PodGroups or Pods.", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "persistentVolumeName": { - "description": "persistentVolumeName represents the name of the persistent volume to attach.", - "type": "string" + "resourceClaimStatuses": { + "description": "resourceClaimStatuses is status of resource claims.", + "items": { + "$ref": "#/definitions/v1beta1.PodGroupResourceClaimStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" } }, "type": "object" }, - "v1.VolumeAttachmentSpec": { - "description": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", + "v1beta1.PodGroupTemplate": { + "description": "PodGroupTemplate represents a template for a set of pods with a scheduling policy.", "properties": { - "attacher": { - "description": "attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", + "disruptionMode": { + "$ref": "#/definitions/v1beta1.DisruptionMode", + "description": "disruptionMode defines the mode in which a given PodGroup can be disrupted. One of Single, All. This field is immutable." + }, + "name": { + "description": "name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.", "type": "string" }, - "nodeName": { - "description": "nodeName represents the node that the volume should be attached to.", + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", "type": "string" }, - "source": { - "$ref": "#/definitions/v1.VolumeAttachmentSource", - "description": "source represents the volume that should be attached." + "priority": { + "description": "priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. The higher the value, the higher the priority. This field is immutable.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.", + "type": "string" + }, + "resourceClaims": { + "description": "resourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate.\n\nThis is a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/v1beta1.PodGroupResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "schedulingConstraints": { + "$ref": "#/definitions/v1beta1.PodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this PodGroupTemplate. This field is only available when the TopologyAwareWorkloadScheduling feature gate is enabled. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/v1beta1.PodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this PodGroupTemplate." } }, "required": [ - "attacher", - "source", - "nodeName" + "name", + "schedulingPolicy" ], "type": "object" }, - "v1.VolumeAttachmentStatus": { - "description": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", + "v1beta1.TopologyConstraint": { + "description": "TopologyConstraint defines a topology constraint for a PodGroup.", "properties": { - "attachError": { - "$ref": "#/definitions/v1.VolumeError", - "description": "attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher." - }, - "attached": { - "description": "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.", - "type": "boolean" + "key": { + "description": "key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\"", + "type": "string" + } + }, + "required": [ + "key" + ], + "type": "object" + }, + "v1beta1.TypedLocalObjectReference": { + "description": "TypedLocalObjectReference allows to reference typed object inside the same namespace.", + "properties": { + "apiGroup": { + "description": "apiGroup is the group for the resource being referenced. If apiGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting apiGroup is required. It must be a DNS subdomain.", + "type": "string" }, - "attachmentMetadata": { - "additionalProperties": { - "type": "string" - }, - "description": "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.", - "type": "object" + "kind": { + "description": "kind is the type of resource being referenced. It must be a path segment name.", + "type": "string" }, - "detachError": { - "$ref": "#/definitions/v1.VolumeError", - "description": "detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher." + "name": { + "description": "name is the name of resource being referenced. It must be a path segment name.", + "type": "string" } }, "required": [ - "attached" + "kind", + "name" ], "type": "object" }, - "v1.VolumeAttributesClass": { - "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.", + "v1beta1.Workload": { + "description": "Workload allows for expressing scheduling constraints that should be used when managing the lifecycle of workloads from the scheduling perspective, including scheduling, preemption, eviction and other phases. Workload API enablement is toggled by the GenericWorkload feature gate.", "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" }, - "driverName": { - "description": "Name of the CSI driver This field 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 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": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "parameters": { - "additionalProperties": { - "type": "string" - }, - "description": "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.\n\nThis 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.", - "type": "object" + "spec": { + "$ref": "#/definitions/v1beta1.WorkloadSpec", + "description": "spec defines the desired behavior of a Workload." } }, "required": [ - "driverName" + "spec" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1" + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1beta1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1.VolumeAttributesClassList": { - "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "v1beta1.WorkloadList": { + "description": "WorkloadList contains a list of Workload resources.", "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 VolumeAttributesClass objects.", + "description": "items is the list of Workloads.", "items": { - "$ref": "#/definitions/v1.VolumeAttributesClass" + "$ref": "#/definitions/v1beta1.Workload" }, "type": "array" }, @@ -21515,7 +22983,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard list metadata." } }, "required": [ @@ -21524,99 +22992,111 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClassList", - "version": "v1" + "group": "scheduling.k8s.io", + "kind": "WorkloadList", + "version": "v1beta1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1.VolumeError": { - "description": "VolumeError captures an error encountered during a volume operation.", + "v1beta1.WorkloadReference": { + "description": "WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup.", "properties": { - "errorCode": { - "description": "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.\n\nThis field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.", - "format": "int32", - "type": "integer" - }, - "message": { - "description": "message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", + "templateName": { + "description": "templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.", "type": "string" }, - "time": { - "description": "time represents the time the error was encountered.", - "format": "date-time", + "workloadName": { + "description": "workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.", "type": "string" } }, + "required": [ + "workloadName", + "templateName" + ], "type": "object" }, - "v1.VolumeNodeResources": { - "description": "VolumeNodeResources is a set of resource limits for scheduling of volumes.", + "v1beta1.WorkloadSpec": { + "description": "WorkloadSpec defines the desired state of a Workload.", "properties": { - "count": { - "description": "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.", - "format": "int32", - "type": "integer" + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.\n\nThis field is used only when the CompositePodGroup feature gate is enabled.", + "items": { + "$ref": "#/definitions/v1beta1.CompositePodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "controllerRef": { + "$ref": "#/definitions/v1beta1.TypedLocalObjectReference", + "description": "controllerRef is an optional reference to the controlling object, such as a Deployment or Job. This field is intended for use by tools like CLIs to provide a link back to the original workload definition. This field is immutable." + }, + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/v1beta1.PodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" } }, "type": "object" }, - "v1beta1.VolumeAttributesClass": { - "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.", + "v1.CSIDriver": { + "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.", "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" }, - "driverName": { - "description": "Name of the CSI driver This field 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 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": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "parameters": { - "additionalProperties": { - "type": "string" - }, - "description": "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.\n\nThis 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.", - "type": "object" + "spec": { + "$ref": "#/definitions/v1.CSIDriverSpec", + "description": "spec represents the specification of the CSI Driver." } }, "required": [ - "driverName" + "spec" ], "type": "object", "x-kubernetes-group-version-kind": [ { "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "kind": "CSIDriver", + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1beta1.VolumeAttributesClassList": { - "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "v1.CSIDriverList": { + "description": "CSIDriverList is a collection of CSIDriver objects.", "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 VolumeAttributesClass objects.", + "description": "items is the list of CSIDriver", "items": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.CSIDriver" }, "type": "array" }, @@ -21636,16 +23116,75 @@ "x-kubernetes-group-version-kind": [ { "group": "storage.k8s.io", - "kind": "VolumeAttributesClassList", - "version": "v1beta1" + "kind": "CSIDriverList", + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1beta1.StorageVersionMigration": { - "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", + "v1.CSIDriverSpec": { + "description": "CSIDriverSpec is the specification of a CSIDriver.", + "properties": { + "attachRequired": { + "description": "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 value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", + "type": "boolean" + }, + "fsGroupPolicy": { + "description": "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.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults 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.", + "type": "string" + }, + "nodeAllocatableUpdatePeriodSeconds": { + "description": "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.\n\nThis feature requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + "format": "int64", + "type": "integer" + }, + "podInfoOnMount": { + "description": "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.\n\nThe 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.\n\nThe 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\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"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.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.", + "type": "boolean" + }, + "preventPodSchedulingIfMissing": { + "description": "preventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver on the node is missing.\n\nEnabling this option will prevent the scheduler (or any other component which embeds default scheduler such as cluster-autoscaler) from scheduling pods to nodes where CSI driver is not installed.\n\nFor components(such as cluster-autoscaler) that embed the scheduler and run pod placement simulations using scheduler plugins, they MUST be aware of CSI driver registration information via CSINode object. They must create simulated CSINode objects in addition to Node objects during scheduling simulation, otherwise if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any newly created node may be rejected by the scheduler because of missing CSI driver information from the node.\n\nThis is a beta feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\".", + "type": "boolean" + }, + "requiresRepublish": { + "description": "requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: 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.", + "type": "boolean" + }, + "seLinuxMount": { + "description": "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"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.\n\nWhen \"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.\n\nDefault is \"false\".", + "type": "boolean" + }, + "serviceAccountTokenInSecrets": { + "description": "serviceAccountTokenInSecrets is an opt-in for CSI drivers to indicate that service account tokens should be passed via the Secrets field in NodePublishVolumeRequest instead of the VolumeContext field. The CSI specification provides a dedicated Secrets field for sensitive information like tokens, which is the appropriate mechanism for handling credentials. This addresses security concerns where sensitive tokens were being logged as part of volume context.\n\nWhen \"true\", kubelet will pass the tokens only in the Secrets field with the key \"csi.storage.k8s.io/serviceAccount.tokens\". The CSI driver must be updated to read tokens from the Secrets field instead of VolumeContext.\n\nWhen \"false\" or not set, kubelet will pass the tokens in VolumeContext with the key \"csi.storage.k8s.io/serviceAccount.tokens\" (existing behavior). This maintains backward compatibility with existing CSI drivers.\n\nThis field can only be set when TokenRequests is configured. The API server will reject CSIDriver specs that set this field without TokenRequests.\n\nDefault behavior if unset is to pass tokens in the VolumeContext field.", + "type": "boolean" + }, + "storageCapacity": { + "description": "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.\n\nThe 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.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", + "type": "boolean" + }, + "tokenRequests": { + "description": "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\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: 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.", + "items": { + "$ref": "#/definitions/storage.v1.TokenRequest" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "volumeLifecycleModes": { + "description": "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.\n\nThe 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.\n\nFor 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.\n\nThis field is beta. This field is immutable.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "v1.CSINode": { + "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.", "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", @@ -21657,40 +23196,73 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. metadata.name must be the Kubernetes node name." }, "spec": { - "$ref": "#/definitions/v1beta1.StorageVersionMigrationSpec", - "description": "Specification of the migration." + "$ref": "#/definitions/v1.CSINodeSpec", + "description": "spec is the specification of CSINode" }, "status": { - "$ref": "#/definitions/v1beta1.StorageVersionMigrationStatus", - "description": "Status of the migration." + "$ref": "#/definitions/v1.CSINodeStatus", + "description": "status contains health and status information for the node's storage." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storagemigration.k8s.io", - "kind": "StorageVersionMigration", - "version": "v1beta1" + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1beta1.StorageVersionMigrationList": { - "description": "StorageVersionMigrationList is a collection of storage version migrations.", + "v1.CSINodeDriver": { + "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", + "properties": { + "allocatable": { + "$ref": "#/definitions/v1.VolumeNodeResources", + "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." + }, + "name": { + "description": "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.", + "type": "string" + }, + "nodeID": { + "description": "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.", + "type": "string" + }, + "topologyKeys": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "nodeID" + ], + "type": "object" + }, + "v1.CSINodeList": { + "description": "CSINodeList is a collection of CSINode objects.", "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 StorageVersionMigration", + "description": "items is the list of CSINode", "items": { - "$ref": "#/definitions/v1beta1.StorageVersionMigration" + "$ref": "#/definitions/v1.CSINode" }, "type": "array" }, @@ -21709,190 +23281,222 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storagemigration.k8s.io", - "kind": "StorageVersionMigrationList", - "version": "v1beta1" + "group": "storage.k8s.io", + "kind": "CSINodeList", + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1beta1.StorageVersionMigrationSpec": { - "description": "Spec of the storage version migration.", + "v1.CSINodeSpec": { + "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", "properties": { - "resource": { - "$ref": "#/definitions/v1.GroupResource", - "description": "The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable." + "drivers": { + "description": "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.", + "items": { + "$ref": "#/definitions/v1.CSINodeDriver" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" } }, "required": [ - "resource" + "drivers" ], "type": "object" }, - "v1beta1.StorageVersionMigrationStatus": { - "description": "Status of the storage version migration.", + "v1.CSINodeStatus": { + "description": "CSINodeStatus contains health and status information for storage on a node.", "properties": { - "conditions": { - "description": "The latest available observations of the migration's current state.", + "storageHealth": { + "description": "storageHealth contains backend health reports for CSI drivers registered on the node.", "items": { - "$ref": "#/definitions/v1.Condition" + "$ref": "#/definitions/v1.StorageHealth" }, "type": "array", "x-kubernetes-list-map-keys": [ - "type" + "name" ], "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge" - }, - "resourceVersion": { - "description": "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.", - "type": "string" } }, "type": "object" }, - "v1.CustomResourceColumnDefinition": { - "description": "CustomResourceColumnDefinition specifies a column for server side printing.", + "v1.CSIStorageCapacity": { + "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.\n\nFor 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\"\n\nThe 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\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey 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.", "properties": { - "description": { - "description": "description is a human readable description of this column.", + "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" }, - "format": { - "description": "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.", - "type": "string" + "capacity": { + "$ref": "#/definitions/resource.Quantity", + "description": "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable." }, - "jsonPath": { - "description": "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.", + "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" }, - "name": { - "description": "name is a human readable name for the column.", - "type": "string" + "maximumVolumeSize": { + "$ref": "#/definitions/resource.Quantity", + "description": "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim." }, - "priority": { - "description": "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.", - "format": "int32", - "type": "integer" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "metadata is the standard object metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "type": { - "description": "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.", + "nodeTopology": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + }, + "storageClassName": { + "description": "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.", "type": "string" } }, "required": [ - "name", - "type", - "jsonPath" + "storageClassName" ], - "type": "object" - }, - "v1.CustomResourceConversion": { - "description": "CustomResourceConversion describes how to convert different versions of a CR.", - "properties": { - "strategy": { - "description": "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\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.", - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/v1.WebhookConversion", - "description": "webhook describes how to call the conversion webhook. Required when `strategy` is set to `\"Webhook\"`." + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" } - }, - "required": [ - "strategy" ], - "type": "object" + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] }, - "v1.CustomResourceDefinition": { - "description": "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.", + "v1.CSIStorageCapacityList": { + "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", "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 CSIStorageCapacity objects.", + "items": { + "$ref": "#/definitions/v1.CSIStorageCapacity" + }, + "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": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.CustomResourceDefinitionSpec", - "description": "spec describes how the user wants the resources to appear" - }, - "status": { - "$ref": "#/definitions/v1.CustomResourceDefinitionStatus", - "description": "status indicates the actual state of the CustomResourceDefinition" + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "spec" + "items" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", + "group": "storage.k8s.io", + "kind": "CSIStorageCapacityList", "version": "v1" } ], "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" + "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1.CustomResourceDefinitionCondition": { - "description": "CustomResourceDefinitionCondition contains details for the current condition of this pod.", + "v1.StorageClass": { + "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", "properties": { - "lastTransitionTime": { - "description": "lastTransitionTime last time the condition transitioned from one status to another.", - "format": "date-time", + "allowVolumeExpansion": { + "description": "allowVolumeExpansion shows whether the storage class allow volume expand.", + "type": "boolean" + }, + "allowedTopologies": { + "description": "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.", + "items": { + "$ref": "#/definitions/v1.TopologySelectorTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "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" }, - "message": { - "description": "message is a human-readable message indicating details about last transition.", + "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" }, - "observedGeneration": { - "description": "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.", - "format": "int64", - "type": "integer" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "reason": { - "description": "reason is a unique, one-word, CamelCase reason for the condition's last transition.", + "mountOptions": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "parameters": { + "additionalProperties": { + "type": "string" + }, + "description": "parameters holds the parameters for the provisioner that should create volumes of this storage class.", + "type": "object" + }, + "provisioner": { + "description": "provisioner indicates the type of the provisioner.", "type": "string" }, - "status": { - "description": "status is the status of the condition. Can be True, False, Unknown.", + "reclaimPolicy": { + "description": "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.", "type": "string" }, - "type": { - "description": "type is the type of the condition. Types include Established, NamesAccepted and Terminating.", + "volumeBindingMode": { + "description": "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.", "type": "string" } }, "required": [ - "type", - "status" + "provisioner" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] }, - "v1.CustomResourceDefinitionList": { - "description": "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.", + "v1.StorageClassList": { + "description": "StorageClassList is a collection of storage classes.", "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 list individual CustomResourceDefinition objects", + "description": "items is the list of StorageClasses", "items": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1.StorageClass" }, "type": "array" }, @@ -21902,7 +23506,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -21911,8 +23515,8 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinitionList", + "group": "storage.k8s.io", + "kind": "StorageClassList", "version": "v1" } ], @@ -21920,562 +23524,445 @@ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1.CustomResourceDefinitionNames": { - "description": "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition", + "v1.StorageHealth": { + "description": "StorageHealth contains storage backend health reported by a CSI driver on a node.", "properties": { - "categories": { - "description": "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`.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "kind": { - "description": "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.", - "type": "string" - }, - "listKind": { - "description": "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".", - "type": "string" - }, - "plural": { - "description": "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.", - "type": "string" - }, - "shortNames": { - "description": "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.", + "healthConditions": { + "description": "healthConditions are the adverse storage backend conditions reported by the CSI driver. At most 16 conditions may be reported.", "items": { - "type": "string" + "$ref": "#/definitions/v1.StorageHealthCondition" }, "type": "array", "x-kubernetes-list-type": "atomic" }, - "singular": { - "description": "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.", + "name": { + "description": "name is the CSI driver name, matching CSINodeDriver.name.", "type": "string" } }, "required": [ - "plural", - "kind" + "name" ], "type": "object" }, - "v1.CustomResourceDefinitionSpec": { - "description": "CustomResourceDefinitionSpec describes how a user wants their resource to appear", + "v1.StorageHealthCondition": { + "description": "StorageHealthCondition represents an adverse health condition reported by a CSI driver for its storage backend on a node.", "properties": { - "conversion": { - "$ref": "#/definitions/v1.CustomResourceConversion", - "description": "conversion defines conversion settings for the CRD." + "accessMode": { + "description": "accessMode is the access mode affected. Nil means all access modes are affected.", + "type": "string" }, - "group": { - "description": "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 `.`).", + "lastTransitionTime": { + "description": "lastTransitionTime is when this condition first appeared at its current state.", + "format": "date-time", "type": "string" }, - "names": { - "$ref": "#/definitions/v1.CustomResourceDefinitionNames", - "description": "names specify the resource and kind names for the custom resource." + "message": { + "description": "message is a human-readable description. Maximum permitted length of a message is 1024 characters.", + "type": "string" }, - "preserveUnknownFields": { - "description": "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.", - "type": "boolean" + "reason": { + "description": "reason is a brief CamelCase machine-parseable reason. Maximum permitted length of a reason is 256 characters.", + "type": "string" }, - "scope": { - "description": "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.", + "status": { + "description": "status is the health status category. One of \"StorageUnreachable\", \"StorageDegraded\".", "type": "string" }, - "versions": { - "description": "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.", - "items": { - "$ref": "#/definitions/v1.CustomResourceDefinitionVersion" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "volumeMode": { + "description": "volumeMode is the volume mode affected. Nil means both are affected.", + "type": "string" } }, "required": [ - "group", - "names", - "scope", - "versions" + "status", + "reason" ], "type": "object" }, - "v1.CustomResourceDefinitionStatus": { - "description": "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition", + "storage.v1.TokenRequest": { + "description": "TokenRequest contains parameters of a service account token.", "properties": { - "acceptedNames": { - "$ref": "#/definitions/v1.CustomResourceDefinitionNames", - "description": "acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec." - }, - "conditions": { - "description": "conditions indicate state for particular aspects of a CustomResourceDefinition", - "items": { - "$ref": "#/definitions/v1.CustomResourceDefinitionCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" + "audience": { + "description": "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", + "type": "string" }, - "observedGeneration": { - "description": "The generation observed by the CRD controller.", + "expirationSeconds": { + "description": "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".", "format": "int64", "type": "integer" - }, - "storedVersions": { - "description": "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.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" } }, + "required": [ + "audience" + ], "type": "object" }, - "v1.CustomResourceDefinitionVersion": { - "description": "CustomResourceDefinitionVersion describes a version for CRD.", + "v1.VolumeAttachment": { + "description": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", "properties": { - "additionalPrinterColumns": { - "description": "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.", - "items": { - "$ref": "#/definitions/v1.CustomResourceColumnDefinition" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "deprecated": { - "description": "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.", - "type": "boolean" - }, - "deprecationWarning": { - "description": "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.", + "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" }, - "name": { - "description": "name is the version name, e.g. \u201cv1\u201d, \u201cv2beta1\u201d, etc. The custom resources are served under this version at `/apis///...` if `served` is true.", + "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" }, - "schema": { - "$ref": "#/definitions/v1.CustomResourceValidation", - "description": "schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource." - }, - "selectableFields": { - "description": "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", - "items": { - "$ref": "#/definitions/v1.SelectableField" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "served": { - "description": "served is a flag enabling/disabling this version from being served via REST APIs", - "type": "boolean" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "storage": { - "description": "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.", - "type": "boolean" + "spec": { + "$ref": "#/definitions/v1.VolumeAttachmentSpec", + "description": "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system." }, - "subresources": { - "$ref": "#/definitions/v1.CustomResourceSubresources", - "description": "subresources specify what subresources this version of the defined custom resource have." + "status": { + "$ref": "#/definitions/v1.VolumeAttachmentStatus", + "description": "status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher." } }, "required": [ - "name", - "served", - "storage" + "spec" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] }, - "v1.CustomResourceSubresourceScale": { - "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", + "v1.VolumeAttachmentList": { + "description": "VolumeAttachmentList is a collection of VolumeAttachment objects.", "properties": { - "labelSelectorPath": { - "description": "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.", + "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" }, - "specReplicasPath": { - "description": "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.", - "type": "string" + "items": { + "description": "items is the list of VolumeAttachments", + "items": { + "$ref": "#/definitions/v1.VolumeAttachment" + }, + "type": "array" }, - "statusReplicasPath": { - "description": "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.", + "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": "#/definitions/v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "specReplicasPath", - "statusReplicasPath" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachmentList", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] }, - "v1.CustomResourceSubresources": { - "description": "CustomResourceSubresources defines the status and scale subresources for CustomResources.", + "v1.VolumeAttachmentSource": { + "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.", "properties": { - "scale": { - "$ref": "#/definitions/v1.CustomResourceSubresourceScale", - "description": "scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object." + "inlineVolumeSpec": { + "$ref": "#/definitions/v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature." }, - "status": { - "description": "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.", - "type": "object" + "persistentVolumeName": { + "description": "persistentVolumeName represents the name of the persistent volume to attach.", + "type": "string" } }, "type": "object" }, - "v1.CustomResourceValidation": { - "description": "CustomResourceValidation is a list of validation methods for CustomResources.", + "v1.VolumeAttachmentSpec": { + "description": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", "properties": { - "openAPIV3Schema": { - "$ref": "#/definitions/v1.JSONSchemaProps", - "description": "openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning." + "attacher": { + "description": "attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", + "type": "string" + }, + "nodeName": { + "description": "nodeName represents the node that the volume should be attached to.", + "type": "string" + }, + "source": { + "$ref": "#/definitions/v1.VolumeAttachmentSource", + "description": "source represents the volume that should be attached." } }, + "required": [ + "attacher", + "source", + "nodeName" + ], "type": "object" }, - "v1.ExternalDocumentation": { - "description": "ExternalDocumentation allows referencing an external resource for extended documentation.", + "v1.VolumeAttachmentStatus": { + "description": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", "properties": { - "description": { - "type": "string" + "attachError": { + "$ref": "#/definitions/v1.VolumeError", + "description": "attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher." }, - "url": { - "type": "string" + "attached": { + "description": "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.", + "type": "boolean" + }, + "attachmentMetadata": { + "additionalProperties": { + "type": "string" + }, + "description": "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.", + "type": "object" + }, + "detachError": { + "$ref": "#/definitions/v1.VolumeError", + "description": "detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher." } }, + "required": [ + "attached" + ], "type": "object" }, - "v1.JSONSchemaProps": { - "description": "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).", + "v1.VolumeAttributesClass": { + "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.", "properties": { - "$ref": { + "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" }, - "$schema": { + "driverName": { + "description": "driverName is the name of the CSI driver This field is immutable.", "type": "string" }, - "additionalItems": { - "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", - "type": "object" - }, - "additionalProperties": { - "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", - "type": "object" - }, - "allOf": { - "items": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "anyOf": { - "items": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "default": { - "description": "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.", - "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" }, - "definitions": { - "additionalProperties": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "object" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "dependencies": { + "parameters": { "additionalProperties": { - "description": "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.", - "type": "object" + "type": "string" }, + "description": "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.\n\nThis 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.", "type": "object" - }, - "description": { + } + }, + "required": [ + "driverName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v1.VolumeAttributesClassList": { + "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "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" }, - "enum": { + "items": { + "description": "items is the list of VolumeAttributesClass objects.", "items": { - "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", - "type": "object" + "$ref": "#/definitions/v1.VolumeAttributesClass" }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "example": { - "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", - "type": "object" + "type": "array" }, - "exclusiveMaximum": { - "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" }, - "exclusiveMinimum": { - "type": "boolean" - }, - "externalDocs": { - "$ref": "#/definitions/v1.ExternalDocumentation" - }, - "format": { - "description": "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:\n\n- 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.", - "type": "string" - }, - "id": { - "type": "string" - }, - "items": { - "description": "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.", - "type": "object" - }, - "maxItems": { - "format": "int64", - "type": "integer" - }, - "maxLength": { - "format": "int64", - "type": "integer" - }, - "maxProperties": { - "format": "int64", - "type": "integer" - }, - "maximum": { - "format": "double", - "type": "number" - }, - "minItems": { - "format": "int64", - "type": "integer" - }, - "minLength": { - "format": "int64", - "type": "integer" - }, - "minProperties": { - "format": "int64", + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClassList", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v1.VolumeError": { + "description": "VolumeError captures an error encountered during a volume operation.", + "properties": { + "errorCode": { + "description": "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.\n\nThis field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.", + "format": "int32", "type": "integer" }, - "minimum": { - "format": "double", - "type": "number" - }, - "multipleOf": { - "format": "double", - "type": "number" - }, - "not": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "nullable": { - "type": "boolean" - }, - "oneOf": { - "items": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "pattern": { - "type": "string" - }, - "patternProperties": { - "additionalProperties": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "object" - }, - "properties": { - "additionalProperties": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "object" - }, - "required": { - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "title": { - "type": "string" - }, - "type": { - "type": "string" - }, - "uniqueItems": { - "type": "boolean" - }, - "x-kubernetes-embedded-resource": { - "description": "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).", - "type": "boolean" - }, - "x-kubernetes-int-or-string": { - "description": "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:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", - "type": "boolean" - }, - "x-kubernetes-list-map-keys": { - "description": "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.\n\nThis 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).\n\nThe properties specified must either be required or have a default value, to ensure those properties are present for all list items.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "x-kubernetes-list-type": { - "description": "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:\n\n1) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic lists will be entirely replaced when updated. This extension\n may be used on any type of list (struct, scalar, ...).\n2) `set`:\n Sets are lists that must not have multiple items with the same value. Each\n value must be a scalar, an object with x-kubernetes-map-type `atomic` or an\n array with x-kubernetes-list-type `atomic`.\n3) `map`:\n These lists are like maps in that their elements have a non-index key\n used to identify them. Order is preserved upon merge. The map tag\n must only be used on a list with elements of type object.\nDefaults to atomic for arrays.", + "message": { + "description": "message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", "type": "string" }, - "x-kubernetes-map-type": { - "description": "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:\n\n1) `granular`:\n These maps are actual maps (key-value pairs) and each fields are independent\n from each other (they can each be manipulated by separate actors). This is\n the default behaviour for all maps.\n2) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic maps will be entirely replaced when updated.", + "time": { + "description": "time represents the time the error was encountered.", + "format": "date-time", "type": "string" - }, - "x-kubernetes-preserve-unknown-fields": { - "description": "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.", - "type": "boolean" - }, - "x-kubernetes-validations": { - "description": "x-kubernetes-validations describes a list of validation rules written in the CEL expression language.", - "items": { - "$ref": "#/definitions/v1.ValidationRule" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "rule" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "rule", - "x-kubernetes-patch-strategy": "merge" } }, "type": "object" }, - "v1.SelectableField": { - "description": "SelectableField specifies the JSON path of a field that may be used with field selectors.", + "v1.VolumeNodeResources": { + "description": "VolumeNodeResources is a set of resource limits for scheduling of volumes.", "properties": { - "jsonPath": { - "description": "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.", - "type": "string" + "count": { + "description": "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.", + "format": "int32", + "type": "integer" } }, - "required": [ - "jsonPath" - ], "type": "object" }, - "apiextensions.v1.ServiceReference": { - "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "v1.StorageVersionMigration": { + "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", "properties": { - "name": { - "description": "name is the name of the service. Required", + "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" }, - "namespace": { - "description": "namespace is the namespace of the service. Required", + "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" }, - "path": { - "description": "path is an optional URL path at which the webhook will be contacted.", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "port": { - "description": "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.", - "format": "int32", - "type": "integer" + "spec": { + "$ref": "#/definitions/v1.StorageVersionMigrationSpec", + "description": "Specification of the migration." + }, + "status": { + "$ref": "#/definitions/v1.StorageVersionMigrationStatus", + "description": "Status of the migration." } }, - "required": [ - "namespace", - "name" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + } ], - "type": "object" + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] }, - "v1.ValidationRule": { - "description": "ValidationRule describes a validation rule written in the CEL expression language.", + "v1.StorageVersionMigrationList": { + "description": "StorageVersionMigrationList is a collection of storage version migrations.", "properties": { - "fieldPath": { - "description": "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$']`", - "type": "string" - }, - "message": { - "description": "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\"", - "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 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)+\")\"", + "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" }, - "optionalOldSelf": { - "description": "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.\n\nWhen 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.\n\nYou 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\n\nMay not be set unless `oldSelf` is used in `rule`.", - "type": "boolean" + "items": { + "description": "Items is the list of StorageVersionMigration", + "items": { + "$ref": "#/definitions/v1.StorageVersionMigration" + }, + "type": "array" }, - "reason": { - "description": "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.", + "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" }, - "rule": { - "description": "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\"}\n\nIf 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')\"}\n\nThe `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.\n\nUnknown 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:\n - A schema with no type and x-kubernetes-preserve-unknown-fields set to true\n - An array where the items schema is of an \"unknown type\"\n - An object where the additionalProperties schema is of an \"unknown type\"\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 - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"}\n - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"}\n - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"}\n\nEquality 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:\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.\n\nIf `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`.\n\nBy default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional\n variable whose value() is the same type as `self`.\nSee the documentation for the `optionalOldSelf` field for details.\n\nTransition 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.", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "rule" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigrationList", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] }, - "apiextensions.v1.WebhookClientConfig": { - "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook.", + "v1.StorageVersionMigrationSpec": { + "description": "Spec of the storage version migration.", "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", - "type": "string" - }, - "service": { - "$ref": "#/definitions/apiextensions.v1.ServiceReference", - "description": "service is a reference to the service for this webhook. Either service or url must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." - }, - "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.\n\nThe `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.\n\nPlease 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.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA 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.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", - "type": "string" + "resource": { + "$ref": "#/definitions/v1.GroupResource", + "description": "The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable." } }, + "required": [ + "resource" + ], "type": "object" }, - "v1.WebhookConversion": { - "description": "WebhookConversion describes how to call a conversion webhook", + "v1.StorageVersionMigrationStatus": { + "description": "Status of the storage version migration.", "properties": { - "clientConfig": { - "$ref": "#/definitions/apiextensions.v1.WebhookClientConfig", - "description": "clientConfig is the instructions for how to call the webhook if strategy is `Webhook`." - }, - "conversionReviewVersions": { - "description": "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.", + "conditions": { + "description": "The latest available observations of the migration's current state.", "items": { - "type": "string" + "$ref": "#/definitions/v1.Condition" }, "type": "array", - "x-kubernetes-list-type": "atomic" + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "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.", + "type": "string" } }, - "required": [ - "conversionReviewVersions" - ], "type": "object" }, - "resource.Quantity": { - "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.", - "type": "string", - "format": "quantity" - }, - "v1.APIGroup": { - "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "v1beta1.StorageVersionMigration": { + "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", "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", @@ -22485,228 +23972,207 @@ "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" }, - "name": { - "description": "name is the name of the group.", - "type": "string" - }, - "preferredVersion": { - "$ref": "#/definitions/v1.GroupVersionForDiscovery", - "description": "preferredVersion is the version preferred by the API server, which probably is the storage version." + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "serverAddressByClientCIDRs": { - "description": "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.", - "items": { - "$ref": "#/definitions/v1.ServerAddressByClientCIDR" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "spec": { + "$ref": "#/definitions/v1beta1.StorageVersionMigrationSpec", + "description": "Specification of the migration." }, - "versions": { - "description": "versions are the versions supported in this group.", - "items": { - "$ref": "#/definitions/v1.GroupVersionForDiscovery" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "status": { + "$ref": "#/definitions/v1beta1.StorageVersionMigrationStatus", + "description": "Status of the migration." } }, - "required": [ - "name", - "versions" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "APIGroup", - "version": "v1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1beta1" } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" ] }, - "v1.APIGroupList": { - "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "v1beta1.StorageVersionMigrationList": { + "description": "StorageVersionMigrationList is a collection of storage version migrations.", "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" }, - "groups": { - "description": "groups is a list of APIGroup.", + "items": { + "description": "Items is the list of StorageVersionMigration", "items": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1beta1.StorageVersionMigration" }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "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": "#/definitions/v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "groups" + "items" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "APIGroupList", - "version": "v1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigrationList", + "version": "v1beta1" } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1.APIResource": { - "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "v1beta1.StorageVersionMigrationSpec": { + "description": "Spec of the storage version migration.", "properties": { - "categories": { - "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", + "resource": { + "$ref": "#/definitions/v1.GroupResource", + "description": "The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable." + } + }, + "required": [ + "resource" + ], + "type": "object" + }, + "v1beta1.StorageVersionMigrationStatus": { + "description": "Status of the storage version migration.", + "properties": { + "conditions": { + "description": "The latest available observations of the migration's current state.", "items": { - "type": "string" + "$ref": "#/definitions/v1.Condition" }, "type": "array", - "x-kubernetes-list-type": "atomic" + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "group": { - "description": "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\".", + "resourceVersion": { + "description": "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.", "type": "string" - }, - "kind": { - "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + } + }, + "type": "object" + }, + "v1.CustomResourceColumnDefinition": { + "description": "CustomResourceColumnDefinition specifies a column for server side printing.", + "properties": { + "description": { + "description": "description is a human readable description of this column.", "type": "string" }, - "name": { - "description": "name is the plural name of the resource.", + "format": { + "description": "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.", "type": "string" }, - "namespaced": { - "description": "namespaced indicates if a resource is namespaced or not.", - "type": "boolean" - }, - "shortNames": { - "description": "shortNames is a list of suggested short names of the resource.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "singularName": { - "description": "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.", + "jsonPath": { + "description": "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.", "type": "string" }, - "storageVersionHash": { - "description": "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.", + "name": { + "description": "name is a human readable name for the column.", "type": "string" }, - "verbs": { - "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", - "items": { - "type": "string" - }, - "type": "array" + "priority": { + "description": "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.", + "format": "int32", + "type": "integer" }, - "version": { - "description": "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)\".", + "type": { + "description": "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.", "type": "string" } }, "required": [ "name", - "singularName", - "namespaced", - "kind", - "verbs" + "type", + "jsonPath" ], "type": "object" }, - "v1.APIResourceList": { - "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.", + "v1.CustomResourceConversion": { + "description": "CustomResourceConversion describes how to convert different versions of a CR.", "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", + "strategy": { + "description": "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\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.", "type": "string" }, - "groupVersion": { - "description": "groupVersion is the group and version this APIResourceList is for.", + "webhook": { + "$ref": "#/definitions/v1.WebhookConversion", + "description": "webhook describes how to call the conversion webhook. Required when `strategy` is set to `\"Webhook\"`." + } + }, + "required": [ + "strategy" + ], + "type": "object" + }, + "v1.CustomResourceDefinition": { + "description": "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.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" }, - "resources": { - "description": "resources contains the name of the resources and if they are namespaced.", - "items": { - "$ref": "#/definitions/v1.APIResource" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "groupVersion", - "resources" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "APIResourceList", - "version": "v1" - } - ] - }, - "v1.APIVersions": { - "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.", - "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": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "serverAddressByClientCIDRs": { - "description": "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.", - "items": { - "$ref": "#/definitions/v1.ServerAddressByClientCIDR" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "spec": { + "$ref": "#/definitions/v1.CustomResourceDefinitionSpec", + "description": "spec describes how the user wants the resources to appear" }, - "versions": { - "description": "versions are the api versions that are available.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "status": { + "$ref": "#/definitions/v1.CustomResourceDefinitionStatus", + "description": "status indicates the actual state of the CustomResourceDefinition" } }, "required": [ - "versions", - "serverAddressByClientCIDRs" + "spec" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "APIVersions", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" ] }, - "v1.Condition": { - "description": "Condition contains details for one aspect of the current state of this API Resource.", + "v1.CustomResourceDefinitionCondition": { + "description": "CustomResourceDefinitionCondition contains details for the current condition of this pod.", "properties": { "lastTransitionTime": { - "description": "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.", + "description": "lastTransitionTime 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 the transition. This may be an empty string.", + "description": "message is a human-readable message indicating details about last transition.", "type": "string" }, "observedGeneration": { @@ -22715,467 +24181,599 @@ "type": "integer" }, "reason": { - "description": "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.", + "description": "reason is a unique, one-word, CamelCase reason for the condition's last transition.", "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.", "type": "string" }, "type": { - "description": "type of condition in CamelCase or in foo.example.com/CamelCase.", + "description": "type is the type of the condition. Types include Established, NamesAccepted and Terminating.", "type": "string" } }, "required": [ "type", - "status", - "lastTransitionTime", - "reason", - "message" + "status" ], "type": "object" }, - "v1.DeleteOptions": { - "description": "DeleteOptions may be provided when deleting an API object.", + "v1.CustomResourceDefinitionList": { + "description": "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.", "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" }, - "dryRun": { - "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", + "items": { + "description": "items list individual CustomResourceDefinition objects", "items": { - "type": "string" + "$ref": "#/definitions/v1.CustomResourceDefinition" }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "gracePeriodSeconds": { - "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.", - "format": "int64", - "type": "integer" - }, - "ignoreStoreReadErrorWithClusterBreakingPotential": { - "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", - "type": "boolean" + "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" }, - "orphanDependents": { - "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.", - "type": "boolean" - }, - "preconditions": { - "$ref": "#/definitions/v1.Preconditions", - "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned." - }, - "propagationPolicy": { - "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.", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, + "required": [ + "items" + ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "DeleteOptions", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinitionList", "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v1.CustomResourceDefinitionNames": { + "description": "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition", + "properties": { + "categories": { + "description": "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`.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - { - "group": "admission.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "kind": { + "description": "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.", + "type": "string" }, - { - "group": "admission.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "listKind": { + "description": "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".", + "type": "string" }, - { - "group": "admissionregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "plural": { + "description": "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.", + "type": "string" }, - { - "group": "admissionregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "shortNames": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - { - "group": "admissionregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "singular": { + "description": "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.", + "type": "string" + } + }, + "required": [ + "plural", + "kind" + ], + "type": "object" + }, + "v1.CustomResourceDefinitionSpec": { + "description": "CustomResourceDefinitionSpec describes how a user wants their resource to appear", + "properties": { + "conversion": { + "$ref": "#/definitions/v1.CustomResourceConversion", + "description": "conversion defines conversion settings for the CRD." }, - { - "group": "apiextensions.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "group": { + "description": "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 `.`).", + "type": "string" }, - { - "group": "apiextensions.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "names": { + "$ref": "#/definitions/v1.CustomResourceDefinitionNames", + "description": "names specify the resource and kind names for the custom resource." }, - { - "group": "apiregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "preserveUnknownFields": { + "description": "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.", + "type": "boolean" }, - { - "group": "apiregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "scope": { + "description": "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.", + "type": "string" }, - { - "group": "apps", - "kind": "DeleteOptions", - "version": "v1" + "versions": { + "description": "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.", + "items": { + "$ref": "#/definitions/v1.CustomResourceDefinitionVersion" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "group", + "names", + "scope", + "versions" + ], + "type": "object" + }, + "v1.CustomResourceDefinitionStatus": { + "description": "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition", + "properties": { + "acceptedNames": { + "$ref": "#/definitions/v1.CustomResourceDefinitionNames", + "description": "acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec." }, - { - "group": "apps", - "kind": "DeleteOptions", - "version": "v1beta1" + "conditions": { + "description": "conditions indicate state for particular aspects of a CustomResourceDefinition", + "items": { + "$ref": "#/definitions/v1.CustomResourceDefinitionCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" }, - { - "group": "apps", - "kind": "DeleteOptions", - "version": "v1beta2" + "observedGeneration": { + "description": "The generation observed by the CRD controller.", + "format": "int64", + "type": "integer" }, - { - "group": "authentication.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "storedVersions": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.CustomResourceDefinitionVersion": { + "description": "CustomResourceDefinitionVersion describes a version for CRD.", + "properties": { + "additionalPrinterColumns": { + "description": "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.", + "items": { + "$ref": "#/definitions/v1.CustomResourceColumnDefinition" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - { - "group": "authentication.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "deprecated": { + "description": "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.", + "type": "boolean" }, - { - "group": "authentication.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "deprecationWarning": { + "description": "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.", + "type": "string" }, - { - "group": "authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "name": { + "description": "name is the version name, e.g. \u201cv1\u201d, \u201cv2beta1\u201d, etc. The custom resources are served under this version at `/apis///...` if `served` is true.", + "type": "string" }, - { - "group": "authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "schema": { + "$ref": "#/definitions/v1.CustomResourceValidation", + "description": "schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource." }, - { - "group": "autoscaling", - "kind": "DeleteOptions", - "version": "v1" + "selectableFields": { + "description": "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", + "items": { + "$ref": "#/definitions/v1.SelectableField" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - { - "group": "autoscaling", - "kind": "DeleteOptions", - "version": "v2" + "served": { + "description": "served is a flag enabling/disabling this version from being served via REST APIs", + "type": "boolean" }, - { - "group": "batch", - "kind": "DeleteOptions", - "version": "v1" + "storage": { + "description": "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.", + "type": "boolean" }, - { - "group": "batch", - "kind": "DeleteOptions", - "version": "v1beta1" + "subresources": { + "$ref": "#/definitions/v1.CustomResourceSubresources", + "description": "subresources specify what subresources this version of the defined custom resource have." + } + }, + "required": [ + "name", + "served", + "storage" + ], + "type": "object" + }, + "v1.CustomResourceSubresourceScale": { + "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", + "properties": { + "labelSelectorPath": { + "description": "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.", + "type": "string" }, - { - "group": "certificates.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "specReplicasPath": { + "description": "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.", + "type": "string" }, - { - "group": "certificates.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "statusReplicasPath": { + "description": "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.", + "type": "string" + } + }, + "required": [ + "specReplicasPath", + "statusReplicasPath" + ], + "type": "object" + }, + "v1.CustomResourceSubresources": { + "description": "CustomResourceSubresources defines the status and scale subresources for CustomResources.", + "properties": { + "scale": { + "$ref": "#/definitions/v1.CustomResourceSubresourceScale", + "description": "scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object." }, - { - "group": "certificates.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "status": { + "description": "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.", + "type": "object" + } + }, + "type": "object" + }, + "v1.CustomResourceValidation": { + "description": "CustomResourceValidation is a list of validation methods for CustomResources.", + "properties": { + "openAPIV3Schema": { + "$ref": "#/definitions/v1.JSONSchemaProps", + "description": "openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning." + } + }, + "type": "object" + }, + "v1.ExternalDocumentation": { + "description": "ExternalDocumentation allows referencing an external resource for extended documentation.", + "properties": { + "description": { + "type": "string" }, - { - "group": "coordination.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "url": { + "type": "string" + } + }, + "type": "object" + }, + "v1.JSONSchemaProps": { + "description": "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).", + "properties": { + "$ref": { + "type": "string" }, - { - "group": "coordination.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha2" + "$schema": { + "type": "string" }, - { - "group": "coordination.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "additionalItems": { + "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", + "type": "object" }, - { - "group": "discovery.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "additionalProperties": { + "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", + "type": "object" }, - { - "group": "discovery.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "allOf": { + "items": { + "$ref": "#/definitions/v1.JSONSchemaProps" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - { - "group": "events.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "anyOf": { + "items": { + "$ref": "#/definitions/v1.JSONSchemaProps" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - { - "group": "events.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "default": { + "description": "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.", + "type": "object" }, - { - "group": "extensions", - "kind": "DeleteOptions", - "version": "v1beta1" + "definitions": { + "additionalProperties": { + "$ref": "#/definitions/v1.JSONSchemaProps" + }, + "type": "object" }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "dependencies": { + "additionalProperties": { + "description": "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.", + "type": "object" + }, + "type": "object" }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "description": { + "type": "string" }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta2" + "enum": { + "items": { + "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", + "type": "object" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta3" + "example": { + "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", + "type": "object" }, - { - "group": "imagepolicy.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "exclusiveMaximum": { + "type": "boolean" }, - { - "group": "internal.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "exclusiveMinimum": { + "type": "boolean" }, - { - "group": "networking.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "externalDocs": { + "$ref": "#/definitions/v1.ExternalDocumentation" }, - { - "group": "networking.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "format": { + "description": "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:\n\n- 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.", + "type": "string" }, - { - "group": "node.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "id": { + "type": "string" }, - { - "group": "node.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "items": { + "description": "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.", + "type": "object" }, - { - "group": "node.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "maxItems": { + "format": "int64", + "type": "integer" }, - { - "group": "policy", - "kind": "DeleteOptions", - "version": "v1" + "maxLength": { + "format": "int64", + "type": "integer" }, - { - "group": "policy", - "kind": "DeleteOptions", - "version": "v1beta1" + "maxProperties": { + "format": "int64", + "type": "integer" }, - { - "group": "rbac.authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "maximum": { + "format": "double", + "type": "number" }, - { - "group": "rbac.authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "minItems": { + "format": "int64", + "type": "integer" }, - { - "group": "rbac.authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "minLength": { + "format": "int64", + "type": "integer" }, - { - "group": "resource.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "minProperties": { + "format": "int64", + "type": "integer" }, - { - "group": "resource.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha3" + "minimum": { + "format": "double", + "type": "number" }, - { - "group": "resource.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "multipleOf": { + "format": "double", + "type": "number" }, - { - "group": "resource.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta2" + "not": { + "$ref": "#/definitions/v1.JSONSchemaProps" }, - { - "group": "scheduling.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "nullable": { + "type": "boolean" }, - { - "group": "scheduling.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha2" + "oneOf": { + "items": { + "$ref": "#/definitions/v1.JSONSchemaProps" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - { - "group": "scheduling.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "pattern": { + "type": "string" }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "patternProperties": { + "additionalProperties": { + "$ref": "#/definitions/v1.JSONSchemaProps" + }, + "type": "object" }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "properties": { + "additionalProperties": { + "$ref": "#/definitions/v1.JSONSchemaProps" + }, + "type": "object" }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "required": { + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - { - "group": "storagemigration.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - } - ] - }, - "v1.FieldSelectorRequirement": { - "description": "FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.", - "properties": { - "key": { - "description": "key is the field selector key that the requirement applies to.", + "title": { "type": "string" }, - "operator": { - "description": "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.", + "type": { "type": "string" }, - "values": { - "description": "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.", + "uniqueItems": { + "type": "boolean" + }, + "x-kubernetes-embedded-resource": { + "description": "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).", + "type": "boolean" + }, + "x-kubernetes-int-or-string": { + "description": "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:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", + "type": "boolean" + }, + "x-kubernetes-list-map-keys": { + "description": "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.\n\nThis 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).\n\nThe properties specified must either be required or have a default value, to ensure those properties are present for all list items.", "items": { "type": "string" }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "x-kubernetes-list-type": { + "description": "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:\n\n1) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic lists will be entirely replaced when updated. This extension\n may be used on any type of list (struct, scalar, ...).\n2) `set`:\n Sets are lists that must not have multiple items with the same value. Each\n value must be a scalar, an object with x-kubernetes-map-type `atomic` or an\n array with x-kubernetes-list-type `atomic`.\n3) `map`:\n These lists are like maps in that their elements have a non-index key\n used to identify them. Order is preserved upon merge. The map tag\n must only be used on a list with elements of type object.\nDefaults to atomic for arrays.", + "type": "string" + }, + "x-kubernetes-map-type": { + "description": "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:\n\n1) `granular`:\n These maps are actual maps (key-value pairs) and each fields are independent\n from each other (they can each be manipulated by separate actors). This is\n the default behaviour for all maps.\n2) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic maps will be entirely replaced when updated.", + "type": "string" + }, + "x-kubernetes-preserve-unknown-fields": { + "description": "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.", + "type": "boolean" + }, + "x-kubernetes-validations": { + "description": "x-kubernetes-validations describes a list of validation rules written in the CEL expression language.", + "items": { + "$ref": "#/definitions/v1.ValidationRule" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "rule" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "rule", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "v1.SelectableField": { + "description": "SelectableField specifies the JSON path of a field that may be used with field selectors.", + "properties": { + "jsonPath": { + "description": "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.", + "type": "string" } }, "required": [ - "key", - "operator" + "jsonPath" ], "type": "object" }, - "v1.GroupResource": { - "description": "GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types", + "apiextensions.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", "properties": { - "group": { + "name": { + "description": "name is the name of the service. Required", "type": "string" }, - "resource": { + "namespace": { + "description": "namespace is the namespace of the service. Required", + "type": "string" + }, + "path": { + "description": "path is an optional URL path at which the webhook will be contacted.", "type": "string" + }, + "port": { + "description": "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.", + "format": "int32", + "type": "integer" } }, "required": [ - "group", - "resource" + "namespace", + "name" ], "type": "object" }, - "v1.GroupVersionForDiscovery": { - "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "v1.ValidationRule": { + "description": "ValidationRule describes a validation rule written in the CEL expression language.", "properties": { - "groupVersion": { - "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "fieldPath": { + "description": "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$']`", "type": "string" }, - "version": { - "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", + "message": { + "description": "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\"", + "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 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)+\")\"", + "type": "string" + }, + "optionalOldSelf": { + "description": "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.\n\nWhen 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.\n\nYou 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\n\nMay not be set unless `oldSelf` is used in `rule`.", + "type": "boolean" + }, + "reason": { + "description": "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.", + "type": "string" + }, + "rule": { + "description": "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\"}\n\nIf 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')\"}\n\nThe `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.\n\nUnknown 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:\n - A schema with no type and x-kubernetes-preserve-unknown-fields set to true\n - An array where the items schema is of an \"unknown type\"\n - An object where the additionalProperties schema is of an \"unknown type\"\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 - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"}\n - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"}\n - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"}\n\nEquality 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:\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.\n\nIf `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`.\n\nBy default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional\n variable whose value() is the same type as `self`.\nSee the documentation for the `optionalOldSelf` field for details.\n\nTransition 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.", "type": "string" } }, "required": [ - "groupVersion", - "version" + "rule" ], "type": "object" }, - "v1.LabelSelector": { - "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.", + "apiextensions.v1.WebhookClientConfig": { + "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook.", "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "$ref": "#/definitions/v1.LabelSelectorRequirement" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "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", + "type": "string" }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "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.", - "type": "object" + "service": { + "$ref": "#/definitions/apiextensions.v1.ServiceReference", + "description": "service is a reference to the service for this webhook. Either service or url must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + }, + "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.\n\nThe `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.\n\nPlease 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.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA 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.\n\nAttempting 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", - "x-kubernetes-map-type": "atomic" + "type": "object" }, - "v1.LabelSelectorRequirement": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "v1.WebhookConversion": { + "description": "WebhookConversion describes how to call a conversion webhook", "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" + "clientConfig": { + "$ref": "#/definitions/apiextensions.v1.WebhookClientConfig", + "description": "clientConfig is the instructions for how to call the webhook if strategy is `Webhook`." }, - "values": { - "description": "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.", + "conversionReviewVersions": { + "description": "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.", "items": { "type": "string" }, @@ -23184,2344 +24782,2097 @@ } }, "required": [ - "key", - "operator" + "conversionReviewVersions" ], "type": "object" }, - "v1.ListMeta": { - "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "resource.Quantity": { + "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.", + "type": "string", + "format": "quantity" + }, + "v1.APIGroup": { + "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", "properties": { - "continue": { - "description": "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.", + "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" }, - "remainingItemCount": { - "description": "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.", - "format": "int64", - "type": "integer" - }, - "resourceVersion": { - "description": "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", + "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" }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "name": { + "description": "name is the name of the group.", "type": "string" }, - "shardInfo": { - "$ref": "#/definitions/v1.ShardInfo", - "description": "shardInfo is set when the list is a filtered subset of the full collection, as selected by a shard selector on the request. It echoes back the selector so clients can verify which shard they received and merge sharded responses. Clients should not cache sharded list responses as a full representation of the collection.\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate." + "preferredVersion": { + "$ref": "#/definitions/v1.GroupVersionForDiscovery", + "description": "preferredVersion is the version preferred by the API server, which probably is the storage version." + }, + "serverAddressByClientCIDRs": { + "description": "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.", + "items": { + "$ref": "#/definitions/v1.ServerAddressByClientCIDR" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "versions": { + "description": "versions are the versions supported in this group.", + "items": { + "$ref": "#/definitions/v1.GroupVersionForDiscovery" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "type": "object" + "required": [ + "name", + "versions" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroup", + "version": "v1" + } + ] }, - "v1.ManagedFieldsEntry": { - "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "v1.APIGroupList": { + "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", "properties": { "apiVersion": { - "description": "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.", - "type": "string" - }, - "fieldsType": { - "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", - "type": "string" - }, - "fieldsV1": { - "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", - "type": "object" - }, - "manager": { - "description": "Manager is an identifier of the workflow managing these fields.", - "type": "string" - }, - "operation": { - "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", + "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" }, - "subresource": { - "description": "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.", - "type": "string" + "groups": { + "description": "groups is a list of APIGroup.", + "items": { + "$ref": "#/definitions/v1.APIGroup" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "time": { - "description": "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.", - "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" } }, - "type": "object" + "required": [ + "groups" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroupList", + "version": "v1" + } + ] }, - "v1.ObjectMeta": { - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "v1.APIResource": { + "description": "APIResource specifies the name of a resource and whether it is namespaced.", "properties": { - "annotations": { - "additionalProperties": { + "categories": { + "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", + "items": { "type": "string" }, - "description": "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", - "type": "object" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "creationTimestamp": { - "description": "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.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "format": "date-time", + "group": { + "description": "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\".", "type": "string" }, - "deletionGracePeriodSeconds": { - "description": "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.", - "format": "int64", - "type": "integer" + "kind": { + "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "type": "string" }, - "deletionTimestamp": { - "description": "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.\n\nPopulated 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", - "format": "date-time", + "name": { + "description": "name is the plural name of the resource.", "type": "string" }, - "finalizers": { - "description": "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.", + "namespaced": { + "description": "namespaced indicates if a resource is namespaced or not.", + "type": "boolean" + }, + "shortNames": { + "description": "shortNames is a list of suggested short names of the resource.", "items": { "type": "string" }, "type": "array", - "x-kubernetes-list-type": "set", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" }, - "generateName": { - "description": "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.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "singularName": { + "description": "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.", "type": "string" }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "format": "int64", - "type": "integer" + "storageVersionHash": { + "description": "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.", + "type": "string" }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "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", - "type": "object" - }, - "managedFields": { - "description": "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.", - "items": { - "$ref": "#/definitions/v1.ManagedFieldsEntry" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "name": { - "description": "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", - "type": "string" - }, - "namespace": { - "description": "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.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces", - "type": "string" - }, - "ownerReferences": { - "description": "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.", + "verbs": { + "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", "items": { - "$ref": "#/definitions/v1.OwnerReference" + "type": "string" }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "uid" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "uid", - "x-kubernetes-patch-strategy": "merge" - }, - "resourceVersion": { - "description": "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.\n\nPopulated 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", - "type": "string" - }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", - "type": "string" + "type": "array" }, - "uid": { - "description": "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.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "version": { + "description": "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)\".", "type": "string" } }, + "required": [ + "name", + "singularName", + "namespaced", + "kind", + "verbs" + ], "type": "object" }, - "v1.OwnerReference": { - "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.", + "v1.APIResourceList": { + "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.", "properties": { "apiVersion": { - "description": "API version of the referent.", + "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" }, - "blockOwnerDeletion": { - "description": "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.", - "type": "boolean" - }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" - }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "groupVersion": { + "description": "groupVersion is the group and version this APIResourceList is for.", "type": "string" }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "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" }, - "uid": { - "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", - "type": "string" + "resources": { + "description": "resources contains the name of the resources and if they are namespaced.", + "items": { + "$ref": "#/definitions/v1.APIResource" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "apiVersion", - "kind", - "name", - "uid" + "groupVersion", + "resources" ], "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "v1.Patch": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "string", - "format": "patch" - }, - "v1.Preconditions": { - "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", - "properties": { - "resourceVersion": { - "description": "Specifies the target ResourceVersion", - "type": "string" - }, - "uid": { - "description": "Specifies the target UID.", - "type": "string" - } - }, - "type": "object" - }, - "v1.ServerAddressByClientCIDR": { - "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", - "properties": { - "clientCIDR": { - "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", - "type": "string" - }, - "serverAddress": { - "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", - "type": "string" - } - }, - "required": [ - "clientCIDR", - "serverAddress" - ], - "type": "object" - }, - "v1.ShardInfo": { - "description": "ShardInfo describes the shard selector that was applied to produce a list response. Its presence on a list response indicates the list is a filtered subset.", - "properties": { - "selector": { - "description": "selector is the shard selector string from the request, echoed back so clients can verify which shard they received and merge responses from multiple shards.", - "type": "string" + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIResourceList", + "version": "v1" } - }, - "required": [ - "selector" - ], - "type": "object" + ] }, - "v1.Status": { - "description": "Status is a return value for calls that don't return other objects.", + "v1.APIVersions": { + "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.", "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" }, - "code": { - "description": "Suggested HTTP return code for this status, 0 if not set.", - "format": "int32", - "type": "integer" - }, - "details": { - "$ref": "#/definitions/v1.StatusDetails", - "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type." - }, "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" }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - }, - "reason": { - "description": "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.", - "type": "string" + "serverAddressByClientCIDRs": { + "description": "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.", + "items": { + "$ref": "#/definitions/v1.ServerAddressByClientCIDR" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "status": { - "description": "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", - "type": "string" + "versions": { + "description": "versions are the api versions that are available.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, + "required": [ + "versions", + "serverAddressByClientCIDRs" + ], "type": "object", "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "Status", + "kind": "APIVersions", "version": "v1" } ] }, - "v1.StatusCause": { - "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "v1.Condition": { + "description": "Condition contains details for one aspect of the current state of this API Resource.", "properties": { - "field": { - "description": "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.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "lastTransitionTime": { + "description": "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.", + "format": "date-time", "type": "string" }, "message": { - "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", "type": "string" }, + "observedGeneration": { + "description": "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.", + "format": "int64", + "type": "integer" + }, "reason": { - "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "description": "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.", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase.", "type": "string" } }, + "required": [ + "type", + "status", + "lastTransitionTime", + "reason", + "message" + ], "type": "object" }, - "v1.StatusDetails": { - "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.", + "v1.DeleteOptions": { + "description": "DeleteOptions may be provided when deleting an API object.", "properties": { - "causes": { - "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "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" + }, + "dryRun": { + "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", "items": { - "$ref": "#/definitions/v1.StatusCause" + "type": "string" }, "type": "array", "x-kubernetes-list-type": "atomic" }, - "group": { - "description": "The group attribute of the resource associated with the status StatusReason.", - "type": "string" + "gracePeriodSeconds": { + "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.", + "format": "int64", + "type": "integer" }, - "kind": { - "description": "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", - "type": "string" + "ignoreStoreReadErrorWithClusterBreakingPotential": { + "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", + "type": "boolean" }, - "name": { - "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "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" }, - "retryAfterSeconds": { - "description": "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.", - "format": "int32", - "type": "integer" + "orphanDependents": { + "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.", + "type": "boolean" }, - "uid": { - "description": "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", - "type": "string" - } - }, - "type": "object" - }, - "v1.WatchEvent": { - "description": "Event represents a single event to a watched resource.", - "properties": { - "object": { - "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", - "type": "object" + "preconditions": { + "$ref": "#/definitions/v1.Preconditions", + "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned." }, - "type": { + "propagationPolicy": { + "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.", "type": "string" } }, - "required": [ - "type", - "object" - ], "type": "object", "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "admission.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "admission.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "admissionregistration.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "admissionregistration.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "admissionregistration.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "apiextensions.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "apiextensions.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "apiregistration.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "apiregistration.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "apps", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "apps", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "apps", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta2" }, { "group": "authentication.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "authentication.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "authentication.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "authorization.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "authorization.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "autoscaling", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "autoscaling", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v2" }, { "group": "batch", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "batch", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "certificates.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "certificates.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "certificates.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "coordination.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "coordination.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha2" }, { "group": "coordination.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "discovery.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "discovery.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "events.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "events.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "extensions", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "flowcontrol.apiserver.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "flowcontrol.apiserver.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "flowcontrol.apiserver.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta2" }, { "group": "flowcontrol.apiserver.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta3" }, { "group": "imagepolicy.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "internal.apiserver.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "lifecycle.k8s.io", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "networking.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "networking.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "node.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "node.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "node.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "policy", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "policy", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "rbac.authorization.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "rbac.authorization.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "rbac.authorization.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "resource.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "resource.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha3" }, { "group": "resource.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "resource.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta2" }, { "group": "scheduling.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "scheduling.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha2" + "kind": "DeleteOptions", + "version": "v1alpha3" }, { "group": "scheduling.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "storage.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "storage.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "storage.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "storagemigration.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "storagemigration.k8s.io", + "kind": "DeleteOptions", "version": "v1beta1" } ] }, - "intstr.IntOrString": { - "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" - }, - "version.Info": { - "description": "Info contains versioning information. how we'll want to distribute that information.", + "v1.FieldSelectorRequirement": { + "description": "FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.", "properties": { - "buildDate": { - "type": "string" - }, - "compiler": { - "type": "string" - }, - "emulationMajor": { - "description": "EmulationMajor is the major version of the emulation version", - "type": "string" - }, - "emulationMinor": { - "description": "EmulationMinor is the minor version of the emulation version", - "type": "string" - }, - "gitCommit": { - "type": "string" - }, - "gitTreeState": { - "type": "string" - }, - "gitVersion": { - "type": "string" - }, - "goVersion": { - "type": "string" - }, - "major": { - "description": "Major is the major version of the binary version", - "type": "string" - }, - "minCompatibilityMajor": { - "description": "MinCompatibilityMajor is the major version of the minimum compatibility version", + "key": { + "description": "key is the field selector key that the requirement applies to.", "type": "string" }, - "minCompatibilityMinor": { - "description": "MinCompatibilityMinor is the minor version of the minimum compatibility version", + "operator": { + "description": "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.", "type": "string" }, - "minor": { - "description": "Minor is the minor version of the binary version", + "values": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "v1.GroupResource": { + "description": "GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types", + "properties": { + "group": { "type": "string" }, - "platform": { + "resource": { "type": "string" } }, "required": [ - "major", - "minor", - "gitVersion", - "gitCommit", - "gitTreeState", - "buildDate", - "goVersion", - "compiler", - "platform" + "group", + "resource" ], "type": "object" }, - "v1.APIService": { - "description": "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".", + "v1.GroupVersionForDiscovery": { + "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", "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", + "groupVersion": { + "description": "groupVersion specifies the API group and version in the form \"group/version\"", "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", + "version": { + "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", "type": "string" + } + }, + "required": [ + "groupVersion", + "version" + ], + "type": "object" + }, + "v1.LabelSelector": { + "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.", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": { + "$ref": "#/definitions/v1.LabelSelectorRequirement" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.APIServiceSpec", - "description": "Spec contains information for locating and communicating with a server" - }, - "status": { - "$ref": "#/definitions/v1.APIServiceStatus", - "description": "Status contains derived information about an API server" + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "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.", + "type": "object" } }, "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" - ] + "x-kubernetes-map-type": "atomic" }, - "v1.APIServiceCondition": { - "description": "APIServiceCondition describes the state of an APIService at a particular point", + "v1.LabelSelectorRequirement": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "format": "date-time", + "key": { + "description": "key is the label key that the selector applies to.", "type": "string" }, - "message": { - "description": "Human-readable message indicating details about last transition.", + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", "type": "string" }, - "reason": { - "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "values": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "v1.ListMeta": { + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "properties": { + "continue": { + "description": "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.", "type": "string" }, - "status": { - "description": "Status is the status of the condition. Can be True, False, Unknown.", + "remainingItemCount": { + "description": "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.", + "format": "int64", + "type": "integer" + }, + "resourceVersion": { + "description": "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", "type": "string" }, - "type": { - "description": "Type is the type of the condition.", + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", "type": "string" + }, + "shardInfo": { + "$ref": "#/definitions/v1.ShardInfo", + "description": "shardInfo is set when the list is a filtered subset of the full collection, as selected by a shard selector on the request. It echoes back the selector so clients can verify which shard they received and merge sharded responses. Clients should not cache sharded list responses as a full representation of the collection.\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate." } }, - "required": [ - "type", - "status" - ], "type": "object" }, - "v1.APIServiceList": { - "description": "APIServiceList is a list of APIService objects.", + "v1.ManagedFieldsEntry": { + "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", "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": "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.", "type": "string" }, - "items": { - "description": "Items is the list of APIService", - "items": { - "$ref": "#/definitions/v1.APIService" - }, - "type": "array" + "fieldsType": { + "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", + "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", + "fieldsV1": { + "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", + "type": "object" + }, + "manager": { + "description": "Manager is an identifier of the workflow managing these fields.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "operation": { + "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", + "type": "string" + }, + "subresource": { + "description": "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.", + "type": "string" + }, + "time": { + "description": "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.", + "format": "date-time", + "type": "string" } }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apiregistration.k8s.io", - "kind": "APIServiceList", - "version": "v1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] + "type": "object" }, - "v1.APIServiceSpec": { - "description": "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.", + "v1.ObjectMeta": { + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", "properties": { - "caBundle": { - "description": "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.", - "format": "byte", - "type": "string", - "x-kubernetes-list-type": "atomic" + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "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", + "type": "object" }, - "group": { - "description": "Group is the API group name this server hosts", + "creationTimestamp": { + "description": "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.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + "format": "date-time", "type": "string" }, - "groupPriorityMinimum": { - "description": "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", - "format": "int32", + "deletionGracePeriodSeconds": { + "description": "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.", + "format": "int64", "type": "integer" }, - "insecureSkipTLSVerify": { - "description": "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.", - "type": "boolean" + "deletionTimestamp": { + "description": "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.\n\nPopulated 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", + "format": "date-time", + "type": "string" }, - "service": { - "$ref": "#/definitions/apiregistration.v1.ServiceReference", - "description": "Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled." + "finalizers": { + "description": "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.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set", + "x-kubernetes-patch-strategy": "merge" }, - "version": { - "description": "Version is the API version this server hosts. For example, \"v1\"", + "generateName": { + "description": "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.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", "type": "string" }, - "versionPriority": { - "description": "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.", - "format": "int32", + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "format": "int64", "type": "integer" - } - }, - "required": [ - "groupPriorityMinimum", - "versionPriority" - ], - "type": "object" - }, - "v1.APIServiceStatus": { - "description": "APIServiceStatus contains derived information about an API server", - "properties": { - "conditions": { - "description": "Current service state of apiService.", + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "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", + "type": "object" + }, + "managedFields": { + "description": "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.", "items": { - "$ref": "#/definitions/v1.APIServiceCondition" + "$ref": "#/definitions/v1.ManagedFieldsEntry" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "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", + "type": "string" + }, + "namespace": { + "description": "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.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces", + "type": "string" + }, + "ownerReferences": { + "description": "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.", + "items": { + "$ref": "#/definitions/v1.OwnerReference" }, "type": "array", "x-kubernetes-list-map-keys": [ - "type" + "uid" ], "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-merge-key": "uid", "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "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.\n\nPopulated 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", + "type": "string" + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": "string" + }, + "uid": { + "description": "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.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": "string" } }, "type": "object" }, - "apiregistration.v1.ServiceReference": { - "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "v1.OwnerReference": { + "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.", "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": "string" + }, + "blockOwnerDeletion": { + "description": "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.", + "type": "boolean" + }, + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": "boolean" + }, + "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 is the name of the service", + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", "type": "string" }, - "namespace": { - "description": "Namespace is the namespace of the service", + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": "string" + } + }, + "required": [ + "apiVersion", + "kind", + "name", + "uid" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.Patch": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "string", + "format": "patch" + }, + "v1.Preconditions": { + "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "properties": { + "resourceVersion": { + "description": "Specifies the target ResourceVersion", "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" + "uid": { + "description": "Specifies the target UID.", + "type": "string" } }, "type": "object" }, - "v2beta1.APIGroupDiscoveryList": { - "type": "object", - "description": "APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports.", - "x-kubernetes-group-version-kind": [ - { - "group": "apidiscovery.k8s.io", - "kind": "APIGroupDiscoveryList", - "version": "v2beta1" - } - ], + "v1.ServerAddressByClientCIDR": { + "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", "properties": { - "apiVersion": { + "clientCIDR": { + "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", "type": "string" }, - "kind": { + "serverAddress": { + "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v2beta1.APIGroupDiscovery" - } } }, "required": [ - "items" + "clientCIDR", + "serverAddress" ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] + "type": "object" }, - "v2beta1.APIGroupDiscovery": { - "type": "object", - "description": "APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry.", - "x-kubernetes-group-version-kind": [ - { - "group": "apidiscovery.k8s.io", - "kind": "APIGroupDiscovery", - "version": "v2beta1" + "v1.ShardInfo": { + "description": "ShardInfo describes the shard selector that was applied to produce a list response. Its presence on a list response indicates the list is a filtered subset.", + "properties": { + "selector": { + "description": "selector is the shard selector string from the request, echoed back so clients can verify which shard they received and merge responses from multiple shards.", + "type": "string" } + }, + "required": [ + "selector" ], + "type": "object" + }, + "v1.Status": { + "description": "Status is a return value for calls that don't return other objects.", "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" }, + "code": { + "description": "Suggested HTTP return code for this status, 0 if not set.", + "format": "int32", + "type": "integer" + }, + "details": { + "$ref": "#/definitions/v1.StatusDetails", + "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type." + }, "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" + }, + "message": { + "description": "A human-readable description of the status of this operation.", "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" }, - "versions": { - "type": "array", - "items": { - "$ref": "#/definitions/v2beta1.APIVersionDiscovery" - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-list-map-keys": [ - "version" - ] + "reason": { + "description": "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.", + "type": "string" + }, + "status": { + "description": "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", + "type": "string" } }, - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Status", + "version": "v1" + } ] }, - "v2beta1.APIVersionDiscovery": { - "type": "object", - "description": "APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.", + "v1.StatusCause": { + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", "properties": { - "version": { - "type": "string", - "description": "version is the name of the version within a group version." + "field": { + "description": "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.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "type": "string" }, - "resources": { - "type": "array", - "items": { - "$ref": "#/definitions/v2beta1.APIResourceDiscovery" - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-list-map-keys": [ - "resource" - ] + "message": { + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "type": "string" }, - "freshness": { - "type": "string", - "description": "freshness marks whether a group version's discovery document is up to date." + "reason": { + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "type": "string" } }, - "required": [ - "version" - ] + "type": "object" }, - "v2beta1.APIResourceDiscovery": { - "type": "object", - "description": "APIResourceDiscovery provides information about an API resource for discovery.", + "v1.StatusDetails": { + "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.", "properties": { - "resource": { - "type": "string", - "description": "resource is the plural name of the resource." + "causes": { + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "items": { + "$ref": "#/definitions/v1.StatusCause" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "responseKind": { - "$ref": "#/definitions/v1.GroupVersionKind" + "group": { + "description": "The group attribute of the resource associated with the status StatusReason.", + "type": "string" }, - "scope": { - "type": "string", - "description": "scope indicates the scope of a resource, either Cluster or Namespaced" + "kind": { + "description": "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", + "type": "string" }, - "singularResource": { - "type": "string", - "description": "singularResource is the singular name of the resource." + "name": { + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "type": "string" }, - "verbs": { - "type": "array", - "items": { - "type": "string" - }, - "description": "verbs is a list of supported API operation types" + "retryAfterSeconds": { + "description": "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.", + "format": "int32", + "type": "integer" }, - "shortNames": { - "type": "array", - "items": { - "type": "string" - }, - "description": "shortNames is a list of suggested short names of the resource." + "uid": { + "description": "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", + "type": "string" + } + }, + "type": "object" + }, + "v1.WatchEvent": { + "description": "Event represents a single event to a watched resource.", + "properties": { + "object": { + "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", + "type": "object" }, - "categories": { - "type": "array", - "items": { - "type": "string" - }, - "description": "categories is a list of the grouped resources this resource belongs to." - }, - "subresources": { - "type": "array", - "items": { - "$ref": "#/definitions/v2beta1.APISubresourceDiscovery" - } - } - }, - "required": [ - "resource", - "scope", - "singularResource", - "verbs" - ] - }, - "v2beta1.APISubresourceDiscovery": { - "type": "object", - "description": "APISubresourceDiscovery provides information about an API subresource for discovery.", - "properties": { - "subresource": { - "type": "string", - "description": "subresource is the name of the subresource." - }, - "responseKind": { - "$ref": "#/definitions/v1.GroupVersionKind" - }, - "verbs": { - "type": "array", - "items": { - "type": "string" - }, - "description": "verbs is a list of supported API operation types" - }, - "acceptedTypes": { - "type": "array", - "items": { - "$ref": "#/definitions/v1.GroupVersionKind" - } - } - }, - "required": [ - "subresource", - "verbs" - ] - }, - "v2.APIGroupDiscoveryList": { - "type": "object", - "description": "APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports.", - "x-kubernetes-group-version-kind": [ - { - "group": "apidiscovery.k8s.io", - "kind": "APIGroupDiscoveryList", - "version": "v2" - } - ], - "properties": { - "apiVersion": { - "type": "string" - }, - "kind": { + "type": { "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v2.APIGroupDiscovery" - } } }, "required": [ - "items" + "type", + "object" ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] - }, - "v2.APIGroupDiscovery": { "type": "object", - "description": "APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry.", "x-kubernetes-group-version-kind": [ { - "group": "apidiscovery.k8s.io", - "kind": "APIGroupDiscovery", - "version": "v2" - } - ], - "properties": { - "apiVersion": { - "type": "string" + "group": "", + "kind": "WatchEvent", + "version": "v1" }, - "kind": { - "type": "string" + { + "group": "admission.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" + { + "group": "admission.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, - "versions": { - "type": "array", - "items": { - "$ref": "#/definitions/v2.APIVersionDiscovery" - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-list-map-keys": [ - "version" - ] - } - }, - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" - ] - }, - "v2.APIVersionDiscovery": { - "type": "object", - "description": "APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.", - "properties": { - "version": { - "type": "string", - "description": "version is the name of the version within a group version." + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, - "resources": { - "type": "array", - "items": { - "$ref": "#/definitions/v2.APIResourceDiscovery" - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-list-map-keys": [ - "resource" - ] + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, - "freshness": { - "type": "string", - "description": "freshness marks whether a group version's discovery document is up to date." - } - }, - "required": [ - "version" - ] - }, - "v2.APIResourceDiscovery": { - "type": "object", - "description": "APIResourceDiscovery provides information about an API resource for discovery.", - "properties": { - "resource": { - "type": "string", - "description": "resource is the plural name of the resource." + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, - "responseKind": { - "$ref": "#/definitions/v1.GroupVersionKind" + { + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, - "scope": { - "type": "string", - "description": "scope indicates the scope of a resource, either Cluster or Namespaced" + { + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, - "singularResource": { - "type": "string", - "description": "singularResource is the singular name of the resource." + { + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, - "verbs": { - "type": "array", - "items": { - "type": "string" - }, - "description": "verbs is a list of supported API operation types", - "x-kubernetes-list-type": "set" + { + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, - "shortNames": { - "type": "array", - "items": { - "type": "string" - }, - "description": "shortNames is a list of suggested short names of the resource.", - "x-kubernetes-list-type": "set" + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1" }, - "categories": { - "type": "array", - "items": { - "type": "string" - }, - "description": "categories is a list of the grouped resources this resource belongs to.", - "x-kubernetes-list-type": "set" + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta1" }, - "subresources": { - "type": "array", - "items": { - "$ref": "#/definitions/v2.APISubresourceDiscovery" - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-list-map-keys": [ - "subresource" - ] - } - }, - "required": [ - "resource", - "scope", - "singularResource", - "verbs" - ] - }, - "v2.APISubresourceDiscovery": { - "type": "object", - "description": "APISubresourceDiscovery provides information about an API subresource for discovery.", - "properties": { - "subresource": { - "type": "string", - "description": "subresource is the name of the subresource." + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta2" }, - "responseKind": { - "$ref": "#/definitions/v1.GroupVersionKind" + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, - "acceptedTypes": { - "type": "array", - "items": { - "$ref": "#/definitions/v1.GroupVersionKind" - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-list-map-keys": [ - "group", - "version", - "kind" - ] + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, - "verbs": { - "type": "array", - "items": { - "type": "string" - }, - "description": "verbs is a list of supported API operation types", - "x-kubernetes-list-type": "set" - } - }, - "required": [ - "subresource", - "verbs" - ] - }, - "v1.GroupVersionKind": { - "description": "GroupVersionKind unambiguously identifies a kind.", - "type": "object", - "properties": { - "group": { - "type": "string", - "description": "group is the group part of the GroupVersionKind." + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, - "kind": { - "type": "string", - "description": "kind is the kind part of the GroupVersionKind." + { + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, - "version": { - "type": "string", - "description": "version is the version part of the GroupVersionKind." - } - }, - "required": [ - "group", - "kind", - "version" - ] - } - }, - "info": { - "title": "Kubernetes", - "version": "release-1.36" - }, - "paths": { - "/api/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available API versions", - "operationId": "getAPIVersions", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIVersions" - } - }, - "401": { - "description": "Unauthorized" - } + { + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, - "schemes": [ - "https" - ], - "tags": [ - "core" - ] - } - }, - "/api/v1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v1" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ] - } - }, - "/api/v1/componentstatuses": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list objects of kind ComponentStatus", - "operationId": "listComponentStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ComponentStatusList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ComponentStatus", + { + "group": "batch", + "kind": "WatchEvent", "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": true + "group": "batch", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "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\".\n\nThis field is not 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", - "uniqueItems": true + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, { - "description": "If 'true', 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", - "type": "string", - "uniqueItems": true + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha2" }, { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "group": "events.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "group": "events.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/componentstatuses/{name}": { - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified ComponentStatus", - "operationId": "readComponentStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ComponentStatus" - } - }, - "401": { - "description": "Unauthorized" - } + "group": "extensions", + "kind": "WatchEvent", + "version": "v1beta1" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ComponentStatus", - "version": "v1" - } - }, - "parameters": [ { - "description": "name of the ComponentStatus", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, { - "description": "If 'true', 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", - "type": "string", - "uniqueItems": true - } - ] - }, - "/api/v1/configmaps": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind ConfigMap", - "operationId": "listConfigMapForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMapList" - } - }, - "401": { - "description": "Unauthorized" - } + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": true + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta2" }, { - "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\".\n\nThis field is not 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", - "uniqueItems": true + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta3" }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "group": "imagepolicy.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "group": "internal.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, { - "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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true + "group": "lifecycle.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, { - "description": "If 'true', 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", - "type": "string", - "uniqueItems": true + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "group": "policy", + "kind": "WatchEvent", + "version": "v1" }, { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/endpoints": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind Endpoints", - "operationId": "listEndpointsForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.EndpointsList" - } - }, - "401": { - "description": "Unauthorized" - } + "group": "policy", + "kind": "WatchEvent", + "version": "v1beta1" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": true + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, { - "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\".\n\nThis field is not 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", - "uniqueItems": true + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha3" }, { - "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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "description": "If 'true', 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", - "type": "string", - "uniqueItems": true + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1beta2" }, { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha3" }, { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, { - "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", - "type": "boolean", - "uniqueItems": true + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "storagemigration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "storagemigration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" } ] }, - "/api/v1/events": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind Event", - "operationId": "listEventForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/core.v1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } + "intstr.IntOrString": { + "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" + }, + "version.Info": { + "description": "Info contains versioning information. how we'll want to distribute that information.", + "properties": { + "buildDate": { + "type": "string" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": true + "compiler": { + "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\".\n\nThis field is not 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", - "uniqueItems": true + "emulationMajor": { + "description": "EmulationMajor is the major version of the emulation version", + "type": "string" }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "emulationMinor": { + "description": "EmulationMinor is the minor version of the emulation version", + "type": "string" }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "gitCommit": { + "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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true + "gitTreeState": { + "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", - "type": "string", - "uniqueItems": true + "gitVersion": { + "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "goVersion": { + "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "major": { + "description": "Major is the major version of the binary version", + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "minCompatibilityMajor": { + "description": "MinCompatibilityMajor is the major version of the minimum compatibility version", + "type": "string" }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "minCompatibilityMinor": { + "description": "MinCompatibilityMinor is the minor version of the minimum compatibility version", + "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", - "type": "integer", - "uniqueItems": true + "minor": { + "description": "Minor is the minor version of the binary version", + "type": "string" }, - { - "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", - "type": "boolean", - "uniqueItems": true + "platform": { + "type": "string" } - ] + }, + "required": [ + "major", + "minor", + "gitVersion", + "gitCommit", + "gitTreeState", + "buildDate", + "goVersion", + "compiler", + "platform" + ], + "type": "object" }, - "/api/v1/limitranges": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind LimitRange", - "operationId": "listLimitRangeForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LimitRangeList" - } - }, - "401": { - "description": "Unauthorized" - } + "v1.APIService": { + "description": "APIService represents a server for a particular GroupVersion. Name must be \"version.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" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" + "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": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.APIServiceSpec", + "description": "Spec contains information for locating and communicating with a server" + }, + "status": { + "$ref": "#/definitions/v1.APIServiceStatus", + "description": "Status contains derived information about an API server" } }, - "parameters": [ + "type": "object", + "x-kubernetes-group-version-kind": [ { - "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", - "type": "boolean", - "uniqueItems": true + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v1.APIServiceCondition": { + "description": "APIServiceCondition describes the state of an APIService at a particular point", + "properties": { + "lastTransitionTime": { + "description": "Last time the condition transitioned from one status to another.", + "format": "date-time", + "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\".\n\nThis field is not 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", - "uniqueItems": true + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": "string" }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown.", + "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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true + "type": { + "description": "Type is the type of the condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "v1.APIServiceList": { + "description": "APIServiceList is a list of APIService objects.", + "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" }, - { - "description": "If 'true', 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", - "type": "string", - "uniqueItems": true + "items": { + "description": "Items is the list of APIService", + "items": { + "$ref": "#/definitions/v1.APIService" + }, + "type": "array" }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "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": "#/definitions/v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", + "group": "apiregistration.k8s.io", + "kind": "APIServiceList", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v1.APIServiceSpec": { + "description": "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.", + "properties": { + "caBundle": { + "description": "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.", + "format": "byte", "type": "string", - "uniqueItems": true + "x-kubernetes-list-type": "atomic" }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "group": { + "description": "Group is the API group name this server hosts", + "type": "string" }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "groupPriorityMinimum": { + "description": "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", + "format": "int32", + "type": "integer" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "insecureSkipTLSVerify": { + "description": "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.", + "type": "boolean" }, - { - "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", - "type": "boolean", - "uniqueItems": true + "service": { + "$ref": "#/definitions/apiregistration.v1.ServiceReference", + "description": "Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled." + }, + "version": { + "description": "Version is the API version this server hosts. For example, \"v1\"", + "type": "string" + }, + "versionPriority": { + "description": "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.", + "format": "int32", + "type": "integer" } - ] + }, + "required": [ + "groupPriorityMinimum", + "versionPriority" + ], + "type": "object" }, - "/api/v1/namespaces": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind Namespace", - "operationId": "listNamespace", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NamespaceList" - } + "v1.APIServiceStatus": { + "description": "APIServiceStatus contains derived information about an API server", + "properties": { + "conditions": { + "description": "Current service state of apiService.", + "items": { + "$ref": "#/definitions/v1.APIServiceCondition" }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" } }, - "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", - "type": "string", - "uniqueItems": true + "type": "object" + }, + "apiregistration.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "Name is the name of the service", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the 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" } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a Namespace", - "operationId": "createNamespace", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } + }, + "type": "object" + }, + "v1.GroupVersionKind": { + "type": "object", + "description": "GroupVersionKind unambiguously identifies a kind.", + "properties": { + "group": { + "type": "string" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" + "version": { + "type": "string" }, - "x-codegen-request-body-name": "body" + "kind": { + "type": "string" + } } }, - "/api/v1/namespaces/{namespace}/bindings": { - "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", - "type": "string", - "uniqueItems": true - }, + "v2beta1.APIGroupDiscoveryList": { + "type": "object", + "description": "APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports.", + "x-kubernetes-group-version-kind": [ { - "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", - "type": "string", - "uniqueItems": true + "group": "apidiscovery.k8s.io", + "kind": "APIGroupDiscoveryList", + "version": "v2beta1" + } + ], + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/v2beta1.APIGroupDiscovery" + } + } + }, + "required": [ + "items" + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v2beta1.APIGroupDiscovery": { + "type": "object", + "description": "APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry.", + "x-kubernetes-group-version-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", + "group": "apidiscovery.k8s.io", + "kind": "APIGroupDiscovery", + "version": "v2beta1" + } + ], + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "versions": { + "type": "array", + "items": { + "$ref": "#/definitions/v2beta1.APIVersionDiscovery" + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "version" + ] + } + }, + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v2beta1.APIVersionDiscovery": { + "type": "object", + "description": "APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.", + "properties": { + "version": { "type": "string", - "uniqueItems": true + "description": "version is the name of the version within a group version." }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "resources": { + "type": "array", + "items": { + "$ref": "#/definitions/v2beta1.APIResourceDiscovery" + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "resource" + ] + }, + "freshness": { "type": "string", - "uniqueItems": true + "description": "freshness marks whether a group version's discovery document is up to date." + } + }, + "required": [ + "version" + ] + }, + "v2beta1.APIResourceDiscovery": { + "type": "object", + "description": "APIResourceDiscovery provides information about an API resource for discovery.", + "properties": { + "resource": { + "type": "string", + "description": "resource is the plural name of the resource." }, - { - "description": "If 'true', 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", + "responseKind": { + "$ref": "#/definitions/v1.GroupVersionKind" + }, + "scope": { "type": "string", - "uniqueItems": true + "description": "scope indicates the scope of a resource, either Cluster or Namespaced" + }, + "singularResource": { + "type": "string", + "description": "singularResource is the singular name of the resource." + }, + "verbs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "verbs is a list of supported API operation types" + }, + "shortNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "shortNames is a list of suggested short names of the resource." + }, + "categories": { + "type": "array", + "items": { + "type": "string" + }, + "description": "categories is a list of the grouped resources this resource belongs to." + }, + "subresources": { + "type": "array", + "items": { + "$ref": "#/definitions/v2beta1.APISubresourceDiscovery" + } + } + }, + "required": [ + "resource", + "scope", + "singularResource", + "verbs" + ] + }, + "v2beta1.APISubresourceDiscovery": { + "type": "object", + "description": "APISubresourceDiscovery provides information about an API subresource for discovery.", + "properties": { + "subresource": { + "type": "string", + "description": "subresource is the name of the subresource." + }, + "responseKind": { + "$ref": "#/definitions/v1.GroupVersionKind" + }, + "verbs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "verbs is a list of supported API operation types" + }, + "acceptedTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.GroupVersionKind" + } + } + }, + "required": [ + "subresource", + "verbs" + ] + }, + "v2.APIGroupDiscoveryList": { + "type": "object", + "description": "APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports.", + "x-kubernetes-group-version-kind": [ + { + "group": "apidiscovery.k8s.io", + "kind": "APIGroupDiscoveryList", + "version": "v2" } ], - "post": { + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/v2.APIGroupDiscovery" + } + } + }, + "required": [ + "items" + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v2.APIGroupDiscovery": { + "type": "object", + "description": "APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry.", + "x-kubernetes-group-version-kind": [ + { + "group": "apidiscovery.k8s.io", + "kind": "APIGroupDiscovery", + "version": "v2" + } + ], + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "versions": { + "type": "array", + "items": { + "$ref": "#/definitions/v2.APIVersionDiscovery" + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "version" + ] + } + }, + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v2.APIVersionDiscovery": { + "type": "object", + "description": "APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.", + "properties": { + "version": { + "type": "string", + "description": "version is the name of the version within a group version." + }, + "resources": { + "type": "array", + "items": { + "$ref": "#/definitions/v2.APIResourceDiscovery" + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "resource" + ] + }, + "freshness": { + "type": "string", + "description": "freshness marks whether a group version's discovery document is up to date." + } + }, + "required": [ + "version" + ] + }, + "v2.APIResourceDiscovery": { + "type": "object", + "description": "APIResourceDiscovery provides information about an API resource for discovery.", + "properties": { + "resource": { + "type": "string", + "description": "resource is the plural name of the resource." + }, + "responseKind": { + "$ref": "#/definitions/v1.GroupVersionKind" + }, + "scope": { + "type": "string", + "description": "scope indicates the scope of a resource, either Cluster or Namespaced" + }, + "singularResource": { + "type": "string", + "description": "singularResource is the singular name of the resource." + }, + "verbs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "verbs is a list of supported API operation types", + "x-kubernetes-list-type": "set" + }, + "shortNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "shortNames is a list of suggested short names of the resource.", + "x-kubernetes-list-type": "set" + }, + "categories": { + "type": "array", + "items": { + "type": "string" + }, + "description": "categories is a list of the grouped resources this resource belongs to.", + "x-kubernetes-list-type": "set" + }, + "subresources": { + "type": "array", + "items": { + "$ref": "#/definitions/v2.APISubresourceDiscovery" + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "subresource" + ] + } + }, + "required": [ + "resource", + "scope", + "singularResource", + "verbs" + ] + }, + "v2.APISubresourceDiscovery": { + "type": "object", + "description": "APISubresourceDiscovery provides information about an API subresource for discovery.", + "properties": { + "subresource": { + "type": "string", + "description": "subresource is the name of the subresource." + }, + "responseKind": { + "$ref": "#/definitions/v1.GroupVersionKind" + }, + "acceptedTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.GroupVersionKind" + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "group", + "version", + "kind" + ] + }, + "verbs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "verbs is a list of supported API operation types", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "subresource", + "verbs" + ] + } + }, + "info": { + "title": "Kubernetes", + "version": "release-1.37" + }, + "paths": { + "/api/": { + "get": { "consumes": [ "application/json" ], - "description": "create a Binding", - "operationId": "createNamespacedBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "get available API versions", + "operationId": "getAPIVersions", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v1.Binding" + "$ref": "#/definitions/v1.APIVersions" } + }, + "401": { + "description": "Unauthorized" } + }, + "schemes": [ + "https" + ], + "tags": [ + "core" + ] + } + }, + "/api/v1/": { + "get": { + "consumes": [ + "application/json" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -25532,19 +26883,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Binding" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -25556,141 +26895,30 @@ ], "tags": [ "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Binding", - "version": "v1" - }, - "x-codegen-request-body-name": "body" + ] } }, - "/api/v1/namespaces/{namespace}/configmaps": { - "delete": { + "/api/v1/componentstatuses": { + "get": { "consumes": [ "application/json" ], - "description": "delete collection of ConfigMap", - "operationId": "deleteCollectionNamespacedConfigMap", - "parameters": [ - { - "in": "body", - "name": "body", + "description": "list objects of kind ComponentStatus", + "operationId": "listComponentStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.ComponentStatusList" } }, "401": { @@ -25703,113 +26931,118 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "ConfigMap", + "kind": "ComponentStatus", "version": "v1" - }, - "x-codegen-request-body-name": "body" + } }, + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/api/v1/componentstatuses/{name}": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind ConfigMap", - "operationId": "listNamespacedConfigMap", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "read the specified ComponentStatus", + "operationId": "readComponentStatus", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ConfigMapList" + "$ref": "#/definitions/v1.ComponentStatus" } }, "401": { @@ -25822,18 +27055,18 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "ConfigMap", + "kind": "ComponentStatus", "version": "v1" } }, "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", + "description": "name of the ComponentStatus", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -25845,67 +27078,29 @@ "type": "string", "uniqueItems": true } - ], - "post": { + ] + }, + "/api/v1/configmaps": { + "get": { "consumes": [ "application/json" ], - "description": "create a ConfigMap", - "operationId": "createNamespacedConfigMap", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], + "description": "list or watch objects of kind ConfigMap", + "operationId": "listConfigMapForAllNamespaces", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" + "$ref": "#/definitions/v1.ConfigMapList" } }, "401": { @@ -25918,83 +27113,121 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", "kind": "ConfigMap", "version": "v1" + } + }, + "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", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/api/v1/namespaces/{namespace}/configmaps/{name}": { - "delete": { + "/api/v1/endpoints": { + "get": { "consumes": [ "application/json" ], - "description": "delete a ConfigMap", - "operationId": "deleteNamespacedConfigMap", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], + "description": "list or watch objects of kind Endpoints", + "operationId": "listEndpointsForAllNamespaces", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.EndpointsList" } }, "401": { @@ -26007,136 +27240,121 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "ConfigMap", + "kind": "Endpoints", "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified ConfigMap", - "operationId": "readNamespacedConfigMap", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } + } }, "parameters": [ { - "description": "name of the ConfigMap", - "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", "type": "string", "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { + ] + }, + "/api/v1/events": { + "get": { "consumes": [ "application/json" ], - "description": "partially update the specified ConfigMap", - "operationId": "patchNamespacedConfigMap", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "list or watch objects of kind Event", + "operationId": "listEventForAllNamespaces", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" + "$ref": "#/definitions/core.v1.EventList" } }, "401": { @@ -26149,68 +27367,121 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "ConfigMap", + "kind": "Event", "version": "v1" - }, - "x-codegen-request-body-name": "body" + } }, - "put": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/api/v1/limitranges": { + "get": { "consumes": [ "application/json" ], - "description": "replace the specified ConfigMap", - "operationId": "replaceNamespacedConfigMap", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], + "description": "list or watch objects of kind LimitRange", + "operationId": "listLimitRangeForAllNamespaces", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" + "$ref": "#/definitions/v1.LimitRangeList" } }, "401": { @@ -26223,41 +27494,119 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "ConfigMap", + "kind": "LimitRange", "version": "v1" + } + }, + "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", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/api/v1/namespaces/{namespace}/endpoints": { - "delete": { + "/api/v1/namespaces": { + "get": { "consumes": [ "application/json" ], - "description": "delete collection of Endpoints", - "operationId": "deleteCollectionNamespacedEndpoints", + "description": "list or watch objects of kind Namespace", + "operationId": "listNamespace", "parameters": [ { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "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": "continue", - "type": "string", + "name": "allowWatchBookmarks", + "type": "boolean", "uniqueItems": 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", + "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\".\n\nThis field is not 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": "dryRun", + "name": "continue", "type": "string", "uniqueItems": true }, @@ -26268,20 +27617,6 @@ "type": "string", "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -26296,20 +27631,6 @@ "type": "integer", "uniqueItems": true }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", "in": "query", @@ -26344,19 +27665,29 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } ], "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.NamespaceList" } }, "401": { @@ -26369,58 +27700,391 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "Namespace", "version": "v1" - }, - "x-codegen-request-body-name": "body" + } }, - "get": { + "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", + "type": "string", + "uniqueItems": true + } + ], + "post": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind Endpoints", - "operationId": "listNamespacedEndpoints", + "description": "create a Namespace", + "operationId": "createNamespace", "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", - "type": "boolean", - "uniqueItems": true + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Namespace" + } }, { - "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\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "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": "continue", + "name": "dryRun", "type": "string", "uniqueItems": true }, { - "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", "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "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": "labelSelector", + "name": "fieldValidation", "type": "string", "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Namespace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Namespace" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Namespace" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/api/v1/namespaces/{namespace}/bindings": { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a Binding", + "operationId": "createNamespacedBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Binding" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Binding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Binding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Binding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Binding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/api/v1/namespaces/{namespace}/configmaps": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of ConfigMap", + "operationId": "deleteCollectionNamespacedConfigMap", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "ConfigMap", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind ConfigMap", + "operationId": "listNamespacedConfigMap", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", "in": "query", "name": "resourceVersion", "type": "string", @@ -26475,7 +28139,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointsList" + "$ref": "#/definitions/v1.ConfigMapList" } }, "401": { @@ -26491,7 +28155,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "ConfigMap", "version": "v1" } }, @@ -26516,15 +28180,15 @@ "consumes": [ "application/json" ], - "description": "create Endpoints", - "operationId": "createNamespacedEndpoints", + "description": "create a ConfigMap", + "operationId": "createNamespacedConfigMap", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, { @@ -26559,19 +28223,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "401": { @@ -26587,19 +28251,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "ConfigMap", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/endpoints/{name}": { + "/api/v1/namespaces/{namespace}/configmaps/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete Endpoints", - "operationId": "deleteNamespacedEndpoints", + "description": "delete a ConfigMap", + "operationId": "deleteNamespacedConfigMap", "parameters": [ { "in": "body", @@ -26676,7 +28340,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "ConfigMap", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -26685,8 +28349,8 @@ "consumes": [ "application/json" ], - "description": "read the specified Endpoints", - "operationId": "readNamespacedEndpoints", + "description": "read the specified ConfigMap", + "operationId": "readNamespacedConfigMap", "produces": [ "application/json", "application/yaml", @@ -26697,7 +28361,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "401": { @@ -26713,13 +28377,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "ConfigMap", "version": "v1" } }, "parameters": [ { - "description": "name of the Endpoints", + "description": "name of the ConfigMap", "in": "path", "name": "name", "required": true, @@ -26746,8 +28410,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified Endpoints", - "operationId": "patchNamespacedEndpoints", + "description": "partially update the specified ConfigMap", + "operationId": "patchNamespacedConfigMap", "parameters": [ { "in": "body", @@ -26796,13 +28460,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "401": { @@ -26818,7 +28482,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "ConfigMap", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -26827,15 +28491,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified Endpoints", - "operationId": "replaceNamespacedEndpoints", + "description": "replace the specified ConfigMap", + "operationId": "replaceNamespacedConfigMap", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, { @@ -26870,13 +28534,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "401": { @@ -26892,19 +28556,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "ConfigMap", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/events": { + "/api/v1/namespaces/{namespace}/endpoints": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of Event", - "operationId": "deleteCollectionNamespacedEvent", + "description": "delete collection of Endpoints", + "operationId": "deleteCollectionNamespacedEndpoints", "parameters": [ { "in": "body", @@ -27038,7 +28702,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -27047,8 +28711,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind Event", - "operationId": "listNamespacedEvent", + "description": "list or watch objects of kind Endpoints", + "operationId": "listNamespacedEndpoints", "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.", @@ -27141,7 +28805,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/core.v1.EventList" + "$ref": "#/definitions/v1.EndpointsList" } }, "401": { @@ -27157,7 +28821,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" } }, @@ -27182,15 +28846,15 @@ "consumes": [ "application/json" ], - "description": "create an Event", - "operationId": "createNamespacedEvent", + "description": "create Endpoints", + "operationId": "createNamespacedEndpoints", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, { @@ -27225,19 +28889,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "401": { @@ -27253,19 +28917,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/events/{name}": { + "/api/v1/namespaces/{namespace}/endpoints/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete an Event", - "operationId": "deleteNamespacedEvent", + "description": "delete Endpoints", + "operationId": "deleteNamespacedEndpoints", "parameters": [ { "in": "body", @@ -27342,7 +29006,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -27351,8 +29015,8 @@ "consumes": [ "application/json" ], - "description": "read the specified Event", - "operationId": "readNamespacedEvent", + "description": "read the specified Endpoints", + "operationId": "readNamespacedEndpoints", "produces": [ "application/json", "application/yaml", @@ -27363,7 +29027,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "401": { @@ -27379,13 +29043,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" } }, "parameters": [ { - "description": "name of the Event", + "description": "name of the Endpoints", "in": "path", "name": "name", "required": true, @@ -27412,8 +29076,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified Event", - "operationId": "patchNamespacedEvent", + "description": "partially update the specified Endpoints", + "operationId": "patchNamespacedEndpoints", "parameters": [ { "in": "body", @@ -27462,13 +29126,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "401": { @@ -27484,7 +29148,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -27493,15 +29157,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified Event", - "operationId": "replaceNamespacedEvent", + "description": "replace the specified Endpoints", + "operationId": "replaceNamespacedEndpoints", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, { @@ -27536,13 +29200,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "401": { @@ -27558,19 +29222,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/limitranges": { + "/api/v1/namespaces/{namespace}/events": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of LimitRange", - "operationId": "deleteCollectionNamespacedLimitRange", + "description": "delete collection of Event", + "operationId": "deleteCollectionNamespacedEvent", "parameters": [ { "in": "body", @@ -27704,7 +29368,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -27713,8 +29377,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind LimitRange", - "operationId": "listNamespacedLimitRange", + "description": "list or watch objects of kind Event", + "operationId": "listNamespacedEvent", "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.", @@ -27807,7 +29471,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LimitRangeList" + "$ref": "#/definitions/core.v1.EventList" } }, "401": { @@ -27823,7 +29487,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" } }, @@ -27848,15 +29512,15 @@ "consumes": [ "application/json" ], - "description": "create a LimitRange", - "operationId": "createNamespacedLimitRange", + "description": "create an Event", + "operationId": "createNamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, { @@ -27891,19 +29555,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "401": { @@ -27919,19 +29583,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/limitranges/{name}": { + "/api/v1/namespaces/{namespace}/events/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a LimitRange", - "operationId": "deleteNamespacedLimitRange", + "description": "delete an Event", + "operationId": "deleteNamespacedEvent", "parameters": [ { "in": "body", @@ -28008,7 +29672,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -28017,8 +29681,8 @@ "consumes": [ "application/json" ], - "description": "read the specified LimitRange", - "operationId": "readNamespacedLimitRange", + "description": "read the specified Event", + "operationId": "readNamespacedEvent", "produces": [ "application/json", "application/yaml", @@ -28029,7 +29693,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "401": { @@ -28045,13 +29709,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" } }, "parameters": [ { - "description": "name of the LimitRange", + "description": "name of the Event", "in": "path", "name": "name", "required": true, @@ -28078,8 +29742,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified LimitRange", - "operationId": "patchNamespacedLimitRange", + "description": "partially update the specified Event", + "operationId": "patchNamespacedEvent", "parameters": [ { "in": "body", @@ -28128,13 +29792,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "401": { @@ -28150,7 +29814,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -28159,15 +29823,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified LimitRange", - "operationId": "replaceNamespacedLimitRange", + "description": "replace the specified Event", + "operationId": "replaceNamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, { @@ -28202,13 +29866,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "401": { @@ -28224,19 +29888,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims": { + "/api/v1/namespaces/{namespace}/limitranges": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of PersistentVolumeClaim", - "operationId": "deleteCollectionNamespacedPersistentVolumeClaim", + "description": "delete collection of LimitRange", + "operationId": "deleteCollectionNamespacedLimitRange", "parameters": [ { "in": "body", @@ -28370,7 +30034,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -28379,8 +30043,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind PersistentVolumeClaim", - "operationId": "listNamespacedPersistentVolumeClaim", + "description": "list or watch objects of kind LimitRange", + "operationId": "listNamespacedLimitRange", "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.", @@ -28473,7 +30137,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaimList" + "$ref": "#/definitions/v1.LimitRangeList" } }, "401": { @@ -28489,7 +30153,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" } }, @@ -28514,15 +30178,15 @@ "consumes": [ "application/json" ], - "description": "create a PersistentVolumeClaim", - "operationId": "createNamespacedPersistentVolumeClaim", + "description": "create a LimitRange", + "operationId": "createNamespacedLimitRange", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, { @@ -28557,19 +30221,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "401": { @@ -28585,19 +30249,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}": { + "/api/v1/namespaces/{namespace}/limitranges/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a PersistentVolumeClaim", - "operationId": "deleteNamespacedPersistentVolumeClaim", + "description": "delete a LimitRange", + "operationId": "deleteNamespacedLimitRange", "parameters": [ { "in": "body", @@ -28652,13 +30316,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -28674,235 +30338,17 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified PersistentVolumeClaim", - "operationId": "readNamespacedPersistentVolumeClaim", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PersistentVolumeClaim", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified PersistentVolumeClaim", - "operationId": "patchNamespacedPersistentVolumeClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" }, "x-codegen-request-body-name": "body" }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified PersistentVolumeClaim", - "operationId": "replaceNamespacedPersistentVolumeClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified PersistentVolumeClaim", - "operationId": "readNamespacedPersistentVolumeClaimStatus", + "description": "read the specified LimitRange", + "operationId": "readNamespacedLimitRange", "produces": [ "application/json", "application/yaml", @@ -28913,7 +30359,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "401": { @@ -28929,13 +30375,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" } }, "parameters": [ { - "description": "name of the PersistentVolumeClaim", + "description": "name of the LimitRange", "in": "path", "name": "name", "required": true, @@ -28962,8 +30408,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified PersistentVolumeClaim", - "operationId": "patchNamespacedPersistentVolumeClaimStatus", + "description": "partially update the specified LimitRange", + "operationId": "patchNamespacedLimitRange", "parameters": [ { "in": "body", @@ -29012,13 +30458,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "401": { @@ -29034,7 +30480,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -29043,15 +30489,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified PersistentVolumeClaim", - "operationId": "replaceNamespacedPersistentVolumeClaimStatus", + "description": "replace the specified LimitRange", + "operationId": "replaceNamespacedLimitRange", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, { @@ -29086,13 +30532,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "401": { @@ -29108,19 +30554,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods": { + "/api/v1/namespaces/{namespace}/persistentvolumeclaims": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of Pod", - "operationId": "deleteCollectionNamespacedPod", + "description": "delete collection of PersistentVolumeClaim", + "operationId": "deleteCollectionNamespacedPersistentVolumeClaim", "parameters": [ { "in": "body", @@ -29254,7 +30700,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -29263,8 +30709,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind Pod", - "operationId": "listNamespacedPod", + "description": "list or watch objects of kind PersistentVolumeClaim", + "operationId": "listNamespacedPersistentVolumeClaim", "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.", @@ -29357,7 +30803,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodList" + "$ref": "#/definitions/v1.PersistentVolumeClaimList" } }, "401": { @@ -29373,7 +30819,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" } }, @@ -29398,15 +30844,15 @@ "consumes": [ "application/json" ], - "description": "create a Pod", - "operationId": "createNamespacedPod", + "description": "create a PersistentVolumeClaim", + "operationId": "createNamespacedPersistentVolumeClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, { @@ -29441,19 +30887,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -29469,19 +30915,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods/{name}": { + "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a Pod", - "operationId": "deleteNamespacedPod", + "description": "delete a PersistentVolumeClaim", + "operationId": "deleteNamespacedPersistentVolumeClaim", "parameters": [ { "in": "body", @@ -29536,13 +30982,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -29558,7 +31004,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -29567,8 +31013,8 @@ "consumes": [ "application/json" ], - "description": "read the specified Pod", - "operationId": "readNamespacedPod", + "description": "read the specified PersistentVolumeClaim", + "operationId": "readNamespacedPersistentVolumeClaim", "produces": [ "application/json", "application/yaml", @@ -29579,7 +31025,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -29595,13 +31041,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" } }, "parameters": [ { - "description": "name of the Pod", + "description": "name of the PersistentVolumeClaim", "in": "path", "name": "name", "required": true, @@ -29628,8 +31074,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified Pod", - "operationId": "patchNamespacedPod", + "description": "partially update the specified PersistentVolumeClaim", + "operationId": "patchNamespacedPersistentVolumeClaim", "parameters": [ { "in": "body", @@ -29678,13 +31124,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -29700,7 +31146,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -29709,15 +31155,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified Pod", - "operationId": "replaceNamespacedPod", + "description": "replace the specified PersistentVolumeClaim", + "operationId": "replaceNamespacedPersistentVolumeClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, { @@ -29752,13 +31198,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -29774,247 +31220,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/attach": { - "get": { - "consumes": [ - "application/json" - ], - "description": "connect GET requests to attach of Pod", - "operationId": "connectGetNamespacedPodAttach", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodAttachOptions", - "version": "v1" - } - }, - "parameters": [ - { - "description": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", - "in": "query", - "name": "container", - "type": "string", - "uniqueItems": true - }, - { - "description": "name of the PodAttachOptions", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", - "in": "query", - "name": "stderr", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", - "in": "query", - "name": "stdin", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", - "in": "query", - "name": "stdout", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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.", - "in": "query", - "name": "tty", - "type": "boolean", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "connect POST requests to attach of Pod", - "operationId": "connectPostNamespacedPodAttach", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodAttachOptions", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/binding": { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "name of the Binding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create binding of a Pod", - "operationId": "createNamespacedPodBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Binding" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Binding", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers": { + "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read ephemeralcontainers of the specified Pod", - "operationId": "readNamespacedPodEphemeralcontainers", + "description": "read status of the specified PersistentVolumeClaim", + "operationId": "readNamespacedPersistentVolumeClaimStatus", "produces": [ "application/json", "application/yaml", @@ -30025,7 +31243,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -30041,13 +31259,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" } }, "parameters": [ { - "description": "name of the Pod", + "description": "name of the PersistentVolumeClaim", "in": "path", "name": "name", "required": true, @@ -30074,8 +31292,8 @@ "consumes": [ "application/json" ], - "description": "partially update ephemeralcontainers of the specified Pod", - "operationId": "patchNamespacedPodEphemeralcontainers", + "description": "partially update status of the specified PersistentVolumeClaim", + "operationId": "patchNamespacedPersistentVolumeClaimStatus", "parameters": [ { "in": "body", @@ -30124,13 +31342,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -30146,7 +31364,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -30155,15 +31373,15 @@ "consumes": [ "application/json" ], - "description": "replace ephemeralcontainers of the specified Pod", - "operationId": "replaceNamespacedPodEphemeralcontainers", + "description": "replace status of the specified PersistentVolumeClaim", + "operationId": "replaceNamespacedPersistentVolumeClaimStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, { @@ -30198,13 +31416,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -30220,73 +31438,124 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods/{name}/eviction": { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "name of the Eviction", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - } - ], - "post": { + "/api/v1/namespaces/{namespace}/pods": { + "delete": { "consumes": [ "application/json" ], - "description": "create eviction of a Pod", - "operationId": "createNamespacedPodEviction", + "description": "delete collection of Pod", + "operationId": "deleteCollectionNamespacedPod", "parameters": [ { "in": "body", "name": "body", - "required": true, "schema": { - "$ref": "#/definitions/v1.Eviction" + "$ref": "#/definitions/v1.DeleteOptions" } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true } ], "produces": [ @@ -30299,19 +31568,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Eviction" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Eviction" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Eviction" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -30324,30 +31581,113 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "Eviction", + "group": "", + "kind": "Pod", "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/exec": { + }, "get": { "consumes": [ "application/json" ], - "description": "connect GET requests to exec of Pod", - "operationId": "connectGetNamespacedPodExec", + "description": "list or watch objects of kind Pod", + "operationId": "listNamespacedPod", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.PodList" } }, "401": { @@ -30360,36 +31700,14 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodExecOptions", + "kind": "Pod", "version": "v1" } }, "parameters": [ - { - "description": "Command is the remote command to execute. argv array. Not executed within a shell.", - "in": "query", - "name": "command", - "type": "string", - "uniqueItems": true - }, - { - "description": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", - "in": "query", - "name": "container", - "type": "string", - "uniqueItems": true - }, - { - "description": "name of the PodExecOptions", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -30399,31 +31717,10 @@ "uniqueItems": true }, { - "description": "Redirect the standard error stream of the pod for this call.", - "in": "query", - "name": "stderr", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Redirect the standard input stream of the pod for this call. Defaults to false.", - "in": "query", - "name": "stdin", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Redirect the standard output stream of the pod for this call.", - "in": "query", - "name": "stdout", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", + "description": "If 'true', 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": "tty", - "type": "boolean", + "name": "pretty", + "type": "string", "uniqueItems": true } ], @@ -30431,16 +31728,62 @@ "consumes": [ "application/json" ], - "description": "connect POST requests to exec of Pod", - "operationId": "connectPostNamespacedPodExec", + "description": "create a Pod", + "operationId": "createNamespacedPod", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -30453,23 +31796,110 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodExecOptions", + "kind": "Pod", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods/{name}/log": { + "/api/v1/namespaces/{namespace}/pods/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a Pod", + "operationId": "deleteNamespacedPod", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, "get": { "consumes": [ "application/json" ], - "description": "read log of the specified Pod", - "operationId": "readNamespacedPodLog", + "description": "read the specified Pod", + "operationId": "readNamespacedPod", "produces": [ - "text/plain", "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", @@ -30479,7 +31909,7 @@ "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -30501,38 +31931,10 @@ }, "parameters": [ { - "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", - "in": "query", - "name": "container", - "type": "string", - "uniqueItems": true - }, - { - "description": "Follow the log stream of the pod. Defaults to false.", - "in": "query", - "name": "follow", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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).", - "in": "query", - "name": "insecureSkipTLSVerifyBackend", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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.", - "in": "query", - "name": "limitBytes", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Pod", - "in": "path", - "name": "name", - "required": true, + "description": "name of the Pod", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, @@ -30550,59 +31952,69 @@ "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "Return previous terminated container logs. Defaults to false.", - "in": "query", - "name": "previous", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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.", - "in": "query", - "name": "sinceSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "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\".", - "in": "query", - "name": "stream", - "type": "string", - "uniqueItems": true - }, - { - "description": "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\".", - "in": "query", - "name": "tailLines", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", - "in": "query", - "name": "timestamps", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/portforward": { - "get": { + ], + "patch": { "consumes": [ "application/json" ], - "description": "connect GET requests to portforward of Pod", - "operationId": "connectGetNamespacedPodPortforward", + "description": "partially update the specified Pod", + "operationId": "patchNamespacedPod", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -30615,52 +32027,68 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodPortForwardOptions", + "kind": "Pod", "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PodPortForwardOptions", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true }, - { - "description": "List of ports to forward Required when using WebSockets", - "in": "query", - "name": "ports", - "type": "integer", - "uniqueItems": true - } - ], - "post": { + "x-codegen-request-body-name": "body" + }, + "put": { "consumes": [ "application/json" ], - "description": "connect POST requests to portforward of Pod", - "operationId": "connectPostNamespacedPodPortforward", + "description": "replace the specified Pod", + "operationId": "replaceNamespacedPod", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -30673,21 +32101,22 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodPortForwardOptions", + "kind": "Pod", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods/{name}/proxy": { - "delete": { + "/api/v1/namespaces/{namespace}/pods/{name}/attach": { + "get": { "consumes": [ "application/json" ], - "description": "connect DELETE requests to proxy of Pod", - "operationId": "connectDeleteNamespacedPodProxy", + "description": "connect GET requests to attach of Pod", + "operationId": "connectGetNamespacedPodAttach", "produces": [ "*/*" ], @@ -30711,16 +32140,69 @@ "x-kubernetes-action": "connect", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "PodAttachOptions", "version": "v1" } }, - "get": { + "parameters": [ + { + "description": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", + "in": "query", + "name": "container", + "type": "string", + "uniqueItems": true + }, + { + "description": "name of the PodAttachOptions", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", + "in": "query", + "name": "stderr", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", + "in": "query", + "name": "stdin", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", + "in": "query", + "name": "stdout", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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.", + "in": "query", + "name": "tty", + "type": "boolean", + "uniqueItems": true + } + ], + "post": { "consumes": [ "application/json" ], - "description": "connect GET requests to proxy of Pod", - "operationId": "connectGetNamespacedPodProxy", + "description": "connect POST requests to attach of Pod", + "operationId": "connectPostNamespacedPodAttach", "produces": [ "*/*" ], @@ -30744,24 +32226,97 @@ "x-kubernetes-action": "connect", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "PodAttachOptions", "version": "v1" } - }, - "head": { + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/binding": { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "description": "name of the Binding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "post": { "consumes": [ "application/json" ], - "description": "connect HEAD requests to proxy of Pod", - "operationId": "connectHeadNamespacedPodProxy", + "description": "create binding of a Pod", + "operationId": "createNamespacedPodBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Binding" + } + } + ], "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Binding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Binding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Binding" } }, "401": { @@ -30774,27 +32329,33 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "Binding", "version": "v1" - } - }, - "options": { + }, + "x-codegen-request-body-name": "body" + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers": { + "get": { "consumes": [ "application/json" ], - "description": "connect OPTIONS requests to proxy of Pod", - "operationId": "connectOptionsNamespacedPodProxy", + "description": "read ephemeralcontainers of the specified Pod", + "operationId": "readNamespacedPodEphemeralcontainers", "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -30807,16 +32368,16 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "Pod", "version": "v1" } }, "parameters": [ { - "description": "name of the PodProxyOptions", + "description": "name of the Pod", "in": "path", "name": "name", "required": true, @@ -30832,9 +32393,9 @@ "uniqueItems": true }, { - "description": "Path is the URL path to use for the current proxy request to pod.", + "description": "If 'true', 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": "path", + "name": "pretty", "type": "string", "uniqueItems": true } @@ -30843,16 +32404,63 @@ "consumes": [ "application/json" ], - "description": "connect PATCH requests to proxy of Pod", - "operationId": "connectPatchNamespacedPodProxy", + "description": "partially update ephemeralcontainers of the specified Pod", + "operationId": "patchNamespacedPodEphemeralcontainers", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -30865,27 +32473,68 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "Pod", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, - "post": { + "put": { "consumes": [ "application/json" ], - "description": "connect POST requests to proxy of Pod", - "operationId": "connectPostNamespacedPodProxy", + "description": "replace ephemeralcontainers of the specified Pod", + "operationId": "replaceNamespacedPodEphemeralcontainers", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -30898,27 +32547,101 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "Pod", "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/eviction": { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "description": "name of the Eviction", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true } - }, - "put": { + ], + "post": { "consumes": [ "application/json" ], - "description": "connect PUT requests to proxy of Pod", - "operationId": "connectPutNamespacedPodProxy", + "description": "create eviction of a Pod", + "operationId": "createNamespacedPodEviction", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Eviction" + } + } + ], "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Eviction" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Eviction" } }, "401": { @@ -30931,21 +32654,22 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", + "group": "policy", + "kind": "Eviction", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}": { - "delete": { + "/api/v1/namespaces/{namespace}/pods/{name}/exec": { + "get": { "consumes": [ "application/json" ], - "description": "connect DELETE requests to proxy of Pod", - "operationId": "connectDeleteNamespacedPodProxyWithPath", + "description": "connect GET requests to exec of Pod", + "operationId": "connectGetNamespacedPodExec", "produces": [ "*/*" ], @@ -30969,16 +32693,76 @@ "x-kubernetes-action": "connect", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "PodExecOptions", "version": "v1" } }, - "get": { + "parameters": [ + { + "description": "Command is the remote command to execute. argv array. Not executed within a shell.", + "in": "query", + "name": "command", + "type": "string", + "uniqueItems": true + }, + { + "description": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", + "in": "query", + "name": "container", + "type": "string", + "uniqueItems": true + }, + { + "description": "name of the PodExecOptions", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "Redirect the standard error stream of the pod for this call.", + "in": "query", + "name": "stderr", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Redirect the standard input stream of the pod for this call. Defaults to false.", + "in": "query", + "name": "stdin", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Redirect the standard output stream of the pod for this call.", + "in": "query", + "name": "stdout", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", + "in": "query", + "name": "tty", + "type": "boolean", + "uniqueItems": true + } + ], + "post": { "consumes": [ "application/json" ], - "description": "connect GET requests to proxy of Pod", - "operationId": "connectGetNamespacedPodProxyWithPath", + "description": "connect POST requests to exec of Pod", + "operationId": "connectPostNamespacedPodExec", "produces": [ "*/*" ], @@ -31002,18 +32786,24 @@ "x-kubernetes-action": "connect", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "PodExecOptions", "version": "v1" } - }, - "head": { + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/log": { + "get": { "consumes": [ "application/json" ], - "description": "connect HEAD requests to proxy of Pod", - "operationId": "connectHeadNamespacedPodProxyWithPath", + "description": "read log of the specified Pod", + "operationId": "readNamespacedPodLog", "produces": [ - "*/*" + "text/plain", + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -31032,19 +32822,109 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "Pod", "version": "v1" } }, - "options": { + "parameters": [ + { + "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", + "in": "query", + "name": "container", + "type": "string", + "uniqueItems": true + }, + { + "description": "Follow the log stream of the pod. Defaults to false.", + "in": "query", + "name": "follow", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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).", + "in": "query", + "name": "insecureSkipTLSVerifyBackend", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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.", + "in": "query", + "name": "limitBytes", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Pod", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "Return previous terminated container logs. Defaults to false.", + "in": "query", + "name": "previous", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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.", + "in": "query", + "name": "sinceSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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\".", + "in": "query", + "name": "stream", + "type": "string", + "uniqueItems": true + }, + { + "description": "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\".", + "in": "query", + "name": "tailLines", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", + "in": "query", + "name": "timestamps", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/api/v1/namespaces/{namespace}/pods/{name}/portforward": { + "get": { "consumes": [ "application/json" ], - "description": "connect OPTIONS requests to proxy of Pod", - "operationId": "connectOptionsNamespacedPodProxyWithPath", + "description": "connect GET requests to portforward of Pod", + "operationId": "connectGetNamespacedPodPortforward", "produces": [ "*/*" ], @@ -31068,13 +32948,13 @@ "x-kubernetes-action": "connect", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "PodPortForwardOptions", "version": "v1" } }, "parameters": [ { - "description": "name of the PodProxyOptions", + "description": "name of the PodPortForwardOptions", "in": "path", "name": "name", "required": true, @@ -31090,27 +32970,54 @@ "uniqueItems": true }, { - "description": "path to the resource", - "in": "path", - "name": "path", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "Path is the URL path to use for the current proxy request to pod.", + "description": "List of ports to forward Required when using WebSockets", "in": "query", - "name": "path", - "type": "string", + "name": "ports", + "type": "integer", "uniqueItems": true } ], - "patch": { + "post": { "consumes": [ "application/json" ], - "description": "connect PATCH requests to proxy of Pod", - "operationId": "connectPatchNamespacedPodProxyWithPath", + "description": "connect POST requests to portforward of Pod", + "operationId": "connectPostNamespacedPodPortforward", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodPortForwardOptions", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/proxy": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "connect DELETE requests to proxy of Pod", + "operationId": "connectDeleteNamespacedPodProxy", "produces": [ "*/*" ], @@ -31138,12 +33045,12 @@ "version": "v1" } }, - "post": { + "get": { "consumes": [ "application/json" ], - "description": "connect POST requests to proxy of Pod", - "operationId": "connectPostNamespacedPodProxyWithPath", + "description": "connect GET requests to proxy of Pod", + "operationId": "connectGetNamespacedPodProxy", "produces": [ "*/*" ], @@ -31171,12 +33078,12 @@ "version": "v1" } }, - "put": { + "head": { "consumes": [ "application/json" ], - "description": "connect PUT requests to proxy of Pod", - "operationId": "connectPutNamespacedPodProxyWithPath", + "description": "connect HEAD requests to proxy of Pod", + "operationId": "connectHeadNamespacedPodProxy", "produces": [ "*/*" ], @@ -31203,26 +33110,21 @@ "kind": "PodProxyOptions", "version": "v1" } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/resize": { - "get": { + }, + "options": { "consumes": [ "application/json" ], - "description": "read resize of the specified Pod", - "operationId": "readNamespacedPodResize", + "description": "connect OPTIONS requests to proxy of Pod", + "operationId": "connectOptionsNamespacedPodProxy", "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "*/*" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "type": "string" } }, "401": { @@ -31235,16 +33137,16 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "connect", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PodProxyOptions", "version": "v1" } }, "parameters": [ { - "description": "name of the Pod", + "description": "name of the PodProxyOptions", "in": "path", "name": "name", "required": true, @@ -31260,9 +33162,9 @@ "uniqueItems": 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).", + "description": "Path is the URL path to use for the current proxy request to pod.", "in": "query", - "name": "pretty", + "name": "path", "type": "string", "uniqueItems": true } @@ -31271,63 +33173,16 @@ "consumes": [ "application/json" ], - "description": "partially update resize of the specified Pod", - "operationId": "patchNamespacedPodResize", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "connect PATCH requests to proxy of Pod", + "operationId": "connectPatchNamespacedPodProxy", "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "*/*" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Pod" + "type": "string" } }, "401": { @@ -31340,68 +33195,27 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "connect", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PodProxyOptions", "version": "v1" - }, - "x-codegen-request-body-name": "body" + } }, - "put": { + "post": { "consumes": [ "application/json" ], - "description": "replace resize of the specified Pod", - "operationId": "replaceNamespacedPodResize", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], + "description": "connect POST requests to proxy of Pod", + "operationId": "connectPostNamespacedPodProxy", "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "*/*" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Pod" + "type": "string" } }, "401": { @@ -31414,22 +33228,320 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "connect", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PodProxyOptions", "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/status": { - "get": { + } + }, + "put": { "consumes": [ "application/json" ], - "description": "read status of the specified Pod", - "operationId": "readNamespacedPodStatus", + "description": "connect PUT requests to proxy of Pod", + "operationId": "connectPutNamespacedPodProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "connect DELETE requests to proxy of Pod", + "operationId": "connectDeleteNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "connect GET requests to proxy of Pod", + "operationId": "connectGetNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "head": { + "consumes": [ + "application/json" + ], + "description": "connect HEAD requests to proxy of Pod", + "operationId": "connectHeadNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "options": { + "consumes": [ + "application/json" + ], + "description": "connect OPTIONS requests to proxy of Pod", + "operationId": "connectOptionsNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodProxyOptions", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "path to the resource", + "in": "path", + "name": "path", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "Path is the URL path to use for the current proxy request to pod.", + "in": "query", + "name": "path", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "connect PATCH requests to proxy of Pod", + "operationId": "connectPatchNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "post": { + "consumes": [ + "application/json" + ], + "description": "connect POST requests to proxy of Pod", + "operationId": "connectPostNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "connect PUT requests to proxy of Pod", + "operationId": "connectPutNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/resize": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read resize of the specified Pod", + "operationId": "readNamespacedPodResize", "produces": [ "application/json", "application/yaml", @@ -31489,8 +33601,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified Pod", - "operationId": "patchNamespacedPodStatus", + "description": "partially update resize of the specified Pod", + "operationId": "patchNamespacedPodResize", "parameters": [ { "in": "body", @@ -31570,8 +33682,8 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified Pod", - "operationId": "replaceNamespacedPodStatus", + "description": "replace resize of the specified Pod", + "operationId": "replaceNamespacedPodResize", "parameters": [ { "in": "body", @@ -31641,28 +33753,83 @@ "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/podtemplates": { - "delete": { + "/api/v1/namespaces/{namespace}/pods/{name}/status": { + "get": { "consumes": [ "application/json" ], - "description": "delete collection of PodTemplate", - "operationId": "deleteCollectionNamespacedPodTemplate", + "description": "read status of the specified Pod", + "operationId": "readNamespacedPodStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Pod", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified Pod", + "operationId": "patchNamespacedPodStatus", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.Patch" } }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", @@ -31671,88 +33838,25 @@ "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults 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": "resourceVersion", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "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.\n\nDefaults to unset", + "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": "resourceVersionMatch", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "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": "sendInitialEvents", + "name": "force", "type": "boolean", "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true } ], "produces": [ @@ -31765,7 +33869,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -31778,49 +33888,269 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodTemplate", + "kind": "Pod", "version": "v1" }, "x-codegen-request-body-name": "body" }, - "get": { + "put": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind PodTemplate", - "operationId": "listNamespacedPodTemplate", + "description": "replace status of the specified Pod", + "operationId": "replaceNamespacedPodStatus", "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", - "type": "boolean", - "uniqueItems": true + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Pod" + } }, { - "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\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "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": "continue", + "name": "dryRun", "type": "string", "uniqueItems": true }, { - "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", "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "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": "labelSelector", + "name": "fieldValidation", "type": "string", "uniqueItems": true - }, + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/api/v1/namespaces/{namespace}/podtemplates": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of PodTemplate", + "operationId": "deleteCollectionNamespacedPodTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodTemplate", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind PodTemplate", + "operationId": "listNamespacedPodTemplate", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", @@ -45002,7 +47332,8 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -45033,7 +47364,8 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -53710,7 +56042,8 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -54817,7 +57150,8 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -55924,7 +58258,8 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -62918,7 +65253,8 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -63163,7 +65499,8 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -63598,7 +65935,8 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -66291,7 +68629,8 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -68952,7 +71291,8 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -70075,223 +72415,7 @@ "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the CertificateSigningRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/certificates.k8s.io/v1alpha1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1alpha1" - ] - } - }, - "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles": { + "/apis/certificates.k8s.io/v1/clustertrustbundles": { "delete": { "consumes": [ "application/json" @@ -70426,13 +72550,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -70534,7 +72658,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundleList" + "$ref": "#/definitions/v1.ClusterTrustBundleList" } }, "401": { @@ -70545,13 +72669,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "parameters": [ @@ -70575,7 +72699,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, { @@ -70610,19 +72734,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "401": { @@ -70633,18 +72757,18 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1/clustertrustbundles/{name}": { "delete": { "consumes": [ "application/json" @@ -70722,13 +72846,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -70748,7 +72872,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "401": { @@ -70759,13 +72883,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "parameters": [ @@ -70839,13 +72963,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "401": { @@ -70856,13 +72980,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -70878,7 +73002,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, { @@ -70913,13 +73037,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "401": { @@ -70930,240 +73054,24 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ClusterTrustBundle", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ] - } - }, - "/apis/certificates.k8s.io/v1beta1/clustertrustbundles": { + "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ClusterTrustBundle", - "operationId": "deleteCollectionClusterTrustBundle", + "description": "delete collection of PodCertificateRequest", + "operationId": "deleteCollectionNamespacedPodCertificateRequest", "parameters": [ { "in": "body", @@ -71292,13 +73200,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -71306,8 +73214,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ClusterTrustBundle", - "operationId": "listClusterTrustBundle", + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listNamespacedPodCertificateRequest", "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.", @@ -71400,7 +73308,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundleList" + "$ref": "#/definitions/v1.PodCertificateRequestList" } }, "401": { @@ -71411,16 +73319,24 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -71433,15 +73349,15 @@ "consumes": [ "application/json" ], - "description": "create a ClusterTrustBundle", - "operationId": "createClusterTrustBundle", + "description": "create a PodCertificateRequest", + "operationId": "createNamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, { @@ -71476,19 +73392,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "401": { @@ -71499,24 +73415,24 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ClusterTrustBundle", - "operationId": "deleteClusterTrustBundle", + "description": "delete a PodCertificateRequest", + "operationId": "deleteNamespacedPodCertificateRequest", "parameters": [ { "in": "body", @@ -71588,13 +73504,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -71602,8 +73518,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ClusterTrustBundle", - "operationId": "readClusterTrustBundle", + "description": "read the specified PodCertificateRequest", + "operationId": "readNamespacedPodCertificateRequest", "produces": [ "application/json", "application/yaml", @@ -71614,7 +73530,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "401": { @@ -71625,24 +73541,32 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterTrustBundle", + "description": "name of the PodCertificateRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -71655,8 +73579,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ClusterTrustBundle", - "operationId": "patchClusterTrustBundle", + "description": "partially update the specified PodCertificateRequest", + "operationId": "patchNamespacedPodCertificateRequest", "parameters": [ { "in": "body", @@ -71705,13 +73629,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "401": { @@ -71722,13 +73646,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -71736,15 +73660,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ClusterTrustBundle", - "operationId": "replaceClusterTrustBundle", + "description": "replace the specified PodCertificateRequest", + "operationId": "replaceNamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, { @@ -71779,13 +73703,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "401": { @@ -71796,261 +73720,35 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of PodCertificateRequest", - "operationId": "deleteCollectionNamespacedPodCertificateRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, + "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind PodCertificateRequest", - "operationId": "listNamespacedPodCertificateRequest", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "read status of the specified PodCertificateRequest", + "operationId": "readNamespacedPodCertificateRequestStatus", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequestList" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "401": { @@ -72061,16 +73759,24 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ + { + "description": "name of the PodCertificateRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -72087,19 +73793,19 @@ "uniqueItems": true } ], - "post": { + "patch": { "consumes": [ "application/json" ], - "description": "create a PodCertificateRequest", - "operationId": "createNamespacedPodCertificateRequest", + "description": "partially update status of the specified PodCertificateRequest", + "operationId": "patchNamespacedPodCertificateRequestStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.Patch" } }, { @@ -72110,7 +73816,7 @@ "uniqueItems": 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.", + "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", "type": "string", @@ -72122,6 +73828,13 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } ], "produces": [ @@ -72134,19 +73847,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "401": { @@ -72157,30 +73864,29 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}": { - "delete": { + }, + "put": { "consumes": [ "application/json" ], - "description": "delete a PodCertificateRequest", - "operationId": "deleteNamespacedPodCertificateRequest", + "description": "replace status of the specified PodCertificateRequest", + "operationId": "replaceNamespacedPodCertificateRequestStatus", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, { @@ -72191,30 +73897,16 @@ "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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.", + "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": "orphanDependents", - "type": "boolean", + "name": "fieldManager", + "type": "string", "uniqueItems": true }, { - "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": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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": "propagationPolicy", + "name": "fieldValidation", "type": "string", "uniqueItems": true } @@ -72229,13 +73921,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "401": { @@ -72246,33 +73938,38 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" }, "x-codegen-request-body-name": "body" - }, + } + }, + "/apis/certificates.k8s.io/v1/podcertificaterequests": { "get": { "consumes": [ "application/json" ], - "description": "read the specified PodCertificateRequest", - "operationId": "readNamespacedPodCertificateRequest", + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listPodCertificateRequestForAllNamespaces", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.PodCertificateRequestList" } }, "401": { @@ -72283,454 +73980,191 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ { - "description": "name of the PodCertificateRequest", - "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", "type": "string", "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified PodCertificateRequest", - "operationId": "patchNamespacedPodCertificateRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified PodCertificateRequest", - "operationId": "replaceNamespacedPodCertificateRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } + ] }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status": { - "get": { - "consumes": [ - "application/json" - ], - "description": "read status of the specified PodCertificateRequest", - "operationId": "readNamespacedPodCertificateRequestStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" - } - }, + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { "parameters": [ { - "description": "name of the PodCertificateRequest", - "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update status of the specified PodCertificateRequest", - "operationId": "patchNamespacedPodCertificateRequestStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace status of the specified PodCertificateRequest", - "operationId": "replaceNamespacedPodCertificateRequestStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - "401": { - "description": "Unauthorized" - } + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/certificates.k8s.io/v1beta1/podcertificaterequests": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind PodCertificateRequest", - "operationId": "listPodCertificateRequestForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequestList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { "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.", @@ -72767,6 +74201,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the CertificateSigningRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -72818,7 +74260,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles": { + "/apis/certificates.k8s.io/v1/watch/clustertrustbundles": { "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.", @@ -72906,7 +74348,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1/watch/clustertrustbundles/{name}": { "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.", @@ -73002,7 +74444,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests": { + "/apis/certificates.k8s.io/v1/watch/namespaces/{namespace}/podcertificaterequests": { "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.", @@ -73098,7 +74540,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}": { + "/apis/certificates.k8s.io/v1/watch/namespaces/{namespace}/podcertificaterequests/{name}": { "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.", @@ -73202,7 +74644,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests": { + "/apis/certificates.k8s.io/v1/watch/podcertificaterequests": { "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.", @@ -73290,38 +74732,7 @@ } ] }, - "/apis/coordination.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination" - ] - } - }, - "/apis/coordination.k8s.io/v1/": { + "/apis/certificates.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json" @@ -73349,148 +74760,21 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ] } }, - "/apis/coordination.k8s.io/v1/leases": { - "get": { + "/apis/certificates.k8s.io/v1beta1/clustertrustbundles": { + "delete": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind Lease", - "operationId": "listLeaseForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LeaseList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of Lease", - "operationId": "deleteCollectionNamespacedLease", - "parameters": [ - { - "in": "body", - "name": "body", + "description": "delete collection of ClusterTrustBundle", + "operationId": "deleteCollectionClusterTrustBundle", + "parameters": [ + { + "in": "body", + "name": "body", "schema": { "$ref": "#/definitions/v1.DeleteOptions" } @@ -73615,13 +74899,13 @@ "https" ], "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" }, @@ -73629,8 +74913,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind Lease", - "operationId": "listNamespacedLease", + "description": "list or watch objects of kind ClusterTrustBundle", + "operationId": "listClusterTrustBundle", "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.", @@ -73723,7 +75007,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LeaseList" + "$ref": "#/definitions/v1beta1.ClusterTrustBundleList" } }, "401": { @@ -73734,24 +75018,16 @@ "https" ], "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" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -73764,15 +75040,15 @@ "consumes": [ "application/json" ], - "description": "create a Lease", - "operationId": "createNamespacedLease", + "description": "create a ClusterTrustBundle", + "operationId": "createClusterTrustBundle", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, { @@ -73807,19 +75083,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "401": { @@ -73830,24 +75106,24 @@ "https" ], "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" } }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { + "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a Lease", - "operationId": "deleteNamespacedLease", + "description": "delete a ClusterTrustBundle", + "operationId": "deleteClusterTrustBundle", "parameters": [ { "in": "body", @@ -73919,13 +75195,13 @@ "https" ], "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" }, @@ -73933,8 +75209,8 @@ "consumes": [ "application/json" ], - "description": "read the specified Lease", - "operationId": "readNamespacedLease", + "description": "read the specified ClusterTrustBundle", + "operationId": "readClusterTrustBundle", "produces": [ "application/json", "application/yaml", @@ -73945,7 +75221,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "401": { @@ -73956,32 +75232,24 @@ "https" ], "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" } }, "parameters": [ { - "description": "name of the Lease", + "description": "name of the ClusterTrustBundle", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -73994,8 +75262,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified Lease", - "operationId": "patchNamespacedLease", + "description": "partially update the specified ClusterTrustBundle", + "operationId": "patchClusterTrustBundle", "parameters": [ { "in": "body", @@ -74044,13 +75312,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "401": { @@ -74061,13 +75329,13 @@ "https" ], "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" }, @@ -74075,15 +75343,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified Lease", - "operationId": "replaceNamespacedLease", + "description": "replace the specified ClusterTrustBundle", + "operationId": "replaceClusterTrustBundle", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, { @@ -74118,13 +75386,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "401": { @@ -74135,246 +75403,281 @@ "https" ], "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" } }, - "/apis/coordination.k8s.io/v1/watch/leases": { - "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", - "type": "boolean", - "uniqueItems": true + "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of PodCertificateRequest", + "operationId": "deleteCollectionNamespacedPodCertificateRequest", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1beta1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listNamespacedPodCertificateRequest", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodCertificateRequestList" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1beta1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" } - ] - }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { + }, "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Lease", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -74389,104 +75692,68 @@ "name": "pretty", "type": "string", "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/coordination.k8s.io/v1alpha2/": { - "get": { + ], + "post": { "consumes": [ "application/json" ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", + "description": "create a PodCertificateRequest", + "operationId": "createNamespacedPodCertificateRequest", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, - "401": { - "description": "Unauthorized" + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true } - }, - "schemes": [ - "https" ], - "tags": [ - "coordination_v1alpha2" - ] - } - }, - "/apis/coordination.k8s.io/v1alpha2/leasecandidates": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listLeaseCandidateForAllNamespaces", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidateList" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.PodCertificateRequest" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "401": { @@ -74497,109 +75764,24 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates": { + "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of LeaseCandidate", - "operationId": "deleteCollectionNamespacedLeaseCandidate", + "description": "delete a PodCertificateRequest", + "operationId": "deleteNamespacedPodCertificateRequest", "parameters": [ { "in": "body", @@ -74608,13 +75790,6 @@ "$ref": "#/definitions/v1.DeleteOptions" } }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", @@ -74622,13 +75797,6 @@ "type": "string", "uniqueItems": true }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": 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", @@ -74643,20 +75811,6 @@ "type": "boolean", "uniqueItems": true }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, { "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", @@ -74670,41 +75824,6 @@ "name": "propagationPolicy", "type": "string", "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true } ], "produces": [ @@ -74720,6 +75839,12 @@ "$ref": "#/definitions/v1.Status" } }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, "401": { "description": "Unauthorized" } @@ -74728,13 +75853,13 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -74742,101 +75867,19 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listNamespacedLeaseCandidate", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "read the specified PodCertificateRequest", + "operationId": "readNamespacedPodCertificateRequest", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidateList" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "401": { @@ -74847,16 +75890,24 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" } }, "parameters": [ + { + "description": "name of the PodCertificateRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -74873,19 +75924,19 @@ "uniqueItems": true } ], - "post": { + "patch": { "consumes": [ "application/json" ], - "description": "create a LeaseCandidate", - "operationId": "createNamespacedLeaseCandidate", + "description": "partially update the specified PodCertificateRequest", + "operationId": "patchNamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1.Patch" } }, { @@ -74896,7 +75947,7 @@ "uniqueItems": 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.", + "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", "type": "string", @@ -74908,6 +75959,13 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } ], "produces": [ @@ -74920,19 +75978,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "401": { @@ -74943,30 +75995,29 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}": { - "delete": { + }, + "put": { "consumes": [ "application/json" ], - "description": "delete a LeaseCandidate", - "operationId": "deleteNamespacedLeaseCandidate", + "description": "replace the specified PodCertificateRequest", + "operationId": "replaceNamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, { @@ -74977,30 +76028,16 @@ "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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.", + "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": "orphanDependents", - "type": "boolean", + "name": "fieldManager", + "type": "string", "uniqueItems": true }, { - "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": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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": "propagationPolicy", + "name": "fieldValidation", "type": "string", "uniqueItems": true } @@ -75015,13 +76052,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "401": { @@ -75032,22 +76069,24 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" - }, + } + }, + "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read the specified LeaseCandidate", - "operationId": "readNamespacedLeaseCandidate", + "description": "read status of the specified PodCertificateRequest", + "operationId": "readNamespacedPodCertificateRequestStatus", "produces": [ "application/json", "application/yaml", @@ -75058,7 +76097,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "401": { @@ -75069,18 +76108,18 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the LeaseCandidate", + "description": "name of the PodCertificateRequest", "in": "path", "name": "name", "required": true, @@ -75107,8 +76146,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified LeaseCandidate", - "operationId": "patchNamespacedLeaseCandidate", + "description": "partially update status of the specified PodCertificateRequest", + "operationId": "patchNamespacedPodCertificateRequestStatus", "parameters": [ { "in": "body", @@ -75157,13 +76196,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "401": { @@ -75174,13 +76213,13 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -75188,15 +76227,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified LeaseCandidate", - "operationId": "replaceNamespacedLeaseCandidate", + "description": "replace status of the specified PodCertificateRequest", + "operationId": "replaceNamespacedPodCertificateRequestStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, { @@ -75231,13 +76270,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "401": { @@ -75248,18 +76287,57 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/coordination.k8s.io/v1alpha2/watch/leasecandidates": { + "/apis/certificates.k8s.io/v1beta1/podcertificaterequests": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listPodCertificateRequestForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodCertificateRequestList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1beta1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" + } + }, "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.", @@ -75347,7 +76425,7 @@ } ] }, - "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates": { + "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles": { "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.", @@ -75384,14 +76462,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -75443,7 +76513,7 @@ } ] }, - "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}": { "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.", @@ -75481,13 +76551,101 @@ "uniqueItems": true }, { - "description": "name of the LeaseCandidate", + "description": "name of the ClusterTrustBundle", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -75547,7 +76705,231 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/": { + "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PodCertificateRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/coordination.k8s.io/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination" + ] + } + }, + "/apis/coordination.k8s.io/v1/": { "get": { "consumes": [ "application/json" @@ -75575,17 +76957,17 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ] } }, - "/apis/coordination.k8s.io/v1beta1/leasecandidates": { + "/apis/coordination.k8s.io/v1/leases": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listLeaseCandidateForAllNamespaces", + "description": "list or watch objects of kind Lease", + "operationId": "listLeaseForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -75599,7 +76981,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidateList" + "$ref": "#/definitions/v1.LeaseList" } }, "401": { @@ -75610,13 +76992,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" } }, "parameters": [ @@ -75706,13 +77088,13 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates": { + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of LeaseCandidate", - "operationId": "deleteCollectionNamespacedLeaseCandidate", + "description": "delete collection of Lease", + "operationId": "deleteCollectionNamespacedLease", "parameters": [ { "in": "body", @@ -75841,13 +77223,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -75855,8 +77237,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listNamespacedLeaseCandidate", + "description": "list or watch objects of kind Lease", + "operationId": "listNamespacedLease", "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.", @@ -75949,7 +77331,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidateList" + "$ref": "#/definitions/v1.LeaseList" } }, "401": { @@ -75960,13 +77342,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" } }, "parameters": [ @@ -75990,15 +77372,15 @@ "consumes": [ "application/json" ], - "description": "create a LeaseCandidate", - "operationId": "createNamespacedLeaseCandidate", + "description": "create a Lease", + "operationId": "createNamespacedLease", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, { @@ -76033,19 +77415,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -76056,24 +77438,24 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a LeaseCandidate", - "operationId": "deleteNamespacedLeaseCandidate", + "description": "delete a Lease", + "operationId": "deleteNamespacedLease", "parameters": [ { "in": "body", @@ -76145,13 +77527,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -76159,8 +77541,8 @@ "consumes": [ "application/json" ], - "description": "read the specified LeaseCandidate", - "operationId": "readNamespacedLeaseCandidate", + "description": "read the specified Lease", + "operationId": "readNamespacedLease", "produces": [ "application/json", "application/yaml", @@ -76171,7 +77553,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -76182,18 +77564,18 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" } }, "parameters": [ { - "description": "name of the LeaseCandidate", + "description": "name of the Lease", "in": "path", "name": "name", "required": true, @@ -76220,8 +77602,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified LeaseCandidate", - "operationId": "patchNamespacedLeaseCandidate", + "description": "partially update the specified Lease", + "operationId": "patchNamespacedLease", "parameters": [ { "in": "body", @@ -76270,13 +77652,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -76287,13 +77669,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -76301,15 +77683,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified LeaseCandidate", - "operationId": "replaceNamespacedLeaseCandidate", + "description": "replace the specified Lease", + "operationId": "replaceNamespacedLease", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, { @@ -76344,13 +77726,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -76361,18 +77743,18 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/coordination.k8s.io/v1beta1/watch/leasecandidates": { + "/apis/coordination.k8s.io/v1/watch/leases": { "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.", @@ -76460,7 +77842,7 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates": { + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { "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.", @@ -76556,7 +77938,7 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { "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.", @@ -76594,7 +77976,7 @@ "uniqueItems": true }, { - "description": "name of the LeaseCandidate", + "description": "name of the Lease", "in": "path", "name": "name", "required": true, @@ -76660,38 +78042,7 @@ } ] }, - "/apis/discovery.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery" - ] - } - }, - "/apis/discovery.k8s.io/v1/": { + "/apis/coordination.k8s.io/v1alpha2/": { "get": { "consumes": [ "application/json" @@ -76719,17 +78070,17 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ] } }, - "/apis/discovery.k8s.io/v1/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/leasecandidates": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listEndpointSliceForAllNamespaces", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listLeaseCandidateForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -76743,7 +78094,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSliceList" + "$ref": "#/definitions/v1alpha2.LeaseCandidateList" } }, "401": { @@ -76754,13 +78105,13 @@ "https" ], "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" } }, "parameters": [ @@ -76850,13 +78201,13 @@ } ] }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of EndpointSlice", - "operationId": "deleteCollectionNamespacedEndpointSlice", + "description": "delete collection of LeaseCandidate", + "operationId": "deleteCollectionNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -76985,13 +78336,13 @@ "https" ], "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" }, @@ -76999,8 +78350,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listNamespacedEndpointSlice", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listNamespacedLeaseCandidate", "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.", @@ -77093,7 +78444,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSliceList" + "$ref": "#/definitions/v1alpha2.LeaseCandidateList" } }, "401": { @@ -77104,13 +78455,13 @@ "https" ], "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" } }, "parameters": [ @@ -77134,15 +78485,15 @@ "consumes": [ "application/json" ], - "description": "create an EndpointSlice", - "operationId": "createNamespacedEndpointSlice", + "description": "create a LeaseCandidate", + "operationId": "createNamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, { @@ -77177,19 +78528,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "401": { @@ -77200,24 +78551,24 @@ "https" ], "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" } }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { + "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete an EndpointSlice", - "operationId": "deleteNamespacedEndpointSlice", + "description": "delete a LeaseCandidate", + "operationId": "deleteNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -77289,13 +78640,13 @@ "https" ], "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" }, @@ -77303,8 +78654,8 @@ "consumes": [ "application/json" ], - "description": "read the specified EndpointSlice", - "operationId": "readNamespacedEndpointSlice", + "description": "read the specified LeaseCandidate", + "operationId": "readNamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -77315,7 +78666,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "401": { @@ -77326,18 +78677,18 @@ "https" ], "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" } }, "parameters": [ { - "description": "name of the EndpointSlice", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -77364,8 +78715,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified EndpointSlice", - "operationId": "patchNamespacedEndpointSlice", + "description": "partially update the specified LeaseCandidate", + "operationId": "patchNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -77414,13 +78765,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "401": { @@ -77431,13 +78782,13 @@ "https" ], "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" }, @@ -77445,15 +78796,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified EndpointSlice", - "operationId": "replaceNamespacedEndpointSlice", + "description": "replace the specified LeaseCandidate", + "operationId": "replaceNamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, { @@ -77488,13 +78839,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "401": { @@ -77505,18 +78856,18 @@ "https" ], "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" } }, - "/apis/discovery.k8s.io/v1/watch/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/watch/leasecandidates": { "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.", @@ -77604,7 +78955,7 @@ } ] }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates": { "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.", @@ -77700,7 +79051,7 @@ } ] }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { + "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}": { "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.", @@ -77738,7 +79089,7 @@ "uniqueItems": true }, { - "description": "name of the EndpointSlice", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -77804,38 +79155,7 @@ } ] }, - "/apis/events.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events" - ] - } - }, - "/apis/events.k8s.io/v1/": { + "/apis/coordination.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json" @@ -77863,17 +79183,17 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ] } }, - "/apis/events.k8s.io/v1/events": { + "/apis/coordination.k8s.io/v1beta1/leasecandidates": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind Event", - "operationId": "listEventForAllNamespaces", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listLeaseCandidateForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -77887,7 +79207,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.EventList" + "$ref": "#/definitions/v1beta1.LeaseCandidateList" } }, "401": { @@ -77898,13 +79218,13 @@ "https" ], "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" } }, "parameters": [ @@ -77994,13 +79314,13 @@ } ] }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { + "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of Event", - "operationId": "deleteCollectionNamespacedEvent", + "description": "delete collection of LeaseCandidate", + "operationId": "deleteCollectionNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -78129,13 +79449,13 @@ "https" ], "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" }, @@ -78143,8 +79463,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind Event", - "operationId": "listNamespacedEvent", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listNamespacedLeaseCandidate", "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.", @@ -78237,7 +79557,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.EventList" + "$ref": "#/definitions/v1beta1.LeaseCandidateList" } }, "401": { @@ -78248,13 +79568,13 @@ "https" ], "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" } }, "parameters": [ @@ -78278,15 +79598,15 @@ "consumes": [ "application/json" ], - "description": "create an Event", - "operationId": "createNamespacedEvent", + "description": "create a LeaseCandidate", + "operationId": "createNamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, { @@ -78321,19 +79641,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "401": { @@ -78344,24 +79664,24 @@ "https" ], "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" } }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { + "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete an Event", - "operationId": "deleteNamespacedEvent", + "description": "delete a LeaseCandidate", + "operationId": "deleteNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -78433,13 +79753,13 @@ "https" ], "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" }, @@ -78447,8 +79767,8 @@ "consumes": [ "application/json" ], - "description": "read the specified Event", - "operationId": "readNamespacedEvent", + "description": "read the specified LeaseCandidate", + "operationId": "readNamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -78459,7 +79779,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "401": { @@ -78470,18 +79790,18 @@ "https" ], "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" } }, "parameters": [ { - "description": "name of the Event", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -78508,8 +79828,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified Event", - "operationId": "patchNamespacedEvent", + "description": "partially update the specified LeaseCandidate", + "operationId": "patchNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -78558,13 +79878,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "401": { @@ -78575,13 +79895,13 @@ "https" ], "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" }, @@ -78589,15 +79909,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified Event", - "operationId": "replaceNamespacedEvent", + "description": "replace the specified LeaseCandidate", + "operationId": "replaceNamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, { @@ -78632,13 +79952,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "401": { @@ -78649,18 +79969,18 @@ "https" ], "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" } }, - "/apis/events.k8s.io/v1/watch/events": { + "/apis/coordination.k8s.io/v1beta1/watch/leasecandidates": { "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.", @@ -78748,7 +80068,7 @@ } ] }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { + "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates": { "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.", @@ -78844,7 +80164,7 @@ } ] }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { + "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}": { "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.", @@ -78882,7 +80202,7 @@ "uniqueItems": true }, { - "description": "name of the Event", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -78948,7 +80268,7 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/": { + "/apis/discovery.k8s.io/": { "get": { "consumes": [ "application/json" @@ -78958,7 +80278,8 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -78975,11 +80296,11 @@ "https" ], "tags": [ - "flowcontrolApiserver" + "discovery" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/": { + "/apis/discovery.k8s.io/v1/": { "get": { "consumes": [ "application/json" @@ -79007,17 +80328,144 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas": { + "/apis/discovery.k8s.io/v1/endpointslices": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listEndpointSliceForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.EndpointSliceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + }, + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of FlowSchema", - "operationId": "deleteCollectionFlowSchema", + "description": "delete collection of EndpointSlice", + "operationId": "deleteCollectionNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -79146,12 +80594,12 @@ "https" ], "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" @@ -79160,8 +80608,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind FlowSchema", - "operationId": "listFlowSchema", + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listNamespacedEndpointSlice", "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.", @@ -79254,7 +80702,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchemaList" + "$ref": "#/definitions/v1.EndpointSliceList" } }, "401": { @@ -79265,16 +80713,24 @@ "https" ], "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" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -79287,15 +80743,15 @@ "consumes": [ "application/json" ], - "description": "create a FlowSchema", - "operationId": "createFlowSchema", + "description": "create an EndpointSlice", + "operationId": "createNamespacedEndpointSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, { @@ -79330,19 +80786,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -79353,24 +80809,24 @@ "https" ], "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" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}": { + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a FlowSchema", - "operationId": "deleteFlowSchema", + "description": "delete an EndpointSlice", + "operationId": "deleteNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -79442,12 +80898,12 @@ "https" ], "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" @@ -79456,8 +80912,8 @@ "consumes": [ "application/json" ], - "description": "read the specified FlowSchema", - "operationId": "readFlowSchema", + "description": "read the specified EndpointSlice", + "operationId": "readNamespacedEndpointSlice", "produces": [ "application/json", "application/yaml", @@ -79468,7 +80924,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -79479,24 +80935,32 @@ "https" ], "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" } }, "parameters": [ { - "description": "name of the FlowSchema", + "description": "name of the EndpointSlice", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -79509,8 +80973,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified FlowSchema", - "operationId": "patchFlowSchema", + "description": "partially update the specified EndpointSlice", + "operationId": "patchNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -79559,13 +81023,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -79576,12 +81040,12 @@ "https" ], "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" @@ -79590,15 +81054,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified FlowSchema", - "operationId": "replaceFlowSchema", + "description": "replace the specified EndpointSlice", + "operationId": "replaceNamespacedEndpointSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, { @@ -79633,13 +81097,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -79650,24 +81114,312 @@ "https" ], "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" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status": { + "/apis/discovery.k8s.io/v1/watch/endpointslices": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the EndpointSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/events.k8s.io/": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified FlowSchema", - "operationId": "readFlowSchemaStatus", + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -79678,7 +81430,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -79689,76 +81441,17 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - } - ], - "patch": { + "events" + ] + } + }, + "/apis/events.k8s.io/v1/": { + "get": { "consumes": [ "application/json" ], - "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -79769,13 +81462,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -79786,70 +81473,31 @@ "https" ], "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" - }, - "put": { + "events_v1" + ] + } + }, + "/apis/events.k8s.io/v1/events": { + "get": { "consumes": [ "application/json" ], - "description": "replace status of the specified FlowSchema", - "operationId": "replaceFlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.FlowSchema" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], + "description": "list or watch objects of kind Event", + "operationId": "listEventForAllNamespaces", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/events.v1.EventList" } }, "401": { @@ -79860,24 +81508,109 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" + } + }, + "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", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations": { + "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteCollectionPriorityLevelConfiguration", + "description": "delete collection of Event", + "operationId": "deleteCollectionNamespacedEvent", "parameters": [ { "in": "body", @@ -80006,12 +81739,12 @@ "https" ], "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" @@ -80020,8 +81753,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind PriorityLevelConfiguration", - "operationId": "listPriorityLevelConfiguration", + "description": "list or watch objects of kind Event", + "operationId": "listNamespacedEvent", "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.", @@ -80114,7 +81847,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfigurationList" + "$ref": "#/definitions/events.v1.EventList" } }, "401": { @@ -80125,16 +81858,24 @@ "https" ], "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" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -80147,15 +81888,15 @@ "consumes": [ "application/json" ], - "description": "create a PriorityLevelConfiguration", - "operationId": "createPriorityLevelConfiguration", + "description": "create an Event", + "operationId": "createNamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, { @@ -80190,19 +81931,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -80213,24 +81954,24 @@ "https" ], "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" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}": { + "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a PriorityLevelConfiguration", - "operationId": "deletePriorityLevelConfiguration", + "description": "delete an Event", + "operationId": "deleteNamespacedEvent", "parameters": [ { "in": "body", @@ -80302,12 +82043,12 @@ "https" ], "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" @@ -80316,8 +82057,8 @@ "consumes": [ "application/json" ], - "description": "read the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfiguration", + "description": "read the specified Event", + "operationId": "readNamespacedEvent", "produces": [ "application/json", "application/yaml", @@ -80328,7 +82069,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -80339,18 +82080,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "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" } }, "parameters": [ { - "description": "name of the PriorityLevelConfiguration", + "description": "name of the Event", "in": "path", "name": "name", "required": true, @@ -80358,211 +82099,9 @@ "uniqueItems": 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", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "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" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "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" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status": { - "get": { - "consumes": [ - "application/json" - ], - "description": "read status of the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfigurationStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1" - } - }, - "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, "type": "string", "uniqueItems": true @@ -80579,8 +82118,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfigurationStatus", + "description": "partially update the specified Event", + "operationId": "patchNamespacedEvent", "parameters": [ { "in": "body", @@ -80629,13 +82168,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -80646,12 +82185,12 @@ "https" ], "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" @@ -80660,15 +82199,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfigurationStatus", + "description": "replace the specified Event", + "operationId": "replaceNamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, { @@ -80703,13 +82242,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -80720,18 +82259,18 @@ "https" ], "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" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas": { + "/apis/events.k8s.io/v1/watch/events": { "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.", @@ -80819,7 +82358,7 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}": { + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { "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.", @@ -80857,9 +82396,9 @@ "uniqueItems": true }, { - "description": "name of the FlowSchema", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -80915,7 +82454,7 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations": { + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { "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.", @@ -80953,97 +82492,17 @@ "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the Event", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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, "type": "string", "uniqueItems": true @@ -81099,7 +82558,7 @@ } ] }, - "/apis/internal.apiserver.k8s.io/": { + "/apis/flowcontrol.apiserver.k8s.io/": { "get": { "consumes": [ "application/json" @@ -81109,7 +82568,8 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -81126,11 +82586,11 @@ "https" ], "tags": [ - "internalApiserver" + "flowcontrolApiserver" ] } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/": { + "/apis/flowcontrol.apiserver.k8s.io/v1/": { "get": { "consumes": [ "application/json" @@ -81158,17 +82618,17 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ] } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of StorageVersion", - "operationId": "deleteCollectionStorageVersion", + "description": "delete collection of FlowSchema", + "operationId": "deleteCollectionFlowSchema", "parameters": [ { "in": "body", @@ -81297,13 +82757,13 @@ "https" ], "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" }, @@ -81311,8 +82771,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind StorageVersion", - "operationId": "listStorageVersion", + "description": "list or watch objects of kind FlowSchema", + "operationId": "listFlowSchema", "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.", @@ -81405,7 +82865,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersionList" + "$ref": "#/definitions/v1.FlowSchemaList" } }, "401": { @@ -81416,13 +82876,13 @@ "https" ], "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" } }, "parameters": [ @@ -81438,15 +82898,15 @@ "consumes": [ "application/json" ], - "description": "create a StorageVersion", - "operationId": "createStorageVersion", + "description": "create a FlowSchema", + "operationId": "createFlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, { @@ -81481,19 +82941,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -81504,24 +82964,24 @@ "https" ], "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" } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a StorageVersion", - "operationId": "deleteStorageVersion", + "description": "delete a FlowSchema", + "operationId": "deleteFlowSchema", "parameters": [ { "in": "body", @@ -81593,13 +83053,13 @@ "https" ], "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" }, @@ -81607,8 +83067,8 @@ "consumes": [ "application/json" ], - "description": "read the specified StorageVersion", - "operationId": "readStorageVersion", + "description": "read the specified FlowSchema", + "operationId": "readFlowSchema", "produces": [ "application/json", "application/yaml", @@ -81619,7 +83079,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -81630,18 +83090,18 @@ "https" ], "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" } }, "parameters": [ { - "description": "name of the StorageVersion", + "description": "name of the FlowSchema", "in": "path", "name": "name", "required": true, @@ -81660,8 +83120,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified StorageVersion", - "operationId": "patchStorageVersion", + "description": "partially update the specified FlowSchema", + "operationId": "patchFlowSchema", "parameters": [ { "in": "body", @@ -81710,13 +83170,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -81727,13 +83187,13 @@ "https" ], "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" }, @@ -81741,15 +83201,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified StorageVersion", - "operationId": "replaceStorageVersion", + "description": "replace the specified FlowSchema", + "operationId": "replaceFlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, { @@ -81784,13 +83244,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -81801,24 +83261,24 @@ "https" ], "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" } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified StorageVersion", - "operationId": "readStorageVersionStatus", + "description": "read status of the specified FlowSchema", + "operationId": "readFlowSchemaStatus", "produces": [ "application/json", "application/yaml", @@ -81829,7 +83289,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -81840,18 +83300,18 @@ "https" ], "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" } }, "parameters": [ { - "description": "name of the StorageVersion", + "description": "name of the FlowSchema", "in": "path", "name": "name", "required": true, @@ -81870,8 +83330,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified StorageVersion", - "operationId": "patchStorageVersionStatus", + "description": "partially update status of the specified FlowSchema", + "operationId": "patchFlowSchemaStatus", "parameters": [ { "in": "body", @@ -81920,13 +83380,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -81937,13 +83397,13 @@ "https" ], "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" }, @@ -81951,15 +83411,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified StorageVersion", - "operationId": "replaceStorageVersionStatus", + "description": "replace status of the specified FlowSchema", + "operationId": "replaceFlowSchemaStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, { @@ -81994,13 +83454,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -82011,271 +83471,24 @@ "https" ], "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" } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the StorageVersion", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking" - ] - } - }, - "/apis/networking.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ] - } - }, - "/apis/networking.k8s.io/v1/ingressclasses": { + "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of IngressClass", - "operationId": "deleteCollectionIngressClass", + "description": "delete collection of PriorityLevelConfiguration", + "operationId": "deleteCollectionPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -82404,12 +83617,12 @@ "https" ], "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" @@ -82418,8 +83631,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind IngressClass", - "operationId": "listIngressClass", + "description": "list or watch objects of kind PriorityLevelConfiguration", + "operationId": "listPriorityLevelConfiguration", "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.", @@ -82512,7 +83725,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClassList" + "$ref": "#/definitions/v1.PriorityLevelConfigurationList" } }, "401": { @@ -82523,12 +83736,12 @@ "https" ], "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" } }, @@ -82545,15 +83758,15 @@ "consumes": [ "application/json" ], - "description": "create an IngressClass", - "operationId": "createIngressClass", + "description": "create a PriorityLevelConfiguration", + "operationId": "createPriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, { @@ -82588,19 +83801,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -82611,24 +83824,24 @@ "https" ], "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" } }, - "/apis/networking.k8s.io/v1/ingressclasses/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete an IngressClass", - "operationId": "deleteIngressClass", + "description": "delete a PriorityLevelConfiguration", + "operationId": "deletePriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -82700,12 +83913,12 @@ "https" ], "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" @@ -82714,8 +83927,8 @@ "consumes": [ "application/json" ], - "description": "read the specified IngressClass", - "operationId": "readIngressClass", + "description": "read the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfiguration", "produces": [ "application/json", "application/yaml", @@ -82726,7 +83939,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -82737,18 +83950,18 @@ "https" ], "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" } }, "parameters": [ { - "description": "name of the IngressClass", + "description": "name of the PriorityLevelConfiguration", "in": "path", "name": "name", "required": true, @@ -82767,8 +83980,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified IngressClass", - "operationId": "patchIngressClass", + "description": "partially update the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -82817,13 +84030,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -82834,12 +84047,12 @@ "https" ], "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" @@ -82848,15 +84061,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified IngressClass", - "operationId": "replaceIngressClass", + "description": "replace the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, { @@ -82891,13 +84104,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -82908,38 +84121,35 @@ "https" ], "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" } }, - "/apis/networking.k8s.io/v1/ingresses": { + "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind Ingress", - "operationId": "listIngressForAllNamespaces", + "description": "read status of the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfigurationStatus", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressList" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -82950,124 +84160,47 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" } }, "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", "type": "string", "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/networking.k8s.io/v1/ipaddresses": { - "delete": { + ], + "patch": { "consumes": [ "application/json" ], - "description": "delete collection of IPAddress", - "operationId": "deleteCollectionIPAddress", + "description": "partially update status of the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfigurationStatus", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.Patch" } }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", @@ -83076,88 +84209,25 @@ "uniqueItems": true }, { - "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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", "in": "query", - "name": "fieldSelector", + "name": "fieldManager", "type": "string", "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "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": "labelSelector", + "name": "fieldValidation", "type": "string", "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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.", + "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": "orphanDependents", + "name": "force", "type": "boolean", "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true } ], "produces": [ @@ -83170,126 +84240,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind IPAddress", - "operationId": "listIPAddress", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1.IPAddressList" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -83300,37 +84257,29 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, - "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", - "type": "string", - "uniqueItems": true - } - ], - "post": { + "put": { "consumes": [ "application/json" ], - "description": "create an IPAddress", - "operationId": "createIPAddress", + "description": "replace status of the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfigurationStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, { @@ -83365,19 +84314,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.IPAddress" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -83388,144 +84331,144 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/ipaddresses/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete an IPAddress", - "operationId": "deleteIPAddress", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas": { + "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", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" + { + "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\".\n\nThis field is not 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", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified IPAddress", - "operationId": "readIPAddress", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.IPAddress" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}": { "parameters": [ { - "description": "name of the IPAddress", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the FlowSchema", "in": "path", "name": "name", "required": true, @@ -83538,52 +84481,242 @@ "name": "pretty", "type": "string", "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified IPAddress", - "operationId": "patchIPAddress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/internal.apiserver.k8s.io/": { + "get": { + "consumes": [ + "application/json" ], + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -83594,13 +84727,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IPAddress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -83611,53 +84738,17 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { + "internalApiserver" + ] + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/": { + "get": { "consumes": [ "application/json" ], - "description": "replace the specified IPAddress", - "operationId": "replaceIPAddress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.IPAddress" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -83668,13 +84759,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IPAddress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -83685,24 +84770,17 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" - }, - "x-codegen-request-body-name": "body" + "internalApiserver_v1alpha1" + ] } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of Ingress", - "operationId": "deleteCollectionNamespacedIngress", + "description": "delete collection of StorageVersion", + "operationId": "deleteCollectionStorageVersion", "parameters": [ { "in": "body", @@ -83831,13 +84909,13 @@ "https" ], "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" }, @@ -83845,8 +84923,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind Ingress", - "operationId": "listNamespacedIngress", + "description": "list or watch objects of kind StorageVersion", + "operationId": "listStorageVersion", "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.", @@ -83939,7 +85017,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressList" + "$ref": "#/definitions/v1alpha1.StorageVersionList" } }, "401": { @@ -83950,24 +85028,16 @@ "https" ], "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" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -83980,15 +85050,15 @@ "consumes": [ "application/json" ], - "description": "create an Ingress", - "operationId": "createNamespacedIngress", + "description": "create a StorageVersion", + "operationId": "createStorageVersion", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, { @@ -84023,19 +85093,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -84046,24 +85116,24 @@ "https" ], "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" } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete an Ingress", - "operationId": "deleteNamespacedIngress", + "description": "delete a StorageVersion", + "operationId": "deleteStorageVersion", "parameters": [ { "in": "body", @@ -84135,13 +85205,13 @@ "https" ], "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" }, @@ -84149,8 +85219,8 @@ "consumes": [ "application/json" ], - "description": "read the specified Ingress", - "operationId": "readNamespacedIngress", + "description": "read the specified StorageVersion", + "operationId": "readStorageVersion", "produces": [ "application/json", "application/yaml", @@ -84161,7 +85231,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -84172,32 +85242,24 @@ "https" ], "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" } }, "parameters": [ { - "description": "name of the Ingress", + "description": "name of the StorageVersion", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -84210,8 +85272,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified Ingress", - "operationId": "patchNamespacedIngress", + "description": "partially update the specified StorageVersion", + "operationId": "patchStorageVersion", "parameters": [ { "in": "body", @@ -84260,13 +85322,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -84277,13 +85339,13 @@ "https" ], "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" }, @@ -84291,15 +85353,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified Ingress", - "operationId": "replaceNamespacedIngress", + "description": "replace the specified StorageVersion", + "operationId": "replaceStorageVersion", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, { @@ -84334,13 +85396,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -84351,24 +85413,24 @@ "https" ], "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" } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified Ingress", - "operationId": "readNamespacedIngressStatus", + "description": "read status of the specified StorageVersion", + "operationId": "readStorageVersionStatus", "produces": [ "application/json", "application/yaml", @@ -84379,7 +85441,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -84390,32 +85452,24 @@ "https" ], "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" } }, "parameters": [ { - "description": "name of the Ingress", + "description": "name of the StorageVersion", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -84428,8 +85482,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified Ingress", - "operationId": "patchNamespacedIngressStatus", + "description": "partially update status of the specified StorageVersion", + "operationId": "patchStorageVersionStatus", "parameters": [ { "in": "body", @@ -84478,13 +85532,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -84495,13 +85549,13 @@ "https" ], "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" }, @@ -84509,15 +85563,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified Ingress", - "operationId": "replaceNamespacedIngressStatus", + "description": "replace status of the specified StorageVersion", + "operationId": "replaceStorageVersionStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, { @@ -84552,13 +85606,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -84569,131 +85623,240 @@ "https" ], "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" } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { - "delete": { + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the StorageVersion", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/lifecycle.k8s.io/": { + "get": { "consumes": [ "application/json" ], - "description": "delete collection of NetworkPolicy", - "operationId": "deleteCollectionNamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.APIGroup" } }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "401": { + "description": "Unauthorized" } + }, + "schemes": [ + "https" + ], + "tags": [ + "lifecycle" + ] + } + }, + "/apis/lifecycle.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -84704,7 +85867,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -84715,101 +85878,17 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, + "lifecycle_v1alpha1" + ] + } + }, + "/apis/lifecycle.k8s.io/v1alpha1/evictionrequests": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNamespacedNetworkPolicy", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "list or watch objects of kind EvictionRequest", + "operationId": "listEvictionRequestForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -84823,7 +85902,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicyList" + "$ref": "#/definitions/v1alpha1.EvictionRequestList" } }, "401": { @@ -84834,425 +85913,109 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", "uniqueItems": true }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a NetworkPolicy", - "operationId": "createNamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a NetworkPolicy", - "operationId": "deleteNamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified NetworkPolicy", - "operationId": "readNamespacedNetworkPolicy", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ { - "description": "name of the NetworkPolicy", - "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", "type": "string", "uniqueItems": 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).", + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", "in": "query", - "name": "pretty", - "type": "string", + "name": "sendInitialEvents", + "type": "boolean", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified NetworkPolicy", - "operationId": "patchNamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified NetworkPolicy", - "operationId": "replaceNamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/networking.k8s.io/v1/networkpolicies": { + "/apis/lifecycle.k8s.io/v1alpha1/evictions": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNetworkPolicyForAllNamespaces", + "description": "list or watch objects of kind Eviction", + "operationId": "listEvictionForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -85266,7 +86029,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicyList" + "$ref": "#/definitions/v1alpha1.EvictionList" } }, "401": { @@ -85277,13 +86040,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ @@ -85373,13 +86136,13 @@ } ] }, - "/apis/networking.k8s.io/v1/servicecidrs": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ServiceCIDR", - "operationId": "deleteCollectionServiceCIDR", + "description": "delete collection of EvictionRequest", + "operationId": "deleteCollectionNamespacedEvictionRequest", "parameters": [ { "in": "body", @@ -85508,13 +86271,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -85522,8 +86285,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ServiceCIDR", - "operationId": "listServiceCIDR", + "description": "list or watch objects of kind EvictionRequest", + "operationId": "listNamespacedEvictionRequest", "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.", @@ -85616,7 +86379,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDRList" + "$ref": "#/definitions/v1alpha1.EvictionRequestList" } }, "401": { @@ -85627,16 +86390,24 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -85649,15 +86420,15 @@ "consumes": [ "application/json" ], - "description": "create a ServiceCIDR", - "operationId": "createServiceCIDR", + "description": "create an EvictionRequest", + "operationId": "createNamespacedEvictionRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, { @@ -85692,19 +86463,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "401": { @@ -85715,24 +86486,24 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/servicecidrs/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ServiceCIDR", - "operationId": "deleteServiceCIDR", + "description": "delete an EvictionRequest", + "operationId": "deleteNamespacedEvictionRequest", "parameters": [ { "in": "body", @@ -85804,13 +86575,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -85818,8 +86589,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ServiceCIDR", - "operationId": "readServiceCIDR", + "description": "read the specified EvictionRequest", + "operationId": "readNamespacedEvictionRequest", "produces": [ "application/json", "application/yaml", @@ -85830,7 +86601,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "401": { @@ -85841,24 +86612,32 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the ServiceCIDR", + "description": "name of the EvictionRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -85871,8 +86650,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ServiceCIDR", - "operationId": "patchServiceCIDR", + "description": "partially update the specified EvictionRequest", + "operationId": "patchNamespacedEvictionRequest", "parameters": [ { "in": "body", @@ -85921,13 +86700,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "401": { @@ -85938,13 +86717,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -85952,15 +86731,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ServiceCIDR", - "operationId": "replaceServiceCIDR", + "description": "replace the specified EvictionRequest", + "operationId": "replaceNamespacedEvictionRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, { @@ -85995,13 +86774,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "401": { @@ -86012,24 +86791,24 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/servicecidrs/{name}/status": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified ServiceCIDR", - "operationId": "readServiceCIDRStatus", + "description": "read status of the specified EvictionRequest", + "operationId": "readNamespacedEvictionRequestStatus", "produces": [ "application/json", "application/yaml", @@ -86040,7 +86819,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "401": { @@ -86051,24 +86830,32 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the ServiceCIDR", + "description": "name of the EvictionRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -86081,8 +86868,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified ServiceCIDR", - "operationId": "patchServiceCIDRStatus", + "description": "partially update status of the specified EvictionRequest", + "operationId": "patchNamespacedEvictionRequestStatus", "parameters": [ { "in": "body", @@ -86131,13 +86918,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "401": { @@ -86148,13 +86935,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -86162,15 +86949,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified ServiceCIDR", - "operationId": "replaceServiceCIDRStatus", + "description": "replace status of the specified EvictionRequest", + "operationId": "replaceNamespacedEvictionRequestStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, { @@ -86205,13 +86992,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "401": { @@ -86222,52 +87009,287 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/watch/ingressclasses": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of Eviction", + "operationId": "deleteCollectionNamespacedEviction", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind Eviction", + "operationId": "listNamespacedEviction", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.EvictionList" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" + } + }, + "parameters": [ { - "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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", "uniqueItems": true }, { @@ -86276,236 +87298,613 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create an Eviction", + "operationId": "createNamespacedEviction", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete an Eviction", + "operationId": "deleteNamespacedEviction", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified Eviction", + "operationId": "readNamespacedEviction", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" + } + }, + "parameters": [ { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", + "description": "name of the Eviction", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", "uniqueItems": true }, { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "If 'true', 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": "watch", - "type": "boolean", + "name": "pretty", + "type": "string", "uniqueItems": true } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the IngressClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified Eviction", + "operationId": "patchNamespacedEviction", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified Eviction", + "operationId": "replaceNamespacedEviction", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified Eviction", + "operationId": "readNamespacedEvictionStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingresses": { + }, "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", + "description": "name of the Eviction", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "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, "type": "string", "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified Eviction", + "operationId": "patchNamespacedEvictionStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified Eviction", + "operationId": "replaceNamespacedEvictionStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/networking.k8s.io/v1/watch/ipaddresses": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/evictionrequests": { "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.", @@ -86593,7 +87992,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/ipaddresses/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/evictions": { "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.", @@ -86630,14 +88029,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the IPAddress", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -86689,7 +88080,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictionrequests": { "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.", @@ -86785,7 +88176,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictionrequests/{name}": { "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.", @@ -86823,7 +88214,7 @@ "uniqueItems": true }, { - "description": "name of the Ingress", + "description": "name of the EvictionRequest", "in": "path", "name": "name", "required": true, @@ -86889,7 +88280,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictions": { "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.", @@ -86985,7 +88376,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictions/{name}": { "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.", @@ -87023,7 +88414,7 @@ "uniqueItems": true }, { - "description": "name of the NetworkPolicy", + "description": "name of the Eviction", "in": "path", "name": "name", "required": true, @@ -87089,279 +88480,39 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/networkpolicies": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/servicecidrs": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/servicecidrs/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ServiceCIDR", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "/apis/networking.k8s.io/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] + "schemes": [ + "https" + ], + "tags": [ + "networking" + ] + } }, - "/apis/networking.k8s.io/v1beta1/": { + "/apis/networking.k8s.io/v1/": { "get": { "consumes": [ "application/json" @@ -87389,17 +88540,17 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ] } }, - "/apis/networking.k8s.io/v1beta1/ipaddresses": { + "/apis/networking.k8s.io/v1/ingressclasses": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of IPAddress", - "operationId": "deleteCollectionIPAddress", + "description": "delete collection of IngressClass", + "operationId": "deleteCollectionIngressClass", "parameters": [ { "in": "body", @@ -87528,13 +88679,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -87542,8 +88693,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind IPAddress", - "operationId": "listIPAddress", + "description": "list or watch objects of kind IngressClass", + "operationId": "listIngressClass", "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.", @@ -87636,7 +88787,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IPAddressList" + "$ref": "#/definitions/v1.IngressClassList" } }, "401": { @@ -87647,13 +88798,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "parameters": [ @@ -87669,15 +88820,15 @@ "consumes": [ "application/json" ], - "description": "create an IPAddress", - "operationId": "createIPAddress", + "description": "create an IngressClass", + "operationId": "createIngressClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, { @@ -87712,19 +88863,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -87735,24 +88886,24 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1beta1/ipaddresses/{name}": { + "/apis/networking.k8s.io/v1/ingressclasses/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete an IPAddress", - "operationId": "deleteIPAddress", + "description": "delete an IngressClass", + "operationId": "deleteIngressClass", "parameters": [ { "in": "body", @@ -87824,13 +88975,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -87838,8 +88989,8 @@ "consumes": [ "application/json" ], - "description": "read the specified IPAddress", - "operationId": "readIPAddress", + "description": "read the specified IngressClass", + "operationId": "readIngressClass", "produces": [ "application/json", "application/yaml", @@ -87850,7 +89001,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -87861,18 +89012,18 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "parameters": [ { - "description": "name of the IPAddress", + "description": "name of the IngressClass", "in": "path", "name": "name", "required": true, @@ -87891,8 +89042,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified IPAddress", - "operationId": "patchIPAddress", + "description": "partially update the specified IngressClass", + "operationId": "patchIngressClass", "parameters": [ { "in": "body", @@ -87941,13 +89092,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -87958,13 +89109,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -87972,15 +89123,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified IPAddress", - "operationId": "replaceIPAddress", + "description": "replace the specified IngressClass", + "operationId": "replaceIngressClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, { @@ -88015,13 +89166,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -88032,24 +89183,151 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1beta1/servicecidrs": { + "/apis/networking.k8s.io/v1/ingresses": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind Ingress", + "operationId": "listIngressForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.IngressList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/ipaddresses": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ServiceCIDR", - "operationId": "deleteCollectionServiceCIDR", + "description": "delete collection of IPAddress", + "operationId": "deleteCollectionIPAddress", "parameters": [ { "in": "body", @@ -88178,13 +89456,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -88192,8 +89470,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ServiceCIDR", - "operationId": "listServiceCIDR", + "description": "list or watch objects of kind IPAddress", + "operationId": "listIPAddress", "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.", @@ -88286,7 +89564,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDRList" + "$ref": "#/definitions/v1.IPAddressList" } }, "401": { @@ -88297,13 +89575,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "parameters": [ @@ -88319,15 +89597,15 @@ "consumes": [ "application/json" ], - "description": "create a ServiceCIDR", - "operationId": "createServiceCIDR", + "description": "create an IPAddress", + "operationId": "createIPAddress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, { @@ -88362,19 +89640,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "401": { @@ -88385,24 +89663,24 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}": { + "/apis/networking.k8s.io/v1/ipaddresses/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ServiceCIDR", - "operationId": "deleteServiceCIDR", + "description": "delete an IPAddress", + "operationId": "deleteIPAddress", "parameters": [ { "in": "body", @@ -88474,13 +89752,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -88488,8 +89766,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ServiceCIDR", - "operationId": "readServiceCIDR", + "description": "read the specified IPAddress", + "operationId": "readIPAddress", "produces": [ "application/json", "application/yaml", @@ -88500,7 +89778,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "401": { @@ -88511,18 +89789,18 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "parameters": [ { - "description": "name of the ServiceCIDR", + "description": "name of the IPAddress", "in": "path", "name": "name", "required": true, @@ -88541,8 +89819,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ServiceCIDR", - "operationId": "patchServiceCIDR", + "description": "partially update the specified IPAddress", + "operationId": "patchIPAddress", "parameters": [ { "in": "body", @@ -88591,13 +89869,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "401": { @@ -88608,13 +89886,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -88622,15 +89900,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ServiceCIDR", - "operationId": "replaceServiceCIDR", + "description": "replace the specified IPAddress", + "operationId": "replaceIPAddress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, { @@ -88665,13 +89943,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "401": { @@ -88682,24 +89960,131 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status": { - "get": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { + "delete": { "consumes": [ "application/json" ], - "description": "read status of the specified ServiceCIDR", - "operationId": "readServiceCIDRStatus", + "description": "delete collection of Ingress", + "operationId": "deleteCollectionNamespacedIngress", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -88710,7 +90095,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -88721,72 +90106,97 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the ServiceCIDR", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "kind": "Ingress", + "version": "v1" }, - { - "description": "If 'true', 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", - "type": "string", - "uniqueItems": true - } - ], - "patch": { + "x-codegen-request-body-name": "body" + }, + "get": { "consumes": [ "application/json" ], - "description": "partially update status of the specified ServiceCIDR", - "operationId": "patchServiceCIDRStatus", + "description": "list or watch objects of kind Ingress", + "operationId": "listNamespacedIngress", "parameters": [ { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } + "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", + "type": "boolean", + "uniqueItems": 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", + "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\".\n\nThis field is not 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": "dryRun", + "name": "continue", "type": "string", "uniqueItems": 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. 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", "type": "string", "uniqueItems": true }, { - "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": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "labelSelector", "type": "string", "uniqueItems": true }, { - "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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", "type": "boolean", "uniqueItems": true } @@ -88795,19 +90205,16 @@ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IngressList" } }, "401": { @@ -88818,29 +90225,45 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" + "kind": "Ingress", + "version": "v1" + } }, - "put": { + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "post": { "consumes": [ "application/json" ], - "description": "replace status of the specified ServiceCIDR", - "operationId": "replaceServiceCIDRStatus", + "description": "create an Ingress", + "operationId": "createNamespacedIngress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.Ingress" } }, { @@ -88875,419 +90298,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.Ingress" } }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "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" - } - }, - "/apis/networking.k8s.io/v1beta1/watch/ipaddresses": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1beta1/watch/ipaddresses/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the IPAddress", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1beta1/watch/servicecidrs": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1beta1/watch/servicecidrs/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ServiceCIDR", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89298,49 +90321,24 @@ "https" ], "tags": [ - "node" - ] - } - }, - "/apis/node.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "networking_v1" ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ] + "x-codegen-request-body-name": "body" } }, - "/apis/node.k8s.io/v1/runtimeclasses": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of RuntimeClass", - "operationId": "deleteCollectionRuntimeClass", + "description": "delete an Ingress", + "operationId": "deleteNamespacedIngress", "parameters": [ { "in": "body", @@ -89349,13 +90347,6 @@ "$ref": "#/definitions/v1.DeleteOptions" } }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", @@ -89363,13 +90354,6 @@ "type": "string", "uniqueItems": true }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": 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", @@ -89384,20 +90368,6 @@ "type": "boolean", "uniqueItems": true }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, { "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", @@ -89411,41 +90381,6 @@ "name": "propagationPolicy", "type": "string", "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true } ], "produces": [ @@ -89461,7 +90396,13 @@ "$ref": "#/definitions/v1.Status" } }, - "401": { + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { "description": "Unauthorized" } }, @@ -89469,12 +90410,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -89483,101 +90424,19 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind RuntimeClass", - "operationId": "listRuntimeClass", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "read the specified Ingress", + "operationId": "readNamespacedIngress", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClassList" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89588,16 +90447,32 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" } }, "parameters": [ + { + "description": "name of the Ingress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -89606,19 +90481,19 @@ "uniqueItems": true } ], - "post": { + "patch": { "consumes": [ "application/json" ], - "description": "create a RuntimeClass", - "operationId": "createRuntimeClass", + "description": "partially update the specified Ingress", + "operationId": "patchNamespacedIngress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Patch" } }, { @@ -89629,7 +90504,7 @@ "uniqueItems": 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.", + "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", "type": "string", @@ -89641,6 +90516,13 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } ], "produces": [ @@ -89653,19 +90535,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89676,30 +90552,29 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/node.k8s.io/v1/runtimeclasses/{name}": { - "delete": { + }, + "put": { "consumes": [ "application/json" ], - "description": "delete a RuntimeClass", - "operationId": "deleteRuntimeClass", + "description": "replace the specified Ingress", + "operationId": "replaceNamespacedIngress", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.Ingress" } }, { @@ -89710,30 +90585,16 @@ "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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.", + "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": "orphanDependents", - "type": "boolean", + "name": "fieldManager", + "type": "string", "uniqueItems": true }, { - "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": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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": "propagationPolicy", + "name": "fieldValidation", "type": "string", "uniqueItems": true } @@ -89748,13 +90609,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.Ingress" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89765,22 +90626,24 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" - }, + } + }, + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read the specified RuntimeClass", - "operationId": "readRuntimeClass", + "description": "read status of the specified Ingress", + "operationId": "readNamespacedIngressStatus", "produces": [ "application/json", "application/yaml", @@ -89791,7 +90654,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89802,24 +90665,32 @@ "https" ], "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": "Ingress", "version": "v1" } }, "parameters": [ { - "description": "name of the RuntimeClass", + "description": "name of the Ingress", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -89832,8 +90703,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified RuntimeClass", - "operationId": "patchRuntimeClass", + "description": "partially update status of the specified Ingress", + "operationId": "patchNamespacedIngressStatus", "parameters": [ { "in": "body", @@ -89882,13 +90753,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89899,12 +90770,12 @@ "https" ], "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": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -89913,15 +90784,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified RuntimeClass", - "operationId": "replaceRuntimeClass", + "description": "replace status of the specified Ingress", + "operationId": "replaceNamespacedIngressStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, { @@ -89956,13 +90827,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89973,277 +90844,30 @@ "https" ], "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": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/node.k8s.io/v1/watch/runtimeclasses": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the RuntimeClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy" - ] - } - }, - "/apis/policy/v1/": { - "get": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { + "delete": { "consumes": [ "application/json" ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", + "description": "delete collection of NetworkPolicy", + "operationId": "deleteCollectionNamespacedNetworkPolicy", + "parameters": [ + { + "in": "body", + "name": "body", "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ] - } - }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of PodDisruptionBudget", - "operationId": "deleteCollectionNamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.DeleteOptions" } }, { @@ -90366,12 +90990,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -90380,8 +91004,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listNamespacedPodDisruptionBudget", + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNamespacedNetworkPolicy", "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.", @@ -90474,7 +91098,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudgetList" + "$ref": "#/definitions/v1.NetworkPolicyList" } }, "401": { @@ -90485,12 +91109,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, @@ -90515,15 +91139,15 @@ "consumes": [ "application/json" ], - "description": "create a PodDisruptionBudget", - "operationId": "createNamespacedPodDisruptionBudget", + "description": "create a NetworkPolicy", + "operationId": "createNamespacedNetworkPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, { @@ -90558,19 +91182,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "401": { @@ -90581,24 +91205,24 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a PodDisruptionBudget", - "operationId": "deleteNamespacedPodDisruptionBudget", + "description": "delete a NetworkPolicy", + "operationId": "deleteNamespacedNetworkPolicy", "parameters": [ { "in": "body", @@ -90670,240 +91294,22 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified PodDisruptionBudget", - "operationId": "readNamespacedPodDisruptionBudget", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified PodDisruptionBudget", - "operationId": "patchNamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified PodDisruptionBudget", - "operationId": "replaceNamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified PodDisruptionBudget", - "operationId": "readNamespacedPodDisruptionBudgetStatus", + "description": "read the specified NetworkPolicy", + "operationId": "readNamespacedNetworkPolicy", "produces": [ "application/json", "application/yaml", @@ -90914,7 +91320,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "401": { @@ -90925,18 +91331,18 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, "parameters": [ { - "description": "name of the PodDisruptionBudget", + "description": "name of the NetworkPolicy", "in": "path", "name": "name", "required": true, @@ -90963,8 +91369,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified PodDisruptionBudget", - "operationId": "patchNamespacedPodDisruptionBudgetStatus", + "description": "partially update the specified NetworkPolicy", + "operationId": "patchNamespacedNetworkPolicy", "parameters": [ { "in": "body", @@ -91013,13 +91419,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "401": { @@ -91030,12 +91436,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -91044,15 +91450,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified PodDisruptionBudget", - "operationId": "replaceNamespacedPodDisruptionBudgetStatus", + "description": "replace the specified NetworkPolicy", + "operationId": "replaceNamespacedNetworkPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, { @@ -91087,13 +91493,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "401": { @@ -91104,24 +91510,24 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/policy/v1/poddisruptionbudgets": { + "/apis/networking.k8s.io/v1/networkpolicies": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPodDisruptionBudgetForAllNamespaces", + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNetworkPolicyForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -91135,7 +91541,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudgetList" + "$ref": "#/definitions/v1.NetworkPolicyList" } }, "401": { @@ -91146,12 +91552,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, @@ -91242,364 +91648,13 @@ } ] }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/v1/watch/poddisruptionbudgets": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization" - ] - } - }, - "/apis/rbac.authorization.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ] - } - }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { + "/apis/networking.k8s.io/v1/servicecidrs": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ClusterRoleBinding", - "operationId": "deleteCollectionClusterRoleBinding", + "description": "delete collection of ServiceCIDR", + "operationId": "deleteCollectionServiceCIDR", "parameters": [ { "in": "body", @@ -91728,12 +91783,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -91742,8 +91797,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ClusterRoleBinding", - "operationId": "listClusterRoleBinding", + "description": "list or watch objects of kind ServiceCIDR", + "operationId": "listServiceCIDR", "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.", @@ -91836,7 +91891,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBindingList" + "$ref": "#/definitions/v1.ServiceCIDRList" } }, "401": { @@ -91847,12 +91902,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, @@ -91869,15 +91924,15 @@ "consumes": [ "application/json" ], - "description": "create a ClusterRoleBinding", - "operationId": "createClusterRoleBinding", + "description": "create a ServiceCIDR", + "operationId": "createServiceCIDR", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ServiceCIDR" } }, { @@ -91912,19 +91967,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ServiceCIDR" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ServiceCIDR" } }, "401": { @@ -91935,24 +91990,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { + "/apis/networking.k8s.io/v1/servicecidrs/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ClusterRoleBinding", - "operationId": "deleteClusterRoleBinding", + "description": "delete a ServiceCIDR", + "operationId": "deleteServiceCIDR", "parameters": [ { "in": "body", @@ -92024,12 +92079,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -92038,8 +92093,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ClusterRoleBinding", - "operationId": "readClusterRoleBinding", + "description": "read the specified ServiceCIDR", + "operationId": "readServiceCIDR", "produces": [ "application/json", "application/yaml", @@ -92050,7 +92105,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ServiceCIDR" } }, "401": { @@ -92061,18 +92116,18 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterRoleBinding", + "description": "name of the ServiceCIDR", "in": "path", "name": "name", "required": true, @@ -92091,8 +92146,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ClusterRoleBinding", - "operationId": "patchClusterRoleBinding", + "description": "partially update the specified ServiceCIDR", + "operationId": "patchServiceCIDR", "parameters": [ { "in": "body", @@ -92141,13 +92196,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ServiceCIDR" } }, "401": { @@ -92158,12 +92213,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -92172,15 +92227,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ClusterRoleBinding", - "operationId": "replaceClusterRoleBinding", + "description": "replace the specified ServiceCIDR", + "operationId": "replaceServiceCIDR", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ServiceCIDR" } }, { @@ -92215,13 +92270,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.ServiceCIDR" } }, "401": { @@ -92232,39 +92287,86 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles": { - "delete": { + "/apis/networking.k8s.io/v1/servicecidrs/{name}/status": { + "get": { "consumes": [ "application/json" ], - "description": "delete collection of ClusterRole", - "operationId": "deleteCollectionClusterRole", + "description": "read status of the specified ServiceCIDR", + "operationId": "readServiceCIDRStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ServiceCIDR", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified ServiceCIDR", + "operationId": "patchServiceCIDRStatus", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.Patch" } }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", @@ -92273,88 +92375,25 @@ "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults 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": "resourceVersion", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "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.\n\nDefaults to unset", + "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": "resourceVersionMatch", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "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": "sendInitialEvents", + "name": "force", "type": "boolean", "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true } ], "produces": [ @@ -92367,126 +92406,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.ServiceCIDR" } }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind ClusterRole", - "operationId": "listClusterRole", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRoleList" + "$ref": "#/definitions/v1.ServiceCIDR" } }, "401": { @@ -92497,37 +92423,29 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, - "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", - "type": "string", - "uniqueItems": true - } - ], - "post": { + "put": { "consumes": [ "application/json" ], - "description": "create a ClusterRole", - "operationId": "createClusterRole", + "description": "replace status of the specified ServiceCIDR", + "operationId": "replaceServiceCIDRStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1.ServiceCIDR" } }, { @@ -92562,19 +92480,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRole" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1.ServiceCIDR" } }, "401": { @@ -92585,144 +92497,144 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a ClusterRole", - "operationId": "deleteClusterRole", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/networking.k8s.io/v1/watch/ingressclasses": { + "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", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + { + "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\".\n\nThis field is not 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", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified ClusterRole", - "operationId": "readClusterRole", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { "parameters": [ { - "description": "name of the ClusterRole", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the IngressClass", "in": "path", "name": "name", "required": true, @@ -92735,658 +92647,360 @@ "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified ClusterRole", - "operationId": "patchClusterRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ClusterRole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified ClusterRole", - "operationId": "replaceClusterRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ClusterRole" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ClusterRole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of RoleBinding", - "operationId": "deleteCollectionNamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listNamespacedRoleBinding", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/networking.k8s.io/v1/watch/ingresses": { "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", "type": "string", "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a RoleBinding", - "operationId": "createNamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } + ] + }, + "/apis/networking.k8s.io/v1/watch/ipaddresses": { + "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", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + { + "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\".\n\nThis field is not 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", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a RoleBinding", - "operationId": "deleteNamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified RoleBinding", - "operationId": "readNamespacedRoleBinding", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } + { + "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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + { + "description": "If 'true', 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/networking.k8s.io/v1/watch/ipaddresses/{name}": { "parameters": [ { - "description": "name of the RoleBinding", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the IPAddress", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -93401,428 +93015,96 @@ "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified RoleBinding", - "operationId": "patchNamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified RoleBinding", - "operationId": "replaceNamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of Role", - "operationId": "deleteCollectionNamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind Role", - "operationId": "listNamespacedRole", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Ingress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -93837,483 +93119,13 @@ "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a Role", - "operationId": "createNamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a Role", - "operationId": "deleteNamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified Role", - "operationId": "readNamespacedRole", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Role", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified Role", - "operationId": "patchNamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified Role", - "operationId": "replaceNamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/rbac.authorization.k8s.io/v1/rolebindings": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listRoleBindingForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, { "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.\n\nDefaults to unset", @@ -94352,46 +93164,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/roles": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind Role", - "operationId": "listRoleForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { "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.", @@ -94428,6 +93201,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -94479,7 +93260,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { "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.", @@ -94516,6 +93297,22 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the NetworkPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -94567,7 +93364,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { + "/apis/networking.k8s.io/v1/watch/networkpolicies": { "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.", @@ -94604,14 +93401,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the ClusterRoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -94663,7 +93452,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { + "/apis/networking.k8s.io/v1/watch/servicecidrs": { "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.", @@ -94751,7 +93540,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { + "/apis/networking.k8s.io/v1/watch/servicecidrs/{name}": { "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.", @@ -94789,7 +93578,7 @@ "uniqueItems": true }, { - "description": "name of the ClusterRole", + "description": "name of the ServiceCIDR", "in": "path", "name": "name", "required": true, @@ -94847,151 +93636,12901 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true + "/apis/node.k8s.io/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "node" + ] + } + }, + "/apis/node.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ] + } + }, + "/apis/node.k8s.io/v1/runtimeclasses": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of RuntimeClass", + "operationId": "deleteCollectionRuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind RuntimeClass", + "operationId": "listRuntimeClass", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RuntimeClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "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", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a RuntimeClass", + "operationId": "createRuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/node.k8s.io/v1/runtimeclasses/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a RuntimeClass", + "operationId": "deleteRuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified RuntimeClass", + "operationId": "readRuntimeClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the RuntimeClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified RuntimeClass", + "operationId": "patchRuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified RuntimeClass", + "operationId": "replaceRuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/node.k8s.io/v1/watch/runtimeclasses": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the RuntimeClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/policy/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy" + ] + } + }, + "/apis/policy/v1/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ] + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of PodDisruptionBudget", + "operationId": "deleteCollectionNamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listNamespacedPodDisruptionBudget", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudgetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a PodDisruptionBudget", + "operationId": "createNamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a PodDisruptionBudget", + "operationId": "deleteNamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified PodDisruptionBudget", + "operationId": "readNamespacedPodDisruptionBudget", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodDisruptionBudget", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified PodDisruptionBudget", + "operationId": "patchNamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified PodDisruptionBudget", + "operationId": "replaceNamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified PodDisruptionBudget", + "operationId": "readNamespacedPodDisruptionBudgetStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodDisruptionBudget", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified PodDisruptionBudget", + "operationId": "patchNamespacedPodDisruptionBudgetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified PodDisruptionBudget", + "operationId": "replaceNamespacedPodDisruptionBudgetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/policy/v1/poddisruptionbudgets": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listPodDisruptionBudgetForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudgetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PodDisruptionBudget", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/policy/v1/watch/poddisruptionbudgets": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization" + ] + } + }, + "/apis/rbac.authorization.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ] + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of ClusterRoleBinding", + "operationId": "deleteCollectionClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind ClusterRoleBinding", + "operationId": "listClusterRoleBinding", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "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", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a ClusterRoleBinding", + "operationId": "createClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a ClusterRoleBinding", + "operationId": "deleteClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified ClusterRoleBinding", + "operationId": "readClusterRoleBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ClusterRoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified ClusterRoleBinding", + "operationId": "patchClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified ClusterRoleBinding", + "operationId": "replaceClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterroles": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of ClusterRole", + "operationId": "deleteCollectionClusterRole", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind ClusterRole", + "operationId": "listClusterRole", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + }, + "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", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a ClusterRole", + "operationId": "createClusterRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a ClusterRole", + "operationId": "deleteClusterRole", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified ClusterRole", + "operationId": "readClusterRole", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ClusterRole", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified ClusterRole", + "operationId": "patchClusterRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified ClusterRole", + "operationId": "replaceClusterRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of RoleBinding", + "operationId": "deleteCollectionNamespacedRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind RoleBinding", + "operationId": "listNamespacedRoleBinding", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a RoleBinding", + "operationId": "createNamespacedRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a RoleBinding", + "operationId": "deleteNamespacedRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified RoleBinding", + "operationId": "readNamespacedRoleBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the RoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified RoleBinding", + "operationId": "patchNamespacedRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified RoleBinding", + "operationId": "replaceNamespacedRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of Role", + "operationId": "deleteCollectionNamespacedRole", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind Role", + "operationId": "listNamespacedRole", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a Role", + "operationId": "createNamespacedRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a Role", + "operationId": "deleteNamespacedRole", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified Role", + "operationId": "readNamespacedRole", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Role", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified Role", + "operationId": "patchNamespacedRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified Role", + "operationId": "replaceNamespacedRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/rolebindings": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind RoleBinding", + "operationId": "listRoleBindingForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/roles": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind Role", + "operationId": "listRoleForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ClusterRoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ClusterRole", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the RoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Role", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/roles": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource" + ] + } + }, + "/apis/resource.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ] + } + }, + "/apis/resource.k8s.io/v1/deviceclasses": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of DeviceClass", + "operationId": "deleteCollectionDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind DeviceClass", + "operationId": "listDeviceClass", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + } + }, + "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", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a DeviceClass", + "operationId": "createDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeviceClass" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/deviceclasses/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a DeviceClass", + "operationId": "deleteDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified DeviceClass", + "operationId": "readDeviceClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the DeviceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified DeviceClass", + "operationId": "patchDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified DeviceClass", + "operationId": "replaceDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeviceClass" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/devicetaintrules": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of DeviceTaintRule", + "operationId": "deleteCollectionDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind DeviceTaintRule", + "operationId": "listDeviceTaintRule", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRuleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + } + }, + "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", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a DeviceTaintRule", + "operationId": "createDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/devicetaintrules/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a DeviceTaintRule", + "operationId": "deleteDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified DeviceTaintRule", + "operationId": "readDeviceTaintRule", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/devicetaintrules/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified DeviceTaintRule", + "operationId": "readDeviceTaintRuleStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of ResourceClaim", + "operationId": "deleteCollectionNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listNamespacedResourceClaim", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a ResourceClaim", + "operationId": "createNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a ResourceClaim", + "operationId": "deleteNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified ResourceClaim", + "operationId": "readNamespacedResourceClaim", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified ResourceClaim", + "operationId": "replaceNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified ResourceClaim", + "operationId": "readNamespacedResourceClaimStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceNamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteCollectionNamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listNamespacedResourceClaimTemplate", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a ResourceClaimTemplate", + "operationId": "createNamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplate" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteNamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified ResourceClaimTemplate", + "operationId": "readNamespacedResourceClaimTemplate", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchNamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceNamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplate" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/resourceclaims": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceClaimForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + } + }, + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/resourceclaimtemplates": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceClaimTemplateForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceClaimTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + } + }, + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/resourceslices": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of ResourceSlice", + "operationId": "deleteCollectionResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind ResourceSlice", + "operationId": "listResourceSlice", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceSliceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" + } + }, + "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", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a ResourceSlice", + "operationId": "createResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/resourceslices/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a ResourceSlice", + "operationId": "deleteResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified ResourceSlice", + "operationId": "readResourceSlice", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ResourceSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified ResourceSlice", + "operationId": "patchResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified ResourceSlice", + "operationId": "replaceResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/watch/deviceclasses": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/watch/deviceclasses/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the DeviceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/watch/devicetaintrules": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/watch/devicetaintrules/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/watch/resourceclaims": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/watch/resourceclaimtemplates": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/watch/resourceslices": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/watch/resourceslices/{name}": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha3/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ] + } + }, + "/apis/resource.k8s.io/v1alpha3/devicetaintrules": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of DeviceTaintRule", + "operationId": "deleteCollectionDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind DeviceTaintRule", + "operationId": "listDeviceTaintRule", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRuleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + } + }, + "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", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a DeviceTaintRule", + "operationId": "createDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a DeviceTaintRule", + "operationId": "deleteDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified DeviceTaintRule", + "operationId": "readDeviceTaintRule", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified DeviceTaintRule", + "operationId": "readDeviceTaintRuleStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of ResourcePoolStatusRequest", + "operationId": "deleteCollectionResourcePoolStatusRequest", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind ResourcePoolStatusRequest", + "operationId": "listResourcePoolStatusRequest", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequestList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" + } + }, + "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", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a ResourcePoolStatusRequest", + "operationId": "createResourcePoolStatusRequest", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a ResourcePoolStatusRequest", + "operationId": "deleteResourcePoolStatusRequest", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified ResourcePoolStatusRequest", + "operationId": "readResourcePoolStatusRequest", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { + }, "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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 ResourcePoolStatusRequest", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "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", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified ResourcePoolStatusRequest", + "operationId": "patchResourcePoolStatusRequest", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" }, - { - "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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified ResourcePoolStatusRequest", + "operationId": "replaceResourcePoolStatusRequest", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "name of the RoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified ResourcePoolStatusRequest", + "operationId": "readResourcePoolStatusRequestStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" + } + }, + "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", + "description": "name of the ResourcePoolStatusRequest", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -95002,52 +106541,165 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified ResourcePoolStatusRequest", + "operationId": "patchResourcePoolStatusRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified ResourcePoolStatusRequest", + "operationId": "replaceResourcePoolStatusRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { + "/apis/resource.k8s.io/v1alpha3/watch/devicetaintrules": { "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.", @@ -95084,14 +106736,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -95143,7 +106787,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { + "/apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{name}": { "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.", @@ -95181,21 +106825,13 @@ "uniqueItems": true }, { - "description": "name of the Role", + "description": "name of the DeviceTaintRule", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -95247,7 +106883,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { + "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests": { "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.", @@ -95335,7 +106971,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/roles": { + "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests/{name}": { "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.", @@ -95372,6 +107008,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the ResourcePoolStatusRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -95423,38 +107067,7 @@ } ] }, - "/apis/resource.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource" - ] - } - }, - "/apis/resource.k8s.io/v1/": { + "/apis/resource.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json" @@ -95482,11 +107095,11 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ] } }, - "/apis/resource.k8s.io/v1/deviceclasses": { + "/apis/resource.k8s.io/v1beta1/deviceclasses": { "delete": { "consumes": [ "application/json" @@ -95621,13 +107234,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -95729,7 +107342,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DeviceClassList" + "$ref": "#/definitions/v1beta1.DeviceClassList" } }, "401": { @@ -95740,13 +107353,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1" + "version": "v1beta1" } }, "parameters": [ @@ -95770,7 +107383,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.DeviceClass" + "$ref": "#/definitions/v1beta1.DeviceClass" } }, { @@ -95805,19 +107418,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DeviceClass" + "$ref": "#/definitions/v1beta1.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.DeviceClass" + "$ref": "#/definitions/v1beta1.DeviceClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.DeviceClass" + "$ref": "#/definitions/v1beta1.DeviceClass" } }, "401": { @@ -95828,18 +107441,18 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1/deviceclasses/{name}": { + "/apis/resource.k8s.io/v1beta1/deviceclasses/{name}": { "delete": { "consumes": [ "application/json" @@ -95900,13 +107513,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DeviceClass" + "$ref": "#/definitions/v1beta1.DeviceClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.DeviceClass" + "$ref": "#/definitions/v1beta1.DeviceClass" } }, "401": { @@ -95917,13 +107530,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -95943,7 +107556,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DeviceClass" + "$ref": "#/definitions/v1beta1.DeviceClass" } }, "401": { @@ -95954,13 +107567,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1" + "version": "v1beta1" } }, "parameters": [ @@ -96034,13 +107647,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DeviceClass" + "$ref": "#/definitions/v1beta1.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.DeviceClass" + "$ref": "#/definitions/v1beta1.DeviceClass" } }, "401": { @@ -96051,13 +107664,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -96073,7 +107686,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.DeviceClass" + "$ref": "#/definitions/v1beta1.DeviceClass" } }, { @@ -96108,13 +107721,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DeviceClass" + "$ref": "#/definitions/v1beta1.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.DeviceClass" + "$ref": "#/definitions/v1beta1.DeviceClass" } }, "401": { @@ -96125,18 +107738,18 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims": { "delete": { "consumes": [ "application/json" @@ -96271,13 +107884,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -96379,7 +107992,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimList" + "$ref": "#/definitions/v1beta1.ResourceClaimList" } }, "401": { @@ -96390,13 +108003,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1" + "version": "v1beta1" } }, "parameters": [ @@ -96428,7 +108041,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, { @@ -96463,19 +108076,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "401": { @@ -96486,18 +108099,18 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}": { "delete": { "consumes": [ "application/json" @@ -96558,13 +108171,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "401": { @@ -96575,13 +108188,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -96601,7 +108214,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "401": { @@ -96612,13 +108225,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1" + "version": "v1beta1" } }, "parameters": [ @@ -96700,13 +108313,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "401": { @@ -96717,13 +108330,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -96739,7 +108352,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, { @@ -96774,13 +108387,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "401": { @@ -96791,18 +108404,18 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status": { "get": { "consumes": [ "application/json" @@ -96819,7 +108432,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "401": { @@ -96830,13 +108443,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1" + "version": "v1beta1" } }, "parameters": [ @@ -96918,13 +108531,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "401": { @@ -96935,13 +108548,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -96957,7 +108570,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, { @@ -96992,13 +108605,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "401": { @@ -97009,18 +108622,18 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates": { "delete": { "consumes": [ "application/json" @@ -97155,13 +108768,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -97263,7 +108876,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplateList" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplateList" } }, "401": { @@ -97274,13 +108887,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1" + "version": "v1beta1" } }, "parameters": [ @@ -97312,7 +108925,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, { @@ -97347,19 +108960,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "401": { @@ -97370,18 +108983,18 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}": { "delete": { "consumes": [ "application/json" @@ -97442,13 +109055,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "401": { @@ -97459,13 +109072,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -97485,7 +109098,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "401": { @@ -97496,13 +109109,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1" + "version": "v1beta1" } }, "parameters": [ @@ -97584,13 +109197,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "401": { @@ -97601,13 +109214,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -97623,7 +109236,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, { @@ -97658,13 +109271,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "401": { @@ -97675,18 +109288,18 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1/resourceclaims": { + "/apis/resource.k8s.io/v1beta1/resourceclaims": { "get": { "consumes": [ "application/json" @@ -97706,7 +109319,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimList" + "$ref": "#/definitions/v1beta1.ResourceClaimList" } }, "401": { @@ -97717,13 +109330,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1" + "version": "v1beta1" } }, "parameters": [ @@ -97813,7 +109426,7 @@ } ] }, - "/apis/resource.k8s.io/v1/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta1/resourceclaimtemplates": { "get": { "consumes": [ "application/json" @@ -97833,7 +109446,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplateList" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplateList" } }, "401": { @@ -97844,13 +109457,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1" + "version": "v1beta1" } }, "parameters": [ @@ -97940,7 +109553,7 @@ } ] }, - "/apis/resource.k8s.io/v1/resourceslices": { + "/apis/resource.k8s.io/v1beta1/resourceslices": { "delete": { "consumes": [ "application/json" @@ -98075,13 +109688,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceSlice", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -98183,7 +109796,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceSliceList" + "$ref": "#/definitions/v1beta1.ResourceSliceList" } }, "401": { @@ -98194,13 +109807,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceSlice", - "version": "v1" + "version": "v1beta1" } }, "parameters": [ @@ -98224,7 +109837,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, { @@ -98259,19 +109872,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, "401": { @@ -98282,18 +109895,18 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceSlice", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1/resourceslices/{name}": { + "/apis/resource.k8s.io/v1beta1/resourceslices/{name}": { "delete": { "consumes": [ "application/json" @@ -98354,13 +109967,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, "401": { @@ -98371,13 +109984,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceSlice", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -98397,7 +110010,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, "401": { @@ -98408,13 +110021,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceSlice", - "version": "v1" + "version": "v1beta1" } }, "parameters": [ @@ -98488,13 +110101,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, "401": { @@ -98505,13 +110118,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceSlice", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -98527,7 +110140,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, { @@ -98562,13 +110175,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, "401": { @@ -98579,18 +110192,18 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceSlice", - "version": "v1" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1/watch/deviceclasses": { + "/apis/resource.k8s.io/v1beta1/watch/deviceclasses": { "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.", @@ -98678,7 +110291,7 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/deviceclasses/{name}": { + "/apis/resource.k8s.io/v1beta1/watch/deviceclasses/{name}": { "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.", @@ -98774,7 +110387,7 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims": { "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.", @@ -98870,7 +110483,7 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims/{name}": { "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.", @@ -98916,299 +110529,11 @@ "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ResourceClaimTemplate", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1/watch/resourceclaims": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", "uniqueItems": true }, { @@ -99262,7 +110587,7 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates": { "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.", @@ -99299,6 +110624,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -99350,7 +110683,7 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/resourceslices": { + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { "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.", @@ -99387,6 +110720,22 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -99438,7 +110787,7 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/resourceslices/{name}": { + "/apis/resource.k8s.io/v1beta1/watch/resourceclaims": { "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.", @@ -99475,14 +110824,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the ResourceSlice", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -99534,728 +110875,221 @@ } ] }, - "/apis/resource.k8s.io/v1alpha3/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ] - } - }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of DeviceTaintRule", - "operationId": "deleteCollectionDeviceTaintRule", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind DeviceTaintRule", - "operationId": "listDeviceTaintRule", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRuleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" - } - }, + "/apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates": { "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a DeviceTaintRule", - "operationId": "createDeviceTaintRule", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a DeviceTaintRule", - "operationId": "deleteDeviceTaintRule", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + { + "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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified DeviceTaintRule", - "operationId": "readDeviceTaintRule", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "If 'true', 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", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/resource.k8s.io/v1beta1/watch/resourceslices": { "parameters": [ { - "description": "name of the DeviceTaintRule", - "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified DeviceTaintRule", - "operationId": "patchDeviceTaintRule", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified DeviceTaintRule", - "operationId": "replaceDeviceTaintRule", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "401": { - "description": "Unauthorized" - } + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status": { - "get": { - "consumes": [ - "application/json" - ], - "description": "read status of the specified DeviceTaintRule", - "operationId": "readDeviceTaintRuleStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}": { "parameters": [ { - "description": "name of the DeviceTaintRule", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceSlice", "in": "path", "name": "name", "required": true, @@ -100268,126 +111102,58 @@ "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update status of the specified DeviceTaintRule", - "operationId": "patchDeviceTaintRuleStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1beta2/": { + "get": { "consumes": [ "application/json" ], - "description": "replace status of the specified DeviceTaintRule", - "operationId": "replaceDeviceTaintRuleStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -100398,13 +111164,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -100415,24 +111175,17 @@ "https" ], "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" - }, - "x-codegen-request-body-name": "body" + "resource_v1beta2" + ] } }, - "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests": { + "/apis/resource.k8s.io/v1beta2/deviceclasses": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ResourcePoolStatusRequest", - "operationId": "deleteCollectionResourcePoolStatusRequest", + "description": "delete collection of DeviceClass", + "operationId": "deleteCollectionDeviceClass", "parameters": [ { "in": "body", @@ -100561,13 +111314,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "DeviceClass", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -100575,8 +111328,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ResourcePoolStatusRequest", - "operationId": "listResourcePoolStatusRequest", + "description": "list or watch objects of kind DeviceClass", + "operationId": "listDeviceClass", "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.", @@ -100637,463 +111390,39 @@ { "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequestList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" - } - }, - "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", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a ResourcePoolStatusRequest", - "operationId": "createResourcePoolStatusRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a ResourcePoolStatusRequest", - "operationId": "deleteResourcePoolStatusRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified ResourcePoolStatusRequest", - "operationId": "readResourcePoolStatusRequest", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" - } - }, - "parameters": [ - { - "description": "name of the ResourcePoolStatusRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified ResourcePoolStatusRequest", - "operationId": "patchResourcePoolStatusRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified ResourcePoolStatusRequest", - "operationId": "replaceResourcePoolStatusRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "401": { - "description": "Unauthorized" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status": { - "get": { - "consumes": [ - "application/json" ], - "description": "read status of the specified ResourcePoolStatusRequest", - "operationId": "readResourcePoolStatusRequestStatus", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/v1beta2.DeviceClassList" } }, "401": { @@ -101104,24 +111433,16 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta2" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "DeviceClass", + "version": "v1beta2" } }, "parameters": [ - { - "description": "name of the ResourcePoolStatusRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -101130,19 +111451,19 @@ "uniqueItems": true } ], - "patch": { + "post": { "consumes": [ "application/json" ], - "description": "partially update status of the specified ResourcePoolStatusRequest", - "operationId": "patchResourcePoolStatusRequestStatus", + "description": "create a DeviceClass", + "operationId": "createDeviceClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, { @@ -101153,7 +111474,7 @@ "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "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", "type": "string", @@ -101165,13 +111486,6 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -101184,13 +111498,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "401": { @@ -101201,29 +111521,30 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta2" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "DeviceClass", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" - }, - "put": { + } + }, + "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}": { + "delete": { "consumes": [ "application/json" ], - "description": "replace status of the specified ResourcePoolStatusRequest", - "operationId": "replaceResourcePoolStatusRequestStatus", + "description": "delete a DeviceClass", + "operationId": "deleteDeviceClass", "parameters": [ { "in": "body", "name": "body", - "required": true, "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/v1.DeleteOptions" } }, { @@ -101234,16 +111555,30 @@ "uniqueItems": 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.", + "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": "fieldManager", - "type": "string", + "name": "gracePeriodSeconds", + "type": "integer", "uniqueItems": true }, { - "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": "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": "fieldValidation", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", "type": "string", "uniqueItems": true } @@ -101258,13 +111593,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, - "201": { - "description": "Created", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "401": { @@ -101275,392 +111610,187 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta2" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "DeviceClass", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/resource.k8s.io/v1alpha3/watch/devicetaintrules": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the DeviceTaintRule", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ResourcePoolStatusRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified DeviceClass", + "operationId": "readDeviceClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + } + }, + "parameters": [ { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", + "description": "name of the DeviceClass", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "description": "If 'true', 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": "shardSelector", + "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified DeviceClass", + "operationId": "patchDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1beta1/": { - "get": { + "x-codegen-request-body-name": "body" + }, + "put": { "consumes": [ "application/json" ], - "description": "get available resources", - "operationId": "getAPIResources", + "description": "replace the specified DeviceClass", + "operationId": "replaceDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -101671,7 +111801,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "401": { @@ -101682,17 +111818,24 @@ "https" ], "tags": [ - "resource_v1beta1" - ] + "resource_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/deviceclasses": { + "/apis/resource.k8s.io/v1beta2/devicetaintrules": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of DeviceClass", - "operationId": "deleteCollectionDeviceClass", + "description": "delete collection of DeviceTaintRule", + "operationId": "deleteCollectionDeviceTaintRule", "parameters": [ { "in": "body", @@ -101821,13 +111964,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -101835,8 +111978,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind DeviceClass", - "operationId": "listDeviceClass", + "description": "list or watch objects of kind DeviceTaintRule", + "operationId": "listDeviceTaintRule", "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.", @@ -101929,7 +112072,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClassList" + "$ref": "#/definitions/v1beta2.DeviceTaintRuleList" } }, "401": { @@ -101940,13 +112083,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" } }, "parameters": [ @@ -101962,15 +112105,318 @@ "consumes": [ "application/json" ], - "description": "create a DeviceClass", - "operationId": "createDeviceClass", + "description": "create a DeviceTaintRule", + "operationId": "createDeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a DeviceTaintRule", + "operationId": "deleteDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified DeviceTaintRule", + "operationId": "readDeviceTaintRule", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "parameters": [ + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, { @@ -102005,19 +112451,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "401": { @@ -102028,111 +112468,24 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/deviceclasses/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a DeviceClass", - "operationId": "deleteDeviceClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, + "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read the specified DeviceClass", - "operationId": "readDeviceClass", + "description": "read status of the specified DeviceTaintRule", + "operationId": "readDeviceTaintRuleStatus", "produces": [ "application/json", "application/yaml", @@ -102143,7 +112496,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "401": { @@ -102154,18 +112507,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" } }, "parameters": [ { - "description": "name of the DeviceClass", + "description": "name of the DeviceTaintRule", "in": "path", "name": "name", "required": true, @@ -102184,8 +112537,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified DeviceClass", - "operationId": "patchDeviceClass", + "description": "partially update status of the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRuleStatus", "parameters": [ { "in": "body", @@ -102234,13 +112587,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "401": { @@ -102251,13 +112604,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -102265,15 +112618,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified DeviceClass", - "operationId": "replaceDeviceClass", + "description": "replace status of the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRuleStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, { @@ -102308,13 +112661,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "401": { @@ -102325,18 +112678,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims": { "delete": { "consumes": [ "application/json" @@ -102471,13 +112824,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -102579,7 +112932,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimList" + "$ref": "#/definitions/v1beta2.ResourceClaimList" } }, "401": { @@ -102590,13 +112943,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -102628,7 +112981,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, { @@ -102663,19 +113016,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -102686,18 +113039,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}": { "delete": { "consumes": [ "application/json" @@ -102758,13 +113111,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -102775,13 +113128,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -102801,7 +113154,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -102812,13 +113165,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -102900,13 +113253,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -102917,13 +113270,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -102939,7 +113292,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, { @@ -102974,13 +113327,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -102991,18 +113344,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status": { "get": { "consumes": [ "application/json" @@ -103019,7 +113372,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -103030,13 +113383,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -103118,13 +113471,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -103135,13 +113488,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -103157,7 +113510,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, { @@ -103192,13 +113545,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -103209,18 +113562,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates": { "delete": { "consumes": [ "application/json" @@ -103355,13 +113708,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -103463,7 +113816,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplateList" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplateList" } }, "401": { @@ -103474,13 +113827,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -103512,7 +113865,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, { @@ -103547,19 +113900,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -103570,18 +113923,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}": { "delete": { "consumes": [ "application/json" @@ -103642,13 +113995,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -103659,13 +114012,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -103685,7 +114038,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -103696,13 +114049,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -103784,13 +114137,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -103801,13 +114154,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -103823,7 +114176,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, { @@ -103858,13 +114211,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -103875,18 +114228,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/resourceclaims": { + "/apis/resource.k8s.io/v1beta2/resourceclaims": { "get": { "consumes": [ "application/json" @@ -103906,7 +114259,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimList" + "$ref": "#/definitions/v1beta2.ResourceClaimList" } }, "401": { @@ -103917,13 +114270,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -104013,7 +114366,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta2/resourceclaimtemplates": { "get": { "consumes": [ "application/json" @@ -104033,7 +114386,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplateList" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplateList" } }, "401": { @@ -104044,13 +114397,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -104140,7 +114493,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/resourceslices": { + "/apis/resource.k8s.io/v1beta2/resourceslices": { "delete": { "consumes": [ "application/json" @@ -104275,13 +114628,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceSlice", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -104383,7 +114736,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSliceList" + "$ref": "#/definitions/v1beta2.ResourceSliceList" } }, "401": { @@ -104394,13 +114747,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceSlice", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -104424,7 +114777,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, { @@ -104459,19 +114812,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "401": { @@ -104482,18 +114835,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceSlice", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/resourceslices/{name}": { + "/apis/resource.k8s.io/v1beta2/resourceslices/{name}": { "delete": { "consumes": [ "application/json" @@ -104554,13 +114907,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "401": { @@ -104571,13 +114924,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceSlice", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -104597,7 +114950,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "401": { @@ -104608,13 +114961,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceSlice", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -104688,13 +115041,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "401": { @@ -104705,13 +115058,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceSlice", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -104727,7 +115080,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, { @@ -104762,13 +115115,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "401": { @@ -104778,299 +115131,19 @@ "schemes": [ "https" ], - "tags": [ - "resource_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/resource.k8s.io/v1beta1/watch/deviceclasses": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/deviceclasses/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the DeviceClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/resource.k8s.io/v1beta2/watch/deviceclasses": { "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.", @@ -105107,22 +115180,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the ResourceClaim", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -105174,7 +115231,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}": { "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.", @@ -105212,9 +115269,9 @@ "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", + "description": "name of the DeviceClass", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -105270,7 +115327,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules": { "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.", @@ -105307,22 +115364,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the ResourceClaimTemplate", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -105374,7 +115415,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/resourceclaims": { + "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules/{name}": { "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.", @@ -105411,6 +115452,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -105462,7 +115511,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims": { "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.", @@ -105499,6 +115548,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -105550,7 +115607,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/resourceslices": { + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}": { "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.", @@ -105587,6 +115644,22 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -105638,7 +115711,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}": { + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates": { "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.", @@ -105676,9 +115749,9 @@ "uniqueItems": true }, { - "description": "name of the ResourceSlice", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -105695,1417 +115768,452 @@ "in": "query", "name": "resourceVersion", "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1beta2/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ] - } - }, - "/apis/resource.k8s.io/v1beta2/deviceclasses": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of DeviceClass", - "operationId": "deleteCollectionDeviceClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind DeviceClass", - "operationId": "listDeviceClass", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta2" - } - }, - "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", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a DeviceClass", - "operationId": "createDeviceClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" - } - }, - "401": { - "description": "Unauthorized" - } + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta2" + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a DeviceClass", - "operationId": "deleteDeviceClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" - } - }, - "401": { - "description": "Unauthorized" - } + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta2" + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified DeviceClass", - "operationId": "readDeviceClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta2" + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { "parameters": [ { - "description": "name of the DeviceClass", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceClaimTemplate", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified DeviceClass", - "operationId": "patchDeviceClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta2" }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified DeviceClass", - "operationId": "replaceDeviceClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" - } - }, - "401": { - "description": "Unauthorized" - } + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta2" + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/resource.k8s.io/v1beta2/devicetaintrules": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of DeviceTaintRule", - "operationId": "deleteCollectionDeviceTaintRule", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind DeviceTaintRule", - "operationId": "listDeviceTaintRule", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRuleList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/resourceclaims": { "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a DeviceTaintRule", - "operationId": "createDeviceTaintRule", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a DeviceTaintRule", - "operationId": "deleteDeviceTaintRule", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates": { + "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", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + { + "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\".\n\nThis field is not 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", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified DeviceTaintRule", - "operationId": "readDeviceTaintRule", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/resourceslices": { "parameters": [ { - "description": "name of the DeviceTaintRule", - "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified DeviceTaintRule", - "operationId": "patchDeviceTaintRule", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified DeviceTaintRule", - "operationId": "replaceDeviceTaintRule", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "401": { - "description": "Unauthorized" - } + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status": { - "get": { - "consumes": [ - "application/json" - ], - "description": "read status of the specified DeviceTaintRule", - "operationId": "readDeviceTaintRuleStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}": { "parameters": [ { - "description": "name of the DeviceTaintRule", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceSlice", "in": "path", "name": "name", "required": true, @@ -107118,52 +116226,58 @@ "name": "pretty", "type": "string", "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { + ] + }, + "/apis/scheduling.k8s.io/": { + "get": { "consumes": [ "application/json" ], - "description": "partially update status of the specified DeviceTaintRule", - "operationId": "patchDeviceTaintRuleStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -107174,13 +116288,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -107191,53 +116299,17 @@ "https" ], "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - }, - "put": { + "scheduling" + ] + } + }, + "/apis/scheduling.k8s.io/v1/": { + "get": { "consumes": [ "application/json" ], - "description": "replace status of the specified DeviceTaintRule", - "operationId": "replaceDeviceTaintRuleStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -107248,13 +116320,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -107265,24 +116331,17 @@ "https" ], "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" + "scheduling_v1" + ] } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims": { + "/apis/scheduling.k8s.io/v1/priorityclasses": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ResourceClaim", - "operationId": "deleteCollectionNamespacedResourceClaim", + "description": "delete collection of PriorityClass", + "operationId": "deleteCollectionPriorityClass", "parameters": [ { "in": "body", @@ -107411,13 +116470,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -107425,8 +116484,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listNamespacedResourceClaim", + "description": "list or watch objects of kind PriorityClass", + "operationId": "listPriorityClass", "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.", @@ -107519,7 +116578,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimList" + "$ref": "#/definitions/v1.PriorityClassList" } }, "401": { @@ -107530,24 +116589,16 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -107560,15 +116611,15 @@ "consumes": [ "application/json" ], - "description": "create a ResourceClaim", - "operationId": "createNamespacedResourceClaim", + "description": "create a PriorityClass", + "operationId": "createPriorityClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, { @@ -107603,19 +116654,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "401": { @@ -107626,24 +116677,24 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/scheduling.k8s.io/v1/priorityclasses/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ResourceClaim", - "operationId": "deleteNamespacedResourceClaim", + "description": "delete a PriorityClass", + "operationId": "deletePriorityClass", "parameters": [ { "in": "body", @@ -107698,13 +116749,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -107715,13 +116766,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -107729,8 +116780,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ResourceClaim", - "operationId": "readNamespacedResourceClaim", + "description": "read the specified PriorityClass", + "operationId": "readPriorityClass", "produces": [ "application/json", "application/yaml", @@ -107741,7 +116792,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "401": { @@ -107752,32 +116803,24 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" } }, "parameters": [ { - "description": "name of the ResourceClaim", + "description": "name of the PriorityClass", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -107790,8 +116833,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ResourceClaim", - "operationId": "patchNamespacedResourceClaim", + "description": "partially update the specified PriorityClass", + "operationId": "patchPriorityClass", "parameters": [ { "in": "body", @@ -107840,13 +116883,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "401": { @@ -107857,13 +116900,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -107871,15 +116914,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ResourceClaim", - "operationId": "replaceNamespacedResourceClaim", + "description": "replace the specified PriorityClass", + "operationId": "replacePriorityClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, { @@ -107914,13 +116957,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "401": { @@ -107931,67 +116974,146 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status": { - "get": { - "consumes": [ - "application/json" - ], - "description": "read status of the specified ResourceClaim", - "operationId": "readNamespacedResourceClaimStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/scheduling.k8s.io/v1/watch/priorityclasses": { + "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", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + { + "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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}": { "parameters": [ { - "description": "name of the ResourceClaim", - "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PriorityClass", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -108002,52 +117124,58 @@ "name": "pretty", "type": "string", "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/": { + "get": { "consumes": [ "application/json" ], - "description": "partially update status of the specified ResourceClaim", - "operationId": "patchNamespacedResourceClaimStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -108058,13 +117186,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -108075,70 +117197,31 @@ "https" ], "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" - }, - "put": { + "scheduling_v1alpha3" + ] + } + }, + "/apis/scheduling.k8s.io/v1alpha3/compositepodgroups": { + "get": { "consumes": [ "application/json" ], - "description": "replace status of the specified ResourceClaim", - "operationId": "replaceNamespacedResourceClaimStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], + "description": "list or watch objects of kind CompositePodGroup", + "operationId": "listCompositePodGroupForAllNamespaces", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1alpha3.CompositePodGroupList" } }, "401": { @@ -108149,24 +117232,109 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "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", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ResourceClaimTemplate", - "operationId": "deleteCollectionNamespacedResourceClaimTemplate", + "description": "delete collection of CompositePodGroup", + "operationId": "deleteCollectionNamespacedCompositePodGroup", "parameters": [ { "in": "body", @@ -108295,13 +117463,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -108309,8 +117477,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listNamespacedResourceClaimTemplate", + "description": "list or watch objects of kind CompositePodGroup", + "operationId": "listNamespacedCompositePodGroup", "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.", @@ -108403,7 +117571,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplateList" + "$ref": "#/definitions/v1alpha3.CompositePodGroupList" } }, "401": { @@ -108414,13 +117582,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" } }, "parameters": [ @@ -108444,15 +117612,15 @@ "consumes": [ "application/json" ], - "description": "create a ResourceClaimTemplate", - "operationId": "createNamespacedResourceClaimTemplate", + "description": "create a CompositePodGroup", + "operationId": "createNamespacedCompositePodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, { @@ -108487,19 +117655,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "401": { @@ -108510,24 +117678,24 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ResourceClaimTemplate", - "operationId": "deleteNamespacedResourceClaimTemplate", + "description": "delete a CompositePodGroup", + "operationId": "deleteNamespacedCompositePodGroup", "parameters": [ { "in": "body", @@ -108582,13 +117750,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -108599,13 +117767,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -108613,8 +117781,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ResourceClaimTemplate", - "operationId": "readNamespacedResourceClaimTemplate", + "description": "read the specified CompositePodGroup", + "operationId": "readNamespacedCompositePodGroup", "produces": [ "application/json", "application/yaml", @@ -108625,7 +117793,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "401": { @@ -108636,18 +117804,18 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the ResourceClaimTemplate", + "description": "name of the CompositePodGroup", "in": "path", "name": "name", "required": true, @@ -108674,8 +117842,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ResourceClaimTemplate", - "operationId": "patchNamespacedResourceClaimTemplate", + "description": "partially update the specified CompositePodGroup", + "operationId": "patchNamespacedCompositePodGroup", "parameters": [ { "in": "body", @@ -108724,13 +117892,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "401": { @@ -108741,13 +117909,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -108755,15 +117923,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ResourceClaimTemplate", - "operationId": "replaceNamespacedResourceClaimTemplate", + "description": "replace the specified CompositePodGroup", + "operationId": "replaceNamespacedCompositePodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, { @@ -108798,13 +117966,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "401": { @@ -108815,38 +117983,35 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/resourceclaims": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceClaimForAllNamespaces", + "description": "read status of the specified CompositePodGroup", + "operationId": "readNamespacedCompositePodGroupStatus", "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimList" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "401": { @@ -108857,123 +118022,101 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" } }, "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", + "description": "name of the CompositePodGroup", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "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, "type": "string", "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", "type": "string", "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/resource.k8s.io/v1beta2/resourceclaimtemplates": { - "get": { + ], + "patch": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceClaimTemplateForAllNamespaces", + "description": "partially update status of the specified CompositePodGroup", + "operationId": "patchNamespacedCompositePodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], "produces": [ "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" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplateList" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "401": { @@ -108984,109 +118127,98 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified CompositePodGroup", + "operationId": "replaceNamespacedCompositePodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.CompositePodGroup" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/resource.k8s.io/v1beta2/resourceslices": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ResourceSlice", - "operationId": "deleteCollectionResourceSlice", + "description": "delete collection of PodGroup", + "operationId": "deleteCollectionNamespacedPodGroup", "parameters": [ { "in": "body", @@ -109215,13 +118347,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -109229,8 +118361,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ResourceSlice", - "operationId": "listResourceSlice", + "description": "list or watch objects of kind PodGroup", + "operationId": "listNamespacedPodGroup", "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.", @@ -109323,7 +118455,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSliceList" + "$ref": "#/definitions/v1alpha3.PodGroupList" } }, "401": { @@ -109334,16 +118466,24 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -109356,15 +118496,15 @@ "consumes": [ "application/json" ], - "description": "create a ResourceSlice", - "operationId": "createResourceSlice", + "description": "create a PodGroup", + "operationId": "createNamespacedPodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, { @@ -109399,19 +118539,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, "401": { @@ -109422,24 +118562,24 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/resourceslices/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ResourceSlice", - "operationId": "deleteResourceSlice", + "description": "delete a PodGroup", + "operationId": "deleteNamespacedPodGroup", "parameters": [ { "in": "body", @@ -109494,13 +118634,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -109511,13 +118651,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -109525,8 +118665,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ResourceSlice", - "operationId": "readResourceSlice", + "description": "read the specified PodGroup", + "operationId": "readNamespacedPodGroup", "produces": [ "application/json", "application/yaml", @@ -109537,7 +118677,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, "401": { @@ -109548,24 +118688,32 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the ResourceSlice", + "description": "name of the PodGroup", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -109578,8 +118726,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ResourceSlice", - "operationId": "patchResourceSlice", + "description": "partially update the specified PodGroup", + "operationId": "patchNamespacedPodGroup", "parameters": [ { "in": "body", @@ -109628,13 +118776,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, "401": { @@ -109645,13 +118793,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -109659,15 +118807,233 @@ "consumes": [ "application/json" ], - "description": "replace the specified ResourceSlice", - "operationId": "replaceResourceSlice", + "description": "replace the specified PodGroup", + "operationId": "replaceNamespacedPodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified PodGroup", + "operationId": "readNamespacedPodGroupStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "description": "name of the PodGroup", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified PodGroup", + "operationId": "patchNamespacedPodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified PodGroup", + "operationId": "replaceNamespacedPodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroup" } }, { @@ -109685,10 +119051,162 @@ "uniqueItems": true }, { - "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": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of Workload", + "operationId": "deleteCollectionNamespacedWorkload", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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\".\n\nThis field is not 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", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", - "name": "fieldValidation", - "type": "string", + "name": "timeoutSeconds", + "type": "integer", "uniqueItems": true } ], @@ -109702,13 +119220,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -109719,422 +119231,135 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/resource.k8s.io/v1beta2/watch/deviceclasses": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the DeviceClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules/{name}": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the DeviceTaintRule", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind Workload", + "operationId": "listNamespacedWorkload", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.WorkloadList" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" + } + }, + "parameters": [ { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -110149,90 +119374,216 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a Workload", + "operationId": "createNamespacedWorkload", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a Workload", + "operationId": "deleteNamespacedWorkload", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified Workload", + "operationId": "readNamespacedWorkload", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}": { + }, "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ResourceClaim", + "description": "name of the Workload", "in": "path", "name": "name", "required": true, @@ -110253,52 +119604,204 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified Workload", + "operationId": "patchNamespacedWorkload", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified Workload", + "operationId": "replaceNamespacedWorkload", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" }, - { - "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", - "type": "boolean", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/scheduling.k8s.io/v1alpha3/podgroups": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind PodGroup", + "operationId": "listPodGroupForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroupList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates": { + }, "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.", @@ -110335,14 +119838,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -110394,7 +119889,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/watch/compositepodgroups": { "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.", @@ -110431,22 +119926,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the ResourceClaimTemplate", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": 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", @@ -110498,7 +119977,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/resourceclaims": { + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/compositepodgroups": { "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.", @@ -110535,6 +120014,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -110586,7 +120073,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates": { + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/compositepodgroups/{name}": { "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.", @@ -110624,93 +120111,21 @@ "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/resourceslices": { - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", + "description": "name of the CompositePodGroup", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "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, "type": "string", "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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", @@ -110762,7 +120177,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/podgroups": { "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.", @@ -110796,782 +120211,173 @@ "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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ResourceSlice", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/scheduling.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling" - ] - } - }, - "/apis/scheduling.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ] - } - }, - "/apis/scheduling.k8s.io/v1/priorityclasses": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of PriorityClass", - "operationId": "deleteCollectionPriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind PriorityClass", - "operationId": "listPriorityClass", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PriorityClassList" - } - }, - "401": { - "description": "Unauthorized" - } + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - } - }, - "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", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a PriorityClass", - "operationId": "createPriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PriorityClass" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PriorityClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/scheduling.k8s.io/v1/priorityclasses/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a PriorityClass", - "operationId": "deletePriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified PriorityClass", - "operationId": "readPriorityClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/podgroups/{name}": { "parameters": [ { - "description": "name of the PriorityClass", + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PodGroup", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified PriorityClass", - "operationId": "patchPriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified PriorityClass", - "operationId": "replacePriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PriorityClass" - } - }, - { - "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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/scheduling.k8s.io/v1/watch/priorityclasses": { + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/workloads": { "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.", @@ -111608,6 +120414,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", @@ -111659,7 +120473,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/workloads/{name}": { "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.", @@ -111697,13 +120511,324 @@ "uniqueItems": true }, { - "description": "name of the PriorityClass", + "description": "name of the Workload", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/watch/podgroups": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/watch/workloads": { + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", + "type": "string", + "uniqueItems": 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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "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.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/workloads": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind Workload", + "operationId": "listWorkloadForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.WorkloadList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" + } + }, + "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", + "type": "boolean", + "uniqueItems": 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\".\n\nThis field is not 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", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", + "type": "integer", + "uniqueItems": 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", @@ -111755,7 +120880,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/": { + "/apis/scheduling.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json" @@ -111783,11 +120908,11 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ] } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups": { "delete": { "consumes": [ "application/json" @@ -111922,13 +121047,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -112030,7 +121155,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroupList" + "$ref": "#/definitions/v1beta1.PodGroupList" } }, "401": { @@ -112041,13 +121166,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -112079,7 +121204,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, { @@ -112114,19 +121239,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112137,18 +121262,18 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}": { "delete": { "consumes": [ "application/json" @@ -112226,13 +121351,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -112252,7 +121377,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112263,13 +121388,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -112351,13 +121476,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112368,13 +121493,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -112390,7 +121515,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, { @@ -112425,13 +121550,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112442,18 +121567,18 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status": { "get": { "consumes": [ "application/json" @@ -112470,7 +121595,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112481,13 +121606,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -112569,13 +121694,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112586,13 +121711,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -112608,7 +121733,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, { @@ -112643,13 +121768,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112660,18 +121785,18 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads": { "delete": { "consumes": [ "application/json" @@ -112806,13 +121931,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -112914,7 +122039,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.WorkloadList" + "$ref": "#/definitions/v1beta1.WorkloadList" } }, "401": { @@ -112925,13 +122050,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -112963,7 +122088,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, { @@ -112998,19 +122123,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "401": { @@ -113021,18 +122146,18 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}": { "delete": { "consumes": [ "application/json" @@ -113110,13 +122235,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -113136,7 +122261,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "401": { @@ -113147,13 +122272,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -113235,13 +122360,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "401": { @@ -113252,13 +122377,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -113274,7 +122399,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, { @@ -113309,13 +122434,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "401": { @@ -113326,18 +122451,18 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1alpha2/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/podgroups": { "get": { "consumes": [ "application/json" @@ -113357,7 +122482,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroupList" + "$ref": "#/definitions/v1beta1.PodGroupList" } }, "401": { @@ -113368,13 +122493,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -113464,7 +122589,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/podgroups": { "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.", @@ -113560,7 +122685,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/podgroups/{name}": { + "/apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/podgroups/{name}": { "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.", @@ -113664,7 +122789,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads": { + "/apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/workloads": { "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.", @@ -113760,7 +122885,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads/{name}": { + "/apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/workloads/{name}": { "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.", @@ -113864,7 +122989,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/watch/podgroups": { "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.", @@ -113952,7 +123077,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/workloads": { + "/apis/scheduling.k8s.io/v1beta1/watch/workloads": { "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.", @@ -114040,7 +123165,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/workloads": { + "/apis/scheduling.k8s.io/v1beta1/workloads": { "get": { "consumes": [ "application/json" @@ -114060,7 +123185,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.WorkloadList" + "$ref": "#/definitions/v1beta1.WorkloadList" } }, "401": { @@ -114071,13 +123196,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -114177,7 +123302,8 @@ "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -115530,6 +124656,216 @@ "x-codegen-request-body-name": "body" } }, + "/apis/storage.k8s.io/v1/csinodes/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified CSINode", + "operationId": "readCSINodeStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CSINode", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified CSINode", + "operationId": "patchCSINodeStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CSINode" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "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" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified CSINode", + "operationId": "replaceCSINodeStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.CSINode" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CSINode" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "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" + } + }, "/apis/storage.k8s.io/v1/csistoragecapacities": { "get": { "consumes": [ @@ -119691,7 +129027,39 @@ } ] }, - "/apis/storage.k8s.io/v1beta1/": { + "/apis/storagemigration.k8s.io/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration" + ] + } + }, + "/apis/storagemigration.k8s.io/v1/": { "get": { "consumes": [ "application/json" @@ -119719,17 +129087,17 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ] } }, - "/apis/storage.k8s.io/v1beta1/volumeattributesclasses": { + "/apis/storagemigration.k8s.io/v1/storageversionmigrations": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of VolumeAttributesClass", - "operationId": "deleteCollectionVolumeAttributesClass", + "description": "delete collection of StorageVersionMigration", + "operationId": "deleteCollectionStorageVersionMigration", "parameters": [ { "in": "body", @@ -119858,13 +129226,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -119872,8 +129240,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind VolumeAttributesClass", - "operationId": "listVolumeAttributesClass", + "description": "list or watch objects of kind StorageVersionMigration", + "operationId": "listStorageVersionMigration", "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.", @@ -119966,7 +129334,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClassList" + "$ref": "#/definitions/v1.StorageVersionMigrationList" } }, "401": { @@ -119977,13 +129345,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "parameters": [ @@ -119999,15 +129367,15 @@ "consumes": [ "application/json" ], - "description": "create a VolumeAttributesClass", - "operationId": "createVolumeAttributesClass", + "description": "create a StorageVersionMigration", + "operationId": "createStorageVersionMigration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, { @@ -120042,19 +129410,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "401": { @@ -120065,24 +129433,24 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}": { + "/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a VolumeAttributesClass", - "operationId": "deleteVolumeAttributesClass", + "description": "delete a StorageVersionMigration", + "operationId": "deleteStorageVersionMigration", "parameters": [ { "in": "body", @@ -120137,13 +129505,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -120154,13 +129522,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -120168,8 +129536,8 @@ "consumes": [ "application/json" ], - "description": "read the specified VolumeAttributesClass", - "operationId": "readVolumeAttributesClass", + "description": "read the specified StorageVersionMigration", + "operationId": "readStorageVersionMigration", "produces": [ "application/json", "application/yaml", @@ -120180,7 +129548,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "401": { @@ -120191,18 +129559,18 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "parameters": [ { - "description": "name of the VolumeAttributesClass", + "description": "name of the StorageVersionMigration", "in": "path", "name": "name", "required": true, @@ -120221,8 +129589,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified VolumeAttributesClass", - "operationId": "patchVolumeAttributesClass", + "description": "partially update the specified StorageVersionMigration", + "operationId": "patchStorageVersionMigration", "parameters": [ { "in": "body", @@ -120271,13 +129639,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "401": { @@ -120288,13 +129656,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -120302,15 +129670,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified VolumeAttributesClass", - "operationId": "replaceVolumeAttributesClass", + "description": "replace the specified StorageVersionMigration", + "operationId": "replaceStorageVersionMigration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, { @@ -120345,13 +129713,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "401": { @@ -120362,18 +129730,228 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses": { + "/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified StorageVersionMigration", + "operationId": "readStorageVersionMigrationStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StorageVersionMigration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the StorageVersionMigration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified StorageVersionMigration", + "operationId": "patchStorageVersionMigrationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StorageVersionMigration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StorageVersionMigration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified StorageVersionMigration", + "operationId": "replaceStorageVersionMigrationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.StorageVersionMigration" + } + }, + { + "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", + "type": "string", + "uniqueItems": 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", + "type": "string", + "uniqueItems": true + }, + { + "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", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StorageVersionMigration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StorageVersionMigration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/storagemigration.k8s.io/v1/watch/storageversionmigrations": { "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.", @@ -120461,7 +130039,7 @@ } ] }, - "/apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses/{name}": { + "/apis/storagemigration.k8s.io/v1/watch/storageversionmigrations/{name}": { "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.", @@ -120499,7 +130077,7 @@ "uniqueItems": true }, { - "description": "name of the VolumeAttributesClass", + "description": "name of the StorageVersionMigration", "in": "path", "name": "name", "required": true, @@ -120557,37 +130135,6 @@ } ] }, - "/apis/storagemigration.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storagemigration" - ] - } - }, "/apis/storagemigration.k8s.io/v1beta1/": { "get": { "consumes": [